HP-UX Reference (11i v1 00/12) - 1M System Administration Commands A-M (vol 3)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1m/!!!intro.1m
________________________________________________________________
___ ___
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 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 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 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.
Section 1M−−430 − 3 − HP-UX Release 11i: December 2000
___
___