Operating System - HP-UX
1833415 Members
3523 Online
110052 Solutions
New Discussion

Low space issue, please help!

 
SOLVED
Go to solution
C Ross
Occasional Advisor

Low space issue, please help!

I am new to HP-UX and ran into a big problem. Just got a C200 workstation and realized that I have only 152Kb free on /. I realized that when I wanted to install HP-UX Secure Shell on it. It is a fresh 11i (1.0) installation.

What could I do to free up some space and/or remove some of the existing apps I might not need: for example a swlist shows up between others: CDE-Japanese, CDE-Swedish... etc. (I don't know Japanese or Swedish either :) without "hurting" my existing installation of course.

Any help would be greately appreciated! Thanks in advance!
5 REPLIES 5
Sridhar Bhaskarla
Honored Contributor
Solution

Re: Low space issue, please help!

Hi,

Since this is 11i, I assume that you have devided your vg00 into various file systems /stand,/,/usr,/opt,/var etc.,

Normally no softwares will go into / "filesystem". Looks like there are some directories under / given to regular users without filesystems on them. To find out the culprits, run the command

du -kx / |sort -n

It will list out all the directories under / as per their usage. You may want to create filesystems for them if they are not OS related.

Also check if your /opt is mounted. SSH gets installed under /opt.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Steven E. Protter
Exalted Contributor

Re: Low space issue, please help!

Few real files should be on root /

cd /

du -sk | sort -nr

or

du -k | sort -nr or

This will identify files that don't belong in root /

Files can hide too.

lets say you have a folder called /data

Its supposed to be mounted with a filesystem. But its not for some reason.

100 MB get copied in.

Then you mount the filesysetm.

mount /data

That 100 MB is invisible at the command line but using space.

This happens in /var when /var fails to mount.

If its not a critical filesystem, you can simply umount /data, clean up the mess and then mount.

If its /var you'll need to boot into single user mode to clean things up.

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
C Ross
Occasional Advisor

Re: Low space issue, please help!

Thank you very much both for your replies. Could you also tell me is it safe to remove let's say the CDE-Japanese if I don't use it, or another CDE-otherthanenglish? Would it affect my CDE? How can I safely uninstall these packages (or any other)? Thank you!
Sridhar Bhaskarla
Honored Contributor

Re: Low space issue, please help!

Hi,

You can remove them. However, that is not going to solve your problem unless you don't have /usr filesystem instead it is a directory under /. Post your 'du -kx / |sort -n |tail -20'.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Steven E. Protter
Exalted Contributor

Re: Low space issue, please help!

If its in root and it relates to CDE, its downloaded when you fire up CDE.

You can get rid if anything CDE related except .dtprofile

The problem is it will come back the next time you fire up CDE, so its not a real solution.

What I do for every user except root is set the home directory to the /home filesystem.

That prevents file buildup on root. You may be able to change your .dtprofile to store this stuff in /home/root for root, without changine roots home directory.

I keep a folder /home/root for root but don't make it the home in /etc/passwd

The reason is if i boot to single user mode there is no /home directory and i may need certain root functionality. Its a delicate balance.

Lastly I keep a slug, dummy file in root. Sometimes two. One is 50 MB, one is 100 MB

That gives me an emergency escape hatch wheh root fills up. I delete the smaller one and get to work finding the problem while the system stays up for users. If its a toughie and I get in trouble again, slug file number 2 the bigger one gives me a little more breathing room.

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