/ files in solaries
/ (96%) has reached the defined disk space PANIC level (95%)
please help
how to clear unwanted files in / ????
where is it??
Linux
/ (96%) has reached the defined disk space PANIC level (95%)
please help
how to clear unwanted files in / ????
where is it??
by nico baggus
well,
/ is the root directory. and is located in the
root filesystem.
To give a better answer could you provide a "df"
(list of free spaces on the disks?)
and do:
cd /
du -s *
Which will show you which directories are
biggest.
All directories mentioned in df should not be
considered cadidates for cleaning. (unless full
ofcourse)
Kind Regards,
Nico
(Don't wait too long with action if the
filesystem is 100% full the system might seem to
hang being unable to complete tasks)
by nico baggus
OK, now there is the / filesystem almost full.
You can now do a
du -s /
This will tell you the biggest directories,
the directories /tmp, /opt2 /opt, /usr /var and
/cache[1-5] can be ignored from that listing.
They are not nearly full.
This du (disk usage) -s will give a summary per
file/directory in the root directory.
Now look for the biggest... file and look if it
can be dropped.
If it is a directory enter that one (cd XXX) and
do a (du -s .) there etc. etc.
Hopefully you will see some files that can be
dropped. good candicates might be:
/root (is used for the root account)
/home (these or the next one)
/export/home (like the previous might hold user
directories .. )
Cheers,
Nico
by nico baggus
sorry my fault the default is du -s .,
it should have been du -s * (after cd /)
Then you should get a list.
Regards,
Nico Baggus
by jaboy78
Poster rated this answer.
by jaboy78
/dev/dsk/c0t0d0s7 6616333 14556 6535614 1% /opt2
swap 3690248 24 3690224 1% /tmp
/dev/dsk/c0t0d0s6 6050182 235897 5753784 4% /opt
/dev/dsk/c0t0d0s4 867935 311108 496072 39% /var
/dev/dsk/c0t8d0s7 17413250 10548713 6864537 61% /cache1
/dev/dsk/c0t9d0s7 17413250 10592770 6820480 61% /cache2
/dev/dsk/c0t10d0s7 17413250 10578917 6834333 61% /cache3
/dev/dsk/c0t11d0s7 17413250 10590819 6822431 61% /cache4
/dev/dsk/c0t12d0s7 17413250 10638671 6774579 62% /cache5
/dev/dsk/c0t0d0s5 867935 521556 285624 65% /usr
/dev/dsk/c0t0d0s0 867935 772763 34417 96% /
Sort the files in order of largest to smallest in / ie
cd /
ls -l | sort -nr +4 -5 | pg
some files to check are *.log
files in /tmp directories
files /var
you can do this in any root directory in conjuction with using the du command.
Also use ls -lt | more to see which files are being modified recently ( they may be continually growing ).
You may need to put in cleanup scripts in your crontab to regularly reduce file sizes.
by jaboy78
Poster rated this answer.
by jaboy78
after cd /
du -s
i dun see anything
please help..
Where should be this files located for the root file system..
Actually after the /cache5 is down...the / disk increase....
Then i change a new harddisk for cache5/
now the disk for / remains on 96%(panic)
But previously is around 86%..
Please help..where is tht file which can be deleted is located??
by nico baggus
You have to recursively search through the
directories using 'du -s *'
(In case an comment doesn't reach you..., this
answer might)
by jaboy78
Poster rated this answer.
by jaboy78
This discussion is closed to new replies.
Sort by Trending