2017年8月10日木曜日

CentOS7 home ディスク交換

UUIDを調べる。
# blkid
/dev/sdb1: LABEL="Expand-disk" UUID="6cfeaa57-4eae-40e9-95ff-cb64c3ddfeac" TYPE="ext4" PARTUUID="a9020353-68a1-43ad-958a-79a71612cf10"
/dev/sda1: SEC_TYPE="msdos" UUID="BAB1-8EC7" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="ea358ff4-1fe4-49fe-b5dd-a5b4d2c98058"
/dev/sda2: LABEL="CentOS7" UUID="23bbd7a8-a7b7-4653-9ffc-51364bcdade2" TYPE="xfs" PARTUUID="7255c1bd-a1e3-4a29-9253-59d58e418db8"
/dev/sda3: UUID="id1vkH-WKAo-4osF-WLNV-rTdQ-cAYG-lVpb1x" TYPE="LVM2_member" PARTUUID="c7eac12c-4085-42a9-a175-cdb23023a61c"
/dev/mapper/cl00-root: UUID="e03a3cde-4b39-4c60-a3e9-378f5bee4a09" TYPE="xfs"
/dev/sdc: LABEL="HOME Disk" UUID="1fc0744f-c41c-476f-b261-97f3374140ab" TYPE="ext4"
/dev/mapper/cl00-swap: UUID="3ff82b2f-8d91-4d35-b648-56099c67379d" TYPE="swap"
/dev/mapper/cl00-home: UUID="90cdee49-cb0b-44f9-9231-1e7b78276d22" TYPE="xfs"

vi /etc/fstab
#
# /etc/fstab
# Created by anaconda on Mon Feb 13 13:52:59 2017
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/cl00-root   /                       xfs     defaults        0 0
UUID=23bbd7a8-a7b7-4653-9ffc-51364bcdade2 /boot                   xfs     defaults        0 0
UUID=BAB1-8EC7          /boot/efi               vfat    umask=0077,shortname=winnt 0 0
#/dev/mapper/cl00-home   /home                   xfs     defaults        0 0
UUID=1fc0744f-c41c-476f-b261-97f3374140ab /home ext4    defaults        0 0    
/dev/mapper/cl00-swap   swap                    swap    defaults        0 0

0 件のコメント:

コメントを投稿

zabbix7 amazon linux2023 インストール postgres15

【postgres】 dnf -y install postgresql15-server postgresql15-server-devel postgresql-setup initdb passwd postgres vi `find / -name pg_hba.con...