LVM Resize a Physical Volume: Difference between revisions

From UNIX Systems Administration
Jump to navigation Jump to search
Line 2: Line 2:
# Resize the LUN on the storage subsystem.
# Resize the LUN on the storage subsystem.
# Rescan the SCSI hosts.
# Rescan the SCSI hosts.
## <tt>'''# echo '- - -' /sys/class/scsi_host/host#/scan'''</tt>
## <tt>'''# echo '- - -' > /sys/class/scsi_host/host#/scan'''</tt>
# Get the device paths of the physical volumes that will need to be resized.
# Get the device paths of the physical volumes that will need to be resized.
## <tt>'''# pvs'''</tt>
## <tt>'''# pvs'''</tt>

Revision as of 11:54, 16 November 2016

SAN Attached and VMWare Raw Mapped

  1. Resize the LUN on the storage subsystem.
  2. Rescan the SCSI hosts.
    1. # echo '- - -' > /sys/class/scsi_host/host#/scan
  3. Get the device paths of the physical volumes that will need to be resized.
    1. # pvs
  4. Rescan the the SCSI block device.
    1. # echo 1 > /sys/block/<block device>/device/rescan
  5. Scan for physical volumes.
    1. # pvscan
  6. 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