root partion full
I have redhat enterprise linux running on my sustem. Till yesterday my / was 36% full suddenly(as it was sunday many have not used the server) I am seeing it as 100% full.
I have /home /usr /var /boot mounted in other partions. # df -k (on today) Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda3 8063408 8063400 0 100% / /dev/sda1 99134 14933 79082 16% /boot /dev/sda7 100703656 24865008 70723156 27% /home none 1030540 0 1030540 0% /dev/shm /dev/sda5 7055272 2605900 4090976 39% /usr /dev/sda2 20158332 725820 18408512 4% /var my /var was also showing 100 % full. I deleting the mail log and it came back to 4%. Can anyone tell me so that can isee what is needed to deleted from / partion. #df -k (yesterday) ------------------ Disk Space -------------------- Filesystem Size Used Avail Use% Mounted on /dev/sda3 7.7G 2.6G 4.8G 36% / /dev/sda1 97M 15M 78M 16% /boot /dev/sda7 97G 24G 68G 26% /home none 1007M 0 1007M 0% /dev/shm /dev/sda5 6.8G 2.5G 4.0G 39% /usr /dev/sda2 20G 5.3G 13G 29% /var Thanking you Sanjib Gupta |
If you run du -sh /* you will see which top level directories are using up the space. If for example, it was /var, you would then type du -sh /var/* and so on until you find out where the files using up the space are located.
|
Thanks
Thanks my /tmp shows have all the space
# du -sh /* 5.2M /bin 11M /boot 428K /dev 22M /etc 24G /home 4.0K /initrd 139M /lib 16K /lost+found 4.0K /misc 12K /mnt 244K /opt du: `/proc/22856/fd/4': No such file or directory 5.0K /proc 62M /root 12M /sbin 7.5G /tmp 2.5G /usr 678M /var [root@bic httpd]# cd /tmp [root@bic tmp]# l s-l -bash: l: command not found [root@bic tmp]# ls -l total 24 drwxr-xr-x 3 root root 4096 Oct 19 2005 home drwx------ 2 root root 4096 Feb 11 07:21 logwatch.XXedsliM drwx------ 2 root root 8192 Jun 30 2006 orbit-root drwx------ 2 sanjib sanjib 4096 Oct 26 2005 orbit-sanjib -rw------- 1 apache apache 0 Feb 12 11:45 sess_bb063d0669617942c60c90f7e13746bc drwx------ 2 root root 4096 Jun 30 2006 ssh-QJyG4509 DO i remove whole of /tmp directory by rm -rF and then again make the directory. THe home directory in the /tmp directory has by itself many directories SAnjib Gupta |
I wouldn't just delete the /tmp directory unless you can shut down any system and user processes that are using it. It shouldn't take long to find where the space is being used with du -sh /tmp/*. Could one of your users be building an image to burn to DVD?
|
All times are GMT -5. The time now is 08:47 AM. |