1847234 Members
2887 Online
110263 Solutions
New Discussion

Re: Make room!

 
Frederic Wartner
Frequent Advisor

Make room!

Hi all,
I'm beginning to use a 715/50 under 10.20, and I need to free some disk space.
What can I delete? Is there a way to delete all the log files and other unessential stuff?
Thanks!
16 REPLIES 16
Pete Randall
Outstanding Contributor

Re: Make room!

Any particular file system that you're interested in purging?

You can delete most everything under /tmp and /var/tmp. You can use SAM to trim log files.
You can use find to remove core files or check for excessively large files.

A little more info on what you're after would help focus the answers you're going to get.


Pete

Pete
SM_3
Super Advisor

Re: Make room!

have you heard of the freedisk command

it's interactive & easy to use

just try

#freedisk
Helen French
Honored Contributor

Re: Make room!

Depend on what you need. In a normal scene, these things can be done:
1) Clean all un necessary files from /tmp. This file system holds temp. files only.
2) Clean /var/adm/wtmp and btmp files. These were log in informations, can be cleared if not needed.
3) Remove files from /var/adm/crash. These has last system crash information.
4) /var log files. Find all log files and can be removed/trimmed.
5) run command - cleanp - to clean old patches from system. Read man pages before use.
6) Check root file system and remove all un necessary files from it.
7) The OS file systems are normally under vg00. Others can be removed if you don't need any old data.
8) CAUTION - when removing files from /, /etc, /usr, /sbin, /var, /opt, /stand etc.
9) Use SAM's routine tasks to trim files.
Life is a promise, fulfill it!
Tom Ward_1
Honored Contributor

Re: Make room!

Here's what I go after

1) cores
find / -type f -name core -exec rm {} \;

2) Logs
find / -type f -name "*log" -exec ll {} \;

3) try the cleanup command
/usr/sbin/cleanup
Please read the man page before running it.

4) Check for old software that you may not need. Start with /opt. Perhaps you have old tools left on the system that can be removed.

Good luck,
Tom
Rizwan Mohammed
Frequent Advisor

Re: Make room!

hi

you can delete mail log files under /var
trim utmp ,wtmp files

backout some patch log files if not required.

check for core dump files which can be deleted

Rizwan

Know ?Urself before judging others
James R. Ferguson
Acclaimed Contributor

Re: Make room!

Hi:

Since you note "old", download and install PHCO_20824 for 10.20 from the ITRC Patch database. This is the 'cleanup' patch utility which you may or may not have.

No reboot is required to install. This will trim log files in '/var/adm/sw' and remove superceded patches. If you have never run this, you may gain substantial space in '/var'. This is the *only* recommended way to maintain '/var/adm/sw'. Simply do:

# cleanup

Regards!

...JRF...
Frederic Wartner
Frequent Advisor

Re: Make room!

Thanks to all for helping.
Does anybody know how to type {} on a 46021B HP keyboard?
Martin Johnson
Honored Contributor

Re: Make room!

You can also run swremove to remove products that are not used. NOTE: Take care with this! Make sure the products are really not needed. (Do a system backup first.)

The swremove utility will also check for dependencies and remove them when appropriate.

I would use swremove before running cleanup. Cleanup may prevent the removal of products and patches (especially patches).

HTH
Marty
Robert Krebs
Occasional Advisor

Re: Make room!

Hey Frederick!
Two things:
1. Although I can't help you with your particular keyboard I have a similar problem and here's my workaround. I've created a text file on another workstation called "braces" which has only the two characters { and }. I've FTP'd this file to the workstation that doesn't have the braces. Whenever I need to type the braces I can cut and paste them from the "braces" file.
2. Some other types of files you may want to look for to free up disk space are .tar files and backups that may have been created by another sysadmin (.bak, .orig, etc).
Have a grand day, Bob
Admission of wrongdoing is not an admission of weakness, but a sign of strength - Author Unknown
Darren Prior
Honored Contributor

Re: Make room!

Hi,

Is your problematic keyboard a French one, as your 715 might be configured for a US keyboard?

regards,

Darren.
Calm down. It's only ones and zeros...
Frederic Wartner
Frequent Advisor

Re: Make room!

Yes, it's a french keyboard. How do I "tell" it to the system? Something like "keyb fr" in DOS?
Anyway if it doesn't work I'll use the text file solution.
Thanks again for your help.
Darren Prior
Honored Contributor

Re: Make room!

Hi,

Have a look at the file /etc/kbdlang; I'm guessing it contains something like blah_blah_US.

DON'T attempt to edit the file! Just move it to another location and reboot the box; you should then be offered a menu where you can choose the actual keyboard type you have.

regards,

Darren.
Calm down. It's only ones and zeros...
Dave Wherry
Esteemed Contributor

Re: Make room!

Another place I've recovered disk space from is by removing foreign language sets. I'm not going to use the Japanese, Bulgarian....
It did create a problem once. I removed German and our SAP application would not start. We're in the U.S. and I figured we only needed English. Apparently some things under the covers use German.
Frederic Wartner
Frequent Advisor

Re: Make room!

Seems a good idea to remove useless language files.
Where can I find these files?
S.K. Chan
Honored Contributor

Re: Make room!

There are in /usr/lib/nls BUT I would not mess with those files as they are not big in size, furthermore you would not know what might break. All that have been mentioned earlier are the ones you need to pay attention to. Another area of opportunity if you're really deperate is the man pages and software documentaion (eg: glance, SAM, etc). For instance /usr/share/man which I bet would make up about 20MB. Online doc like /opt/perf/paperdocs is about 30MB (if you got glanceplus installed). Again .. only if you're really desparate for space and make sure you have ways of recovering those files back if you need them.
Steven E. Protter
Exalted Contributor

Re: Make room!

commit the old patches will save some space after JRF's patch is installed.

cleanup -c 1

Will get rid of anything superseded more than once, but remove a possible backout path.

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