master - activation: automaticaly discover pvmove holders
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=2a6981a6976368f633942a13cf007b141b2ece0a Commit: 2a6981a6976368f633942a13cf007b141b2ece0a Parent: ddbe763eb81c5f9608ca9ff192bd33d9d37acd77 Author: Zdenek Kabelac <[email protected]> AuthorDate: Fri Nov 24 13:55:42 2017 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Fri Nov 24 16:09:59 2017 +0100
activation: automaticaly discover pvmove holders
When pvmove is finished and does 'suspend/resume' on PVMOVE LV, on resume path committed metadata are already showing 'standalone' pvmove LV prepared just for removal.
However code should be able to 'resume' preloaded LV there were participating in pvmove operation.
Previously this was all done in the 'tools' part of lvm2 code.
So the lvconvert upon pvmove finish had to explicitely call 'resume' on every such LV. Now 'smarted' activation code is able to deduce and combine all information from the active dm table and committed metadata so single call resolves
it all in one go.
Internally holders are detected by reading sysfs directory to capture all needed UUID which are then looked in lvm2 metadata and all such LVs are automatically collected into dmtree.
--- WHATS_NEW | 1 + lib/activate/dev_manager.c | 108 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 109 insertions(+), 0 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.177 - ==================================== + Activation code for pvmove automatically discovers holding LVs for resume. Make a pvmove LV locking holder. Do not change critical section counter on resume path without real resume. Enhance activation code to automatically suspend pvmove participants.
lib/activate/dev_manager.c +108 -0
126 lines not on this page · raw message