Operating System - HP-UX
1753782 Members
7311 Online
108799 Solutions
New Discussion юеВ

Urgent: "/" root file system is 100 % used

 
SOLVED
Go to solution
praveen..
Super Advisor

Urgent: "/" root file system is 100 % used

i didn't check it before,

but when i gave this command, i got this error:

#mailx -s "subject" praveen@company.com
testing

nospcae on root

please suggest what file i can delete,
this is production server
26 REPLIES 26
praveen..
Super Advisor

Re: Urgent: "/" root file system is 100 % used

# bdf | more
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 524288 524288 0 100% /
rariasn
Honored Contributor
Solution

Re: Urgent: "/" root file system is 100 % used

Robert-Jan Goossens_1
Honored Contributor

Re: Urgent: "/" root file system is 100 % used

Hi,

# du -kx / | sort -rn | head -20
what is the largest directory?

# find . -xdev -type f -size +1000 -exec ll {} \;

Regards,
Robert-Jan
rariasn
Honored Contributor

Re: Urgent: "/" root file system is 100 % used

First,

cd /
ll core
mv core /xxxx/alternate_fs

ran
Arunvijai_4
Honored Contributor

Re: Urgent: "/" root file system is 100 % used

Hi Praveen,

remove unwanted files from /. Especially, core files if you have any in /.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Darrel Louis
Honored Contributor

Re: Urgent: "/" root file system is 100 % used

Praveen,

Use the following script to check where the big files are under /.

Use as follow:
# cd /
# run the dus.sh script.

And then remove or compress the big-files.

Darrel
praveen..
Super Advisor

Re: Urgent: "/" root file system is 100 % used

#cd /
#ll
drwx------ 6 root sys 96 Aug 18 2005 .VRTSob
-rw------- 1 root sys 100 Jun 9 2005 .Xauthority
-r--r--r-- 1 bin bin 1222 May 26 2005 .profile
-rw------- 1 root sys 1084 May 12 2005 .sh_history
drwx------ 2 root sys 96 Jun 1 2005 .ssh
drwxr-xr-x 6 root sys 8192 May 5 2005 .sw
-rw-rw-rw- 1 root root 1896 Jan 22 18:50 CTSTATUS.FCS
-rw-r--r-- 1 root sys 0 Apr 21 2005 MANPATH
drwxr-xr-x 2 root sys 96 Jun 1 2005 SD_CDROM
lrwxrwxrwx 1 root sys 5 May 26 2005 ahome -> /home
lrwxrwxrwx 1 root sys 5 May 26 2005 bhome -> /home
lr-xr-xr-t 1 root sys 8 Apr 21 2005 bin -> /usr/bin
drwxrwxrwx 2 root sys 96 May 5 2005 cdrom
drwxrwxr-x 13 root root 1024 Aug 11 2005 cims
dr-xr-xr-x 75 bin bin 8192 Mar 23 08:42 dev
lrwxrwxrwx 1 root sys 5 May 26 2005 dhome -> /home
dr-xr-xr-x 32 bin bin 8192 Jun 5 06:00 etc
dr-xr-xr-x 19 bin bin 8192 Dec 22 07:42 home
lr-xr-xr-t 1 root sys 8 Apr 21 2005 lib -> /usr/lib
drwxr-xr-x 2 root root 96 Sep 8 2004 lost+found
dr-xr-xr-x 2 root sys 96 Oct 8 2005 net
dr-xr-xr-x 71 bin bin 8192 Jan 10 14:22 opt
drwxr-xr-x 11 root sys 8192 Jun 9 03:11 root
dr-xr-xr-x 14 bin bin 8192 Jan 10 09:42 sbin
dr-xr-xr-x 8 bin bin 8192 Mar 30 22:31 stand
drwxrwxrwx 13 bin bin 8192 Jun 9 03:20 tmp
dr-xr-xr-x 28 bin bin 8192 Dec 5 2005 usr
dr-xr-xr-x 28 bin bin 8192 Oct 23 2005 var


other directories are my file systems on which my logical volumes are mounted,

should i empty the /tmp directory?
or suggest
Robert-Jan Goossens_1
Honored Contributor

Re: Urgent: "/" root file system is 100 % used

post the output of

# du -kx / | sort -rn | head -20
Peter Godron
Honored Contributor

Re: Urgent: "/" root file system is 100 % used

Praveen,
this may help:
find / -mountstop -size +1000000c -exec ll {} \;

translate to:
find all files greater than 1000000 bytes, which reside on the / mountpoint.