Configuring HP-UX For Peripherals
156 Chapter5
Configuring Disk Drives, Disk Arrays, and CD-ROM Drives
Configuring into your System an LVM Disk Already Containing Data
Configuring into your System an LVM Disk
Already Containing Data
NOTE This procedure is provided for configuring a Series 800 legacy LVM disk
into HP-UX 10.0. Before proceeding, make sure you have read “Planning
to Configure into your System a Disk Already Containing Data” and
have performed the examination documented in “Ensuring Against
Clashes with HP-UX 10.0”.
Step 1. Back up the data on the disk; see the backup chapter in Managing
Systems and Workgroups.
Step 2. Unmount any file systems residing on the LVM disk by using the umount
command.
Step 3. Deactivate the disk's volume group by using the vgchange command.
Step 4. Remove the volume group of the disk from its current configuration and
prepare to export it using the vgexport command. The -m option creates
a map file that retains the names of the logical volumes in the volume
group.
/usr/sbin/umount /dev/vg01/lvol1
/usr/sbin/vgchange -a n /dev/vg01
/usr/sbin/vgexport -m mapfile /dev/vg01
Step 5. Copy the mapfile to the new system on which the disk will reside. On a
networked system, you can use rcp or ftp.
Step 6. Create a record of your system's current disk configuration for later use.
/usr/sbin/ioscan -fun -C disk
Step 7. Note whether the current configuration includes the device driver
needed to communicate with the disk being configured. If any necessary
driver is absent from the kernel, you will need to rebuild the kernel to
include it. Here is how you rebuild the kernel:
a. Change directory to the build environment (/stand/build). There,
execute a system preparation script, system_prep, which extracts the