Not logged in
Log in now
Create an account
Subscribe to LWN
Pencil, Pencil, and Pencil
Dividing the Linux desktop
LWN.net Weekly Edition for June 13, 2013
A report from pgCon 2013
Little things that matter in language design
vgextend (mentioned in the man page for pvcreate) adds the partition to the existing volume group.
pvmove moves the logical volume from the old disk to the new disk.
vgremove removes the old partition from the volume group.
Remember to move /boot manually (it should be easy to do it with dd since it can be left read-only).
Fedora and LVM
Posted Nov 1, 2012 14:40 UTC (Thu) by epa (subscriber, #39769)
Posted Nov 2, 2012 0:34 UTC (Fri) by lacos (subscriber, #70616)
Posted Nov 1, 2012 21:13 UTC (Thu) by agk (subscriber, #23332)
BTW This step is optional now. Basic pvcreate functionality is included in vgextend (and vgcreate).
Posted Nov 2, 2012 0:33 UTC (Fri) by lacos (subscriber, #70616)
I think this is not correct (it caught my eye because I also have the most trouble remembering this step).
"vgremove" removes an entire volume group.
Instead "vgreduce" is needed here (evict the PV (ie. the partition) from the VG).
Afterwards "pvremove" may be invoked on the partition to "wipe the label on [the] device so that LVM will no longer recognise it as a physical volume".
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds