- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: What to delete?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 01:08 AM
11-24-2003 01:08 AM
Additionally, under /var/adm/sw/products and /var/adm/sw/save there are loads of directories which seem to be related to any patches that may be installed. Is there any reason to keep these? Or can they be deleted too?
Any advise about these would be greatly appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 01:11 AM
11-24-2003 01:11 AM
Re: What to delete?
HPUX has a great utility to cleanup old patches. just run it !
# cleanup -c1 -p (preview)
# cleanup -c1
Regards,
Robert-Jan.
- Tags:
- cleanup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 01:11 AM
11-24-2003 01:11 AM
Re: What to delete?
Use cleanup(1M) command to do this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 01:14 AM
11-24-2003 01:14 AM
Re: What to delete?
You can delete the crash.0 directory. 2 years is a bit too long to care about analysing the panic. You could also try a 'cleanup -c 2' to suppress patches already superseded twice. Last, you can use sam to trim your log files (SAM, Routine tasks, system log files). Sam will help you doing it in the correct way which is not always the same ...
Best regards,
Jean-Louis.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 01:14 AM
11-24-2003 01:14 AM
Solution/var/adm/crash/crash.0
has a crash information from June 3, 2001.
you might delete this.
/var/mail.log can be trimmed if your are not interested in sendmails log files . (cat /dev/null > /var/mail.log)
Don't delete anything from /var/adm/sw/products and /var/adm/sw/save .
You might run into trouble when installing additional products or new patches.
I created a seperate logical volume and mounted this to /var/adm/sw.
Regards
Rainer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 01:22 AM
11-24-2003 01:22 AM
Re: What to delete?
cat /dev/null > /var/adm/syslog/mail.log
Commit your patches as well:
/var/adm/sw/save # swmodify -x patch_commit=true *
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 03:41 AM
11-24-2003 03:41 AM
Re: What to delete?
I am talking of something diffrent but does make sence under this context. There could be chances of such processes which open large files in this filesystem and have not closed it (inodes are not returned) probably somebody else deleted it. You know what happens at this time ?. You will be left out with a filesystem 100 % and can't find the large files !!! :-(
The best way is to do an lsof on this node and search for /var . It will show all those processes which has opened /var filesystem. Check for the old processes and make sure all the files which they have opened are present in /var. IF THEY DO NOT EXIST !! , HE IS THE PROBLEM .. KILL HIM first and you will find your filesystem ok :-)
.....Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 04:21 AM
11-24-2003 04:21 AM
Re: What to delete?
Many applications use /var/tmp and not /tmp. So, it is common to rdir /var/tmp directory and then ln -s it to /tmp.
IF you have anyting in tmp move it to /tmp first then ln -s /tmp /var/tmp.
If cleanup -c 2 doesnt clear up your /var then do cleanup -c 1 and commit all patches...
On the off chance if you ever need to remove them in the future use an ignite tape to recover them or some other backup that you have made.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2003 01:56 AM
11-25-2003 01:56 AM
Re: What to delete?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2003 02:02 AM
11-25-2003 02:02 AM
Re: What to delete?
Well, you've heard the neat stuff already...
and then there are the old standby.s...
1.
du -sk /var/*| sort -n
Of course, be aware that if you have any links here to other mount points, cleaning up files there won't give you any more space on /var.
And if you have a mount point below /var with its own storage, cleaning that up won't help /var.
For example, in this case:
# ll /var
...
-rw-r----- 1 root sys 29 Aug 20 16:24 jwtmp.txt
lrwxr-x--- 1 root sys 4 Nov 25 09:10 tmp -> /tmp
...
# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol8 1536000 621257 859556 42% /var
/dev/vg02/lvol2 4096000 2268185 1736316 57% /var/opt
/dev/vg01/lvol1 2048000 666667 1295066 34% /var/adm/crash
cleaning up /var/tmp, or
cleaning up /var/opt or /var/adm/crash won't take /var below 42% used here.
2.
Prune or remove any logs or dead.letter files (that maybe shouldn't be in /var, but could be, depending on your users and installed apps... and, maybe some stuff from sam in /var/sam/log.)
3.
Old mail files are always fun to remove: check /var/mail.
4.
If sar is running, you might find stuff in /var/adm/sa you can live without.
5.
You could have some /var/adm/cron logs to prune.
6.
And then there are the ever-popular accounting files in /var/adm: utmp, wtmp, btmp.
HP-UX is usually pretty good about these, so you probably don't need to read up on these if you don't have a problem.
Plus, one more tip:
try split if you absolutely must edit or view a large file.