1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

RAID: Make "raid10" the default striped + mirror segment type

When both the '-i' and '-m' arguments are specified on the command
line, use the "raid10" segment type.  This way, the native RAID10
personality is used through dm-raid rather than layering a mirror
on striped LVs.  If the old behavior is desired, the '--type'
argument to use would be "mirror" rather than "raid10".
This commit is contained in:
Jonathan Brassow 2013-08-06 14:15:08 -05:00
parent 7e1083c985
commit c13d1b11b2
2 changed files with 2 additions and 2 deletions

View File

@ -529,7 +529,7 @@ global {
# this setting is not advised. # this setting is not advised.
# Specify the '--type <raid10|mirror>' option to override this default # Specify the '--type <raid10|mirror>' option to override this default
# setting. # setting.
raid10_segtype_default = "mirror" raid10_segtype_default = "raid10"
# The default format for displaying LV names in lvdisplay was changed # The default format for displaying LV names in lvdisplay was changed
# in version 2.02.89 to show the LV name and path separately. # in version 2.02.89 to show the LV name and path separately.

View File

@ -56,7 +56,7 @@
#define DEFAULT_MIRROR_LOG_FAULT_POLICY "allocate" #define DEFAULT_MIRROR_LOG_FAULT_POLICY "allocate"
#define DEFAULT_MIRROR_IMAGE_FAULT_POLICY "remove" #define DEFAULT_MIRROR_IMAGE_FAULT_POLICY "remove"
#define DEFAULT_MIRROR_MAX_IMAGES 8 /* limited by kernel DM_KCOPYD_MAX_REGIONS */ #define DEFAULT_MIRROR_MAX_IMAGES 8 /* limited by kernel DM_KCOPYD_MAX_REGIONS */
#define DEFAULT_RAID10_SEGTYPE "mirror" #define DEFAULT_RAID10_SEGTYPE "raid10"
#define DEFAULT_RAID_FAULT_POLICY "warn" #define DEFAULT_RAID_FAULT_POLICY "warn"
#define DEFAULT_DMEVENTD_RAID_LIB "libdevmapper-event-lvm2raid.so" #define DEFAULT_DMEVENTD_RAID_LIB "libdevmapper-event-lvm2raid.so"
#define DEFAULT_DMEVENTD_MIRROR_LIB "libdevmapper-event-lvm2mirror.so" #define DEFAULT_DMEVENTD_MIRROR_LIB "libdevmapper-event-lvm2mirror.so"