root mountpoint size getting bigger
Hi,
OS Version : Redhat 5.6 64 bit My Linux machine's root mount point size is getting bigger. I don't know what is the root cause? Where I can I check which files are occupying more space? [root@ebsdb ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 20G 19G 130M 100% / /dev/sdc1 97G 38G 55G 42% /u01 /dev/sda1 99M 15M 80M 16% /boot tmpfs 7.9G 194M 7.7G 3% /dev/shm /dev/sde1 158G 148G 2.3G 99% /u02 /dev/sdi1 247G 155G 79G 67% /u03 [root@ebsdb ~]# See I allocated root mount point for /dev/sda2 20GB but here only 130MB space reamining there. Why root mount point need 20GB , please advise me what should i do? This is Oracle database server |
You've got an oracle db server with a partition layout as simple as that?? That's really not good. /usr and /home and /var really should have been separate partitions to prevent you getting in a situation as dangerous as this.
Anyway, to find where the space has gone, *MY* preference is usually to do something like "du -xh --max-depth=1 /" to get the size of only the first level of directories, and gradually dig deeper and deeper. easier to put the size of all the same level of directory into context I find. |
See the output
[root@ebsdb ~]# du -xh --max-depth=1 / 83M /root 96K /tmp 12K /mnt 4.0K /u03 2.0K /boot 0 /sys 672K /home 46M /sbin 16K /lost+found 8.0K /selinux 0 /misc 4.0K /u02 111M /etc 8.0K /media 0 /dev 27M /lib64 4.0K /u01 159M /lib 0 /proc 0 /net 100M /var 18M /opt 8.0K /srv 100K /tftpboot 2.8G /usr 4.0K /install 7.8M /bin 3.4G / Total 3.4 GB , but my root mount point / total size 20GB but now it's showing 130m free space, So Where is the remaining space for this hard disk ? How did linux occupied this space ? |
Sounds like you've deleted a file that's still in use. If so, you can restart the service or whatever has that file open and the space should come back. badly configured logfile rotation is often a culprit for this.
run "lsof | grep deleted" and look for large entries there. |
Quote:
|
Quote:
|
if you restarted the entire machine, the space should either have been freed, or clearly used up in the du output.
|
Quote:
|
All times are GMT -5. The time now is 05:02 PM. |