LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   /usr partition got fill (https://www.linuxquestions.org/questions/linux-newbie-8/usr-partition-got-fill-4175536100/)

pratik.kava1189 03-08-2015 10:15 AM

/usr partition got fill
 
Hi Forks,

I have centOS installed on VM & cpanel is installed,
Now i can see that /usr partition got full.

i.e. Output of df -h
root@linux [/]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 18G 661M 16G 4% /
/dev/hda8 59G 4.3G 52G 8% /home
/dev/hda7 996M 431M 514M 46% /tmp
/dev/hda5 7.8G 7.2G 220M 98% /usr <-- FULL
/dev/hda3 7.8G 1.5G 5.9G 21% /var
/dev/hda1 190M 21M 160M 12% /boot
tmpfs 1005M 0 1005M 0% /dev/shm

But if i check under /usr it's shows only 4.9G,

root@linux [/]# du -sch /usr/
4.8G /usr/
4.8G total

wheres other size utilized?, Please let me know if any other detail is require.

Thanks

jpollard 03-09-2015 11:58 AM

du doesn't include metadata used to store pointers to data blocks. And depending on the filesystem type, that can be larger/smaller (ext4 is relatively small unless it is converted from ext2/3, btrfs even smaller).

There is also the possibility that the space is being constrained by the space reserved for root (5). This amount can be reduced, as no user can write to /usr (unless it happens to include /usr/tmp which is usually a symbolic link to /tmp). For /usr, this reserve can be set to 0.

For most systems / and /usr are the same filesystem, and are 10G to 20G depending on the intended usage. The more packages installed (such as for a workstation) the more space needed. In the combined / and /usr, usually /tmp is mounted as a tmpfs filesystem (which resides in memory and gets flushed on every boot).


All times are GMT -5. The time now is 03:50 PM.