HP-UX Reference (11i v2 03/08) - 1M System Administration Commands N-Z (vol 4)

v
vgcreate(1M) vgcreate(1M)
extreme caution. If the volume group to be created has a different physical
extent size, the alternate block(s) might be inside the user data area. Poten-
tial data corruption could occur.
-g pvg_name Create a new physical volume group with the name pvg_name. All physical
volumes specified in the pv_path parameter become a member of the newly
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 physical 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
Section 1M860 Hewlett-Packard Company 2 HP-UX 11i Version 2: August 2003