LVM Resize a Physical Volume: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
== SAN Attached and VMWare Raw Mapped == | == SAN Attached and VMWare Raw Mapped == | ||
# 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> | ||
# Rescan the the SCSI block device | # Rescan 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 | ||
#: <tt>'''# pvresize /dev/<block_device>'''</tt> | #: <tt>'''# pvresize /dev/<block_device>'''</tt> | ||
== VMWare VMDK == | == VMWare VMDK == | ||
# Resize the vmdk | # Resize the vmdk | ||
# Rescan the the SCSI block device | # Rescan 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 | ||
#: <tt>'''# pvresize /dev/<block_device>'''</tt> | #: <tt>'''# pvresize /dev/<block_device>'''</tt> | ||
Revision as of 18:54, 1 March 2017
SAN Attached and VMWare Raw Mapped
- Resize the LUN on the storage subsystem
- Rescan the SCSI hosts
- # echo '- - -' > /sys/class/scsi_host/host#/scan
- Get the device paths of the physical volumes that will need to be resized
- # pvs
- Rescan the the SCSI block device
- # echo 1 > /sys/block/<block_device>/device/rescan
- Scan for physical volumes
- # pvscan
- Resize the physical volume
- # pvresize /dev/<block_device>
VMWare VMDK
- Resize the vmdk
- Rescan the the SCSI block device
- # echo 1 > /sys/block/<block_device>/device/rescan
- Scan for physical volumes
- # pvscan
- Resize the physical volume
- # pvresize /dev/<block_device>