/tmp/nwmgr_apa.log is huge on HP-UX 11.31

Ever find /tmp/nwmgr_apa.log to be gigantic on an HP-UX 11.31 machine?

I’m guessing you have Auto Port Aggregation version B.11.31.30 installed.

# /usr/sbin/swlist -l bundle J4240AA
# Initializing...
# Contacting target "server"...
#
# Target:  server:/
#

  J4240AA       B.11.31.30     Auto-Port Aggregation Software

Upgrading to B.11.31.40 should fix this.

Advertisements

SSHing to other hosts in ‘while read’ loop

The while read construct relies on receiving a stream of data through stdin to work. Under normal circumstances ssh also requires access to stdin. This means that without special care a while read loop that contains a call to ssh will only execute once because on the first loop ssh will attach to and drain stdin. This can be demonstrated by:

# cat host_list.txt
server1
server2
server3

# while read RMTHOST; do ssh ${RMTHOST} 'hostname'; done < host_list.txt
server1

#

According to man 1 ssh, the -n flag will cause ssh to not try to read from stdin. This fixes the problem and allows ssh to be used within a while read loop.

# cat host_list.txt
server1
server2
server3

# while read RMTHOST; do ssh -n ${RMTHOST} 'hostname'; done < host_list.txt
server1
server2
server3

#

Using MirrorDisk/UX to mirror vg00 on an HP-UX 11.31 Itanium server

Where PRIMARY is the current OS disk and SECONDARY is the disk on which you want to create the mirror:

# idisk -Rw /dev/rdisk/SECONDARY

# echo "3" > /tmp/pdf
# echo "EFI $(diskinfo /dev/rdisk/PRIMARY_p1 | grep size | while read label size kbytes; do echo ${size}/1024 | bc; done)MB" >> /tmp/pdf
# echo "HPUX $(diskinfo /dev/rdisk/PRIMARY_p2 | grep size | while read label size kbytes; do echo ${size}/1024 | bc; done)MB" >> /tmp/pdf
# echo "HPSP $(diskinfo /dev/rdisk/PRIMARY_p3 | grep size | while read label size kbytes; do echo ${size}/1024 | bc; done)MB" >> /tmp/pdf

# idisk -f /tmp/pdf -w /dev/rdisk/SECONDARY
# idisk /dev/rdisk/SECONDARY

# ioscan; insf -e -C disk; ioscan -fnNC disk

# efi_fsinit -d /dev/rdisk/SECONDARY_p1
# pvcreate -B /dev/rdisk/SECONDARY_p2
# vgextend vg00 /dev/disk/SECONDARY_p2
# mkboot -e -l /dev/rdisk/SECONDARY

# efi_ls -d /dev/rdisk/PRIMARY_p1
# efi_ls -d /dev/rdisk/SECONDARY_p1

# lifls -l /dev/rdisk/PRIMARY_p2
# lifls -l /dev/rdisk/SECONDARY_p2

# mkboot -a "boot vmunix -lq" /dev/rdisk/PRIMARY
# mkboot -a "boot vmunix -lq" /dev/rdisk/SECONDARY

# efi_cp -d /dev/rdisk/PRIMARY_p1 -u /EFI/HPUX/AUTO /tmp/prim
# cat /tmp/prim

# efi_cp -d /dev/rdisk/SECONDARY_p1 -u /EFI/HPUX/AUTO /tmp/mir
# cat /tmp/mir

# for i in `pvdisplay -v /dev/disk/PRIMARY_p2 | grep 'current.*0000 $' | awk 'BEGIN{ ORS=" " }{ print $3 }'`; do echo lvextend -m 1 $i /dev/disk/SECONDARY_p2; done | sh -x

# lvlnboot -R /dev/vg00
# lvlnboot -v

# setboot -a SECONDARY_DISK_HW_PATH

# echo "1 /dev/disk/SECONDARY_p2" >> /stand/bootconf

# dd if=/dev/rdisk/PRIMARY_p3 of=/dev/rdisk/SECONDARY_p3 bs=1024k

Change Process List sorting in GlancePlus

The process list in glance is sorted by CPU usage by default. You can also sort by process name and memory usage (RSS). To do this, from the process list screen hit “o”. You will be presented with a prompt:

Go to 1) Process; 2) Transaction; 3) Thread option screen(1) :

Select 1.

You’ll now be taken to a screen that looks like this:

                      INTERESTING PROCESS THRESHOLD OPTIONS

Display processes with resource usage:              Current Thresholds:

      CPU Utilization             >                 (0.0                %      )
      Disk I/O Rate               >                 (1.0                IOs/sec)
      Resident Set Size           >                 (20                 Mbytes )
      Virtual Set Size            >                 (500                Mbytes )
      User name                   =                 (all                       )
      Program name                =                 (all                       )
      TTY path name               =                 (all                       )
      Use match logic (and/or)    :                 (or                        )
      Sort key (name/cpu/rss)     :                 (cpu                       )

      Glance started or last reset: 08/18/2011  12:54:21
      Current refresh interval        : 5 seconds

Move the cursor down to the “sort key” field and type the name of key by which you want to sort. In parenthesis to the right is the current value. You’ll be prompted:

Set your user defaults to these values  (y/n/c)?

Press “y”.

 

http://deryaoktay.wordpress.com/2011/02/07/how-to-sort-processes-by-rss-memory-utilization-in-glance-in-hpux/

Using Agile View in ioscan

With HP-UX 11.31 comes “agile” disk naming. Tips for using agile view in ioscan:

The -N flag turns on agile view

Before:

# ioscan -fnC disk | head -n 15
Class     I  H/W Path     Driver S/W State   H/W Type     Description
=====================================================================
disk      1  0/1/1/0.0.0.0.0                     sdisk   CLAIMED     DEVICE       HP      EH0146FARWD
                         /dev/dsk/c3t0d0     /dev/dsk/c3t0d0s2   /dev/rdsk/c3t0d0    /dev/rdsk/c3t0d0s2
                         /dev/dsk/c3t0d0s1   /dev/dsk/c3t0d0s3   /dev/rdsk/c3t0d0s1  /dev/rdsk/c3t0d0s3
disk      2  0/1/1/0.0.0.1.0                     sdisk   CLAIMED     DEVICE       HP      EH0146FARWD
                         /dev/dsk/c3t1d0     /dev/dsk/c3t1d0s2   /dev/rdsk/c3t1d0    /dev/rdsk/c3t1d0s2
                         /dev/dsk/c3t1d0s1   /dev/dsk/c3t1d0s3   /dev/rdsk/c3t1d0s1  /dev/rdsk/c3t1d0s3
disk      3  0/1/1/0.0.0.2.0                     sdisk   CLAIMED     DEVICE       HP      EH0146FARWD
                         /dev/dsk/c3t2d0     /dev/dsk/c3t2d0s2   /dev/rdsk/c3t2d0    /dev/rdsk/c3t2d0s2
                         /dev/dsk/c3t2d0s1   /dev/dsk/c3t2d0s3   /dev/rdsk/c3t2d0s1  /dev/rdsk/c3t2d0s3
disk     10  0/2/0/0/0/0/4/0/0/0.4.41.0.0.0.0    sdisk   CLAIMED     DEVICE       HP      OPEN-V
                         /dev/dsk/c6t0d0   /dev/rdsk/c6t0d0
disk     11  0/2/0/0/0/0/4/0/0/0.4.41.0.0.0.1    sdisk   CLAIMED     DEVICE       HP      OPEN-V
                         /dev/dsk/c6t0d1   /dev/rdsk/c6t0d1

After:

# ioscan -fnNC disk | head -n 15
Class     I  H/W Path  Driver S/W State   H/W Type     Description
===================================================================
disk      5  64000/0xfa00/0x0   esdisk   CLAIMED     DEVICE       HP      EH0146FARWD
                      /dev/disk/disk5      /dev/disk/disk5_p2   /dev/rdisk/disk5     /dev/rdisk/disk5_p2
                      /dev/disk/disk5_p1   /dev/disk/disk5_p3   /dev/rdisk/disk5_p1  /dev/rdisk/disk5_p3
disk      6  64000/0xfa00/0x1   esdisk   CLAIMED     DEVICE       HP      EH0146FARWD
                      /dev/disk/disk6      /dev/disk/disk6_p2   /dev/rdisk/disk6     /dev/rdisk/disk6_p2
                      /dev/disk/disk6_p1   /dev/disk/disk6_p3   /dev/rdisk/disk6_p1  /dev/rdisk/disk6_p3
disk      7  64000/0xfa00/0x2   esdisk   CLAIMED     DEVICE       HP      EH0146FARWD
                      /dev/disk/disk7      /dev/disk/disk7_p2   /dev/rdisk/disk7     /dev/rdisk/disk7_p2
                      /dev/disk/disk7_p1   /dev/disk/disk7_p3   /dev/rdisk/disk7_p1  /dev/rdisk/disk7_p3
disk      9  64000/0xfa00/0x4   esdisk   CLAIMED     DEVICE       Optiarc DVD RW AD-5590A
                      /dev/disk/disk9   /dev/rdisk/disk9
disk     68  64000/0xfa00/0xe   esdisk   CLAIMED     DEVICE       HP      OPEN-V
                      /dev/disk/disk68   /dev/rdisk/disk68

Use -m dsf to translate between old-school and agile device special files

Old to new:

# ioscan -m dsf /dev/dsk/c6t0d1
Persistent DSF           Legacy DSF(s)
========================================
/dev/disk/disk69         /dev/dsk/c6t0d1

New to old (a great way to list multiple paths!):

# ioscan -m dsf /dev/disk/disk69
Persistent DSF           Legacy DSF(s)
========================================
/dev/disk/disk69         /dev/dsk/c6t0d1
                         /dev/dsk/c10t0d1

Installing from a multi-platform depot to an alternate root on HP-UX

Some depots from HP (notably the Java packages from http://software.hp.com/) contain filesets for multiple OS versions or even processor architectures. Installing them normally works fine, as the appropriate filesets are automatically selected and the others ignored. However, problems can arise when installing to an alternate root directory. The key is to pull only the filesets you need from the supplied depot and create a custom depot.

For instance, suppose we have a depot with one bundle:

[0]testserver:/var/adm/crash> swlist -d -l bundle -s /var/adm/crash/jdk15_15021_pa.depot
# Initializing...
# Contacting target "testserver"...
#
# Target:  testserver:/var/adm/crash/jdk15_15021_pa.depot
#

  Java15JDK     1.5.0.21.00    Java 1.5 JDK for HP-UX

And that bundle has two products:

[0]testserver:/var/adm/crash> swlist -d -l product -s /var/adm/crash/jdk15_15021_pa.depot
# Initializing...
# Contacting target "testserver"...
#
# Target:  testserver:/var/adm/crash/jdk15_15021_pa.depot
#

  Jdk15         1.5.0.21.00    Java 1.5 JDK
  Jre15         1.5.0.21.00    Java 1.5 JRE

And those products are made up of filesets; some for HP-UX 11.11, some for HP-UX 11.23, and some for HP-UX 11.31:

[0]testserver:/var/adm/crash> swlist -d -a software_spec -l fileset -s /var/adm/crash/jdk15_15021_pa.depot
# Initializing...
# Contacting target "testserver"...
#
# Target:  testserver:/var/adm/crash/jdk15_15021_pa.depot
#

# Jdk15                 Jdk15,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP
  Jdk15.JDK15           Jdk15.JDK15,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
  Jdk15.JDK15           Jdk15.JDK15,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.23_PA
  Jdk15.JDK15           Jdk15.JDK15,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.31_PA
  Jdk15.JDK15-COM       Jdk15.JDK15-COM,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
  Jdk15.JDK15-DEMO      Jdk15.JDK15-DEMO,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
  Jdk15.JDK15-PA20      Jdk15.JDK15-PA20,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
  Jdk15.JDK15-PA20W     Jdk15.JDK15-PA20W,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
# Jre15                 Jre15,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP
  Jre15.JRE15           Jre15.JRE15,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
  Jre15.JRE15           Jre15.JRE15,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.23_PA
  Jre15.JRE15           Jre15.JRE15,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.31_PA
  Jre15.JRE15-COM       Jre15.JRE15-COM,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
  Jre15.JRE15-COM-DOC   Jre15.JRE15-COM-DOC,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
  Jre15.JRE15-PA20      Jre15.JRE15-PA20,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
  Jre15.JRE15-PA20-HS   Jre15.JRE15-PA20-HS,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
  Jre15.JRE15-PA20W     Jre15.JRE15-PA20W,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
  Jre15.JRE15-PA20W-HS  Jre15.JRE15-PA20W-HS,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64

(hint, check the “fa=” part of the line for the intended OS version. “fa” means fileset architecture.)

We can construct a swcopy command to select and copy only the filesets we need to a new depot. The easiest way I’ve found for the Java depots is to first select the JRE version we need and then the JDK version as such:

[0]testserver:/var/adm/crash> sudo swcopy -p -s /var/adm/crash/jdk15_15021_pa.depot \
Jre15.JRE15,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64 \
Jdk15.JDK15,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64 \
@ /var/adm/crash/jdk15_15021_11.11

=======  01/26/11 10:56:33 CST  BEGIN swcopy SESSION (non-interactive)
         (jobid=testserver-0286)

       * Session started for user "root@testserver".

       * Beginning Selection
       * Target connection succeeded for
         "testserver:/var/adm/crash/jdk15_15021_11.11".
       * Source:                 /var/adm/crash/jdk15_15021_pa.depot
       * Targets:                testserver:/var/adm/crash/jdk15_15021_11.11
       * Software selections:
           + Java15JDK,r=1.5.0.21.00,a=HP-UX_B.11.00_32/64,v=HP
             Jdk15.JDK15,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
           + Jdk15.JDK15-COM,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
           + Jdk15.JDK15-PA20,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
           + Jdk15.JDK15-PA20W,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
             Jre15.JRE15,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
           + Jre15.JRE15-COM,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
           + Jre15.JRE15-COM-DOC,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
           + Jre15.JRE15-PA20,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
           + Jre15.JRE15-PA20-HS,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
           + Jre15.JRE15-PA20W,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
           + Jre15.JRE15-PA20W-HS,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
       * A "+" indicates an automatic selection due to dependency or
         the automatic selection of a patch or reference bundle.
       * Selection succeeded.


       * Beginning Analysis
       * Session selections have been saved in the file
         "/home/kris/.sw/sessions/swcopy.last".
       * The analysis phase succeeded for
         "testserver:/var/adm/crash/jdk15_15021_11.11".
       * Analysis succeeded.


NOTE:    More information may be found in the agent logfile using the
         command "swjob -a log testserver-0286 @
         testserver:/var/adm/crash/jdk15_15021_11.11".

=======  01/26/11 10:56:37 CST  END swcopy SESSION (non-interactive)
         (jobid=testserver-0286)

As we can see, just by specifying those two filesets the rest of the ones needed due to dependencies were automatically selected. We can go ahead and rerun that without the -p (preview) flag to create the new depot that contains only filesets for HP-UX 11.11.

[0]testserver:/var/adm/crash> sudo swcopy -s /var/adm/crash/jdk15_15021_pa.depot \
Jre15.JRE15,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64 \
Jdk15.JDK15,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64 \
@ /var/adm/crash/jdk15_15021_11.11

=======  01/26/11 11:06:53 CST  BEGIN swcopy SESSION (non-interactive)
         (jobid=testserver-0288)

       * Session started for user "root@testserver".

       * Beginning Selection
       * Target connection succeeded for
         "testserver:/var/adm/crash/jdk15_15021_11.11".
       * Source:                 /var/adm/crash/jdk15_15021_pa.depot
       * Targets:                testserver:/var/adm/crash/jdk15_15021_11.11
       * Software selections:
           + Java15JDK,r=1.5.0.21.00,a=HP-UX_B.11.00_32/64,v=HP
             Jdk15.JDK15,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
           + Jdk15.JDK15-COM,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
           + Jdk15.JDK15-PA20,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
           + Jdk15.JDK15-PA20W,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
             Jre15.JRE15,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
           + Jre15.JRE15-COM,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
           + Jre15.JRE15-COM-DOC,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
           + Jre15.JRE15-PA20,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
           + Jre15.JRE15-PA20-HS,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
           + Jre15.JRE15-PA20W,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
           + Jre15.JRE15-PA20W-HS,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
       * A "+" indicates an automatic selection due to dependency or
         the automatic selection of a patch or reference bundle.
       * Selection succeeded.


       * Beginning Analysis and Execution
       * Session selections have been saved in the file
         "/home/kris/.sw/sessions/swcopy.last".
       * The analysis phase succeeded for
         "testserver:/var/adm/crash/jdk15_15021_11.11".
       * The execution phase succeeded for
         "testserver:/var/adm/crash/jdk15_15021_11.11".
       * Analysis and Execution succeeded.


NOTE:    More information may be found in the agent logfile using the
         command "swjob -a log testserver-0288 @
         testserver:/var/adm/crash/jdk15_15021_11.11".

=======  01/26/11 11:07:13 CST  END swcopy SESSION (non-interactive)
         (jobid=testserver-0288)

[0]testserver:/var/adm/crash> swlist -d -l bundle -l product -l fileset -a software_spec -s /var/adm/crash/jdk15_15021_11.11
# Initializing...
# Contacting target "testserver"...
#
# Target:  testserver:/var/adm/crash/jdk15_15021_11.11
#

#
# Bundle(s):
#

# Java15JDK                             Java15JDK,r=1.5.0.21.00,a=HP-UX_B.11.00_32/64,v=HP
# Java15JDK.Jdk15                       Jdk15,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP
  Java15JDK.Jdk15.JDK15                 Jdk15.JDK15,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
  Java15JDK.Jdk15.JDK15-COM             Jdk15.JDK15-COM,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
  Java15JDK.Jdk15.JDK15-PA20            Jdk15.JDK15-PA20,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
  Java15JDK.Jdk15.JDK15-PA20W           Jdk15.JDK15-PA20W,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
# Java15JDK.Jre15                       Jre15,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP
  Java15JDK.Jre15.JRE15                 Jre15.JRE15,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
  Java15JDK.Jre15.JRE15-COM             Jre15.JRE15-COM,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
  Java15JDK.Jre15.JRE15-COM-DOC         Jre15.JRE15-COM-DOC,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
  Java15JDK.Jre15.JRE15-PA20            Jre15.JRE15-PA20,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
  Java15JDK.Jre15.JRE15-PA20-HS         Jre15.JRE15-PA20-HS,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
  Java15JDK.Jre15.JRE15-PA20W           Jre15.JRE15-PA20W,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
  Java15JDK.Jre15.JRE15-PA20W-HS        Jre15.JRE15-PA20W-HS,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64

At this point installing from the new depot to the alternate root directory will work just fine.

[0]testserver:/var/adm/crash> sudo swinstall -x mount_all_filesystems=false \
-s /var/adm/crash/jdk15_15021_11.11 Jdk15 Jre15 \
@ /apps/java/java150/jdk150_21

=======  01/26/11 12:01:20 CST  BEGIN swinstall SESSION
         (non-interactive) (jobid=testserver-0290)

       * Session started for user "root@testserver".

       * Beginning Selection
       * "testserver:/apps/java/java150/jdk150_21":  This target does not
         exist and will be created.
       * Source connection succeeded for
         "testserver:/var/adm/crash/jdk15_15021_11.11".
       * Source:                 /var/adm/crash/jdk15_15021_11.11
       * Targets:                testserver:/apps/java/java150/jdk150_21
       * Software selections:
           + Java15JDK,r=1.5.0.21.00,a=HP-UX_B.11.00_32/64,v=HP
             Jdk15.JDK15,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
             Jdk15.JDK15-COM,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
             Jdk15.JDK15-PA20,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
             Jdk15.JDK15-PA20W,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
             Jre15.JRE15,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
             Jre15.JRE15-COM,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
             Jre15.JRE15-COM-DOC,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
             Jre15.JRE15-PA20,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
             Jre15.JRE15-PA20-HS,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
             Jre15.JRE15-PA20W,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
             Jre15.JRE15-PA20W-HS,r=1.5.0.21.00,a=HP-UX_B.11.11_32/64,v=HP,fr=1.5.0.21.00,fa=HP-UX_B.11.11_32/64
       * A "+" indicates an automatic selection due to dependency or
         the automatic selection of a patch or reference bundle.
       * Selection succeeded.


       * Beginning Analysis and Execution
       * Session selections have been saved in the file
         "/home/kris/.sw/sessions/swinstall.last".
       * "testserver:/apps/java/java150/jdk150_21":  There will be no
         attempt to mount filesystems that appear in the filesystem
         table.
WARNING: "testserver:/apps/java/java150/jdk150_21":  1 postinstall or
         postremove scripts had warnings.
       * Analysis and Execution succeeded.


NOTE:    More information may be found in the agent logfile using the
         command "swjob -a log testserver-0290 @
         testserver:/apps/java/java150/jdk150_21".

=======  01/26/11 12:02:21 CST  END swinstall SESSION (non-interactive)
         (jobid=testserver-0290)

[0]testserver:/var/adm/crash> ll /apps/java/java150/jdk150_21
total 0
drwxr-xr-x   4 root       sys             96 Jan 26 12:01 .
drwxr-xr-x   6 root       sys             96 Jan 26 12:00 ..
dr-xr-xr-x   3 bin        bin             96 Jan 26 12:01 opt
drwxr-xr-x   3 root       sys             96 Jan 26 12:00 var

[0]testserver:/var/adm/crash> /apps/java/java150/jdk150_21/opt/java1.5/bin/java -version
java version "1.5.0.21"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0.21-_09_nov_2010_08_03)
Java HotSpot(TM) Server VM (build 1.5.0.21 jinteg:11.09.10-10:26 PA2.0 (aCC_AP), mixed mode) 

Viewing Symmetrix FA port flags

# symcfg -sid 3288 list -FA 8C -P 0

Symmetrix ID: 000190103288

           S Y M M E T R I X    F I B R E   D I R E C T O R S

    Dir    Port  WWN               VCM      Volume Set   Pnt to Pnt
                                   Enabled  Addressing

    FA-8C   0    5006048AD52FBE07  Yes      No           Yes

where sid is the serial number of the array in question, FA is the FA, and P is the FA port.

Note, Volume Set Addressing should be on for FA ports used by HP-UX servers.