Extend LVM partition with XFS
Posted by valqk on
1. Check free space:
2. Extend vg (-r is for auto extend fs):
3.1. Extend xfs
3.2. Extend ext4
The “-D size” option extend the file system to the specified size (expressed in file system blocks). Without the -D size option, xfs_growfs will extend the file system to the maximum size supported by the device.
#> vgs vgname
2. Extend vg (-r is for auto extend fs):
#> lvextend -r -L +3G /dev/vgname/xfs_part
3.1. Extend xfs
#> xfs_growfs-D
3.2. Extend ext4
#> resize2fs
The “-D size” option extend the file system to the specified size (expressed in file system blocks). Without the -D size option, xfs_growfs will extend the file system to the maximum size supported by the device.