Operating System - HP-UX
1832840 Members
2968 Online
110047 Solutions
New Discussion

Re: Patch Application help

 
SOLVED
Go to solution
Jody Davis
Occasional Contributor

Patch Application help

Hello!

I need to apply a patch onto a HP server and could use a little help.

I have never applied an OS patch to the server before and am looking for help/suggestions with this task.

Thanks!
Jody
6 REPLIES 6
Marco Santerre
Honored Contributor

Re: Patch Application help

Jody,

Installing a patch is very easy with a HP-UX server as you can use the SD utility. So, depending on where you're at exactly in your process (meaning do you already have the patch? Is it on a CD or you downloaded it? etc). After that all you need to do, almost, is type :

swinstall
Cooperation is doing with a smile what you have to do anyhow.
Matt Hearn
Regular Advisor

Re: Patch Application help

I'll assume you've already downloaded the patch (or a bundle) to your server. You probably have a patches.tgz file.

> gunzip patches.tgz
> tar xvf patches.tar

That will unzip a package of files. One of them will be "create_depot_hp-ux_11". So just run

> ./create_depot_hp-ux_11

And it will create a registered depot of your patch(es) within your current directory.

Next, run swinstall:
> unset DISPLAY
> swinstall

(Turning off the DISPLAY variable ensures it won't try to run the X windows variant of swinstall, which is slow and no easier to use than regular swinstall.)

Set "Source Depot Type" to "Local Directory" and then tab the cursor down to "Source Depot Path" and hit enter. Then select your patch depot directory from the list. (It will probably be the path where you ran the create script with "/depot" stuck on the end.)

Tab down to OK and hit enter. you'll get your list of patches. Select each one by going to it and hitting the space bar. Then hit Tab (to get to the menus), A (for actions), and I (for install).

It will go through the standard checks. When it's done, just hit O (for OK) and it will continue. It may prompt you to advise on a possible required reboot.

When it's done, you're done! Just hit Tab, F, E to exit the program.

There are manuals on this around, but I of course don't have the links handy.
Helen French
Honored Contributor

Re: Patch Application help

Installing patches is easy. Find the required patch from here:

http://www2.itrc.hp.com/service/patch/mainPage.do

Enter your patch number and when the patch is listed, read the installation instructions by selecting it. Then download it to your server and follow the installation procedure.

You may also download multiple patches and make them a single patch bundle. You can download this bundle from HP site and 'untar' it to the server. The small script (create_depotXXXXX) will create a patch depot on your system and then you can use 'swinstall' command to install it.
Life is a promise, fulfill it!
Robert Salter
Respected Contributor

Re: Patch Application help

Jody,

If it is a single patch that you need to install read the .txt file, it will have install instructions in it, usually towards the end. It will also let you know if you need a reboot, other dependencies, etc. If you have to download it, put it in /tmp, that is usually setup as a depot directory.

If it's multiple patches, then go to the Maintenance and Support section of the ITRC and look into patch bundles. They have instructions on how to create a custom bundle for your system, download and install them.

Good luck.

Bob
Time to smoke and joke
Jody Davis
Occasional Contributor

Re: Patch Application help

I am getting some errors in the output after running the create_depot_hp-ux_11 script. Have you run into this before and any ideas on what to do to correct this??

/tmp # ./create_depot_hp-ux_11
DEPOT: /tmp/depot
BUNDLE: BUNDLE
TITLE: Patch Bundle
UNSHAR: y
PSF: depot.psf
Expanding patch shar files...
x - PHSS_26946.text
x - PHSS_26946.depot [compressed]
Copying PHSS_26946 into depot /tmp/depot

======= 12/01/03 12:42:40 CST BEGIN swcopy SESSION (non-interactive)

* Session started for user "root@doorsmf4".

* Beginning Selection
* "doorsmf4:/tmp/depot": This target does not exist and will be
created.
* Source: /tmp/PHSS_26946.depot
* Targets: doorsmf4:/tmp/depot
* Software selections:
PHSS_26946.CORE-64SLIB,r=1.0,a=HP-UX_B.11.11_32/64,v=HP,fr=1.0,fa=H
P-UX_B.11.11_32/64
PHSS_26946.CORE-SHLIBS,r=1.0,a=HP-UX_B.11.11_32/64,v=HP,fr=1.0,fa=H
P-UX_B.11.11_32/64
PHSS_26946.LANG-64ALIB,r=1.0,a=HP-UX_B.11.11_32/64,v=HP,fr=1.0,fa=H
P-UX_B.11.11_32/64
PHSS_26946.LANG-MIN,r=1.0,a=HP-UX_B.11.11_32/64,v=HP,fr=1.0,fa=HP-U
X_B.11.11_32/64
* Selection succeeded.


* Beginning Analysis
* Session selections have been saved in the file
"/root/.sw/sessions/swcopy.last".
* "doorsmf4:/tmp/depot": There will be no attempt to mount
filesystems that appear in the filesystem table.
ERROR: "doorsmf4:/tmp/depot": This operation will exceed the
absolute limit of disk space on 1 volumes.
* The analysis phase failed for "doorsmf4:/tmp/depot".
* Analysis had errors.


NOTE: More information may be found in the agent logfile (location
is doorsmf4:/tmp/depot/swagent.log).

======= 12/01/03 12:42:46 CST END swcopy SESSION (non-interactive)

ERROR: Could not swcopy PHSS_26946 into depot.
Bundling patches in depot

======= 12/01/03 12:42:46 CST BEGIN swpackage SESSION

* Session started for user "root@doorsmf4.mdrsys.com".

* Source: doorsmf4:depot.psf
* Target: doorsmf4:/tmp/depot
* Software selections:
*


* Beginning Selection Phase.
* Reading the Product Specification File (PSF) "depot.psf".
* Reading the bundle "BUNDLE" at line 13.

NOTE: Creating new target depot "/tmp/depot".
* Selection Phase succeeded.


* Beginning Analysis Phase.
* Analysis Phase succeeded.


* Beginning Package Phase.

* Packaging the bundle
"BUNDLE,r=B.11.11,a=HP-UX_B.11.11_32/64,v=HP".
* Package Phase succeeded.


NOTE: You must register the new depot "/tmp/depot" to make it
generally available as a source for swinstall and swcopy
tasks. To register it, execute the command

swreg -l depot /tmp/depot


======= 12/01/03 12:42:48 CST END swpackage SESSION

Verifying the depot.

======= 12/01/03 12:42:48 CST BEGIN swverify SESSION
(non-interactive)

* Session started for user "root@doorsmf4".

* Beginning Selection
* Target connection succeeded for "doorsmf4:/tmp/depot".
* Software selections:
BUNDLE,r=B.11.11,a=HP-UX_B.11.11_32/64,v=HP
* Selection succeeded.


* Beginning Analysis
* Session selections have been saved in the file
"/root/.sw/sessions/swverify.last".
* "doorsmf4:/tmp/depot": There will be no attempt to mount
filesystems that appear in the filesystem table.
* Verification succeeded.


NOTE: More information may be found in the agent logfile (location
is doorsmf4:/tmp/depot/swagent.log).

======= 12/01/03 12:42:49 CST END swverify SESSION (non-interactive)


doorsmf4
/tmp #
Helen French
Honored Contributor
Solution

Re: Patch Application help

"ERROR: "doorsmf4:/tmp/depot": This operation will exceed the
absolute limit of disk space on 1 volumes."

This means you donot have enough space to perform this operation. Check your file system free spaces:
# bdf

Check for /, /var, /opt, /tmp, /usr etc. If you find any of these is not sufficient, add more space or remove unwanted files from it.
Life is a promise, fulfill it!