 |
» |
|
|
 |
Back up the data on the disk being configured into the system;
see the backup chapter in HP-UX System Administration
Tasks. Create a record of the system's current disk configuration
for later use: /usr/sbin/ioscan -fun -C disk |
Note whether the current configuration includes the device
driver needed to communicate with the disk you intend to configure.
Consult “Selecting Device
Drivers for a Disk Device and Interface ” for guidelines
on compatible disks, device drivers, and interfaces. If any necessary device driver is absent from the kernel,
you will need to rebuild the kernel to include it. Here is how you
rebuild the kernel: Change directory to the build environment (/stand/build). 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
|
Edit the /stand/build/system file to add the absent driver(s). Build the kernel by invoking the mk_kernel command. This creates /stand/build/vmunix_test, a kernel ready for testing. /usr/sbin/mk_kernel -s system |
Save the old system file and kernel by moving them.
Thus, if anything goes wrong, you still have a bootable kernel. mv /stand/system /stand/system.prev mv /stand/vmunix /stand/vmunix.prev
|
Move the new system file and new kernel into place,
ready to be used when you reboot the system. mv /stand/build/system /stand/system mv /stand/build/vmunix_test /stand/vmunix
|
Bring the system down and physically install the
disk device. 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. insf creates the character and block device special
(/dev) files required to communicate with the disk. Execute /usr/sbin/ioscan -fun -C disk again, to identify the newly configured disk device
and its device special files.
|