mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-04 09:18:36 +03:00
man: lvmcache mention automatic pool conversion
When converting an origin to a cache lv, lvm will automatically convert the specified cache pool into a cache pool if it is not already a cache pool.
This commit is contained in:
parent
97b16ec26f
commit
31f10a0554
@ -276,6 +276,7 @@ the same VG.
|
|||||||
.br
|
.br
|
||||||
.B lvconvert --type cache\-pool VG/CacheDataLV
|
.B lvconvert --type cache\-pool VG/CacheDataLV
|
||||||
|
|
||||||
|
|
||||||
.SS Create a new cache LV without an existing origin LV
|
.SS Create a new cache LV without an existing origin LV
|
||||||
|
|
||||||
\&
|
\&
|
||||||
@ -286,7 +287,7 @@ single step.
|
|||||||
|
|
||||||
.B lvcreate \-\-type cache \-L LargeSize \-n CacheLV
|
.B lvcreate \-\-type cache \-L LargeSize \-n CacheLV
|
||||||
.RS
|
.RS
|
||||||
.B \-\-cachepool VG/CachePoolLV SlowPVs
|
.B \-\-cachepool VG/CachePoolLV VG SlowPVs
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
|
|
||||||
@ -301,6 +302,32 @@ LV, a cache metadata LV, and combines the two into a cache pool LV.
|
|||||||
.B lvcreate \-\-type cache\-pool \-L CacheSize \-n CachePoolLV VG FastPVs
|
.B lvcreate \-\-type cache\-pool \-L CacheSize \-n CachePoolLV VG FastPVs
|
||||||
|
|
||||||
|
|
||||||
|
.SS Convert existing LVs to cache types
|
||||||
|
|
||||||
|
\&
|
||||||
|
|
||||||
|
When an existing origin LV is converted to a cache LV, the specified cache
|
||||||
|
pool may be a normal LV, rather than a cache pool LV. In this case, lvm
|
||||||
|
will first convert the normal LV to a cache pool LV. A pool metadata LV
|
||||||
|
may optionally be specified.
|
||||||
|
|
||||||
|
.B lvcreate -n OriginLV -L LargeSize VG
|
||||||
|
.br
|
||||||
|
.B lvcreate -n CacheDataLV -L CacheSize VG
|
||||||
|
.br
|
||||||
|
.B lvconvert --type cache --cachepool VG/CataDataLV VG/OriginLV
|
||||||
|
|
||||||
|
This is equivalent to:
|
||||||
|
|
||||||
|
.B lvcreate -n OriginLV -L LargeSize VG
|
||||||
|
.br
|
||||||
|
.B lvcreate -n CacheDataLV -L CacheSize VG
|
||||||
|
.br
|
||||||
|
.B lvconvert --type cache-pool VG/CacheDataLV
|
||||||
|
.br
|
||||||
|
.B lvconvert --type cache --cachepool VG/CachePoolLV VG/OriginLV
|
||||||
|
|
||||||
|
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR lvm.conf (5),
|
.BR lvm.conf (5),
|
||||||
.BR lvchange (8),
|
.BR lvchange (8),
|
||||||
|
Loading…
Reference in New Issue
Block a user