Configuring HP-UX For Peripherals

Chapter 5 145
Configuring Disk Drives, Disk Arrays, and CD-ROM Drives
Configuring HP-UX for a New Disk Device
Configuring HP-UX for a New Disk Device
The simplest way to configure a disk device (hard disk, floppy disk, disk
array, or CD-ROM) 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. Familiarize yourself
with 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 disk.
For examples of ioscan usage, consult "Using ioscan to Display yourI/O
Configuration," in Appendix B of this book.
Step 2. Consult the tables in the previous section ( “Selecting Device Drivers for
a Disk Device and Interface”) to determine the device driver(s) needed
for your disk and interface. (If you are configuring a magneto-optical
device, use the table in the section, Magneto-Optical Disk Configuration
Guidelines, found in the next chapter.) If any necessary static driver is
absent from the kernel, you will need to rebuild the kernel to include it.
Here is how to rebuild the kernel:
Step 3. 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, as follows:
cd /stand/build
/usr/lbin/sysadm/system_prep -v -s system
The system_prep script writes a system file in your current directory
(that is, it creates /stand/build/system). The -v gives verbose
explanation as the script executes.
Step 4. 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