lvm2/0002-lvm2-default-allow-changes-with-duplicate-pvs.patch

27 lines
1007 B
Diff
Raw Normal View History

2019-09-30 11:03:04 -04:00
diff --git a/conf/example.conf.in b/conf/example.conf.in
2020-07-16 14:44:15 +08:00
index 7f0a687..39b5507 100644
2019-09-30 11:03:04 -04:00
--- a/conf/example.conf.in
+++ b/conf/example.conf.in
2020-07-16 14:44:15 +08:00
@@ -346,7 +346,7 @@ devices {
2019-09-30 11:03:04 -04:00
# or activating LVs in it while a PV appears on multiple devices.
# Enabling this setting allows the VG to be used as usual even with
# uncertain devices.
- allow_changes_with_duplicate_pvs = 0
+ allow_changes_with_duplicate_pvs = 1
2020-07-16 14:44:15 +08:00
# Configuration option devices/allow_mixed_block_sizes.
# Allow PVs in the same VG with different logical block sizes.
2019-09-30 11:03:04 -04:00
diff --git a/lib/config/defaults.h b/lib/config/defaults.h
2020-07-16 14:44:15 +08:00
index be4f5ff..3f0539e 100644
2019-09-30 11:03:04 -04:00
--- a/lib/config/defaults.h
+++ b/lib/config/defaults.h
2020-07-16 14:44:15 +08:00
@@ -56,7 +56,7 @@
2019-09-30 11:03:04 -04:00
#define DEFAULT_DATA_ALIGNMENT_DETECTION 1
#define DEFAULT_ISSUE_DISCARDS 0
#define DEFAULT_PV_MIN_SIZE_KB 2048
-#define DEFAULT_ALLOW_CHANGES_WITH_DUPLICATE_PVS 0
+#define DEFAULT_ALLOW_CHANGES_WITH_DUPLICATE_PVS 1
#define DEFAULT_LOCKING_LIB "liblvm2clusterlock.so"
#define DEFAULT_ERROR_WHEN_FULL 0