- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /var/adm/sw maintenance
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
02-23-2001 05:58 AM
02-23-2001 05:58 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2001 06:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2001 06:09 AM
02-23-2001 06:09 AM
Re: /var/adm/sw maintenance
The bigest directory in /var/adm/sw may be the save. There save the PATCH the files which rewrite while patching. It need for You when use swremove.
I suppose backup this directory and remove some older directories. ( Before swremove You can restore from backup )
regadrs, Saa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2001 10:07 AM
02-23-2001 10:07 AM
Re: /var/adm/sw maintenance
swmodify -x patch_commit=true PHCO_13363.\*
to commit a patch and remove the backout files.
cleanup -c 1
where 1 is the number of times a patch has been supereded by another patch. This removes patches that have been superseded 1 or more times.
show_patches -s
Shows which patches have been superseded.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2001 06:26 PM
02-23-2001 06:26 PM
Re: /var/adm/sw maintenance
First, backup the /var/adm/sw directory.
Find out how big the sw directory is with:
du -ks /var/adm/sw
which will report Kbytes. Now find some extra space and create a separate lvol about twicw as big as the above report. Mount it under a temp directory, then copy everything as in:
mkdir /dev/vg01/lvol17 /tempdir
cd /var/adm/sw
find . | cpio -pudlmv /tempdir
Now verify the copy with:
find /tmpdir -type d | wc -l
find /var/adm/sw -type d | wc -l
find /tmpdir -type f | wc -l
find /var/adm/sw -type f | wc -l
The counts should be the same. Don't worry about du as it will always be different due to sparse files and expanded directories.
Now umount /tempdir, then remove all the directories and file under /var/adm/sw. Now add an entry to fstab as in:
/dev/vg01/lvol17 /var/adm/sw ...
And test the mount point with:
mount /var/adm/sw
Now, /var will no longer be affected by software installation.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2003 09:56 AM
04-07-2003 09:56 AM
Re: /var/adm/sw maintenance
I was curious, is the following a command line, posted above, a mistake:
"mkdir /dev/vg01/lvol17 /tempdir"
did you mean:
mount /dev/vg01/lvol17 /tempdir