 |
» |
|
|
 |
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. 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 your I/O Configuration," in Appendix
B of this book. 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: Notify users that the system will be shut down to configure
the disk. You can use the wall command and/or the interactive capabilities of
the shutdown command to broadcast a message to users before
the system goes down. See wall(1M) or shutdown(1M) in
the HP-UX Reference. Bring the system down to a halt, using the shutdown command. Turn off the power to all peripheral devices and then to
the SPU. Install the hardware, following instructions provided
in the hardware documentation. When attaching the disk, set the
switches on the disk to an unused target address, which you will
have determined from ioscan output. Use the cabling recommended in the hardware
documentation. If installing a SCSI device make sure the last device
in the SCSI chain is terminated. Turn on the power to all peripheral devices. Wait for
them to become "ready", then turn on power
to the SPU. On booting up, HP-UX detects the new disk and associates it
with its device driver. Also during boot-up, insf creates the character and block device special (/dev) files required to communicate with the disk.
For a disk array in independent mode, insf creates device special files for each disk; in striped
mode, insf treats the entire array as a single disk. Verify the configuration by executing ioscan. If you are configuring a hard disk, you have
finished the initial configuration. If you are configuring a floppy disk drive, initialize the
floppy disk by invoking the mediainit command on the character device special file.
|