- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Cleanup /var
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
Discussions
Discussions
Discussions
Forums
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
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
тАО09-16-2008 01:30 AM
тАО09-16-2008 01:30 AM
Cleanup /var
on my HP-UX 11.11 the /var is at 93%
I did some investigation and the reason is that there is a lof of stuff in /var/adm/sw/save.
After patch installation is usually run 'cleanup -c1' to save some space.
Is there a way to cleanup the 'save' directory? (other than using 'rm' an messing up the system)
With kind regards,
Kris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2008 01:41 AM
тАО09-16-2008 01:41 AM
Re: Cleanup /var
The cleanup -c command can be executed to commit all patches that have been superseded specified number of times. The only benefit from committing patches is that disk space will be recovered in the /var/adm/sw/save directory.
If you issued a cleanup -c1, files in save directory are matching patches that haven't been superseeded. So, no, there is no way to get more space back, except from an rm command. But this is not safe (even if I must admit that rolling back a patch is not a frequent task).
other way will be to increase /var filesystem.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2008 01:53 AM
тАО09-16-2008 01:53 AM
Re: Cleanup /var
cleanup will get you a lot of space back at the cost of not being able to roll back patches to the previous version.
cd /var
du -k | sort -rn | more
Identify where the space is being used, you might find other fat targets for cleanup.
Another quick space getter is to use sam routine tasks trim log files.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2008 02:10 AM
тАО09-16-2008 02:10 AM
Re: Cleanup /var
cd /var
# du -sk *|sort -n
check for crash dump in /var/adm/crash
gzip OLDsyslog.log
truncate mail.log
truncate files inside /var/mail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2008 05:01 AM
тАО09-16-2008 05:01 AM
Re: Cleanup /var
2. You can trim syslog.log & mail.log after taking the backup if needed.
3. You can gzip sar files inside /var/adm/sa directory.
Atlast nothing is possible for cleanup then you can add some space to /var.
Thanks
SKR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2008 11:08 AM
тАО09-16-2008 11:08 AM
Re: Cleanup /var
cleanup does that. Or you could move the files elsewhere and add a symlink.
(Unfortunately on one of my systems someone did that and didn't protect the directory and then later removed that tree. )-:
I suppose you could compress directories and then undo it when you want to remove patches.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2008 11:32 AM
тАО09-16-2008 11:32 AM
Re: Cleanup /var
In lieu of running 'cleanup' (which is a friendly front-end to 'swmodify') you can commit *all* patches and regain the space used for their rollback images with:
# swmodify -x patch_commit=true \*
This should give you the most returnable space.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-17-2008 08:45 AM
тАО09-17-2008 08:45 AM
Re: Cleanup /var
That said, make a new IUX recovery image before you commit patches. Always leave your options open when working with patches.