lvcreate.1m (2010 09)

l
lvcreate(1M) lvcreate(1M)
-l Allocate space, specified in logical extents, to the logical volume or
snapshot volume.
-l le_number
allocates space to the logical volume, specified in logical extents.
le_number must be at least 1 and no greater than a volume group
version-dependent maximum; use the
lvmadm command to deter-
mine the maximum number of logical extents for the volume group
version.
-l prealloc_le_number
allocates space for a space-efficient snapshot volume.
prealloc_le_number can range from 1 to the number of extent occu-
pied by the original logical volume.
The default, when the
-l option is not used (for creating a logical volume
or snapshot volume), is described above in the DESCRIPTION section.
Either
-l or -L can be specified, but not both.
-L Allocate space, in megabytes, to the logical volume or snapshot volume.
-L lv_size
allocates space to the logical volume, specified in megabytes.
lv_size must be at least 1 and no greater than a volume group
version-dependent maximum; use the
lvmadm command to deter-
mine the maximum size for the volume group version.
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)).
-L prealloc_le_size
allocates space for a space-efficient snapshot volume, specified in
megabytes.
prealloc_le_size can range from 1 to the size of the original logical
volume.
prealloc_le_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.
The default, when the
-L option is not used (for creating logical volume
or snapshot volume) is described above in the DESCRIPTION section.
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 must be at least 1 and no greater than a volume group
version-dependent maximum; use the
lvmadm command to determine
the maximum number of mirror copies for the volume group version.
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.
HP-UX 11i Version 3: September 2010 5 Hewlett-Packard Company 5