- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- 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
Forums
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-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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2009 04:58 AM
11-13-2009 04:58 AM
Re: var cleanup hp ux 11.23 itanium
just returns a number ??
# du -sk | sort -rn | head -20
2678160 .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2009 05:02 AM
11-13-2009 05:02 AM
Re: var cleanup hp ux 11.23 itanium
> The command du -sk | sort -rn | head -20
just returns a number ??
Drop the 's' which summarizes and use:
# du -k /var|sort -krn|head -20
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2009 05:27 AM
11-13-2009 05:27 AM
Re: var cleanup hp ux 11.23 itanium
Some Pionts to clean up /var Spaceâ ¦
1. Release space from /var:
- remove core dump:
# find /var -name core -exec rm {} \;
2. cleanup old patches
cleanup -c 2
3. The following file in /var/stm/logs/os (Keep latest.)
memlog
logN.taw.cur
ccbootlog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2009 05:56 AM
11-13-2009 05:56 AM
Re: var cleanup hp ux 11.23 itanium
du -xk /var | sort -rn | head -20
(s is just too close to the x key)
Just to explain the use of du and not find for large files: Until you examine every directory in /var, looking for large files will miss a directory with thousands of small files. The du command summarizes directories. Once you find an unusually large directory, look inside to find the contents. You can sort the contents by size:
cd /var/someLargeDirectory
ll | sort -rnk5 | head -20
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2009 03:06 PM
11-13-2009 03:06 PM
Re: var cleanup hp ux 11.23 itanium
I might also throw out that often the mass of the QPK bundle can be an issue. If you already have that on media then preload it into your depot and then use:
# swa get -t /depotHere -x allow_existing_depot=true
While I am a big fan of the QPK bundle you could also use just the SEC, PW, and CRIT analyzers.