cancel
Showing results for 
Search instead for 
Did you mean: 

Root FS getting full

SOLVED
Go to solution
Rkumar
Frequent Advisor

Root FS getting full

Dear Experts,

Please let me know how can I release space from / fs.

Thanks and regards,

Rahul
13 REPLIES
Johnson Punniyalingam
Honored Contributor

Re: Root FS getting full

>>Please let me know how can I release space from / fs<<

much information needed ?

# bdf /

# cd /
# du -sk *
(check for "directory" with large size)

or

#find / -xdev -type f -size +5000000c -exec ll {} \; | sort -nk 5
Problems are common to all, but attitude makes the difference
Rkumar
Frequent Advisor

Re: Root FS getting full

what may be the areas of root fs that can be free to release space.

Rkumar
Frequent Advisor

Re: Root FS getting full

can i trim rc.log file.
Johnson Punniyalingam
Honored Contributor

Re: Root FS getting full

>>>>what may be the areas of root fs that can be free to release space.<<<<<<<

Your Question , its not clear, no such things like release space under / root file system

by execution of the above command shown previous post will help shed light on your Question or problem,

>>Root FS getting full<< ?

there could be many reasons for above Questions

does any of your application "logs, data" pointed to write to / root file system ..?

due have any core file created ..?
Problems are common to all, but attitude makes the difference
Johnson Punniyalingam
Honored Contributor

Re: Root FS getting full

Yes, you can only OLD.rc.log

what is your OS version ?
Problems are common to all, but attitude makes the difference
Rkumar
Frequent Advisor

Re: Root FS getting full


Some posts for u r purpose
=======================
# find / -name *.log -xdev -exec ls -lrt {} \;
-rw-rw-rw- 1 root users 6288 Feb 10 03:05 /etc/cmcluster/pkgs/as
lrwxr-x--- 1 root sys 15 Aug 24 2009 /sqlnet.log -> /var/sq
croped2d:root[/]
# find / -type f -xdev -size +500000c ls -lrt {} \;
find: missing conjunction
croped2d:root[/]
# find / -type f -xdev -size +500000c -exec ls -lrt {} \;
-rw------- 1 root sys 562522 Mar 17 01:43 /etc/lvmtab
-rw------- 1 root sys 773120 Mar 17 04:02 /etc/lvmconf/vg01emc.conf
-rw------- 1 root sys 1092608 Mar 17 04:02 /etc/lvmconf/vg01_9i.conf
-r-xr-xr-x 1 bin bin 536576 Jul 3 2003 /etc/opt/resmon/lib/libresmon.1
-r-------- 1 root root 609879 Feb 27 20:49 /etc/powermt.custom
-r--r--r-- 1 root sys 708143 Mar 16 2007 /etc/ca/localeX/cp949.xlt
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/lvchange
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/lvcreate
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/lvdisplay
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/lvextend
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/lvlnboot
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/lvreduce
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/lvremove
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/lvrmboot
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/pvchange
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/pvcreate
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/pvdisplay
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/pvmove
-r-sr-xr-x 1 root sys 716800 Nov 6 1997 /sbin/sdstolvm
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/vgcfgbackup
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/vgcfgrestore
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/vgchange
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/vgcreate
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/vgdisplay
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/vgexport
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/vgextend
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/vgimport
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/vgreduce
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/vgremove
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/vgscan
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/pvck
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/lvmerge
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/lvsync
-r-sr-xr-x 1 root sys 716800 Nov 6 1997 /sbin/lvchange.run
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/lvsplit
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/vgsync
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/nomwcsyncd
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/pvremove
-r-sr-xr-x 31 root sys 856064 Aug 25 2005 /sbin/vgchgid
croped2d:root[/]
============================================
## bdf|grep -i vg00
/dev/vg00/lvol3 86016 74191 11118 87% /
/dev/vg00/lvol1 67733 36070 24889 59% /stand
/dev/vg00/lvol8 819200 589458 219819 73% /var
/dev/vg00/lvol7 917504 825134 86669 90% /usr
/dev/vg00/lvol4 204800 68146 128292 35% /tmp
/dev/vg00/lvol6 2097152 716074 1295378 36% /opt
/dev/vg00/lvol5 450560 127771 302961 30% /opt/emc
croped2d:root[/]
============================================
# uname -a
HP-UX croped2d B.11.00 U 9000/800 59704516 unlimited-user license
============================================
croped2d:root[/etc]
# ls -lrt *.log
-rw-r--r-- 1 root root 241 Feb 27 20:37 auto_parms.log
-rw-r--r-- 1 root root 149195 Feb 27 20:55 rc.log
croped2d:root[/etc]
===============================
Patrick Wallek
Honored Contributor
Solution

Re: Root FS getting full

One of the first things I look for in the '/' file system is a "real" file in the /dev directory.

Do this:

# cd /dev
# find . -type f | xargs ls -l

If this returns anything then examine it closely. There should be nothing other than device files in the /dev directory structure.
Johnson Punniyalingam
Honored Contributor

Re: Root FS getting full

pls start checking As advices, >>Patrick Wallek <<<

# cd /
# du -sk *
Problems are common to all, but attitude makes the difference
Johnson Punniyalingam
Honored Contributor

Re: Root FS getting full

>>can i trim rc.log file.<<

follow below using "SAM"

SAM ->Routine Tasks->System Log Files->select logs->Actions->Trim->To the Recommended Size
Problems are common to all, but attitude makes the difference
Rkumar
Frequent Advisor

Re: Root FS getting full

Dear expets,

Thanks to all of you to give u r suggestions on this. expecting same response in future.
rahul
bullz
Super Advisor

Re: Root FS getting full

Best way.

cd /
du -akx | sort -nr | more

will list the list of huge files on top.
Michael Steele_2
Honored Contributor

Re: Root FS getting full

Hi

/etc/opt/resmon/logs/*

These are the only log files that I know of under / root, and they are apart of the EMS diagnostics. You should be able to trim the tops and remove the OLD logs.

du -sk / | sort -rn | more

Du will list biggest files

quot /

Quot will subtotal files by owners

cd /
touch filename
find . -newer filename

-newer will find runaway processes

find / -size +10000000c -xdev -exec ll {} \;

-size will find files > +10000000c
Support Fatherhood - Stop Family Law
Rkumar
Frequent Advisor

Re: Root FS getting full

Thanks to All,