1830936 Members
1935 Online
110017 Solutions
New Discussion

Re: file system full

 
SOLVED
Go to solution
Mazen Al-Jarrah
Advisor

file system full

hi everyone,

my root file system / is getting full what files should I delete to reduce it...?

thanks
12 REPLIES 12
Steven E. Protter
Exalted Contributor

Re: file system full

cd /
du -k | sort -rn | more

This will list files largest to smallest.

You've got a big one most probably and you need to delete it.

In practice no files should be stored on / only mountpoints to other filesystems.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
LiPEnS
Valued Contributor

Re: file system full

Hi
Do this (delete core file):
#find / -name "core" -exec rm {} \;
and (listing of the largest directories first):
#du / | sort -r -n | grep ^....[0-9]
or (list any files in / (or files in directories below /) that have been accessed in less than 4 days)
#find / -atime -4 -exec ll {} \;

Regards
James R. Ferguson
Acclaimed Contributor
Solution

Re: file system full

Hi:

Start by looking for non-special (regular) files in the /dev directory. A common mistake is to mistype 'om' instead of '0m' leaving a backup image as a regular file named '/dev/rmt/om'.

Regards!

...JRF...
Mazen Al-Jarrah
Advisor

Re: file system full

thanks for your prompt input,
but after sorting out the list, it is showing me that the biggest directory is the current one which is root /

what is next...?
LiPEnS
Valued Contributor

Re: file system full

Post the results

#cd /
#du -k / | sort -r -n | grep ^....[0-9]|head -n 50
LiPEnS
Valued Contributor

Re: file system full

and
#bdf
Mazen Al-Jarrah
Advisor

Re: file system full

wsnmslds# du -k / | sort -r -n | grep ^....[0-9]|head -n 50
4590765 /
1837482 /opt
1297460 /usr
841357 /opt/oracle
821834 /patch
686656 /usr/dacscan
672917 /opt/iona
543176 /opt/oracle/bin
479148 /opt/iona/shlib
395324 /usr/dacscan/bin
390869 /var
355494 /var/adm
305449 /patch/save
300100 /var/adm/sw
274071 /var/adm/sw/save
218115 /usr/lib
200059 /usr/dacscan/ui
173774 /tmp
151975 /usr/dacscan/ui/jui
134266 /var/adm/sw/save/PHLU_00013
131809 /opt/iona/shlib/pa20_64
102996 /usr/sbin
98420 /opt/ignite
91791 /patch/save/PHLU_00001
86454 /tmp/auto_disc
78144 /usr/dacscan/ui/jui/jnm
77817 /patch/save/PHLU_00031
70309 /opt/oracle/lib
68891 /usr/dacscan/ui/jui/jnm/itm
LiPEnS
Valued Contributor

Re: file system full

You can do this

#cleanup -c 1

will delete patches that have been superseded at least once (directory /var/adm/sw, /var file system)

Post the bdf result
Mazen Al-Jarrah
Advisor

Re: file system full

JRF,
You were absolutely right; I found a big file under /dev/rmt

problem solved

Thanks a lot for everyone for their help

especially LiPEns

Mazen
Mazen Al-Jarrah
Advisor

Re: file system full

I found a big file under /dev/rmt
created with a typing mistake that was causing the file system to be full.
Sยภเl Kย๓คг
Respected Contributor

Re: file system full

Hi,

I would recommend you to move put the /var out of the root vg and mount it in another dedicated VG. Mostly people follow this. What is the size of the root VG. If it has sufficient free space, u can increase the size of /var filesystem.

Post o/p of these commands

#vgdisplay vg00
#bdf
#ioscan -fnC disk
#vgdisplay

You can even have automised script which takes care of log purging in a regular interval.

Regards,
Sunil

Regards,
Sunil
Your imagination is the preview of your life's coming attractions
Arunvijai_4
Honored Contributor

Re: file system full

Check for any core files in the root directory. # file `find / -name "core"` and delete those you dont need. Also you can uninstall unwanted softwares from your server using,

# swlist <>
# swremove

-Arun

"A ship in the harbor is safe, but that is not what ships are built for"