LVM Extend Logical Volume and Filesystem: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
== Linux == | |||
==== Extend a Logical Volume and Filesystem ==== | |||
# Gather Filesystem information for the mount path | # Gather Filesystem information for the mount path | ||
#: <tt>'''# df -h <mount_path>'''</tt> | #: <tt>'''# df -h <mount_path>'''</tt> |
Revision as of 02:39, 28 January 2022
Linux
Extend a Logical Volume and Filesystem
- Gather Filesystem information for the mount path
- # df -h <mount_path>
- Gather logical volume "LV", volume group "VG" information, and physical volume "Device" information
- # lvs <filesystem_path> -o +devices,stripes
- Expand underlying disk
- Follow vendors procedure to expand underlying disk
- List SCSI device sizes, determine if added space was added to the device
- # lsscsi -s
- If space was not automatically added, rescan the SCSI Bus
- # echo '- - - -' > /sys/class/scsi_host/host#/scan
- Note: host# is from the first number in lsscsi -s [2:0:0:0], this would be host2
- Resize the expanded physical volume
- # pvresize <device>
- Expand the logical volume and file system
- Using all available space
- # lvextend -l +100%FREE -r <logical_volume_path>
- Not using all available space
- # lvextend -L +<size>[M|G|T] -r <logical_volume_path>
- Using all available space