Configuring HP-UX For Peripherals

Chapter 5 167
Configuring Disk Drives, Disk Arrays, and CD-ROM Drives
Removing a Disk Drive
belongs.)
b. Execute lvdisplay -v for every logical volume in the volume group
of the disk being removed to locate any logical volumes currently
straddling the disk being moved and another disk. If you find any,
Back up the data and remove the logical volume, by executing an
lvremove command.
Or, if the logical volume is mirrored,
Remove the mirroring, by executing an lvreduce -m 0 command.
c. Execute a vgchange command to deactivate the volume group to
which the disk is being added.
d. If the disk comprises an entire volume group, execute a vgexport
command to remove it from the current configuration.
If the disk comprises a portion of a volume group, execute a vgreduce
command. The disk can now free be removed.
Step 5. Notify the users on the system about system shutdown as a result of
removing the disk drive.
Step 6. Shut down and bring your system into single-user mode using the
shutdown command.
Step 7. If you are removing the disk drive your kernel uses for primary swap and
dump, reconfigure the kernel to reassign them. Refer to the file systems
chapter of the System Administration Tasks.
Step 8. Halt the system:
/usr/sbin/reboot -h
Step 9. Turn off any peripherals attached to the computer system and then the
SPU.
Step 10. Turn off, unplug, and disconnect the disk drive.
Step 11. Turn on any peripherals attached to the computer system and then the
SPU. On booting up, insf identifies all devices it finds and creates /dev
files for them.
Step 12. Log in.
Step 13. Update any software application configurations that use the removed
disk drive. Refer to your software application documentation for specific