HP StorageWorks 3000/5000 Enterprise Virtual Array connectivity for HP-UX installation and reference guide (5697-7039, November 2007)
Configuring virtual disks from the host server
After you create and verify the virtual disks on the EVA3000/5000, and then rescan or restart the host
server, you mus
tconfigure the new disk resourc es. See your host server documentation for instructions
on c onfiguring d
isk resources.
The operating s
ystem treats an HSV110 virtual disk much like a SCSI disk. Therefore, you can use Logical
Volume Manager (LVM) commands pvcreate, vgcreate, and lvcreate to manually add the
virtual disk LUN to the host. The following is an example of manually adding a virtual disk LUN to the host:
• Createthephysicalvolumeonthevirtualdiskusingpvcreate.
• Create the di
rectory on the virtual disk using mkdir.
• Createthenodeonthevirtualdiskusingmknod.
• Createthevolumegrouponthevirtualdiskusingvgcreate.
• Create the lo
gicalvolumeonthevirtualdiskusinglvcreate
• Create a file system on the virtual disk.
• Mount the filesystem(togainaccesstothevirtualdisk).
Creating volume groups on a virtual disk using vgcreate
Create a volume g roup on a virtual disk by issuing a vgcreate command. In order for HP-UX to access
the virtual disk, the vgcreate command builds the virtual group block da ta. In addition, refer to the
pvcreate, vgcreate, and lvcreate man pages for more information about creating disks and file
systems. Use the following procedure to create a volume group on a virtual disk:
1. Create the physical volume on a virtual disk by entering a comma nd similar to the following:
# pvcreate -f /dev/rdsk/c32t0d1
2. Create the volume group directory for a virtual disk by entering a comm and similar to the following:
# mkdir /dev/vg01
The d esignation vg01 is an example. Use a unique designation for each volume group you create.
3. Create the volume group node for a virtual disk, by entering a command similar to the following:
# mknod /dev/vg01/group c 64 0x010000
The designation 64 is the major number that equates to the 64–bit mode. The 0x01 is the minor
numberinhex,whichmustbeuniqueforeachvolumegroup.
4. Create the volume group for a virtual disk by entering a command similar to the following:
# vgcreate -L 1000 /dev/vg01/lvol1
5. Create the logical volume for a virtual disk by entering a command similar to the following:
# lvcreate -f /dev/vg01 /dev/dsk/c32t0d1
In this example, a 1-GB logical volume (lvol1) is created.
6. Create a file system for the new logical volume by creating a file system d irectory name and inserting
amounttapentryinto/etc/fstab.
7. Run mkfs on the new logical volume.
The new file system is ready to mount.
HP StorageWorks 3000/5000 Enterprise Virtual Array connectivity for HP-UX i nstallation and reference
guide
13