wierd lvm problem
Hi can anyone explain why df -kh and lvscan return different sizes for the logical volumes?
[root@alpha work]# lvscan
lvscan -- ACTIVE "/dev/vg/tmp" [156 MB]
lvscan -- ACTIVE "/dev/vg/var" [552 MB]
lvscan -- ACTIVE "/dev/vg/opt" [4.12 GB]
lvscan -- ACTIVE "/dev/vg/home" [1.46 GB]
lvscan -- ACTIVE "/dev/vg/usr" [2.50 GB]
lvscan -- 5 logical volumes with 8.77 GB total in 1 volume group
lvscan -- 5 active logical volumes
[root@aplha work]# df -kh
Filesystem Size Used Avail Use% Mounted on
/dev/hda8 1012M 171M 790M 18% /
/dev/hda5 99M 9.0M 85M 10% /boot
/dev/vg/home 1.5G 1.3G 100M 93% /home
/dev/vg/opt 4.0G 3.3G 550M 86% /opt
none 157M 0 157M 0% /dev/shm
/dev/vg/tmp 142M 4.6M 133M 4% /tmp
/dev/vg/usr 2.1G 2.0G 16M 100% /usr
/dev/vg/var 494M 60M 409M 13% /var
I created the volumes ran resize2fs, e2fsck, the works. As far as I know I did not miss anything. Followed the tdlp pages on lvm.
Can someone explain, help fix it? As you can see, for example lI have alloted 2.5 G for /usr but only 2.1 is mounted, so I have lost 400MB. Same with the others.
TIA
Vinod
|