solaris 8 / disk space almost full


 
Thread Tools Search this Thread
Operating Systems Solaris solaris 8 / disk space almost full
# 1  
Old 03-20-2009
solaris 8 / disk space almost full

Hi All,

My Solaris 8 firewall server is getting full on the / filesystem. I don't know which one should I delete. I think there's no more to delete on the file like logs or temp file.

Does someone knows about deleting a safe file (or folder) on FS like /usr, /opt, /platform, /kernel, /sbin?

Thank you for any comment you may add.
# 2  
Old 03-20-2009
Is there something I could delete/zip here?

8864 4600 -rwxr-xr-x 1 root bin 4694260 Aug 8 2001 /usr/j2se/jre/lib/sparc/client/libjvm.so
33541 9032 -rw-r--r-- 1 bin bin 9236099 May 24 2001 /usr/java1.1/lib/classes.zip
33716 4616 -rw-r--r-- 1 root bin 4711081 Aug 8 2001 /usr/j2se/lib/tools.jar
41790 6472 -rwxr-xr-x 1 root bin 6613194 Dec 15 1999 /usr/openwin/lib/sparcv9/llib-lX11.ln
66629 6896 -rwxr-xr-x 1 root bin 7051704 Aug 8 2001 /usr/j2se/jre/lib/sparc/server/libjvm.so
99218 6912 -rwxr-xr-x 1 root other 7063756 Jan 31 2002 /usr/local/sbin/sshd-check-conf
99826 8872 -rwxr-xr-x 1 root other 9070180 Jan 31 2002 /usr/local/sbin/sshd2
182510 6256 -rwxr-xr-x 1 root bin 6396454 Dec 15 1999 /usr/openwin/lib/llib-lX11.ln
207406 4944 -rw-r--r-- 1 root bin 5053848 Aug 8 2001 /usr/j2se/src.jar
223149 8520 -rw-r--r-- 1 root sys 8714999 Jun 7 2006 /usr/sadm/lib/wbem/store
239523 10744 -rw-r--r-- 1 root bin 10992943 Sep 10 2001 /usr/java1.2/jre/lib/rt.jar
248138 13496 -rw-r--r-- 1 root bin 13810951 Aug 8 2001 /usr/j2se/jre/lib/rt.jar
264750 13568 -rw-rw-r-- 1 root other 13883618 Dec 8 2004 /usr/j2re1_3_1_15/lib/rt.jar
289394 7216 -rwxr-xr-x 1 root other 7374364 Jan 31 2002 /usr/local/bin/ssh-add2
289396 6912 -rwxr-xr-x 1 root other 7065144 Jan 31 2002 /usr/local/bin/ssh-agent2
289398 7360 -rwxr-xr-x 1 root other 7527184 Jan 31 2002 /usr/local/bin/ssh-certenroll2
289401 7032 -rwxr-xr-x 1 root other 7191048 Jan 31 2002 /usr/local/bin/ssh-keygen2
289405 6768 -rws--x--x 1 root other 6916912 Jan 31 2002 /usr/local/bin/ssh-signer2
289406 9488 -rwxr-xr-x 1 root other 9703540 Jan 31 2002 /usr/local/bin/ssh2
289463 7248 -rwxrwxr-x 1 root other 7413052 Dec 8 2004 /usr/j2re1_3_1_15/lib/sparc/server/libjvm.so
297354 4760 -rwxr-xr-x 1 root bin 4864308 Sep 10 2001 /usr/java1.2/jre/lib/sparc/libjvm.so
297786 4944 -rwxrwxr-x 1 root other 5046900 Dec 8 2004 /usr/j2re1_3_1_15/lib/sparc/client/libjvm.so

Last edited by itik; 03-20-2009 at 04:58 PM..
# 3  
Old 03-20-2009
No spare filesystem with room elsewhere (other disks...)?
# 4  
Old 03-20-2009
No room, no additional budget for it.
# 5  
Old 03-20-2009
The j2se, j2re and java file/directories are all for various versions of Java.
Rather than deleting particular files it would be better to remove whole packages, so for instance your list mentions Java, if you are not using Java then the Java packages could be removed. To find out which Java packages you have run:

# pkginfo | grep -i java

Once you have the package names you can see what files those packages install by running:

# grep <javapkgname> /var/sadm/install/contents | grep " f "

I would suggest that you chmod the Java package's files to 100 (or zip up) first and leave it a while make sure nothing breaks!

Another possibility is that if you have Solstice Disksuite installed and only use it in command line then remove the graphical interface package and if you are not Japanese then remove the Japanese localisation, they being:

1 SUNWmdg Solstice DiskSuite Tool
(sparc) 4.2.1,REV=1999.11.04.18.29
2 SUNWmdja Solstice DiskSuite Japanese localization
(sparc) 4.2.1,REV=1999.12.09.15.37

These would be removed by running:
# pkgrm SUNWmdg
# pkgrm SUNWmdja

Core files are obviously worth removing:
# find / -type f -mount -name core -exec rm {} \;

The files you list mentioning ssh are for SSHing from this machine to others and the files called sshd are for SSH'ing to this machine so if you not use SSH these can be purged, from a security point of view you should leave ssh and remove telnet, rlogin, rsh, etc instead! Solaris 8 does not come with Sun supplied SSH so they may not be in a package.

The file /usr/sadm/lib/wbem/store mentioned is part of the Web-Based Enterprise Management software, if you don't use then again remove the packages not particular files.

/usr/openwin/lib/llib-lX11.ln is part of the X11R6.4 Lint Libraries.

Tony Fuller

Last edited by TonyFullerMalv; 03-20-2009 at 05:34 PM..
# 6  
Old 03-21-2009
Find the top ten "heaviest" directory or file under /

#cd /
#du -sk * |sort -rn |head

Check into the very first file or directory and remove whichever is not required. Backup 1st, in case..

remove any cores under /var/crash/<hostname>
Check /var/adm/ directories.. other than the messages file, you may want to remove the older logs like messages.0 , messages.1 and so on..
remove not required files under /tmp and /var/tmp
# 7  
Old 03-21-2009
Good advice although /var is likely to be a separate volume and /tmp certainly will not be part of the root volume.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Disk Space full

I was tryin to copy a large file under /tmp location. I guess the disk space got full and i got fork error. Then I tried removing some files but the shell did not let me do anything bash> rm apache22.tar bash: fork: Not enough space bash> pwd /tmp bash> vmstat 1 bash: fork: Not... (3 Replies)
Discussion started by: mohtashims
3 Replies

2. Solaris

disk space solaris 10

I got 4 hd each of 75GB. The os sun solaris 10 is installed on disk 0 and is almost full. see at df -k shows the following $ df -k Dateisystem kByte belegt verfügbar Kapazität Eingehängt auf /dev/dsk/c1t0d0s0 6856805 6388140 400097 95% / /devices 0 ... (3 Replies)
Discussion started by: j2me
3 Replies

3. UNIX for Dummies Questions & Answers

how to install new packages when disk space is full

during installation i created four partitions mainly / 5GB /home 1GB /boot 100MB swap 2GB now since i didnt make the /usr partition all of the packages were being installed in the / partition ..now all the space in the / partition is filled ...i ran du -h... (3 Replies)
Discussion started by: tarunicon
3 Replies

4. Shell Programming and Scripting

Disk Space availability on solaris machine

Hi, I have a question regarding finding free space on the disk of a solaris machine. Many mount points are available in my machine. Right now i am using df -b option to get the free disk space available. I have an assignment to check free space on the disk. I pass the directory as a... (3 Replies)
Discussion started by: raghu.amilineni
3 Replies

5. Linux

Unable to remove file using rm: Disk space is full

Hi all, My disk space is 100% full. df -k <dir> -> 100% One of my debug files consume huge amount of space and i want to remove the same to start off fresh debugs. However i'm unable to remove the file giving out the following error message: rm -f debug.out22621 rm: cannot remove... (8 Replies)
Discussion started by: Pankajakshan
8 Replies

6. Solaris

Please help Disk Suite on Solaris 8 FS full!!!

I am new to Solaris so please bear with me. I have spent enough time searching to get somewhat of a grip here but I am not sure what to do next. I am trying to grow a file system on a Solaris 8 server. B_root@server:>df -k Filesystem kbytes used avail capacity Mounted on... (9 Replies)
Discussion started by: NewSolarisAdmin
9 Replies

7. Solaris

command to find free disk space on solaris

In linux df is the command to find free space what is the equivalent command in the Solaris (2 Replies)
Discussion started by: harishankar
2 Replies

8. UNIX for Advanced & Expert Users

How to re-allocate disk space on solaris 10

I am not very good at UNIX and seek help here. I tried to install Oracle 10g on a 64 bit Sun sparc machine with solaris 10 as OS. After I installed solaris 10, the current file system on the machine looks like this: /dev/dsk/c0t0d0s0 5104758 4854293 199418 97% / /devices ... (2 Replies)
Discussion started by: duke0001
2 Replies

9. Solaris

Disk space management on Solaris

Hi, I'm using sun solaris. Using df -h I have the following: Filesystem size used avail capacity Mounted on /dev/md/dsk/d2 12G 7.1G 4.6G 61% / /proc 0K 0K 0K 0% /proc mnttab 0K 0K 0K 0% ... (5 Replies)
Discussion started by: HSN
5 Replies
Login or Register to Ask a Question