On Oracle Linux 7.7, trying to run “xfs_growfs’, and get errors.
[root@racnode1 ~]# xfs_growfs /dev/ol/root xfs_growfs: /dev/ol/root is not a mounted XFS filesystem
It seems the syntax has been changed for this release. The mount point is required now instead of LV, like /dev/ol/root.
[root@racnode1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 4.8G 0 4.8G 0% /dev
tmpfs 2.0G 4.0K 2.0G 1% /dev/shm
tmpfs 4.8G 8.7M 4.8G 1% /run
tmpfs 4.8G 0 4.8G 0% /sys/fs/cgroup
/dev/mapper/ol-root 27G 17G 11G 62% /
/dev/sda1 497M 120M 377M 25% /boot
tmpfs 973M 0 973M 0% /run/user/0
tmpfs 973M 0 973M 0% /run/user/54321
[root@racnode1 ~]# xfs_info / meta-data=/dev/mapper/ol-root isize=256 agcount=4, agsize=1734656 blks = sectsz=512 attr=2, projid32bit=1 = crc=0 finobt=0 spinodes=0 rmapbt=0 = reflink=0 data = bsize=4096 blocks=6938624, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0 ftype=0 log =internal bsize=4096 blocks=3388, version=2 = sectsz=512 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0
[root@racnode1 ~]# xfs_growfs /
meta-data=/dev/mapper/ol-root isize=256 agcount=4, agsize=1734656 blks
= sectsz=512 attr=2, projid32bit=1
= crc=0 finobt=0 spinodes=0 rmapbt=0
= reflink=0
data = bsize=4096 blocks=6938624, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=0
log =internal bsize=4096 blocks=3388, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
data blocks changed from 6938624 to 15974400
We can confirm root file system (/) size has been increased from 27GB to 61GB.
[root@racnode1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 4.8G 0 4.8G 0% /dev
tmpfs 2.0G 4.0K 2.0G 1% /dev/shm
tmpfs 4.8G 8.7M 4.8G 1% /run
tmpfs 4.8G 0 4.8G 0% /sys/fs/cgroup
/dev/mapper/ol-root 61G 17G 45G 27% /
/dev/sda1 497M 120M 377M 25% /boot
tmpfs 973M 0 973M 0% /run/user/0
tmpfs 973M 0 973M 0% /run/user/54321