Re-sizing a PV
I found in the archives a reference to using this series of commands to grow a PV to fill a disk that has grown (in this case, a hardware RAID volume that has had disks added to it):
vgcfgbackup
edit file
pvcreate --restorefile --uuid
vgcfgrestore
I would appreciate a little clarification on step #3:
I assume I need to specify the name of the backup file as the value to the --restorefile option. Do I specify the id of the vg or the pv as the option to --uid?
Thanks!
Oh, and do the filesystems have to be unmounted while this is happening?
-Ben
Quoted 3 lines · Ben Beuchler
I found in the archives a reference to using this series of commands to grow a PV to fill a disk that has grown (in this case, a hardware RAID volume that has had disks added to it):
Current CVS has a pvresize command for this -- it's worked successfully for me on a live system, although I understand there are still potential issues with it not keeping the PV label and VG metadata in sync.
Zak.