HP-UX Reference (11i v2 03/08) - 1M System Administration Commands A-M (vol 3)
l
lvcreate(1M) lvcreate(1M)
-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.
-i and -I must be specified together.
-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 implementa-
tion 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 16777216
(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 mir-
ror 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
system crashes. When the volume group is activated, the Mirror
Consistency 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 bad block relocation policy. relocate can have one of the following
values:
y Allow bad block relocation. Upon a media failure (detection of a
bad block of data on disk), LVM will mark the failed block in the
Bad Block Directory, and attempt to relocate the block to a new
location on disk. If relocation is successful then no error will be
returned, and future I/O requests which contain the bad block will
be directed to the new location. If relocation is unsuccessful, an I/O
error will be returned, and subsequent I/O requests containing the
bad block will again attempt relocation. This is the default.
n Prevent bad block relocation. Upon a media failure, LVM will
mark the failed block as bad in the Bad Block Directory, but will
NOT attempt to relocate the bad block to a new location on disk.
Future I/O requests which contain the bad block will return with an
I/O error. No attempt will be made to access the bad block.
N Disable bad block relocation and the Bad Block Directory. Upon a
media failure, LVM will NOT attempt to relocate the bad block. In
addition it will NOT enter the block in the Bad Block Directory.
LVM will have no record of the block being bad, and will attempt to
access it on future I/O requests.
HP-UX 11i Version 2: August 2003 − 3 − Hewlett-Packard Company Section 1M−−391