How to install a library HP-UX 10.XX/11.XX?

From Wiki-UX.info
Jump to: navigation, search

PROCEDURE TO INSTALL AUTOCHANGER/LIBRARIES ON VERSION HP_UX 10.X,11.XX NIO and WSIO BUS. (MO,WORM,DLT,DDS autochangers/libraries)

NOTE: autochangers are not supported on CIO bus!

MO Drive Device Files (1X, 2X and 4X capacity drives)

MO drive device files are standard disk device files and created automatically when the devices are powered up and the system is booted.

You can verify this with:

 # ioscan -fnCdisk 
Class     I  H/W Path    Driver      S/W State H/W Type  Description
=====================================================================
disk      0  8/12.0.0    sdisk       CLAIMED   DEVICE    HP      C2247W
                        /dev/dsk/c0t0d0   /dev/rdsk/c0t0d0
disk      1  8/12.6.0    sdisk       CLAIMED   DEVICE    HP      C3325W
                        /dev/dsk/c0t6d0   /dev/rdsk/c0t6d0
disk      3  8/16/5.4.0  sdisk       CLAIMED   DEVICE    HP      C1716T
                        /dev/dsk/c1t4d0   /dev/hsm/rmo1b0
                        /dev/hsm/mo1b0    /dev/rdsk/c1t4d0
disk      4  8/16/5.5.0  sdisk       CLAIMED   DEVICE    HP      C1716T
                        /dev/dsk/c1t5d0   /dev/hsm/rmo0b0
                        /dev/hsm/mo0b0    /dev/rdsk/c1t5d0


Tape Drive Device Files (DDS/DAT and DLT) HPS700/S800 HP-UX 10.X

When a new device is connected to an HP700/800 Series system, device files for that devices must be created. On the machine where the new device is installed follow these steps to create the device files:

  • Connect the new devices to the SCSI bus using an unused SCSI ID # and power on the device. Boot the workstation or system.
  • Create device files using the command line or SAM interface:

From the command line type:

 # /etc/insf -v          to create device files for *all* new devices
  or
  # /etc/insf -v -Ctape   to create device files for new tape devices only

Or from SAM select the following menu items:

  • select "Peripheral Devices ->
  • then select "Tape Drives" ->
  • In this menu highlight the new drive just added and select "Create Device Files - Create Default Device File from the "Actions" menu. If you have multiple tape devices ensure you select the appropriate device using the SCSI id. Exit SAM

For your tape devices a number of device files are created in the /dev/rmt directory.

  • File ending in BEST (i.e. C0t3d0BEST) - This device file is used to communicate to the device with hardware compression enabled

If non-compressed, special density device files or non-rewind device files are desired select in "SAM" the "Create Device Files - Create Custom Device File". To make it easy you can create a hard link to a new filename. This makes it easy to configure your application:

# ln /dev/rmt/c0t2d0BESTn /dev/rmt/DLT_DRIVE_1

A command "ioscan -fnCtape" will give you all the tape drive and device file information. e.g.

  # ioscan -fnCtape
Class     I  H/W Path    Driver      S/W State H/W Type  Description
=====================================================================
tape      5  8/0.2.0     stape       CLAIMED   DEVICE    Quantum DLT4000
                        /dev/rmt/5m            /dev/rmt/c0t2d0BEST
                        /dev/rmt/5mb           /dev/rmt/c0t2d0BESTb
                        /dev/rmt/5mn           /dev/rmt/c0t2d0BESTn
                        /dev/rmt/5mnb          /dev/rmt/c0t2d0BESTnb
tape      6  8/0.2.1     stape       CLAIMED   DEVICE    Quantum DLT4000
                        /dev/rmt/6m            /dev/rmt/c0t2d1BEST
                        /dev/rmt/6mb           /dev/rmt/c0t2d1BESTb
                        /dev/rmt/6mn           /dev/rmt/c0t2d1BESTn
                        /dev/rmt/6mnb          /dev/rmt/c0t2d1BESTnb
tape      7  8/0.3.0     stape       CLAIMED   DEVICE    Quantum DLT4000
                        /dev/rmt/7m            /dev/rmt/c0t3d0BEST
                        /dev/rmt/7mb           /dev/rmt/c0t3d0BESTb
                        /dev/rmt/7mn           /dev/rmt/c0t3d0BESTn
                        /dev/rmt/7mnb          /dev/rmt/c0t3d0BESTnb
tape      8  8/0.3.1     stape       CLAIMED   DEVICE    Quantum DLT4000
                        /dev/rmt/8m            /dev/rmt/c0t3d1BEST
                        /dev/rmt/8mb           /dev/rmt/c0t3d1BESTb
                        /dev/rmt/8mn           /dev/rmt/c0t3d1BESTn
                        /dev/rmt/8mnb          /dev/rmt/c0t3d1BESTnb
tape      0  8/12/5.0.0  stape       CLAIMED   DEVICE EXABYTE EXB-8505HPQANXB1
                        /dev/rmt/0m            /dev/rmt/c1t0d0BEST
                        /dev/rmt/0mb           /dev/rmt/c1t0d0BESTb
                        /dev/rmt/0mn           /dev/rmt/c1t0d0BESTn
                        /dev/rmt/0mnb          /dev/rmt/c1t0d0BESTnb
tape      3  8/12/5.1.0  stape       CLAIMED   DEVICE    WANGTEK 5525ES SCSI
                        /dev/rmt/3m            /dev/rmt/c1t1d0BEST
                        /dev/rmt/3mb           /dev/rmt/c1t1d0BESTb
                        /dev/rmt/3mn           /dev/rmt/c1t1d0BESTn
                        /dev/rmt/3mnb          /dev/rmt/c1t1d0BESTnb


Autoloader Robotics HP S700, HP S800 D-SERIES, K-series GSC/HSC bus Systems HP-UX 10.X with WSIO bus structure only.

NOTE: for systems using the c700/c720 driver as ext_bus when doing ioscan -fCext_bus

For autochangers a device file must be manually created to communicate to the robotic portion of the device that moves the tapes into and out of the embedded drive. For the c7XX driver bus this can be done with the following command:

# /usr/sbin/mknod /dev/scsi/3 c 203 0xIITL00

Where T = SCSI ID of the device, II= SCSI BUS and L is the SCSI LUN of the device (L=1 for the HP 6 cartridge autoloader). The easiest way to determine what to use for the II portion of the command is to copy them from the device that was autocreated for the embedded DDS drive. To see these files do: e.g.

# ioscan -fnH 8/16/5

ext_bus     3  8/16/5      c700        CLAIMED   INTERFACE Built-in SCSI
target      1  8/16/5.0    tgt         CLAIMED   DEVICE
tape        0  8/16/5.0.0  stape       CLAIMED   DEVICE    HP      C1533A
target      2  8/16/5.2    tgt         CLAIMED   DEVICE
disk        1  8/16/5.2.0  sdisk       CLAIMED   DEVICE TOSHIBA CD-ROM XM-4101TA
target      5  8/16/5.3    tgt         CLAIMED   DEVICE
tape        1  8/16/5.3.0  stape       CLAIMED   DEVICE    HP      C1533A

NOTE: the lun 1 of the DDS2/DDS3 autoloader is not shown with ioscan

For a DDS2/DDS3 autoloader with address 3 and connected to an ext_bus with instance 3

# mknod /dev/scsi/3 c 203 0x033100
(Instance bus=3, Target=3 SCSILun=1)
# ll /dev/scsi/3
crw-rw-rw-   1 root     sys      203 0x033100 Apr 17 15:02 /dev/scsi/3

You can link this device file to other more usable names

  # ln /dev/scsi/3 /dev/picker
  # ln /dev/scsi/3 /dev/DDS_autoloader
  # ln /dev/scsi/3 /dev/spt

The tape device files are available in /dev/rmt

# ls -l /dev/rmt
e.g.
crw-rw-rw-   2 bin      bin      205 0x033000 Apr 16 11:25 /dev/rmt/1m
crw-rw-rw-   2 bin      bin      205 0x033080 Apr 16 11:25 /dev/rmt/1mb
crw-rw-rw-   2 bin      bin      205 0x033040 Apr 16 11:25 /dev/rmt/1mn
crw-rw-rw-   2 bin      bin      205 0x0330c0 Apr 16 11:25 /dev/rmt/1mnb
crw-rw-rw-   2 bin      bin      205 0x030000 Mar 23 04:51 /dev/rmt/c3t0d0BEST
crw-rw-rw-   2 bin      bin      205 0x030080 Mar 23 04:51 /dev/rmt/c3t0d0BESTb
crw-rw-rw-   2 bin      bin      205 0x030040 Mar 23 04:51 /dev/rmt/c3t0d0BESTn
crw-rw-rw-   2 bin      bin      205 0x0300c0 Mar 23 04:51 /dev/rmt/c3t0d0BESTnb
crw-rw-rw-   2 bin      bin      205 0x033000 Apr 16 11:25 /dev/rmt/c3t3d0BEST
crw-rw-rw-   2 bin      bin      205 0x033080 Apr 16 11:25 /dev/rmt/c3t3d0BESTb
crw-rw-rw-   2 bin      bin      205 0x033040 Apr 16 11:25 /dev/rmt/c3t3d0BESTn
crw-rw-rw-   2 bin      bin      205 0x0330c0 Apr 16 11:25 /dev/rmt/c3t3d0BESTnb

For a DLT library on bus 10/8

# ioscan -fH10/8
Class     I  H/W Path  Driver S/W State H/W Type  Description
=============================================================
ext_bus   2  10/8      c720  CLAIMED   INTERFACE GSC add-on Fast/Wide SCSI Interface
target    4  10/8.2    tgt   CLAIMED   DEVICE
tape      1  10/8.2.0  stape CLAIMED   DEVICE    Quantum DLT4000
tape      2  10/8.2.1  stape CLAIMED   DEVICE    Quantum DLT4000
target    5  10/8.3    tgt   CLAIMED   DEVICE
tape      3  10/8.3.0  stape CLAIMED   DEVICE    Quantum DLT4000
tape      4  10/8.3.1  stape CLAIMED   DEVICE    Quantum DLT4000
target    6  10/8.4    tgt   CLAIMED   DEVICE
autoch    0  10/8.4.0  schgr UNCLAIMED UNKNOWN   HP      C1194F
target    7  10/8.7    tgt   CLAIMED   DEVICE
ctl       1  10/8.7.0  sctl  CLAIMED   DEVICE    Initiator

# mknod /dev/scsi/dlt_robot c 203 0x024000
(Instance bus=2, Target=4, SCSILun=0)

NOTE: verify that following drivers are configured

  1. sctl (for controlling the robot)
    stape (tape driver)
    schgr configured (for recognising the robotics with MESA diagnostics)
    ssrfc NOT configured (MO autochanger surface driver)

Autoloader Robotics HP S800 Systems HP-UX 10.X with NIO bus structure ( 800 series D-series excluded, see previous section )

NOTE: This procedure is only for systems with scsi1 or scsi3 driver for "ext_bus", if you see c700 or c720 when doing "ioscan -fCext_bus" you should follow the previous section. For HP-UX 10.00 you must install patch PHKL_5406 10.01 PHKL_10356 10.10 PHKL_10507 10.20 PHKL_10507

If the spt (SCSI pass-through) driver is not linked into your current HP-UX kernel, you will have to install the driver manually and reboot the system. The instructions for this are included below. This is basically a copy of a portion of the HP-UX man page for scsi_pt (man 7 scsi_pt) with a few specifics added.

Go to the build area:

 # cd /stand/build

Create a system file from your existing kernel:

 # /usr/lbin/sysadm/system_prep -s system

Get information about peripherals attached to your system:

 # ioscan -f

Check if the SCSI pass-through driver is already configured into your current kernel:

 # grep spt system

If no "spt" line was printed, add a line to the "SCSI drivers" area of the system file (/stand/build/system): spt

NOTE: Verify that the drivers autox0, ssrfc and autoch are NOT configured. They may be configured when the system was installed with an autochanger connected and powered on.

A driver statement is needed to override the standard driver which gets autoconfigured for any device. One statement is required for each desired NIO SCSI pass-through device (be it a SCSI target, or a SCSI lun). Append the driver line(s) to the system file: driver [path] spt

[path] = complete hardware path of desired device (from ioscan cmd)

For example, for an HP 6 Cartridge DDS Autoloader (HP C1553) connected at SCSI ID 3, the last 1 is because this device uses SCSI LUN 1.

driver 10/4/8.3.1 spt


Create the conf.c and config.mk files:

 # /usr/sbin/config -s system

Build a new kernel:

 # make -f config.mk

Verify that the pass-through driver has been built into the new kernel. (A line giving the revision information should be printed):

 # what ./vmunix_test | grep scsi_pt

Save the old system file:

 # mv /stand/system /stand/system.prev

Move the new system file to be the current one:

 # mv ./system /stand/system

Save the old kernel:

 # mv /stand/vmunix /stand/vmunix.prev

Move the new kernel to be the current one:

 # mv ./vmunix_test /stand/vmunix

Boot the system from the new kernel:

 # exec reboot

NOTE: For advanced users this method of creating a kernel can be done in one command :

  1. Modify /stand/system as described ( spt driver and hardware assignment )
  2. Run "mk_kernel -o /stand/vmunix" ( for more info read man page)

Once the system reboots:

Verify the peripheral configuration:

 # ioscan -f

Determine the major number for the SCSI pass-through driver. This is now dynamic so it will not always be the same as in the past. The major number is listed under the "Character" field of:

  # lsdev -d spt
      Character     Block       Driver          Class
        XXX          -1         spt             spt

Create the special device file to access the scsi_pt peripheral:

  # /usr/sbin/mknod /dev/[devfilename] c [major #] [minor #]
        [devfilename]  = name of the special device file
        [major #]      = character major number (from lsdev cmd)
        [minor #]      = minor number in the format 0xIITL00
                            II = 2 digit card instance number
                                 (from ioscan cmd; "ext_bus" entry)
                             T = Target SCSI ID number (SCSI ID)
                             L = Lun number (SCSI LUN)
                                 This will be 1 for the HP 1553 6 Cartridge
                                 DDS Autoloader
                            00 = Reserved fields, must be zero
Class       I  H/W Path     Driver      S/W State H/W Type  Description
========================================================================
tape        0  10/4/8.3.0   tape2       SCAN      DEVICE    HP      C1533A
spt         0  10/4/8.3.1   spt         SCAN      DEVICE    HP      C1553A
ext_bus     1  10/4/8       scsi1       CLAIMED   INTERFACE HP 28655A-SCSI Int
            ^         ^ ^
            |         | +   Data Drive SCSI LUN (1)
            |         +---- Data drive SCSI ID (3)
            +-------------- II = 2 digit card instance number

For example to make a device file for an HP 6 Cartridge DDS Autoloader (HP C1553) shown in the ioscan output above:

 # /usr/sbin/mknod /dev/scsi/3 c 137 0x013100

For a DLT autochanger with scsi address 0 for the autochanger, on the same bus the device file will be e.g.:

# /usr/sbin/mknod /dev/DLT/DLT_AC c 137 0x010000

Authors