summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2015-03-13 12:05:47 +0100
committerPeter Rajnoha <prajnoha@redhat.com>2015-03-13 12:08:20 +0100
commit05f23e77634b2ed3d7861511c07ed73a3bb6d096 (patch)
tree910d364ef4ddeb0fb94ad173d292b7367ec19664
parentc6d96efc38b2d1af9e81d96f27f17eea90fe7623 (diff)
downloadlvm2-05f23e77634b2ed3d7861511c07ed73a3bb6d096.tar.gz
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).
-rw-r--r--WHATS_NEW1
-rw-r--r--scripts/blk_availability_systemd_red_hat.service.in2
2 files changed, 2 insertions, 1 deletions
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