HP StorageWorks HP-UX Kit V3.0B for Enterprise Virtual Array Installation and Configuration Guide (AA-RUHKB-TE, October 2003)
Testing Connections to the Enterprise Virtual Array
32 HP-UX Kit V3.0B for Enterprise Virtual Array Installation and Configuration Guide
Creating Volume Groups on a Virtual Disk Using vgcreate
Create the partitions on a virtual disk by issuing a vgcreate command. The
vgcreate command builds the virtual group block data needed in order to
access the virtual disk for access by HP-UX. In addition, refer to the
pvcreate, vgcreate, and lvcreate man pages for more information
about creating disks and file systems.
To create the physical volume on a virtual disk, enter the following:
# pvcreate –f /dev/rdsk/c32t0d1
To create the volume group directory for a virtual disk, enter the following:
# mkdir /dev/vg01
(vg01 is an example and must be unique for each volume group created.)
To create the volume group node for a virtual disk, enter the following:
# mknod /dev/vg01/group c 64 0x010000
(64 is the major number which equates to the mode—64-bit. The 0x01 is the
minor number in hex which must be unique for each volume group)
To create the volume group for a virtual disk, enter the following:
# vgcreate –L 1000 /dev/vg01/lvol1
To create the logical volume for a virtual disk, enter the following:
# lvcreate –f /dev/vg01 /dev/dsk/c32t0d1
In this example, a 1 GB logical volume (lvol1) is created.