Configuring HP-UX For Peripherals
162 Chapter5
Configuring Disk Drives, Disk Arrays, and CD-ROM Drives
Moving a Disk Drive to a Different Address
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, 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.
b. Manually edit the /stand/build/system file to reflect the new
hardware path(s).
NOTE Do not use the kmsystem command to perform this step; edit the file
directly.
c. Build the kernel by invoking the command
/usr/sbin/mk_kernel -s /stand/build/system
The mk_kernel command creates /stand/build/vmunix_test, a
kernel ready for testing.
d. 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
e. Prepare for rebooting by invoking the kmupdate command. This
action sets a flag that tells the system to use the new kernel when it
restarts.
/usr/sbin/kmupdate
Step 9. Shut down and halt your system using the /usr/sbin/shutdown -h
command.
Step 10. Turn off the peripheral devices (including the disk drive) and then your
SPU.
Step 11. Physically move the disk drive and write down its new hardware location
Step 12. Power up all peripheral devices, wait for them to indicate "ready", and
then power on the SPU.