I.7 creating a volume group, Creating a volume group – Dot Hill Systems II 200 FC User Manual
Page 200

I-6
SANnet II 200 FC, SATA, and SATA SE Array Installation, Operation, and Service Manual • March 2005
3. Initialize each partition as an LVM disk with the
pvcreate
command. For example,
type:
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:
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:
To verify the creation and view the volume group properties, use the
vgdisplay
command:
# pvcreate
/dev/rdsk/c12t6d2
# mkdir /dev/vgmynewvg
# mknod /dev/vgmynewvg/group c 64 0x060000
#
vgcreate
/dev/vgmynewvg
/dev/dsk/c12t6d2
# vgdisplay
vg02
---
Volumegroups
-
--
VG
Name
/dev/vg02