mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +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
|
.br
|
||||||
|
|
||||||
.B lvcreate
|
.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
|
.RB [ \-i | \-\-stripes
|
||||||
.IR Stripes
|
.IR Stripes
|
||||||
.RB [ \-I | \-\-stripesize
|
.RB [ \-I | \-\-stripesize
|
||||||
.IR StripeSize ]]
|
.IR StripeSize ]]
|
||||||
.RB [ \-l | \-\-extents
|
|
||||||
.IR LogicalExtentsNumber [ % { VG | FREE | ORIGIN }]
|
|
||||||
|
|
|
||||||
.BR \-L | \-\-size
|
|
||||||
.IR LogicalVolumeSize [ bBsSkKmMgGtTpPeE ]]
|
|
||||||
.RB [ \-c | \-\-chunksize
|
.RB [ \-c | \-\-chunksize
|
||||||
.IR ChunkSize ]
|
.IR ChunkSize ]
|
||||||
|
.RB [ \-\-poolmetadatasize
|
||||||
|
.IR MetadataSize [ bBsSkKmMgGt ]]]
|
||||||
|
.RB [ \-\-thinpool
|
||||||
|
.IR ThinPoolLogicalVolumeName [ Path ]]
|
||||||
.RB [ \-V | \-\-virtualsize
|
.RB [ \-V | \-\-virtualsize
|
||||||
.IR VirtualSize ]
|
.IR VirtualSize [ bBsSkKmMgGtTpPeE ]]
|
||||||
.RB [ \-n | \-\-name
|
.RB [ \-n | \-\-name
|
||||||
.IR ThinLogicalVolumeName ]
|
.IR ThinLogicalVolumeName [ Path ]]
|
||||||
.RB [ \-T | \-\-thin
|
|
||||||
.IR VolumeGroupName [/ ThinPoolLogicalVolumeName
|
|
||||||
|
|
|
||||||
.B \-\-thinpool
|
|
||||||
.IR ThinPoolLogicalVolumeName ]]
|
|
||||||
.br
|
.br
|
||||||
|
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
@ -234,6 +235,12 @@ is specified.
|
|||||||
Set access permissions to read only or read and write.
|
Set access permissions to read only or read and write.
|
||||||
.br
|
.br
|
||||||
Default is read and write.
|
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
|
.TP
|
||||||
.IR \fB\-r ", " \fB\-\-readahead " {" ReadAheadSectors | auto | none }
|
.IR \fB\-r ", " \fB\-\-readahead " {" ReadAheadSectors | auto | none }
|
||||||
Set read ahead sector count of this logical volume.
|
Set read ahead sector count of this logical volume.
|
||||||
@ -269,17 +276,24 @@ of space.
|
|||||||
.TP
|
.TP
|
||||||
.B \-\-type \fISegmentType
|
.B \-\-type \fISegmentType
|
||||||
Create a logical volume that uses the specified segment type
|
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
|
commandline switch alias that will enable their use (-s is an alias for
|
||||||
--type snapshot). However, this argument must be used when no existing
|
--type snapshot). However, this argument must be used when no existing
|
||||||
commandline switch alias is available for the desired type, as is the case
|
commandline switch alias is available for the desired type, as is the case
|
||||||
with "error", "zero", "raid1", "raid4", "raid5", or "raid6".
|
with "error", "zero", "raid1", "raid4", "raid5", or "raid6".
|
||||||
.TP
|
.TP
|
||||||
.BR \-T ", " \-\-thin " " \fIVolumeGroupName [/ \fIThinPoolLogicalVolumeName ]
|
.IR \fB\-T ", " \fB\-\-thin ", " \fB\-\-thinpool " " ThinPoolLogicalVolumeName [ Path ]
|
||||||
Defines the thin pool logical volume.
|
Creates thin pool or thin logical volume or both.
|
||||||
.TP
|
Specifying the optional argument --size will cause the creation of
|
||||||
.BR \-\-thinpool " " \fIThinPoolLogicalVolumeName
|
the thin pool logical volume.
|
||||||
Specifies 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
|
.TP
|
||||||
.IR \fB\-V ", " \fB\-\-virtualsize " " VirtualSize [ bBsSkKmMgGtTpPeE ]
|
.IR \fB\-V ", " \fB\-\-virtualsize " " VirtualSize [ bBsSkKmMgGtTpPeE ]
|
||||||
Create a sparse device of the given size (in MB by default) using a snapshot
|
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
|
.sp
|
||||||
.B lvcreate --type raid5 -L 5G -i 3 -I 64 -n my_lv vg00
|
.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
|
.SH SEE ALSO
|
||||||
.BR lvm (8),
|
.BR lvm (8),
|
||||||
.BR vgcreate (8),
|
.BR vgcreate (8),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user