summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJonathan Brassow <jbrassow@redhat.com>2013-02-20 15:10:04 -0600
committerJonathan Brassow <jbrassow@redhat.com>2013-02-20 15:10:04 -0600
commit70f57996b3b9ba126a9cbf69afed79a7d66c793c (patch)
tree77ecfb083c6174ce8e23f11368ca68383fc1ed6c /doc
parentdc2ce71313cef15efa2ba0addfb0f4115af80ca6 (diff)
downloadlvm2-70f57996b3b9ba126a9cbf69afed79a7d66c793c.tar.gz
RAID: Add new 'raid10_segtype_default' setting in lvm.conf
If '--mirrors/-m' and '--stripes/-i' are used together when creating a logical volume, mirrors-over-stripes is currently chosen. The user can override this by using the '--type raid10' option on creation. However, we want a place where we can set the default behavior to 'raid10' explicitly - similar to the "mirror" and "raid1" tunable, mirror_segtype_default. A follow-on patch should use this new setting to change the default from "mirror" to "raid10", as this is the preferred segment type.
Diffstat (limited to 'doc')
-rw-r--r--doc/example.conf.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/example.conf.in b/doc/example.conf.in
index a1ba5f83a..e6494e545 100644
--- a/doc/example.conf.in
+++ b/doc/example.conf.in
@@ -498,6 +498,23 @@ global {
# setting.
mirror_segtype_default = "mirror"
+ # 'raid10_segtype_default' determines the segment types used by default
+ # when the '--stripes/-i' and '--mirrors/-m' arguments are both specified
+ # during the creation of a logical volume.
+ # Possible settings include:
+ #
+ # "raid10" - This implementation leverages MD's RAID10 personality through
+ # device-mapper.
+ #
+ # "mirror" - LVM will layer the 'mirror' and 'stripe' segment types. It
+ # will do this by creating a mirror on top of striped sub-LVs;
+ # effectively creating a RAID 0+1 array. This is suboptimal
+ # in terms of providing redunancy and performance. Changing to
+ # this setting is not advised.
+ # Specify the '--type <raid10|mirror>' option to override this default
+ # setting.
+ raid10_segtype_default "mirror"
+
# The default format for displaying LV names in lvdisplay was changed
# in version 2.02.89 to show the LV name and path separately.
# Previously this was always shown as /dev/vgname/lvname even when that