- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: var cleanup hp ux 11.23 itanium
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
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
тАО11-12-2009 06:47 AM
тАО11-12-2009 06:47 AM
Solved! Go to Solution.
- Tags:
- cleanup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2009 06:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2009 06:58 AM
тАО11-12-2009 06:58 AM
Re: var cleanup hp ux 11.23 itanium
Do _not_ manually diddle (remove, modify, etc.) in the '/var/adm/sw' directory. If you corrupt the contents of this directory you can render your server un-patchable.
To potentially regain space, use the 'cleanup' command:
# cleanup -c 1
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2009 08:36 AM
тАО11-12-2009 08:36 AM
Re: var cleanup hp ux 11.23 itanium
Do not delete manually any file in /var/adm/sw you can corrupt your software.
check under /var/tmp to see if you can delete something there.
also check /var/tombstones
Another option should be to search for core file in var.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2009 08:44 AM
тАО11-12-2009 08:44 AM
Re: var cleanup hp ux 11.23 itanium
Dont delete anything in /var/adm/sw/save directory. It is used for rollback.
Better look for some old pacct files in /var/adm or you can truncate some of your logs like /var/adm/cron/log, or anything in /var/tmp.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2009 09:36 AM
тАО11-12-2009 09:36 AM
Re: var cleanup hp ux 11.23 itanium
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2009 09:45 AM
тАО11-12-2009 09:45 AM
Re: var cleanup hp ux 11.23 itanium
In '/root/.swa.conf' (or on the command line) you can set the '-x user_dir' and the '-x swcache' to a directory that offers you the space you need.
See:
http://docs.hp.com/en/5992-5125/5992-5125.pdf
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2009 08:15 PM
тАО11-12-2009 08:15 PM
Re: var cleanup hp ux 11.23 itanium
The best thing to do is to create another lvol that will hold the /var/adm/sw directory. Once the lvol is created, mount it to a temporary mountpoint, copy all the files and directories to the new location. As a precaution, backup the /var/ad/sw directory to tape or another location. Then unmount the new lvol, remove all the files and directories in /var/adm/sw and mount the new lvol to /var/adm/sw. The last step is to add the new mountpoint to /etc/fstab.
You should also analyze /var using du to see what other large directories are present. Use this command:
du -sk | sort -rn | head -20
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2009 10:19 PM
тАО11-12-2009 10:19 PM
Re: var cleanup hp ux 11.23 itanium
# swa clean {usercache | swcache | all}
When the swa command runs, it produces cache files for its use. Run swa clean to free up disk
space after your swa session is complete.
See attached.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2009 10:24 PM
тАО11-12-2009 10:24 PM
Re: var cleanup hp ux 11.23 itanium
In answer to your question, use the -x user_dir option.
x user_dir=~/.swa
Usage: Basic
Applicable caches: usercache all
This is the directory where SWA stores catalog, inventory, analysis, ignore, and report files.
The default location is a subdirectory (.swa) of the user's home directory. This can be changed,
for example, to allow archival of previous interim artifacts in a date-specific directory or
off-host. Several other options default to a directory relative to this directory, so changing
this option allows all of those locations to stay in synch relative to a common root.