HP-UX Reference (11i v1 00/12) - 1M System Administration Commands N-Z (vol 4)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1m/naaagt.1m
________________________________________________________________
___ ___
v
vgcreate(1M) vgcreate(1M)
created physical volume group.
The physical volume group information is stored in an ASCII file,
/etc/lvmpvg . The file can be edited to create a physical volume group
instead of using the vgcreate command. However, ensure that the physical
volumes to be used have already been installed in the volume group prior to
creating the physical volume group.
The physical volume group name must be unique within a volume group
although identical physical volume group names can appear in different volume
groups (see lvmpvg(4) for format details).
-l max_lv Set the maximum number of logical volumes that the volume group is allowed to
contain. The default value for max_lv is 255. The maximum number of logical
volumes can be a value in the range 1 to 255.
-p max_pv Set the maximum number of physical volumes that the volume group is allowed
to contain. The default value for max_pv is 16. The maximum number of physi-
cal volumes can be a value in the range 1 to 255.
-s pe_size Sets the number of megabytes in each physical extent, where pe_size is
expressed in units of megabytes (MB) in the range 1 to 256. pe_size must be
equal to a power of 2 (1, 2, 4, 8, etc.). The default value for pe_size is
4
(four
megabytes).
-x extensibility Set the allocation permission for adding physical extents on the physical volumes
specified by the pv_path parameter. extensibility can have one of the following
values:
y Allow allocation of additional physical extents on the physical volume.
This is the default.
n Prohibit allocation of additional physical extents on the physical
volume. Logical volumes residing on the physical volume can still be
accessed after the volume group has been activated by the
vgchange -a y command.
EXTERNAL INFLUENCES
Environment Variables
LANG determines the language in which messages are displayed.
If LANG is not specified or is null, it defaults to "C" (see lang(5)).
If any internationalization variable contains an invalid setting, all internationalization variables default to
"C" (see environ(5)).
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. The maximum value of NN is con-
trolled by the kernel tunable parameter
maxvgs.
Initialize the disks using pvcreate(1M).
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:
Section 1M1016 2 HP-UX Release 11i: December 2000
___
___