- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: patches gobbling up space
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
12-01-2003 09:55 PM
12-01-2003 09:55 PM
patches gobbling up space
this is the usage in /var:
/dev/vg00/lvol8 769536 645388 47194 93% /var
517543kb is used by patches in /var/adm/sw/save. What can I do with them, delete? It is stuff from 2002.
thanks for any advice,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2003 09:57 PM
12-01-2003 09:57 PM
Re: patches gobbling up space
The cleanup command will display info about superseeded patches which can be removed from your system.
# cleanup -p -c1
(preseve)
# cleanup -c1
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2003 10:00 PM
12-01-2003 10:00 PM
Re: patches gobbling up space
S3100002024 - Sys Adm: removing old patches from an HP-UX 11.00 system
On HP-UX 10.20 systems exists the cleanup utility for that reason. But since 11.X it doesn't exist anymore and the only one chance is as doc above.
I hope this helps you.
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2003 10:17 PM
12-01-2003 10:17 PM
Re: patches gobbling up space
I wrote that cleanup utility doens't exist anymore on HP-UX 11.00 systems but I was not properly right...
cleanup utility exists on HP-UX 11.00 systems but
"it works for removing old 10.X patches after a 10.X
to 11.0 update, but is not very useful for a cold 11.0 system unless
managing a patch depot."
Michael, if you has an HP-UX system with older 10.X patches then sure cleanup utility can work for you (as Robert said).
Another useful doc about this:
KBRC00000625 - How can I get the same functionality for cleanup command in 11.0?
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2003 10:23 PM
12-01-2003 10:23 PM
Re: patches gobbling up space
the cleanup command shows only 0 bytes used in /var/adm/sw/save.
Hi Ettore,
so I executed a ghost command. ;-) Should I call an exorcist? ;-)) Please tell me, how I get this document.
thanks for the quick responses.
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2003 10:25 PM
12-01-2003 10:25 PM
Re: patches gobbling up space
DESCRIPTION
The cleanup command provides functions useful when dealing with HP-UX
patches on HP-UX 11.00.
The cleanup command logs all information to /var/adm/cleanup.log.
I think you are messing up with the "-i" option:
-i Remove HP-UX 10.X patches that remain in the Installed
Product Database after an upgrade to HP-UX 11.00.
Check on the man page..
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2003 10:37 PM
12-01-2003 10:37 PM
Re: patches gobbling up space
cleanup -pi shows no leftover patches from 10.X
thanks,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2003 10:53 PM
12-01-2003 10:53 PM
Re: patches gobbling up space
So you need to be fairly carefull about how you use it. The best thing to do is to start with patches that have been superseded several times:
cleanup -p -c 3
Will show you patches that have been superseded 3 times, and how much space you will get back from commiting these patches. You can check for 2 times of course with:
cleanup -p -c 2
If this is still not showing enought patches to commit, you can try it with patches that have only been superseded once:
cleanup -p -c 1
However you should be careful with removing these patches as those patches that supersede these may be declared bad (you can see these patches in the right hand column) and committing these patches will mean you will never be able to back out those in the right hand column.
Once you've decided which to commit, backup your /var filesystem and then just run the command again without the -p option, e.g.
cleanup -c 2
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2003 11:28 PM
12-01-2003 11:28 PM
Re: patches gobbling up space
Have you seen this doc,
http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000065680035
Kind regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2003 12:41 AM
12-02-2003 12:41 AM
Re: patches gobbling up space
I cant see the doc because it is on the european site. :-(
thanks,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2003 12:45 AM
12-02-2003 12:45 AM
Re: patches gobbling up space
I have another problem. On one machine cleanup has only the following options:
greetings,
Michael
HP-UX fra01h B.11.00 U 9000/800 2007307834 unlimited-user license
NAME
cleanup - HP-UX patch cleanup utility
SYNOPSIS
cleanup [-n|-p] -i
cleanup [-n|-p] -d
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2003 12:46 AM
12-02-2003 12:46 AM
Re: patches gobbling up space
I am going to post a doc above (for Massimo too):
*****************************************
How can I get the same functionality for cleanup command in 11.0? DocId: KBRC00000625 Updated: 10/1/02 7:39:00 AM
PROBLEM
In 10.20 the cleanup command would automatically search and remove unneeded
patches. In 11.00 the command does not work the same. How can I get the same
functionality in 11.00 as I had in 10.20 with the cleanup command or some other
command?
RESOLUTION
The cleanup utility in 11.0 is not as "aggressive", in that it doesn't remove
patch files in /var/adm/sw/save as it did in 10.20 to free up disk space.
There are two alternatives that can be used to remove patch files:
1) Install patch PHCO_27779
Patch PHCO_27779 s700_800 11.00 HP-UX Patch Tools and White Paper
is available at http://itrc.hp.com under "Individual Patches".
2) Use the following command for the patch(es) that need to be removed:
swmodify -x patch_commit=true
This command needs to be run for each patch that needs to be removed.
The patch file removal functionality was removed from cleanup in the 11.0
version because the functionality is provided via the swmodify command (using
the '-x patch_commit' option). Due to the difficulty in committing multiple
superceded patches using swmodify, patch PHCO_27779 was released to enhance the
cleanup utility and provide a front-end to swmodify to make it easier to commit
a group of superceded patches. With the application of PHCO_27779, either
swmodify or cleanup can be used to remove superceded patch files.
*****************************************
It indicates swmodify command on HP-UX 11.X, otherwise in order to obtain the same functionality of cleanup command as HP-UX 10.20, you should install PHCO_27779. Maybe (even sure) it is already installed on your system but the concept is that (without this patch) cleanup utility won't work as 10.X on 11.X as I said in previous post.
Without PHCO_27779 cleanup utility could just delete older HP-UX 10.X patches on HP-UX 11.X systems.
Also:
The cleanup command provides two functions useful when dealing
with HP-UX patches on HP-UX 11.X.
- It is used to remove any 10.X patches from the Installed
Product database after updating to HP-UX 11.X.
- It is also used to remove patches from a software depot if
they have been superseded by patches also available in the same
depot.
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2003 12:49 AM
12-02-2003 12:49 AM
Re: patches gobbling up space
US
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000065680035
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2003 01:00 AM
12-02-2003 01:00 AM
Re: patches gobbling up space
cd /var/adm/sw/save
swmodify -x patch_commit=true *
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2003 01:15 AM
12-02-2003 01:15 AM
Re: patches gobbling up space
I do come from Germany, however I stumbled into these forums by way of Google search and the url must have been american and so I registered there.
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 08:44 AM
12-04-2003 08:44 AM
Re: patches gobbling up space
1) download the offending patch
2) reinstall it
3) swremove it
Just in case you need to know.
Jeff