Configuring HP-UX For Peripherals

164 Chapter5
Configuring Disk Drives, Disk Arrays, and CD-ROM Drives
Moving a Disk Drive to a Different Address
a. Execute a vgchange command to reactivate the root volume group.
b. Execute an lvlnboot command to view the logical volumes in the
volume group.
c. Execute an lvrmboot command to remove the current definitions of
root, swap, and dump from the disk's Boot Data Reserved Area.
d. Execute lvlnboot commands to redefine root, swap, and dump. Use
the -v option for verbose output.
e. Execute a vgchange command to deactivate the root volume.
f. Reboot the system.
For example, if root is redefined as lvol1, swap as lvol2, and dump as
lvol3,
/usr/sbin/vgchange -a y /dev/vg00
/usr/sbin/lvlnboot -v
/usr/sbin/lvrmboot -r /dev/vg00
/usr/sbin/lvlnboot -r /dev/vg00/lvol1
/usr/sbin/lvlnboot -s /dev/vg00/lvol2
/usr/sbin/lvlnboot -d /dev/vg00/lvol3
/usr/sbin/vgchange -a n /dev/vg00
/usr/sbin/reboot
Step 16. Identify the device files corresponding to the newly moved disk, by using
/usr/sbin/ioscan -fun -C disk and looking for the disk's hardware
path. Write down the name of the new block device special file.
Step 17. Create a backup copy of the /etc/fstab file:
cp /etc/fstab /etc/fstab.old
Step 18. Edit /etc/fstab to include the block device special file of the disk at its
new location.
Once edited, the /etc/fstab file will provide accurate information to the
mount command. If the newly located disk is not the root disk, you may
now mount it. (If the newly located disk is the root disk, it has been
mounted already by other means.)
/usr/sbin/mount -a
Step 19. If your system is an NFS server, remount the file systems on its clients.
Do so by executing the mount command on the NFS client systems.
Step 20. Update any software application configurations that use the relocated