vgcreate.1m (2010 09)
v
vgcreate(1M) vgcreate(1M)
The order in which the paths are listed is important. The first path becomes
the primary link to the physical volume, and the second becomes an
alternate link to the physical volume. The primary link
is the
default path used to access the physical volume. (see WARNINGS section). If
the
primary link becomes unavailable, LVM automatically switches to the
alternate link to access the physical volume. Currently, LVM supports a
maximum of 8 paths to a physical volume (7 alternate and one primary).
vg_name The path name of a subdirectory of the
/dev directory. vg_name must be
empty except for a character special file named
group. Typically, this direc-
tory name is in the form
/dev/vgNN, where NN numbers sequentially from
00.
-A autobackup Set automatic backup for this invocation of this command. autobackup can
have one of the following values:
y Automatically back up configuration changes made to the volume group.
This is the default.
After this command executes, the
vgcfgbackup command (see
vgcfgbackup (1M)) is executed for the volume group.
n Do not back up configuration changes this time.
-e max_pe Only applicable to volume groups version 1.0. Set the maximum number of
physical extents that can be allocated from any of the physical volumes in the
volume group. The default value for max_pe is 1016. However, if the size of
any physical volume exceeds 1016 times the pe_size , the default value for
max_pe is adjusted to match the physical volume size. The maximum number
of physical extents can be a value in the range 1 to 65535.
-f Only applicable to volume groups version 1.0. This option will force a volume
group to be created with a physical volume which has alternate block(s)
already allocated, (that is, this physical volume was not initialized using
pvcreate -f.) This option should be used with 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. Potential 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 Only applicable to volume groups version 1.0. 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 Only applicable to volume groups version 1.0. 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) for volume groups version
1.0.
2 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: September 2010