summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2022-01-24 14:50:09 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2022-01-26 15:09:58 +0100
commitb95506815fa149cf135687cbe047b7bdfcd6e00f (patch)
tree8d47147133e45cb411b4e3c2c2fd1a40885cd8fc /man
parentd8dbabb28e674e9f2aac2716b235f27f1d333e1a (diff)
downloadlvm2-b95506815fa149cf135687cbe047b7bdfcd6e00f.tar.gz
man: doc writecache profile support
Diffstat (limited to 'man')
-rw-r--r--man/lvmcache.7_main33
1 files changed, 33 insertions, 0 deletions
diff --git a/man/lvmcache.7_main b/man/lvmcache.7_main
index 48cf7b492..8d7d3d17b 100644
--- a/man/lvmcache.7_main
+++ b/man/lvmcache.7_main
@@ -299,6 +299,39 @@ perform. If not done beforehand, the splitcache command enables the
cleaner mode and waits for flushing to complete before detaching the
writecache. Adding cleaner=0 to the splitcache command will skip the
cleaner mode, and any required flushing is performed in device suspend.
+
+.SS dm-writecache using metadata profiles
+
+Writecache allows to set a variety of options. Lots of these settings
+can be specified in lvm.conf or profile settings. You can prepare
+a number of different profiles in the \fI#DEFAULT_SYS_DIR#/profile\fP directory
+and just specify the metadata profile file name when writecaching LV.
+.P
+.I Example
+.nf
+# cat <<EOF > #DEFAULT_SYS_DIR#/profile/cache_writecache.profile
+allocation {
+.RS
+cache_settings {
+.RS
+writecache {
+.RS
+high_watermark=60
+writeback_jobs=1024
+.RE
+}
+.RE
+}
+.RE
+}
+EOF
+.P
+
+# lvcreate -an -L10G --name wcache vg /dev/fast_ssd
+# lvcreate --type writecache -L10G --name main --cachevol wcache \\
+ --metadataprofile cache_writecache vg /dev/slow_hdd
+.fi
+
.
.SS dm-cache with separate data and metadata LVs
.