From 05f23e77634b2ed3d7861511c07ed73a3bb6d096 Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Fri, 13 Mar 2015 12:05:47 +0100 Subject: [PATCH] systemd: blk-availability.service: add After=iscsi-shutdown.service The iscsi-shutdown.service is the one responsible for logging out iscsi sessions so blk-availability.service (running the blkdeactivate script) should be run before that on shutdown (so we need to use After=iscsi-shutdown.service because "After" relates to starting the service and the opposite order is automatically applied on stopping the service at shutdown). --- WHATS_NEW | 1 + scripts/blk_availability_systemd_red_hat.service.in | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index b4fd41560..97b562d0b 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.118 - ================================= + Add After=iscsi-shutdown.service to blk-availability.service systemd unit. Disallow vgconvert from changing metadata format when lvmetad is used. Don't do a full read of VG when creating a new VG with an existing name. Reduce number of VG metadata parsing when looking for vgname on a PV. diff --git a/scripts/blk_availability_systemd_red_hat.service.in b/scripts/blk_availability_systemd_red_hat.service.in index 9c1cb7834..3506738a4 100644 --- a/scripts/blk_availability_systemd_red_hat.service.in +++ b/scripts/blk_availability_systemd_red_hat.service.in @@ -1,6 +1,6 @@ [Unit] Description=Availability of block devices -After=lvm2-activation.service lvm2-lvmetad.service iscsi.service iscsid.service fcoe.service +After=lvm2-activation.service lvm2-lvmetad.service iscsi-shutdown.service iscsi.service iscsid.service fcoe.service DefaultDependencies=no Conflicts=shutdown.target -- 2.43.5