1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +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:
David Teigland 2014-10-06 16:12:51 -05:00
parent 97b16ec26f
commit 31f10a0554

View File

@ -276,6 +276,7 @@ the same VG.
.br
.B lvconvert --type cache\-pool VG/CacheDataLV
.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
.RS
.B \-\-cachepool VG/CachePoolLV SlowPVs
.B \-\-cachepool VG/CachePoolLV VG SlowPVs
.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
.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
.BR lvm.conf (5),
.BR lvchange (8),