5

df, top and lvdisplay seem inconsistent after running lvresize

view full story
linux-howto

http://forums.fedoraforum.org – I can't understand why the readings from df, top and lvdisplay seem inconsistent after running lvresize. I ran lvresize to decrease my swap space by 3GB and increase my free space available by 3GB. The value in the 'Size' column for 'df' didn't change at all after running lvresize, which I found puzzling - even after a reboot. The swap total value from top changed from 4GB to zero (instead of 1GB as expected). However the size values listed in lvdisplay are what I expected. When I run lvdisplay, I get the following LV Size's, which are the values I expected: 17.51 GB for /dev/vg_jonfedora/lv_root 960.00 MB for /dev/vg_jonfedora/lv_swap When I run 'df', I get 15G in the 'Size' column for /dev/mapper/vg_jonfedora-lv_root, instead of 17.51GB: root@jon-fedora ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_jonfedora-lv_root 15G 2.2G 12G 16% / tmpfs 1008M 468K 1007M 1% /dev/shm /dev/sda1 194M 22M 163M 12% /boot When I run top, the swap total value is 0, instead of 960MB. TIA, Jonathan Edit: I forgot to mention that I'm running Fedora 12. (HowTos)