[linux-lvm] xfs_growfs after lvextend don't increase mounted size.

Per Mellander per.m at mmtab.se
Wed Nov 1 22:42:11 UTC 2006


Hi!

I've got a 6.5TB xfs filesystem on a LVM2 volume. I wanted to increase
the size of the fs so I added another ~10TB to the volume. Every step
taken was successfull, (ie no errors) but the filesystem size remained
unchanged even after the xfs_growfs.

What I did was the following:

I extended the lvm using pvcreate, vgextend and finally lvextend. pvscan
gives:

   PV /dev/sda1   VG vg01   lvm2 [1.59 TB / 0    free]
   PV /dev/sdb1   VG vg01   lvm2 [1.59 TB / 0    free]
   PV /dev/sdc1   VG vg01   lvm2 [1.59 TB / 0    free]
   PV /dev/sdd1   VG vg01   lvm2 [1.59 TB / 0    free]
   PV /dev/sde1   VG vg01   lvm2 [2.00 TB / 0    free]
   PV /dev/sdf1   VG vg01   lvm2 [2.00 TB / 0    free]
   PV /dev/sdg1   VG vg01   lvm2 [2.00 TB / 0    free]
   PV /dev/sdh1   VG vg01   lvm2 [2.00 TB / 0    free]
   PV /dev/sdi1   VG vg01   lvm2 [1.55 TB / 0    free]
   Total: 9 [15.91 TB] / in use: 9 [15.91 TB] / in no VG: 0 [0   ]

and lvdisplay:

   --- Logical volume ---
   LV Name                /dev/vg01/lv01
   VG Name                vg01
   LV UUID                rDSEQ3-DdhV-oLci-nNYT-dMdX-cppA-7v1r3e
   LV Write Access        read/write
   LV Status              available
   # open                 1
   LV Size                15.91 TB
   Current LE             4169996
   Segments               9
   Allocation             inherit
   Read ahead sectors     0
   Block device           253:0

After xfs_growfs /vol1 ( mounted fs ) df -h gives:

/dev/mapper/vg01-lv01
                       6.4T  6.4T   36G 100% /vol1

The fs remains in previous size!!

# cat /sys/block/dm-0/size
34160607232

which is equal to 15.91 TB

Have I missed something when I extended the volume / growed the xfs fs?

The system running xfs is a Fedora Core 4, 2.6.15-1.1831_FC4smp,
lvm2-2.01.08-2.1, xfsprogs-2.6.13-4

Per

_________________________________
This email has been ClamScanned !
          www.clamav.net




More information about the linux-lvm mailing list