1834393 Members
1748 Online
110066 Solutions
New Discussion

about installing patches

 
leyearn
Regular Advisor

about installing patches

now I am installing 5 PHKL* patches
all of them need rebooting after installed
can i set -x autoreboot=false every the 4 installation
then set -x autoreboot=true at the last one installation?
thanks
5 REPLIES 5
Dnyanesh_2
Occasional Contributor

Re: about installing patches

hi
it is recommended that u reboot after every patch installation since it is PHKL patch.
This can also help in support in case ur system fails to boot after patch installation.

Regards
Paul Eadington_1
Valued Contributor

Re: about installing patches

Is there something in the instructions for each of the patches to stop you installing them all together?

Could you not just pop them all in the same depot and then mark them all for install and let the reboot happen after that's done?

If the patches specifically say they have to go on seperately then I'd follow those instructions. Also make sure you have plenty of coffee and things to keep you entertained during those reboots :)
I had hair .. then I got into Unix
Bill Hassell
Honored Contributor

Re: about installing patches

Patches that require a reboot will refuse to install if the autoreboot flag is not set. What you want to do is to create a temp directory such as /var/tmp/mydepot and then use swcopy to copy all the patches to mydepot. When patches are swcopy'ed into a single directory, all of them can be installed at one time. And there is an added bonus: the depot is exported over the network so other machines can install from this depot. Here are the steps:

Put all your loose patches in a directory and unpack them if necessary so you have the PH*.depot files. Then, cd to that directory and:

mkdir /var/tmp/mydepot
for PATCH in *.depot
do
swcopy -s $PWD/$PATCH \* @ /var/tmp/mydepot
done

Now check that the depot exists:

swlist -l depot
swlist -l product -s /var/tmp/mydepot

The run swinstall and pick the path for your patches as /var/tmp/mydepot. You'll see all the patches, so mark them all and they install with a single reboot.

Or in batch mode:

swinstall -x autoreboot=true -s /var/tmp/mydepot \*


Bill Hassell, sysadmin
Fabio Ettore
Honored Contributor

Re: about installing patches

Hi,

you can download your patches in one time and install them in one time with only one reboot.
In the package with patches you will find a script to create one only depot. Its name begins woth create_depot and it contains what Bill posted.
For general about PHKL pacthes: even if you put the option -x autoreboot=false the system will reboot after installation because PHKL patches need immediately rebuilding the kernel. Anyway read the text of the patch in order to know if a patch requires a reboot or not.

HTH.

Best regards,
Fabio
WISH? IMPROVEMENT!
Mahesh Kumar Malik
Honored Contributor

Re: about installing patches

Hi

Suggest to reboot after each patch installation so that system is tested and there are no surprises!!!

Regards
Mahesh