- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Removing a committed patch
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
тАО08-24-2007 09:24 AM
тАО08-24-2007 09:24 AM
I ran cleanup -c 1 to see if this would help. Nada.
I ran check_patches as well but nothing was reported against this patch.
I want to ensure that the system is correct and that I am using the correct version of the pax program.
Ignite installed fine after doing an swremove of it first and then installing with swinstall. I am running Ignite at the moment so I know it works.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2007 09:33 AM
тАО08-24-2007 09:33 AM
SolutionIf you wish to assuage your fears, do:
# swlist -a state PHCO_35998
You will see "configured" if everything is well.
Installing a more recent version of a patch does not remove the previous version. That allows you to remove the newer and return to the older one.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2007 09:35 AM
тАО08-24-2007 09:35 AM
Re: Removing a committed patch
did you check
/var/adm/sw/swagent.log and
/var/adm/sw/swagentd.log
to see if there is any warning or error ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2007 10:52 AM
тАО08-24-2007 10:52 AM
Re: Removing a committed patch
You could also do:
# swlist -l fileset -a patch_state PHCO_35998
Unless you specifically commited the patch (e.g. with 'swmodiify') or installed it without saving rollback files, you should see the patch_state as "applied".
# swlist -a patch_state -x show_superseded_patches=true PHCO_35998
...will reveal the superseded ancestors of PHCO_35998 that exist on your system.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2007 06:02 PM
тАО08-24-2007 06:02 PM
Re: Removing a committed patch
But if you do, you'll end up back to the OS base release. (At least I think you'll have something left.) If want to re-install a previous patch, you'll have to download it again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-25-2007 12:32 AM
тАО08-25-2007 12:32 AM
Re: Removing a committed patch
I ran this command:
swlist -a patch_state -x show_superseded_patches=true PHCO_35998
and it returned nothing. Yes, the patch I applied is committed, so tha is o.k. My REAL question I guess (should have worded it better)is why I am now seeing both pax patches when I do a "swlist -i". Shouldn't I see only one pax cumulative patch in this list if what I applied superceded the previous version? If I do a "show_patches" the older pax patch does not show up in this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-25-2007 04:54 AM
тАО08-25-2007 04:54 AM
Re: Removing a committed patch
> My REAL question I guess (should have worded it better)is why I am now seeing both pax patches when I do a "swlist -i". Shouldn't I see only one pax cumulative patch in this list if what I applied superceded the previous version? If I do a "show_patches" the older pax patch does not show up in this.
OK, I looked at one of my 11.11 systems on which my latest 'pax' patch is PHCO_32438 --- the immediate predecessor of PHCO_35998.
This is what I see on my server:
# show_patches|grep -i pax
PHCO_32438 pax(1) cumulative patch
# show_patches -a -s|grep -i pax
PHCO_32438 pax(1) cumulative patch
PHCO_28414 pax(1M) cumulative patch
PHCO_30420 pax(1M) cumulative patch
swlist -l patch|grep -i pax
# PHCO_32438 1.0 pax(1) cumulative patch
# swlist -l patch -x show_superseded_patches=true|grep -i pax
# PHCO_28414 1.0 pax(1M) cumulative patch
# PHCO_30420 1.0 pax(1M) cumulative patch
# PHCO_32438 1.0 pax(1) cumulative patch
So, using 'show_patches' without options yielded only the "active" patches just like the default 'swlist'. Adding the options to 'show_patches' to see both active and superseded patches yielded what I would expect too, just as adding that option to 'swlist' did.
Check your '/var/adm/sw/defaults' and/or your '${HOME}/.sw/defaults' [if present] for any 'swlist' option settings. This may be the reason for your observations.
To tie this to our earlier dialog, on my server I can also see:
# swlist -a date -a patch_state -x show_superseded_patches=true PHCO_32438
# PHCO_32438 Fri Aug 26 10:56:13 EDT 2005
PHCO_32438.UX-CORE Fri Aug 26 10:56:13 EDT 2005 committed
...which shows me that I installed this patch on August 26, 2005. I recently *forced* a commit of a patch baseline in preparation for application of the June 2007 QPK, hence this patch state is now "committed".
The predecessor patch, PHCO_30420 shows:
# PHCO_30420 Wed Feb 23 13:36:28 EST 2005
PHCO_30420.UX-CORE Wed Feb 23 13:36:28 EST 2005 committed/superseded
...which clearly has been superseded.
Another view can be obtained thusly:
# swlist -l fileset -a supersedes PHCO_32438
# PHCO_32438
PHCO_32438.UX-CORE PHCO_25393.UX-CORE,fr=* PHCO_26422.UX-CO
RE,fr=* PHCO_28414.UX-CORE,fr=* PHCO_30420.UX-CORE,fr=*
...which shows me the entire 'pax' patch chain. It so happens that PHCO_28414 is the *earliest* version on *my* server:
# swlist -a date -a patch_state -x show_superseded_patches=true PHCO_28414
# PHCO_28414 Thu Jan 29 13:08:56 EST 2004
PHCO_28414.UX-CORE Thu Jan 29 13:08:56 EST 2004 committed/superseded
...I know this because neither PHCO_26422 nor its predecessor PHCO_25393 are available. Also, I know from my manual server logs, that this server was originally cold-installed by me in January 2004.
Lastly, if a patch is "commited", it means that its rollback files (the previous patch's state) have been removed from the system, or as I noted, that the patch was installed *without* saving rollback information [ using '-x patch_save_files=false' --- which is not a good way to patch ].
The 'cleanup' utility allows you to commit patches that have been superseded a specified number of times. This leaves some level of rollback.
An alternative is if you have a stable system that has been running a baseline of patches for a reasonable time without problems (I like ~ 6-months). In that case, you may wish to commit all patches before applying a QPK bundle. This has some benefits and can be done with:
# swmodify -x patch_commit=true \*
This can also be done for *individual* patches (for example):
# swmodify -x patch_commit=true PHCO_32438
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-25-2007 10:34 AM
тАО08-25-2007 10:34 AM
Re: Removing a committed patch
Simple answer is just because its a pax patch does not mean one supersedes the other.
There can be two different pax patchs that deal with different problems.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-25-2007 11:38 AM
тАО08-25-2007 11:38 AM
Re: Removing a committed patch
> Steven: Simple answer is just because its a pax patch does not mean one supersedes the other. There can be two different pax patchs that deal with different problems.
Well, no cigar for that. Mike was very clear in his opening post that he installed PHCO_35998 and had PHCO_32438 previously installed and now "can see both versions".
Consult the ITRC patch database and you see that PHCO_35998 is immediately superceded by PHCO_32438 or search the patch database for 11.11 patches matching "pax" and you will *only* find PHCO_35998 returned as a recommended/most recent entity. That makes it clear to me that were dealing with evolving versions of one "patch".
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-25-2007 07:50 PM
тАО08-25-2007 07:50 PM
Re: Removing a committed patch
No, the simple answer is that if they are pax(1) patches they are related. The patch policies don't allow patches that aren't cumulative and since PHCO_25393 has all of the pax files, there can't be any divergent patch trees for that OS version. Any other way would be confusing to customers.
>JRF: Well, no cigar for that.
Well, yes but not because of what Mike said.
>Consult the ITRC patch database and you see...
>That makes it clear to me that were dealing with evolving versions of one "patch".
Right, this shows the whole patch tree:
http://www1.itrc.hp.com/service/patch/patchTree.do?patchid=PHCO_25393