Configuring HP-UX For Peripherals
146 Chapter5
Configuring Disk Drives, Disk Arrays, and CD-ROM Drives
Configuring HP-UX for a New Disk Device
kmtune. These commands are new for Release 11.0; consult kmsystem
(1M) and kmtune (1M) in the HP-UX Reference.
Step 5. 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
Step 6. Save the old system file by moving it. Then move the new system file into
place.
mv /stand/system /stand/system.prev
mv /stand/build/system /stand/system
Step 7. Prepare for rebooting by invoking the kmupdate command. This sets a
flag that tells the system to use the new kernel when it restarts.
/usr/sbin/kmupdate
Step 8. 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.
Step 9. Bring the system down to a halt, using the shutdown command.
Step 10. Turn off the power to all peripheral devices and then to the SPU.
Step 11. 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.
Step 12. 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.