ディスクコピー



fdisk -l |grep /dev/sd
pvscan
vgscan
lvscan

vgdisplay

umount /test
vgchange -a n vg02

vgimportclone /dev/sdc1

pvscan
vgscan
lvscan

vgchange -a y vg02
vgchange -a y vg021

mkdir /test2

mount /dev/mapper/vg02-lv01 /test

mount -t xfs -o ro,nouuid /dev/vg021/lv01 /test2

[root@tdb01 ~]# xfs_admin -U generate /dev/vg021/lv01
Clearing log and setting UUID
writing all SBs
new UUID = 94270df5-c24e-4abd-a4d0-32918a36eadb

■vg削除
lvscan
vgscan
pvscan

umount /test2

vgchange -a n vg021

vgremove vg021

lvscan
vgscan
pvscan

pvremove /dev/sdc1

pvscan