lvcreate.1m (2010 09)
l
lvcreate(1M) lvcreate(1M)
n Set Mirror Write Cache to off. Mirror write does not incur an addi-
tional write to the Mirror Consistency Record.
-n Specify the name of the new logical volume or snapshot volume.
-n lv_name
sets the name of the new logical volume to lv_name , where lv_name
is a simple file name, not a path name.
-n snap_lv_name
sets the name of the new snapshot volume to snap_lv_name .
The default, when the
-n option is not used (for logical volume or
snapshot volume) is described above in the DESCRIPTION section.
-p permission Set the access permission. permission can have one of the following
values:
w Set the access permission to read-write. This is the default for the
logical volume.
r Set the access permission to read-only. This is the default for the
snapshot volume.
-P threshold_value Set the percentage threshold value at which increment messages will be
logged in the systems
syslog, and/or the automatic increase of pre-
allocated extents will be triggered.
The value ranges between 1 to 100. If the
auto_prealloc_enabled
flag is set (see the -e option), then at the threshold value, the automatic
increase of pre-allocated extents will be triggered. Note that the number
of pre-allocated extents will be incremented by the threshold value. If
the auto_prealloc_enabled
flag is not set, then at the threshold
value, the increment messages will be logged in the systems
syslog for
the user to take action.
-r relocate This parameter is valid for creating a logical volume within volume
groups version 1.0 only. For volume groups versions 2.0 or higher, it is
ignored and relocation is not supported.
Set the logical volume bad block relocation policy. This is an obsolete
flag available only to provide compatibility with prior HP-UX releases.
The relocate flag can have one of the following values:
y|n|N
This release does not provide the LVM bad block relocation feature;
but for compatibility reasons, the value is maintained as a logical
volume attribute. Displaying the logical volume attributes will
show the value of the flag selected. However, regardless of the
selection, no new relocations will be done.
If the volume group is activated on a different HP-UX release that
provides the bad block relocation feature, bad blocks may be relo-
cated depending upon the value of this flag. Although no new relo-
cations will be done, any bad block relocations present on a logical
volume (activated on HP-UX releases that provided this feature)
will be honored when the volume group is activated on this HP-UX
release.
y is the default value of this flag.
-s strict Set the strict allocation policy. Mirror copies of a logical extent can be
allocated to share or not share the same physical volume or physical
volume group. strict can have one of the following values:
y Set a strict allocation policy. Mirrors of a logical extent cannot
share the same physical volume. This is the default.
g Set a PVG-strict allocation policy. Mirrors of a logical extent can-
not share the same physical volume group. A PVG-strict allocation
policy cannot be set on a logical volume in a volume group that does
6 Hewlett-Packard Company − 6 − HP-UX 11i Version 3: September 2010