Dot Hill Systems II 200 FC service manual I.7 Creating a Volume Group

Models: II 200 FC

1 210
Download 210 pages 50.54 Kb
Page 200
Image 200
I.7 Creating a Volume Group

3.Initialize each partition as an LVM disk with the pvcreate command. For example, type:

#pvcreate /dev/rdsk/c12t6d2

Caution – This process results in the loss of any data that resides on the partition.

I.7 Creating a Volume Group

The volume group contains the physical resources that you can use to create usable storage resources for your applications.

1.Create a directory for the volume group and a device file for the group in that directory:

#mkdir /dev/vgmynewvg

#mknod /dev/vgmynewvg/group c 64 0x060000

The name of the directory is the name of the volume group. By default, HP-UX uses names of the format vgNN, but you can choose any name that is unique within the list of volume groups.

In the preceding example, the mknod command has the following arguments:

The fully qualified path name of the new device file group

The letter c indicating a character device file

The major number 64 (used for all volume groups)

A minor number of the form 0xNN0000, where NN is the two-digit hexadecimal representation of the volume group number (06 in the example)

To associate the physical volume with a volume group, use the vgcreate command:

#vgcreate /dev/vgmynewvg /dev/dsk/c12t6d2

To verify the creation and view the volume group properties, use the vgdisplay command:

#vgdisplay vg02

---Volumegroups -

--

VG Name

/dev/vg02

I-6SANnet II 200 FC, SATA, and SATA SE Array Installation, Operation, and Service Manual • March 2005

Page 200
Image 200
Dot Hill Systems II 200 FC service manual I.7 Creating a Volume Group