LVM Extend Logical Volume and Filesystem
Jump to navigation
Jump to search
- 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