summaryrefslogtreecommitdiff
path: root/scripts/blk_availability_systemd_red_hat.service.in
Commit message (Collapse)AuthorAgeFilesLines
* remove static autoactivationDavid Teigland2022-01-271-1/+1
| | | | | | | | | event based autoactivation is now the only method that lvm provides for autoactivation. Setting lvm.conf event_activation=0 can still be used to disable event based autoactivation commands, but doing so will no longer enable static autoactivation.
* systemd: add missing Before=shutdown.target to LVM2 services to fix shutdown ↵Peter Rajnoha2019-04-091-0/+1
| | | | | | | | | | ordering We already used Conflicts=shutdown target to stop LVM2 services on shutdown. But we still missed the ordering - the shutdown.target should be reached only after all the services are really stopped. Reported here: https://github.com/lvmteam/lvm2/issues/17
* blk_availability service drop lvmetadDavid Teigland2018-11-261-1/+1
|
* scripts: add After=rbdmap.service to ↵Peter Rajnoha2018-08-301-1/+1
| | | | | | | | | | | | | {lvm2-activation-net,blk-availability}.service We need to have Ceph RBD devices mapped first before use in a stack where LVM is on top so make sure rbdmap.service is called before generated lvm2-activation-net.service. On shutdown, we need to stop blk-availability first before we stop the rbdmap.service. Resolves: rhbz1623479
* systemd: use proper sbindir pathZdenek Kabelac2017-10-251-1/+1
| | | | | | | | | | | | Replace lowercase @sbindir@ with @SBINDIR@ which contains fully decoded path. Same with @usrsbindir@ which is also used with clvmd and cmirrord. Also handle SYSCONFDIR for EnvironmentFile. Patch fixes generated unit files with strings like: ExecStart=${exec_prefix}/sbin/lvm
* blk-availability: use blkdeactivate -r wait in blk-availability systemd ↵Peter Rajnoha2017-09-211-1/+1
| | | | service/initscript
* blkdeactivate: add -m|--mpathoption disablequeueing and use it for ↵Peter Rajnoha2016-07-121-1/+1
| | | | | | | | | | | | blk-availability systemd service and initscript blkdeactivate -m disablequeueing causes "multipathd disablequeueing maps" call inside blkdeactivate script before deactivating devices. This avoids a situation where blkdeactivate may wait for paths to appear if multipath is set to queueing and there's a stack of other devices and/or mount points on top of such multipath device. See also https://bugzilla.redhat.com/show_bug.cgi?id=1344381.
* systemd: blk-availability.service: add After=iscsi-shutdown.servicePeter Rajnoha2015-03-131-1/+1
| | | | | | | | | 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).
* scripts: blk-availability should be stopped before FCoEPeter Rajnoha2012-10-151-1/+1
|
* scripts: introduce blkdeactivatePeter Rajnoha2012-10-121-0/+14
blkdeactivate - utility to deactivate block devices Traverses the tree of block devices and tries to deactivate them. Currently, it supports device-mapper-based devices together with LVM. See man/blkdeactivate.8 for more info. It is targeted for use during shutdown to properly deactivate the whole block device stack - systemd and init scripts are provided as well. However, it might be used directly on command line too. Please, see the commentary at the top of the blkdeactivate script for dependencies and versions of other utilities required.