PDA

View Full Version : xfs_growfs -d fails



mikenash
01-Sep-2015, 15:27
I am running SLES12 and I attempting to increase the size of the / directory. The directory is a LVM xfs volume. However, when I execute xfs_growfs -d / the LVM volume is unchanged.


PV /dev/dasda1 VG system lvm2 [20.63 GiB / 20.63 GiB free]
PV /dev/dasdb1 VG system lvm2 [41.27 GiB / 41.27 GiB free]
Total: 3 [68.58 GiB] / in use: 3 [68.58 GiB] / in no VG: 0 [0 ]
Wiping internal VG cache]



xfs_growfs -d /
meta-data=/dev/mapper/system-root isize=512 agcount=4, agsize=306432 blks
= sectsz=4096 attr=2, projid32bit=1
= crc=1 finobt=0
data = bsize=4096 blocks=1225728, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal bsize=4096 blocks=2560, version=2
= sectsz=4096 sunit=1 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
data size unchanged, skipping

jmozdzen
01-Sep-2015, 16:00
Hi mikenash,

you don't show any information about the LV the root fs is on - was it's size increased (i.e. via "lvresize -L+someM /dev/system/root") before trying to extend the file system on that LV?

Regards,
Jens

mikenash
01-Sep-2015, 18:11
Hello Jens, thank you for the reply. I found out the solution was to lvextend the container first and then do the xfs_growfs.