Quote:
Originally Posted by etcetera
Or do I have to extend the partition first before expanding the volume group? With vgextend? Then lvextend. Because VG won't be aware of the extra disk space.
|
Close. After extending the partition, you want
pvresize (with just the device name -- no other options needed), then
lvextend.
The
vgextend command is for adding more PVs (separate devices/partitions) to the VG. If you were adding a separate partition, then
vgextend is what you would want. If you just enlarge the existing partition (adding space at the end, NOT at the beginning), then
pvresize will detect the new size and adjust the PV parameters accordingly.