mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
cache: man updates
Better man for cachepolicy and cachesettings.
This commit is contained in:
parent
feb8e9a790
commit
6cde12a013
@ -162,6 +162,10 @@ lvconvert \(em convert a logical volume from linear to mirror or snapshot
|
|||||||
.IR ChunkSize [ bBsSkKmMgG ]]
|
.IR ChunkSize [ bBsSkKmMgG ]]
|
||||||
.RB [ \-\-cachemode
|
.RB [ \-\-cachemode
|
||||||
.RI { writeback | writethrough }]
|
.RI { writeback | writethrough }]
|
||||||
|
.RB [ \-\-cachepolicy
|
||||||
|
.IR policy ]
|
||||||
|
.RB [ \-\-cachesettings
|
||||||
|
.IR key=value ]
|
||||||
.RB [ \-\-poolmetadata
|
.RB [ \-\-poolmetadata
|
||||||
.IR CachePoolMetadataLogicalVolume { Name | Path }
|
.IR CachePoolMetadataLogicalVolume { Name | Path }
|
||||||
|
|
|
|
||||||
@ -222,10 +226,21 @@ Converts logical volume to a cached LV with the use of cache pool
|
|||||||
specified with \fB\-\-cachepool\fP.
|
specified with \fB\-\-cachepool\fP.
|
||||||
For more information on cache pool LVs and cache LVs, see \fBlvmcache\fP(7).
|
For more information on cache pool LVs and cache LVs, see \fBlvmcache\fP(7).
|
||||||
.TP
|
.TP
|
||||||
|
.B \-\-cachepolicy \fIpolicy
|
||||||
|
Only applicable to cached LVs; see also \fBlvmcache(7)\fP. Sets
|
||||||
|
the cache policy. \fImq\fP is the basic policy name. \fIsqm\fP is more advanced
|
||||||
|
version available in newer kernels.
|
||||||
|
.TP
|
||||||
.BR \-\-cachepool " " \fICachePoolLV
|
.BR \-\-cachepool " " \fICachePoolLV
|
||||||
This argument is necessary when converting a logical volume to a cache LV.
|
This argument is necessary when converting a logical volume to a cache LV.
|
||||||
For more information on cache pool LVs and cache LVs, see \fBlvmcache\fP(7).
|
For more information on cache pool LVs and cache LVs, see \fBlvmcache\fP(7).
|
||||||
.TP
|
.TP
|
||||||
|
.BR \-\-cachesettings " " \fIkey=value
|
||||||
|
Only applicable to cached LVs; see also \fBlvmcache(7)\fP. Sets
|
||||||
|
the cache tunable settings. In most use-cases, default values should be adequate.
|
||||||
|
Special string value \fIdefault\fP switches setting back to its default kernel value
|
||||||
|
and removes it from the list of settings stored in lvm2 metadata.
|
||||||
|
.TP
|
||||||
.BR \-m ", " \-\-mirrors " " \fIMirrors
|
.BR \-m ", " \-\-mirrors " " \fIMirrors
|
||||||
Specifies the degree of the mirror you wish to create.
|
Specifies the degree of the mirror you wish to create.
|
||||||
For example, "\fB\-m 1\fP" would convert the original logical
|
For example, "\fB\-m 1\fP" would convert the original logical
|
||||||
@ -496,7 +511,7 @@ See \fBlvmthin\fP(7) for more info about thin provisioning support.
|
|||||||
Uncaches \fICacheLogicalVolume\fP.
|
Uncaches \fICacheLogicalVolume\fP.
|
||||||
Before the volume becomes uncached, cache is flushed.
|
Before the volume becomes uncached, cache is flushed.
|
||||||
Unlike with \fB\-\-splitcache\fP the cache pool volume is removed.
|
Unlike with \fB\-\-splitcache\fP the cache pool volume is removed.
|
||||||
This option could seen as an inverse of \fB\-\-cache\fP.
|
This option could be seen as an inverse of \fB\-\-cache\fP.
|
||||||
|
|
||||||
.SH Examples
|
.SH Examples
|
||||||
Converts the linear logical volume "vg00/lvol1" to a two-way mirror
|
Converts the linear logical volume "vg00/lvol1" to a two-way mirror
|
||||||
|
@ -13,13 +13,13 @@ lvcreate \- create a logical volume in an existing volume group
|
|||||||
.RI { y | n }]
|
.RI { y | n }]
|
||||||
.RB [ \-H | \-\-cache ]
|
.RB [ \-H | \-\-cache ]
|
||||||
.RB [ \-\-cachemode
|
.RB [ \-\-cachemode
|
||||||
.RI { writeback | writethrough }]
|
.RI { passthrough | writeback | writethrough }]
|
||||||
.RB [ \-\-cachepolicy
|
.RB [ \-\-cachepolicy
|
||||||
.IR policy ]
|
.IR policy ]
|
||||||
.RB [ \-\-cachesettings
|
|
||||||
.IR key=value ]
|
|
||||||
.RB [ \-\-cachepool
|
.RB [ \-\-cachepool
|
||||||
.IR CachePoolLogicalVolume { Name | Path }
|
.IR CachePoolLogicalVolume { Name | Path }
|
||||||
|
.RB [ \-\-cachesettings
|
||||||
|
.IR key=value ]
|
||||||
.RB [ \-c | \-\-chunksize
|
.RB [ \-c | \-\-chunksize
|
||||||
.IR ChunkSize [ bBsSkKmMgG ]]
|
.IR ChunkSize [ bBsSkKmMgG ]]
|
||||||
.RB [ \-\-commandprofile
|
.RB [ \-\-commandprofile
|
||||||
@ -188,7 +188,7 @@ See \fBlvmcache\fP(7) for more info about caching support.
|
|||||||
Note that the cache segment type requires a dm-cache kernel module version
|
Note that the cache segment type requires a dm-cache kernel module version
|
||||||
1.3.0 or greater.
|
1.3.0 or greater.
|
||||||
.TP
|
.TP
|
||||||
.IR \fB\-\-cachemode " {" writeback | writethrough }
|
.IR \fB\-\-cachemode " {" passthrough | writeback | writethrough }
|
||||||
Specifying a cache mode determines when the writes to a cache LV
|
Specifying a cache mode determines when the writes to a cache LV
|
||||||
are considered complete. When \fIwriteback\fP is specified, a write is
|
are considered complete. When \fIwriteback\fP is specified, a write is
|
||||||
considered complete as soon as it is stored in the cache pool LV.
|
considered complete as soon as it is stored in the cache pool LV.
|
||||||
@ -198,10 +198,21 @@ While \fIwritethrough\fP may be slower for writes, it is more
|
|||||||
resilient if something should happen to a device associated with the
|
resilient if something should happen to a device associated with the
|
||||||
cache pool LV.
|
cache pool LV.
|
||||||
.TP
|
.TP
|
||||||
|
.B \-\-cachepolicy \fIpolicy
|
||||||
|
Only applicable to cached LVs; see also \fBlvmcache(7)\fP. Sets
|
||||||
|
the cache policy. \fImq\fP is the basic policy name. \fIsqm\fP is more advanced
|
||||||
|
version available in newer kernels.
|
||||||
|
.TP
|
||||||
.IR \fB\-\-cachepool " " CachePoolLogicalVolume { Name | Path }
|
.IR \fB\-\-cachepool " " CachePoolLogicalVolume { Name | Path }
|
||||||
Specifies the name of cache pool volume name. The other way to specify pool name
|
Specifies the name of cache pool volume name. The other way to specify pool name
|
||||||
is to append name to Volume group name argument.
|
is to append name to Volume group name argument.
|
||||||
.TP
|
.TP
|
||||||
|
.BR \-\-cachesettings " " \fIkey=value
|
||||||
|
Only applicable to cached LVs; see also \fBlvmcache(7)\fP. Sets
|
||||||
|
the cache tunable settings. In most use-cases, default values should be adequate.
|
||||||
|
Special string value \fIdefault\fP switches setting back to its default kernel value
|
||||||
|
and removes it from the list of settings stored in lvm2 metadata.
|
||||||
|
.TP
|
||||||
.BR \-c ", " \-\-chunksize " " \fIChunkSize [ \fIbBsSkKmMgG ]
|
.BR \-c ", " \-\-chunksize " " \fIChunkSize [ \fIbBsSkKmMgG ]
|
||||||
Gives the size of chunk for snapshot, cache pool and thin pool logical volumes.
|
Gives the size of chunk for snapshot, cache pool and thin pool logical volumes.
|
||||||
Default unit is in kilobytes.
|
Default unit is in kilobytes.
|
||||||
@ -251,11 +262,6 @@ Ignore the flag to skip Logical Volumes during activation.
|
|||||||
Use \fB\-\-setactivationskip\fP option to set or reset
|
Use \fB\-\-setactivationskip\fP option to set or reset
|
||||||
activation skipping flag persistently for logical volume.
|
activation skipping flag persistently for logical volume.
|
||||||
.TP
|
.TP
|
||||||
.BR \-\-cachepolicy " " policy ", " \-\-cachesettings " " key=value
|
|
||||||
Only applicable to cached LVs; see also \fBlvmcache(7)\fP. Sets
|
|
||||||
the cache policy and its associated tunable settings. In most use-cases,
|
|
||||||
default values should be adequate.
|
|
||||||
.TP
|
|
||||||
.B \-\-ignoremonitoring
|
.B \-\-ignoremonitoring
|
||||||
Make no attempt to interact with dmeventd unless \fB\-\-monitor\fP
|
Make no attempt to interact with dmeventd unless \fB\-\-monitor\fP
|
||||||
is specified.
|
is specified.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user