Skip to contentSkip to conversation

master - pvmove: correcting read_ahead setting

PATCH Zdenek Kabelac 1 participant 1 message Aug 20, 2019

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=0451225c1997273ffaa36c3eb595eae7737b7dda
Commit:        0451225c1997273ffaa36c3eb595eae7737b7dda
Parent:        a53c157db0110e21aaa9971f0fec7ac19afe91dd
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Tue Aug 20 12:30:25 2019 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Tue Aug 20 12:37:32 2019 +0200

pvmove: correcting read_ahead setting

When pvmove is finished, we do a tricky operation since we try to resume multiple different device that were all joined into 1 big tree.

Currently we use the infromation from existing live DM table, where we can get list of all holders of pvmove device.
We look for these nodes (by uuid) in new metadata, and we do now a full regular device add into dm tree structure. All devices should be already PRELOAD with correct table before entering suspend state, however for correctly working readahead we need to put correct info also into RESUME tree. Since table are preloaded, the same table is skip and resume, but correct read ahead is now set.

---
 WHATS_NEW                  |    1 +
 lib/activate/dev_manager.c |   47 +++++++++++++++++++++++++++++++------------
 2 files changed, 35 insertions(+), 13 deletions(-)
WHATS_NEW +1 -0
index 63c3c27..91543a7 100644
@@ -1,5 +1,6 @@
 Version 2.03.06 - 
 ================================
+  Correctly set read_ahead for LVs when pvmove is finished.
   Remove unsupported OPTIONS+="event_timeout" udev rule from 11-dm-lvm.rules.
   Prevent creating VGs with PVs with different logical block sizes.
   Fix metadata writes from corrupting with large physical block size.
lib/activate/dev_manager.c +34 -13

90 lines not on this page · raw message