diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index 783a5420e..df72a25cc 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,5 +1,6 @@ Version 1.02.144 - ====================================== + Use blkdeactivate -r wait in blk-availability systemd service/initscript. Add blkdeactivate -r wait option to wait for MD resync/recovery/reshape. Fix blkdeactivate regression with failing DM/MD devs deactivation (1.02.142). Fix typo in blkdeactivate's '--{dm,lvm,mpath}options' option name. diff --git a/scripts/blk_availability_init_red_hat.in b/scripts/blk_availability_init_red_hat.in index 657616e3c..73d52ac59 100644 --- a/scripts/blk_availability_init_red_hat.in +++ b/scripts/blk_availability_init_red_hat.in @@ -33,7 +33,7 @@ sbindir=@sbindir@ script=blkdeactivate -options="-u -l wholevg -m disablequeueing" +options="-u -l wholevg -m disablequeueing -r wait" LOCK_FILE="/var/lock/subsys/blk-availability" diff --git a/scripts/blk_availability_systemd_red_hat.service.in b/scripts/blk_availability_systemd_red_hat.service.in index cc4c678ac..10c3f44aa 100644 --- a/scripts/blk_availability_systemd_red_hat.service.in +++ b/scripts/blk_availability_systemd_red_hat.service.in @@ -7,7 +7,7 @@ Conflicts=shutdown.target [Service] Type=oneshot ExecStart=/usr/bin/true -ExecStop=@sbindir@/blkdeactivate -u -l wholevg -m disablequeueing +ExecStop=@sbindir@/blkdeactivate -u -l wholevg -m disablequeueing -r wait RemainAfterExit=yes [Install]