LVM Resize a Physical Volume: Difference between revisions
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 11: | Line 11: | ||
# Resize the physical volume | # Resize the physical volume | ||
#: <tt>'''# pvresize /dev/<block_device>'''</tt> | #: <tt>'''# pvresize /dev/<block_device>'''</tt> | ||
# Verify the resize was successful | |||
#: <tt>'''# pvs'''</tt> | |||
== VMWare VMDK == | == VMWare VMDK == | ||
Line 23: | Line 25: | ||
# Resize the physical volume | # Resize the physical volume | ||
#: <tt>'''# pvresize /dev/<block_device>'''</tt> | #: <tt>'''# pvresize /dev/<block_device>'''</tt> | ||
# Verify the resize was successful | |||
#: <tt>'''# pvs'''</tt> | |||
== Further Reading == | == Further Reading == | ||
[[Category:Linux]] | [[Category:Linux]] |
Latest revision as of 18:19, 15 November 2021
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>
- Verify the resize was successful
- # pvs
VMWare VMDK
- Resize the vmdk
- Rescan the the SCSI block device
- # echo 1 > /sys/block/<block_device>/device/rescan
- Update partition size
- Load the partition into the kernel
- # partprobe /dev/<device>
- Scan for physical volumes
- # pvscan
- Resize the physical volume
- # pvresize /dev/<block_device>
- Verify the resize was successful
- # pvs