Wednesday, January 27, 2010

HP-UX: Create a new software depot for patches

Taken from

Creating a separate software depot for your patches is useful,
when space is tight and patches have dependencies.

Assuming you have two patches PHNE_20000 and PHNE_20001.

unshare all two patches by typing the following commands.

sh PHNE_20000
sh PHNE_20001

Next, we have to create a new software depot on the directory /newdir/depot

mkdir /newdir/depot
swpackage -s PHNE_20000.depot -d /newdir/depot

Register your new depot on the sd-ux.

swreg -l depot /newdir/depot

Copy the next patch to the newly created software depot.

swcopy -s `pwd`/PHNE_20001.depot PHNE_20001 @ /newdir/depot

You are now ready to install your patches

swinstall -s /newdir/depot

Wednesday, January 13, 2010

How to add temporary directory based swap space in HPUX

The examples enable paging to the file system containing the /paging directory. The maximum number of file system blocks available to the paging system is set to 5000, the number of file system blocks reserved for file system use only is set to 10000, and the priority is set to 2. The number of file system blocks initially taken by the paging system defaults to 0 in the first example, and is set to 0 in the second example. On a file system with the default 8kB block size, these examples allocate approximately 40MB of file system paging.

# /usr/sbin/swapon -l 5000 -r 10000 -p 2 /paging