Why does DF lie about size of disk?

Why does DF lie about size of disk?

It is root. This is a safety-net to ensure that non-root users cannot make the system entirely unusable by filling the disk, and keeping a few percent of disk space unused also helps against fragmentation. Now for the difference between the size reported by df and the size of the partition.

How to identify logical volume in LVM command?

Identify the Logical Volume The lvs or lvdisplay command shows the Logical Volume associated with a Volume Group. Use the lvs command, and the Logical Volume you’re trying to extend is the root, which belongs to the centos VG. As you can see above, you’ve already extended the VG.

Why does LVM take up so much disk space?

To whom the reserved blocks are reserved is also written in the tune2fs output. It is root. This is a safety-net to ensure that non-root users cannot make the system entirely unusable by filling the disk, and keeping a few percent of disk space unused also helps against fragmentation.

How to extend the size of a logical volume?

Extend the LV with the lvextend command. The lvextend command allows you to extend the size of the Logical Volume from the Volume Group. Figure 8: Use the lvextend command to extend the LV. [root@redhat-sysadmin ~]# lvextend -l +100%FREE /dev/centos/root.

What causes Df-h and Du to mismatch?

In my case the df -h and du -sh mismatched by about 50% of the hard disk size. This was caused by apache (httpd) keeping large log files in memory which had been deleted from disk. This was tracked down by running lsof | grep “/var” | grep deleted where /var was the partition I needed to clean up.

How to calculate the size of a DF round?

Multiplying that with the Block size (also from the output), we get the difference between the df Used+Avail and Size: Close enough, especially considering that df rounds (using df without -h and repeating the calculation leaves only 16 MiB of the difference between Used+Avail and Size unexplained).

How many MiB does DF lie in tune2fs?

Close enough, especially considering that df rounds (using df without -h and repeating the calculation leaves only 16 MiB of the difference between Used+Avail and Size unexplained). To whom the reserved blocks are reserved is also written in the tune2fs output. It is root.