HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)

l
lvcreate(1M) lvcreate(1M)
-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 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 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 Mir-
ror 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 con-
sistency recovery.
n Set Mirror Write Cache to off. Mirror write does not incur an additional
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 suc-
cessful 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 unsuccess-
ful, 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.
-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.
Section 1M446 Hewlett-Packard Company 3 HP-UX 11i Version 1: September 2005