summaryrefslogtreecommitdiff
path: root/scripts/lvm2_monitoring_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-1/+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
* lvm2-monitoring service shouldn't refer to lvmetadDavid Teigland2018-11-151-2/+2
|
* Drop --ignoreskippedcluster optionDavid Teigland2018-06-151-2/+2
| | | | | | | | | | | | | | | | | | | It's no longer needed. Clustered VGs are now handled in the same way as foreign VGs, and as shared VGs that can't be accessed: - A command processing all VGs sees a clustered VG, prints a message ("Skipping clustered VG foo."), skips it, and does not fail. - A command where the clustered VG is explicitly named on the command line, prints a message and fails. "Cannot access clustered VG foo, see lvmlockd(8)." The option is listed in the set of ignored options for the commands that previously accepted it. (Removing it entirely would cause commands/scripts to fail if they set it.)
* systemd: use proper sbindir pathZdenek Kabelac2017-10-251-2/+2
| | | | | | | | | | | | 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
* systemd: use {local,remote}-fs-pre.target instead of {local,remote}-fs.targetPeter Rajnoha2015-09-231-1/+1
| | | | | | | | | | We want most of our units to be started before any local/remote mount points are mounted - we used {local,remote}-fs.target for this purpose before, but it was not 100% correct as there's even {local,remote}-fs-pre.target special systemd unit reserved for this exact purpose. See also man 7 systemd.special and "local-fs-pre.target"/"remote-fs-pre.target" description.
* systemd: stop lvm2-monitor.service before dm-event.servicePeter Rajnoha2015-03-311-1/+1
|
* systemd: remove workaround for lvm2-monitor.service's ExecStop linePeter Rajnoha2014-10-141-2/+1
| | | | | | | | | | | | | | Bug https://bugzilla.redhat.com/show_bug.cgi?id=843587 is handled better now - the hang does not occur anymore. There are still error messages issued though during shutdown if someone stops lvm2-lvmetad.service manually that lvm2-monitor.service depends on (even during shutdown). These errors are correct though and will point to incorrect configuration (still having use_lvmetad=1 in lvm.conf and stopping lvm2-lvmetad.service manually). The workaround to prevent the hang is not needed now. So the '--config "global{use_lvmetad=0}"' is now removed from the lvm2-monitor.service's ExecStop line.
* scripts: use --ignoreskippedcluster in lvm2-monitor initscript/systemd unitPeter Rajnoha2014-02-171-2/+2
| | | | | | | When clustered VG is available in the system but we don't have clustering set up for whatever reason, the lvm2-monitor scripts should not fail completely just because these clustered VGs are skipped during vgs/vgchange calls in lvm2-monitor initscript/systemd unit.
* systemd: remove quotes in lvm2-monitor.service ExecStopPeter Rajnoha2012-11-021-1/+1
|
* systemd: do not remove lvm2-activation.servicePeter Rajnoha2012-11-011-1/+1
| | | | | | | Fix previous commit 360c569ce8f0bfe936d59ca91de2716958550524. Remove only fedora-storage-init/fedora-storage-init-late.service, but not lvm2-activation.service. fedora-storage-init.service fedora-storage-init-late.service
* systemd: various updates and fixesPeter Rajnoha2012-10-301-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | Don't use lvmetad in lvm2-monitor.service ExecStop to avoid a systemd issue. - a systemd design issue while processing dependencies with socket-based activation that ends up with a hang - https://bugzilla.redhat.com/show_bug.cgi?id=843587 (also tracker bug https://bugzilla.redhat.com/show_bug.cgi?id=871527) - not using lvmetad in this case is just a workaround, once the bug above is resolved, we should enable the lvmetad in that specific case Remove dependency on fedora-storage-init.service in lvm2 systemd units. - fedora-storage-init.service and fedora-storage-init-late.service is going to be separated into respective units that belong to each block device subsystem: - mpath + mdraid activated via udev solely - dmraid with its own dmraid-activation.service unit - lvm2 with the lvm2-activation-generator to generate the activation units runtime if lvmetad disabled (global/use_lvmetad=0 set in lvm.conf) and activation done via udev+lvmetad if lvmetad enabled (global/use_lvmetad=1 set in lvm.conf) Depend on lvm2-lvmetad.socket in lvm2-monitor.service systemd unit. - as lvm2-monitor uses lvmetad if lvmetad is enabled
* systemd: add deps to order units more properlyPeter Rajnoha2012-10-121-1/+1
| | | | | | | | | | lvm2-activation-early.service (generated by activation generator) should be ordered before cryptsetup.target. lvm2-monitor.service should be ordered after lvm2-activation.service, if used. The lvm2-activation.service will replace fedora-storage-init.service and fedora-storage-init-late.service in the end, but let's have it prepared now.
* systemd: ensure monitoring is handled after lvmetadPeter Rajnoha2012-07-261-1/+1
| | | | | | | Monitoring is handled using "vgchange --monitor" call. Ensure that lvmetad is up and running at the time of this call to prevent any fallback to direct scan within the vgchange. The same applies for shutdown sequence but the other way round - switch monitoring off and lvmetad afterwards.
* systemd: Add Documentation referencesPeter Rajnoha2012-06-201-0/+1
| | | | These documentation references show up in "systemctl status" output.
* Clean up systemd unit ordering and requirements.Peter Rajnoha2012-02-011-2/+1
|
* Suppress locking error messages in monitoring init scripts.Peter Rajnoha2011-08-111-0/+1
|
* Add systemd unit files for dmeventd.Peter Rajnoha2011-07-281-0/+17