LVM Resize a Physical Volume: Difference between revisions

From UNIX Systems Administration
Jump to navigation Jump to search
(Created page with "== SAN Attached and VMWare Raw Mapped == # Resize the LUN on the storage subsystem. # Resize the the SCSI block device. ## <tt>'''# echo 1 > /sys/block/<block device>/device/r...")
 
No edit summary
Line 3: Line 3:
# Resize the the SCSI block device.
# Resize the the SCSI block device.
## <tt>'''# echo 1 > /sys/block/<block device>/device/rescan'''</tt>
## <tt>'''# echo 1 > /sys/block/<block device>/device/rescan'''</tt>
# Scan for physical volumes
# Scan for physical volumes.
## <tt>'''# pvscan'''</tt>
## <tt>'''# pvscan'''</tt>
# Resize the physical volume.
# Resize the physical volume.
Line 12: Line 12:
# Resize the the SCSI block device.
# Resize the the SCSI block device.
## <tt>'''# echo 1 > /sys/block/<block device>/device/rescan'''</tt>
## <tt>'''# echo 1 > /sys/block/<block device>/device/rescan'''</tt>
# Scan for physical volumes
# Scan for physical volumes.
## <tt>'''# pvscan'''</tt>
## <tt>'''# pvscan'''</tt>
# Resize the physical volume.
# Resize the physical volume.

Revision as of 20:12, 20 January 2015

SAN Attached and VMWare Raw Mapped

  1. Resize the LUN on the storage subsystem.
  2. Resize 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. Resize 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