HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)
v
vgcreate(1M) vgcreate(1M)
EXAMPLES
Create a volume group named /dev/vg00 containing two physical volumes with extent size set to 2 MB,
from scratch.
First, create the directory /dev/vg00 with the character special file called
group.
mkdir /dev/vg00
mknod /dev/vg00/group c 64 0x030000
The minor number for the group file should be unique among all the volume groups on the system.
It has the format 0xNN0000
, where NN runs from 00 to ff.
Initialize the disks using
pvcreate.
pvcreate /dev/rdsk/c1t0d0
pvcreate /dev/rdsk/c1t2d0
Create the volume group.
vgcreate -s 2 /dev/vg00 /dev/dsk/c1t0d0 /dev/dsk/c1t2d0
Create a volume group named /dev/vg01 that can contain a maximum of three logical volumes,
with extent size set to 8 MB:
vgcreate -l 3 -s 8 /dev/vg01 /dev/dsk/c3t4d0
Create a volume group named /dev/vg00 and a physical volume group named PVG0 with two phy-
sical volumes:
vgcreate -g PVG0 /dev/vg00 /dev/dsk/c1t0d0 /dev/dsk/c2t0d0
Using the PVLinks feature to create a volume group named /dev/vg00 with a physical volume that
can be referenced by two different paths. /dev/dsk/c3t0d0
and /dev/dsk/c4t0d0 refer to
the same physical volume, accessed via different controller hardware paths. In this example,
/dev/dsk/c3t0d0 becomes the
primary link to the physical volume. /dev/dsk/c4t0d0
becomes an alternate link to the physical volume.
vgcreate /dev/vg00 /dev/dsk/c3t0d0 /dev/dsk/c4t0d0
SEE ALSO
getconf(1), model(1), idisk(1M), pvcreate(1M), scsimgr(1M), vgchange(1M), vgdisplay(1M), vgextend(1M),
vgreduce(1M), environ(5), lang(5), intro(7), lvm(7).
628 Hewlett-Packard Company − 3 − HP-UX 11i Version 3: February 2007