mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Thin lvcreate man update
Added poolmetadatasize options Add an example.
This commit is contained in:
parent
83baa0b778
commit
7060c9d942
@ -79,26 +79,27 @@ lvcreate \- create a logical volume in an existing volume group
|
||||
.br
|
||||
|
||||
.B lvcreate
|
||||
.BR \-T | \-\-thin
|
||||
.IR VolumeGroupName [ Path ][/ ThinPoolLogicalVolumeName
|
||||
.RB [{ \-l | \-\-extents
|
||||
.IR LogicalExtentsNumber [ % { VG | FREE | ORIGIN }]
|
||||
|
|
||||
.BR \-L | \-\-size
|
||||
.IR LogicalVolumeSize [ bBsSkKmMgGtTpPeE ]}
|
||||
.RB [ \-i | \-\-stripes
|
||||
.IR Stripes
|
||||
.RB [ \-I | \-\-stripesize
|
||||
.IR StripeSize ]]
|
||||
.RB [ \-l | \-\-extents
|
||||
.IR LogicalExtentsNumber [ % { VG | FREE | ORIGIN }]
|
||||
|
|
||||
.BR \-L | \-\-size
|
||||
.IR LogicalVolumeSize [ bBsSkKmMgGtTpPeE ]]
|
||||
.RB [ \-c | \-\-chunksize
|
||||
.IR ChunkSize ]
|
||||
.RB [ \-\-poolmetadatasize
|
||||
.IR MetadataSize [ bBsSkKmMgGt ]]]
|
||||
.RB [ \-\-thinpool
|
||||
.IR ThinPoolLogicalVolumeName [ Path ]]
|
||||
.RB [ \-V | \-\-virtualsize
|
||||
.IR VirtualSize ]
|
||||
.IR VirtualSize [ bBsSkKmMgGtTpPeE ]]
|
||||
.RB [ \-n | \-\-name
|
||||
.IR ThinLogicalVolumeName ]
|
||||
.RB [ \-T | \-\-thin
|
||||
.IR VolumeGroupName [/ ThinPoolLogicalVolumeName
|
||||
|
|
||||
.B \-\-thinpool
|
||||
.IR ThinPoolLogicalVolumeName ]]
|
||||
.IR ThinLogicalVolumeName [ Path ]]
|
||||
.br
|
||||
|
||||
.SH DESCRIPTION
|
||||
@ -234,6 +235,12 @@ is specified.
|
||||
Set access permissions to read only or read and write.
|
||||
.br
|
||||
Default is read and write.
|
||||
.TP
|
||||
.IR \fB\-\-poolmetadatasize " " MetadataSize [ bBsSkKmMgG ]
|
||||
Set the size of thin pool's metadata logical volume.
|
||||
Supported value is in range between 2MiB and 16GiB.
|
||||
Default value is (Pool_LV_size / Pool_LV_chunk_size * 64b).
|
||||
|
||||
.TP
|
||||
.IR \fB\-r ", " \fB\-\-readahead " {" ReadAheadSectors | auto | none }
|
||||
Set read ahead sector count of this logical volume.
|
||||
@ -269,17 +276,24 @@ of space.
|
||||
.TP
|
||||
.B \-\-type \fISegmentType
|
||||
Create a logical volume that uses the specified segment type
|
||||
(e.g. "raid5", "mirror", "snapshot"). Many segment types have a
|
||||
(e.g. "raid5", "mirror", "snapshot", "thin", "thin_pool").
|
||||
Many segment types have a
|
||||
commandline switch alias that will enable their use (-s is an alias for
|
||||
--type snapshot). However, this argument must be used when no existing
|
||||
commandline switch alias is available for the desired type, as is the case
|
||||
with "error", "zero", "raid1", "raid4", "raid5", or "raid6".
|
||||
.TP
|
||||
.BR \-T ", " \-\-thin " " \fIVolumeGroupName [/ \fIThinPoolLogicalVolumeName ]
|
||||
Defines the thin pool logical volume.
|
||||
.TP
|
||||
.BR \-\-thinpool " " \fIThinPoolLogicalVolumeName
|
||||
Specifies the thin pool logical volume.
|
||||
.IR \fB\-T ", " \fB\-\-thin ", " \fB\-\-thinpool " " ThinPoolLogicalVolumeName [ Path ]
|
||||
Creates thin pool or thin logical volume or both.
|
||||
Specifying the optional argument --size will cause the creation of
|
||||
the thin pool logical volume.
|
||||
Specifying the optional argument --virtualsize will cause the creation of
|
||||
the thin logical volume from given thin pool volume.
|
||||
Specifying both arguments will cause the creation of both
|
||||
thin pool and thin volume using this pool.
|
||||
Requires device mapper kernel driver for thin provisioning
|
||||
from kernel 3.2 or newer.
|
||||
|
||||
.TP
|
||||
.IR \fB\-V ", " \fB\-\-virtualsize " " VirtualSize [ bBsSkKmMgGtTpPeE ]
|
||||
Create a sparse device of the given size (in MB by default) using a snapshot
|
||||
@ -344,6 +358,12 @@ a parity drive for a total of 4 devices) and a stripesize of 64kiB.
|
||||
.sp
|
||||
.B lvcreate --type raid5 -L 5G -i 3 -I 64 -n my_lv vg00
|
||||
|
||||
Creates 100MiB pool logical volume for thin provisioning
|
||||
build with 2 stripes 64KiB and chunk size 128KiB together with
|
||||
1TiB thin provisioned logical volume "vg00/thin_lv".
|
||||
.sp
|
||||
.B lvcreate -i 2 -I 64 -c 256 -L100M -T vg00/pool -V 1T --name thin_lv
|
||||
|
||||
.SH SEE ALSO
|
||||
.BR lvm (8),
|
||||
.BR vgcreate (8),
|
||||
|
Loading…
Reference in New Issue
Block a user