stable-2.02 - pvmove: correcting read_ahead setting
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=73d1646a0049d43edab367e4eb1d9bdcae9071e0 Commit: 73d1646a0049d43edab367e4eb1d9bdcae9071e0 Parent: 881f49a7676aae2fd35acc390d9882a2e950932c Author: Zdenek Kabelac <[email protected]> AuthorDate: Tue Aug 20 12:30:25 2019 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Tue Aug 20 12:59:05 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
@@ -1,5 +1,6 @@ Version 2.02.186 - ================================ + Correctly set read_ahead for LVs when pvmove is finished. Fix metadata writes from corrupting with large physical block size. Report no_discard_passdown for cache LVs with lvs -o+kernel_discards. Prevent shared active mirror LVs with lvmlockd.
lib/activate/dev_manager.c +34 -13
90 lines not on this page · raw message