Configuring HP-UX For Peripherals

Chapter 7 187
Configuring Tape Drives
Configuring HP-UX for a Tape Drive
Configuring HP-UX for a Tape Drive
The simplest way to configure a tape drive is to use SAM
(/usr/sbin/sam). If SAM is not loaded on your system or if you prefer to
use the command-line interface, the following procedure will guide you
through the task. Understand the instructions before getting started.
Step 1. Invoke /usr/sbin/ioscan -fn to figure out what addresses are
available on the interface card to which you will be attaching the tape
drive.
For examples of ioscan usage, consult “Viewing the System
Configuration with ioscan” in Chapter 1, “Getting Started.
Step 2. Determine the device drivers needed for your tape drive and interface. If
any necessary static device driver is absent from the kernel, you will
need to rebuild the kernel to include it.
a. Change directory to the build environment (/stand/build). There,
execute a system preparation script, system_prep, which extracts the
system file from the current kernel and writes a system file in your
current directory. (That is, it creates /stand/build/system.) The -v
gives verbose explanation as the script executes.
cd /stand/build
/usr/lbin/sysadm/system_prep -v -s system
b. Modify the /stand/build/system file to add the absent driver(s) by
invoking the kmsystem command. The -c Y specifies that
driver-name is to be configured into the system.
/usr/sbin/kmsystem -S /stand/build/system -c Y
driver-name
NOTE To avoid introducing format errors, do not edit the HP-UX system
description files directly. Instead, use the commands kmsystem and
kmtune. These commands are new for Release 11.0; consult kmsystem
(1M) and kmtune (1M) in the HP-UX Reference.
c. Build the new kernel by invoking the mk_kernel command. This
creates /stand/build/vmunix_test, a kernel ready for testing.
/usr/sbin/mk_kernel -s /stand/build/system