LVM Resize a Physical Volume

From UNIX Systems Administration
Revision as of 13:33, 11 December 2015 by Michael Kohler (talk | contribs)
Jump to navigation Jump to search

SAN Attached and VMWare Raw Mapped

  1. Resize the LUN on the storage subsystem.
  2. Rescan the the SCSI block device.
    1. # echo 1 > /sys/block/<block device>/device/rescan
  3. Scan for physical volumes.
    1. # pvscan
  4. Resize the physical volume.
    1. # pvresize /dev/<block device>

VMWare VMDK

  1. Resize the vmdk.
  2. Rescan the the SCSI block device.
    1. # echo 1 > /sys/block/<block device>/device/rescan
  3. Scan for physical volumes.
    1. # pvscan
  4. Resize the physical volume.
    1. # pvresize /dev/<block device>

Further Reading