Skip to contentSkip to conversation

LVM2 ./WHATS_NEW doc/example.conf.in lib/confi ...

PATCH [email protected] 3 participants 3 messages Feb 27, 2011

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2011-02-27 00:38:32

Modified files:

	.              : WHATS_NEW 
	doc            : example.conf.in 
	lib/config     : defaults.h 
	lib/metadata   : lv_manip.c 

Log message:
Various changes to the allocation algorithms: Expect some fallout. There is a lot to test.

Two new config settings added that are intended to make the code behave closely to the way it did before - worth a try if you find problems.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1926&r2=1.1927
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/doc/example.conf.in.diff?cvsroot=lvm2&r1=1.18&r2=1.19
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/config/defaults.h.diff?cvsroot=lvm2&r1=1.71&r2=1.72
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/lv_manip.c.diff?cvsroot=lvm2&r1=1.248&r2=1.249

WHATS_NEW +4 -0
@@ -1,5 +1,9 @@
 Version 2.02.85 - 
 ===================================
+  Extend normal policy to allow mirror logs on same devs as images if necessary.
+  Improve cling policy to recognise devs already allocated in the transaction.
+  Improve normal allocation algorithm to include clinging to existing areas.
+  Add allocation/maximise_cling & mirror_logs_require_separate_pvs to lvm.conf.
   Fix metadata balance code to work with recent changes in metadata handling.
   Add old_uuid field to physical_volume and fix pvchange -u for recent changes.
   Allow pvresize on a PV with two metadata areas (for PVs not in a VG).
doc/example.conf.in +13 -0
@@ -171,6 +171,19 @@
 #
 #    cling_tag_list = [ "@site1", "@site2" ]
 #    cling_tag_list = [ "@*" ]
+#
+#    Changes made in version 2.02.85 extended the reach of the 'cling'
+#    policies to detect more situations where data can be grouped
+#    onto the same disks.  Set this to 0 to revert to the previous
+#    algorithm.
+#
+#    maximise_cling = 1
+#
+#    Set to 1 to guarantee that mirror logs will always be placed on 
+#    different PVs from the mirror images.  This was the default
+#    until version 2.02.85.
+#
+#    mirror_logs_require_separate_pvs = 0
 #}
 
 # This section that allows you to configure the nature of the
lib/config/defaults.h +2 -0
@@ -79,6 +79,8 @@
 #define DEFAULT_MAX_PV 0
 #define DEFAULT_MAX_LV 0
 #define DEFAULT_ALLOC_POLICY ALLOC_NORMAL
+#define DEFAULT_MIRROR_LOGS_REQUIRE_SEPARATE_PVS 0
+#define DEFAULT_MAXIMISE_CLING 1
 #define DEFAULT_CLUSTERED 0
 
 #define DEFAULT_MSG_PREFIX "  "
lib/metadata/lv_manip.c +595 -287

1,099 lines not on this page · raw message

#1 lore raw
Quoted 6 lines · agk at sourceware.org

Log message:
Various changes to the allocation algorithms: Expect some fallout. There is a lot to test.

Two new config settings added that are intended to make the code behave closely to the way it did before - worth a try if you find problems.

if the new node is correct, can you please fix also tests to not fail?

no change in man page (--alloc description) needed here?

Milan

#2 lore raw
Quoted 1 line · Milan Broz

no change in man page (--alloc description) needed here?

No changes were made to the formal definitions of the alloc modes. (Log placement was deliberately never documented.)
So there's only lvm.conf to update (which is probably still missing several other changes too) and an lvcreate example that somehow got in and went beyond the strict policy defition.

But I want to get more feedback on the change first before tidying all that up, in case people do find they need easy command line control - I'm hoping they won't, and the latest implementation of the normal policy's "common sense" behaves better.

Alasdair