We have a linux server with LVM. Looking the space availability with df -h the difference between filesystem size and used space is not zero but the available space is zero.
This is the output of the df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_oraclelinux6a-lv_root 91G 86G 0 100% /
tmpfs 7.8G 296K 7.8G 1% /dev/shm
/dev/sda1 477M 162M 286M 37% /boot
Then we resised the filesystem:
[root@server ~]# lvresize --resizefs --size +1GB /dev/vg_oraclelinux6a/lv_root
Size of logical volume vg_oraclelinux6a/lv_root changed from 105.65 GiB (27046 extents) to 106.65 GiB (27302 extents).
Logical volume lv_root successfully resized.
resize2fs 1.43-WIP (20-Jun-2013)
Filesystem at /dev/mapper/vg_oraclelinux6a-lv_root is mounted on /; on-line resizing required
old_desc_blocks = 6, new_desc_blocks = 7
The filesystem on /dev/mapper/vg_oraclelinux6a-lv_root is now 27957248 blocks long.
Finally, the output of df -h is:
[root@server ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_oraclelinux6a-lv_root 105G 86G 15G 86% /
tmpfs 7.8G 296K 7.8G 1% /dev/shm
/dev/sda1 477M 162M 286M 37% /boot
Summing up, adding 1GB to a filesystem of 91GB we have obtained a size of 105GB and, another strange thing, the available space should be 19GB and not 15GB.
Anyone have had the same problem? Thank you.