System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

rollback after installing HPUX patch bundles

 
ikeleong
Advisor

rollback after installing HPUX patch bundles

Hello;

On yearly basis we apply hpux patches supplied by our HP support folks.

I've never had to rollback from a hpux patch bundle. So do you rollback if the patch bundle causes issues and how do you deal with dependency issues when you rollback
8 REPLIES
Torsten.
Acclaimed Contributor

Re: rollback after installing HPUX patch bundles

IMHO a very good procedure:

Create a DRD clone of your vg00, patch it.

Once you have the possibility, activate (boot) the clone and test.

In case of problems simply boot the original vg00.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Dennis Handly
Acclaimed Contributor

Re: rollback after installing HPUX patch bundles

Make sure you take an ignite backup that you keep longer.
Steven E. Protter
Exalted Contributor

Re: rollback after installing HPUX patch bundles

Shalom,

I use one. I restore the Ignite make_tape_recovery or make_net_recovery backup I did before the patch set.

If you created a patch bundle and did not remove superseded patches, you can remove the patch set by bundle with swremove.

You can remove individual patches if dependency problems are not created.

After committing patches with the cleanup command your options are limited to Ignite.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Avinash20
Honored Contributor

Re: rollback after installing HPUX patch bundles

Option 1 - using swremove to uninstall patch bundle
If the system is bootable and you can login to the system, use swremove to uninstall the installed patch bundle and reboot the system.

Generate a list of patches to be removed which were installed as part of this change
# swlist -l product -a install_date | grep 2007MMDD | awk '{print $1}' > /tmp/patches_to_remove.txt

In the above line 2007MMDD corresponds to the install date of the patch bundles. For example if
the install date was Jan 17 2007, then 2007MMDD should read 20070117

Remove the patches
# swremove -x mount_all_filesystems=false -x autoreboot=true -f /tmp/patches_to_remove.txt
Progress of the patch removal can be viewed in the swagent.log (until the reboot takes place), eg:
# tail -f /var/adm/sw/swagent.log
Once the system has rebooted, remove the bundle definitions:
3) Now generate the bundle definition list including the revision details
# swlist â l bundle â a install_date | grep 2007MMDD | awk '{print $1}' > /tmp/bundle_def
For every bundle get the revision details
# swlist â a revision â l bundle â bundle nameâ
4) Remove the bundle definitions
# swremove â x mount_all_filesystems=false â Bundle nameâ .,r=â bundle revisionâ
e.g. # swremove GOLDAPPS11i.,r=B.11.11.0509.429
** Note: remember the â .â After the bundle name

Option 2: Recover from Ignite backup !!

Best of Luck !!

You have not assigned points to your post.
Please assign points:
Refer: http://forums11.itrc.hp.com/service/forums/helptips.do?#33
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Avinash20
Honored Contributor

Re: rollback after installing HPUX patch bundles

If system is not bootable
1) Boot from previous kernel and remove offending patch using swremove as stated above
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Bob E Campbell
Honored Contributor

Re: rollback after installing HPUX patch bundles

This is a tricky concept, but HP-UX does not support rollback of bundles. It only supports rollback of patches.

If you install a patch and later remove it, you get back to the original state.

If you install a patch bundle and later remove it, you *might* get back to the original state.

The difference is that the patch is atomic, while the bundle is comprised of parts. It is possible that some of those parts were installed before the bundle, and yet removing the bundle may cause those preexisting patches to be removed.

For that reason I recommend using the DRD and recovery image options described above. Failing that, review the swagent.log and remove the patches that were installed rather than selecting the bundle for removal.
sujit kumar singh
Honored Contributor

Re: rollback after installing HPUX patch bundles

Hi,

have an Ignite backup and in case you need the roll-back restore that, actually that would be a much more cleaner approach that i think.

Other part is that if you have a mirror of the OS Disk then yiu can simply unplug one of the disks when you upgrade the patch, for roll-back boot the disk from the removed disk and do a mirroring on the disk that you have used for patching.
regards
sujit
Suraj K Sankari
Honored Contributor

Re: rollback after installing HPUX patch bundles

Hi,

You can't rollback the bundle but you can rollback patch.
with swremove command you can uninstall/remove the patch from a system.
If you don't have DRD then better you go for Ignite backup.

Suraj