stable-2.02 - pvmove: add missing synchronization
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=e5cdb114a6aa5d211e25a0919a28968d64e7cf01 Commit: e5cdb114a6aa5d211e25a0919a28968d64e7cf01 Parent: 73d1646a0049d43edab367e4eb1d9bdcae9071e0 Author: Zdenek Kabelac <[email protected]> AuthorDate: Tue Aug 20 12:23:08 2019 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Tue Aug 20 12:59:05 2019 +0200
pvmove: add missing synchronization
Between 'resume' and 'remove' we need to wait for udev to synchronize, otherwise udev may 'skip' resume event processing if the udev node is already gone.
--- WHATS_NEW | 1 + tools/pvmove_poll.c | 2 ++ 2 files changed, 3 insertions(+), 0 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.186 - ================================ + Add missing device synchronization point before removing pvmove node. 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.
tools/pvmove_poll.c +2 -0
@@ -97,6 +97,8 @@ int pvmove_finish(struct cmd_context *cmd, struct volume_group *vg,if (!lv_update_and_reload (lv_mirr)) return_0; +sync_local_dev_names (cmd); +/* Deactivate mirror LV */ if (!deactivate_lv (cmd, lv_mirr)) { log_error("ABORTING: Unable to deactivate temporary logical "