HP-UX Reference (11i v2 07/12) - 1M System Administration Commands N-Z (vol 4)
v
vgcreate(1M) vgcreate(1M)
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
idisk(1M), pvcreate(1M), vgchange(1M), vgdisplay(1M), vgextend(1M), vgreduce(1M), lvm(7).
616 Hewlett-Packard Company − 3 − HP-UX 11i Version 2: December 2007 Update