1834829 Members
2024 Online
110070 Solutions
New Discussion

df and LVM

 
L. Borg
Occasional Contributor

df and LVM

Anyone know of any bug in df that shows an incorrect output when a partion is
expanded using LVM?
I expanded my /opt to 10 gigs but df shows it at

99% allocation.
/opt (/dev/vg00/lvol6) : 532436 total allocated Kb
855 free allocated Kb
531581 used allocated Kb
99 % allocation used.
3 REPLIES 3
Randy Mather
Frequent Advisor

Re: df and LVM

Did you do a fsextend after the lvextend ?

Did you use SAM ... I would not use it for any disk management.

randy_mather@ham.honda.com
Evan Day_1
Frequent Advisor

Re: df and LVM

Did you unmount the filesystem and do an extendfs (assuming you're using HFS)
on the raw logical volume device (/dev/vgXX/rXXXXX)? I.E.:

# umount /opt
# extendfs /dev/vg00/rlvol6
# mount /opt

If you have VxFS (also called JFS) and the Online JFS product, you should be
able to do this without unmounting the filesystem. Check documentation.
Anthony Goonetilleke_1
Regular Advisor

Re: df and LVM

I think this comes with the understanding of the LVM concepts. You can extend
a logical volume but still not extend the filesystem.

For example these are the four layers:
Physical Disk
Volume Group
Logical volume
Filesystem

You can either use extendfs or fsadm if you have online JFS depending on if its
an HFS or JFS filesystem.

regards,
Anthony