HP-UX Reference (11i v2 07/12) - 1M System Administration Commands A-M (vol 3)
l
lvcreate(1M) lvcreate(1M)
is not, the stripe size is set to 8 kilobytes.
-I stripe_size Set the size in kilobytes of the stripe. stripe_size should be a power of
2 in
the range
4 to 32768.If-I
is provided and -i is not, the command will
fail and return an error. Stripe size should be a value less than or equal to
physical extent size and must be specified with the
-i option.
-l le_number Allocate space to the logical volume, specified in logical extents. le_number
is a decimal value in the range
1 to 65535 (the implementation limit).
The default is described above.
Either
-l or -L can be specified, but not both.
-L lv_size Allocate space to the logical volume, specified in megabytes. lv_size is a
decimal value in the range
1 to 16776960
(the implementation limit).
lv_size is rounded up to the nearest multiple of the logical extent size,
equivalent to the physical extent size defined for the volume group by the
vgcreate command (see vgcreate(1M)). The default is described above.
Either the -l or the -L option can be specified, but not both.
-m mirror_copies Set the number of mirror copies allocated for each logical extent. A mirror
copy contains the same data as the original. mirror_copies can have the
value
1 or 2. The default value is 0 (no mirror copies).
-M mirror_write_cache Set the Mirror Write Cache flag. mirror_write_cache can have one of the
following values:
y Set Mirror Write Cache on. This is the default.
Every write to a mirror copy is recorded in the Mirror Write Cache.
The Mirror Consistency Record in the Volume Group Reserved Area
on the disk is updated whenever there is a write to a logical track
group that is not already recorded in the cache. This allows LVM to
determine whether all the mirror copies are identical, even across sys-
tem crashes. When the volume group is activated, the Mirror Con-
sistency Record is used to perform mirror consistency recovery.
n Set Mirror Write Cache to off. Mirror write does not incur an addi-
tional write to the Mirror Consistency Record.
-n lv_name Set the name of the new logical volume to lv_name, where lv_name is a
simple file name, not a path name. The default is described above.
-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.
r Set the access permission to read-only.
-r relocate 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.
However 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 relocated
depending upon the value of this flag. Although no new relocations
will be done, any bad block relocations present on a logical volume
that was 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.
524 Hewlett-Packard Company − 3 − HP-UX 11i Version 2: December 2007 Update