Configuring HP-UX For Peripherals
158 Chapter5
Configuring Disk Drives, Disk Arrays, and CD-ROM Drives
Configuring into your System an LVM Disk Already Containing Data
device by location.
Step 11. Scan your current system to identify all disks by their volume groups.
/usr/sbin/vgscan -v
Step 12. Create a directory for the volume group to which the new LVM disk will
belong. For example, a new volume group might be called vg06.
mkdir /dev/vg06
Step 13. Check to make sure that you are creating a unique minor number for the
new group file. Then create a character device special file for the new
volume group's group file. The character major number for LVM is 64.In
the minor number,
n
must be in the range between 0 and 9, because the
maximum number of volume groups by default allowed on a system is
ten. You can increase the number by changing the operating-system
parameter maxvgs in /usr/conf/master.d/core-hpux or by using
SAM.
ll /dev/*/group
mknod /dev/vg06/group c 64 0x0
n
0000
Step 14. Import the LVM disk to the current system, citing the block device
special file name you noted when the system booted up and the mapfile
you created when invoking vgexport at the beginning of the procedure.
You can preview the effect of the import by using the -p option.
vgimport -pv -m mapfile /dev/vg06
block_device_special_file
vgimport -v -m mapfile /dev/vg06
block_device_special_file
The vgimport command adds the volume group name to the
/etc/lvmtab file. It also adds the device special files associated with the
volume group's logical volumes to the system.
Step 15. Activate the new volume group.
/usr/sbin/vgchange -a y /dev/vg06
Step 16. Mount the logical volumes to their new mount point. For further
information on mounting and un-mounting, consult the Managing
Systems and Workgroups manual.
mkdir /new_location
mount /dev/vg06/lvol1 /new_location