- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- What is in: /var/adm/sw
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
08-30-2007 11:37 AM
08-30-2007 11:37 AM
What is in: /var/adm/sw
I found a directory "/var/adm/sw" that holds a ton of little files. Is it OK to delete? What is in this volume?
Thanks
Gene Laoyan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2007 12:24 PM
08-30-2007 12:24 PM
Re: What is in: /var/adm/sw
What you need to do instead is use the 'cleanup' (man cleanup for more info) to commit patches and remove the files from /var/adm/sw/save.
You can commit all patches that have been superseded once by using:
# cleanup -c 1
If you would like to preview the actions do:
# cleanup -p -c 1
You can also search for large directories in your /var file system by doing:
# cd /var
# du -ks * | sort -n
Then once you find the large directories, you can analyze them and find things that can be deleted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2007 12:24 PM
08-30-2007 12:24 PM
Re: What is in: /var/adm/sw
This is the installed software database that all the swxxxx commands use. If you remove files, your system will not be patchable. You can run the cleanup command (e.g. cleanup -c 1) which will commit patches and leave only the last superseded version of a patch so that you can swremove only the most recent version. This will probably free up quite a bit of space. You should really break /var into several filesystems such as /var/tmp, /var/spool, /var/mail, and perhaps /var/adm/sw. You never want /var to run out of room because that will bring a system down vwery quickly. Several critical daemons (e.g. syslogd) have probably stopped because of /var filling up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2007 03:28 PM
08-30-2007 03:28 PM
Re: What is in: /var/adm/sw
You cannot just remove the content of /var/adm/sw directory
You can use cleanup tool to remove the old patches
See this patch cleanup tool
PHCO_27780
http://www2.itrc.hp.com/service/patch/patchDetail.do?patchid=PHCO_27780&sel={hpux:11.11,}&BC=main|search|
WK
please assign points
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2007 07:37 PM
08-30-2007 07:37 PM
Re: What is in: /var/adm/sw
Just to add to the comments already posted, please make sure you take an archive backup of /var/adm/sw before running any cleanup commands, you never know, a patch you have committed may then be declared as bad by HP - in that situation without a backup you can't back the pacth out.
The backup is of course only any good until your next patch installs.
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2007 07:43 PM
08-30-2007 07:43 PM
Re: What is in: /var/adm/sw
btmp, sulog, wtmp, cron/log, lp/log, syslog/mail.log, syslog/syslog.log.
DO NOT delete any of these files. Either null them (e.g. > btmp) or trim them with SAM. If your system has been up for a long time you should be able to null files such as OLDsyslog.log without problem.
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2007 08:20 PM
08-30-2007 08:20 PM
Re: What is in: /var/adm/sw
I think if you ask about sw directory, you just started your journey with hp-ux, better check other directory ex. logs, service scripts (sometimes ;)), and trim that files.
Marcin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2007 10:23 PM
08-30-2007 10:23 PM
Re: What is in: /var/adm/sw
The contents of '/var/adm/sw' are also known as the Installed Product Database (IPD).
As such, it is managed and queried by the SD (Software Distributer) tools -- 'swinstall', 'swcopy', 'swremove', 'swmodify', 'swverify', etc. THe 'show_patches' and 'check_patches' utililities are user-friendly front-ends to 'swlist' and 'swverify', respectively. The 'cleanup' utility is a front-end to 'swmodify' and 'swremove' to commit patches as noted.
An excellent guide to patch management is:
http://www.docs.hp.com/en/5992-0674/index.html
Regards!
...JRF...