summaryrefslogtreecommitdiffstats
path: root/doc/example.conf.in
diff options
context:
space:
mode:
authorPetr Rockai <prockai@redhat.com>2010-10-15 16:28:14 +0000
committerPetr Rockai <prockai@redhat.com>2010-10-15 16:28:14 +0000
commita341cab721f0a0be57bfff105ceea6be9efe7759 (patch)
treeffd1f7b2a16695180194d3cf3d5b596032fe7246 /doc/example.conf.in
parent501d5786a970ba4d9a7e1a8b7c510dc44a37fec4 (diff)
downloadlvm2-a341cab721f0a0be57bfff105ceea6be9efe7759.tar.gz
lvm2-a341cab721f0a0be57bfff105ceea6be9efe7759.tar.xz
lvm2-a341cab721f0a0be57bfff105ceea6be9efe7759.zip
Implement automatic snapshot extension with dmeventd, and add two new options
to lvm.conf in the activation section: 'snapshot_autoextend_threshold' and 'snapshot_autoextend_percent', that define how to handle automatic snapshot extension. The former defines when the snapshot should be extended: when its space usage exceeds this many percent. The latter defines how much extra space should be allocated for the snapshot, in percent of its current size.
Diffstat (limited to 'doc/example.conf.in')
-rw-r--r--doc/example.conf.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/example.conf.in b/doc/example.conf.in
index 4b461684..e71672be 100644
--- a/doc/example.conf.in
+++ b/doc/example.conf.in
@@ -428,6 +428,25 @@ activation {
mirror_log_fault_policy = "allocate"
mirror_image_fault_policy = "remove"
+ # 'snapshot_autoextend_threshold' and 'snapshot_autoextend_percent' define
+ # how to handle automatic snapshot extension. The former defines when the
+ # snapshot should be extended: when its space usage exceeds this many
+ # percent. The latter defines how much extra space should be allocated for
+ # the snapshot, in percent of its current size.
+ #
+ # For example, if you set snapshot_autoextend_threshold to 70 and
+ # snapshot_autoextend_percent to 20, whenever a snapshot exceeds 70% usage,
+ # it will be extended by another 20%. For a 1G snapshot, using up 700M will
+ # trigger a resize to 1.2G. When the usage exceeds 840M, the snapshot will
+ # be extended to 1.44G, and so on.
+ #
+ # Setting snapshot_autoextend_threshold to 100 disables automatic
+ # extensions. The minimum value is 50 (A setting below 50 will be treated
+ # as 50).
+
+ snapshot_autoextend_threshold = 100
+ snapshot_autoextend_percent = 20
+
# While activating devices, I/O to devices being (re)configured is
# suspended, and as a precaution against deadlocks, LVM2 needs to pin
# any memory it is using so it is not paged out. Groups of pages that