1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/scripts
David Teigland c06d5fe28e add fixed event activation services
Add two new fixed activation services for startup:
lvm-activate-vgs-main and lvm-activate-vgs-last.

The -main service runs early, without service dependencies.
The -last service runs later, after other services have
started (other services that may set up devices for PVs,
like mulitpathd.)

The lvm-activate-vgs services both run "vgchange -aay"
to activate all VGs that are preset and complete at the
time of system startup.  When there are many VGs, these
two vgchange commands will replace many per-VG vgchange
commands.

The last service enables event activation by creating
the file /run/lvm/event-activation-on.  After that,
new devices that appear will be processed by event based
autoactivation commands.  Prior to the existence of the
event-activation-on file, event-based commands do nothing.

lvm.conf event_activation_options can be used to
configure service-based activation only, or event-based
activation only, or the approach described above which
begins with service based activation and then switches
to event-based.

service_only: only the -main and -last services will
activate VGs.  VGs on devices that appear later will
not be autoactivated.

event_only: the -main and -last services will not
activate any VGs, and all VGs will be activated
from per-VG event-based activation commands.

service_to_event: the -main and -last services will
activate VGs that are complete at the time the
services run, and VGs that appear later will be
activated from per-VG event-based activation
commands.
2021-10-15 16:25:01 -05:00
..
lvm2create_initrd doc: change fsf address 2016-01-21 12:11:37 +01:00
.gitignore git: update .gitignore 2021-03-19 23:21:18 +01:00
blk_availability_init_red_hat.in shellcheck: some apostrophe changes and cleanups 2017-10-25 22:02:54 +02:00
blk_availability_systemd_red_hat.service.in add fixed event activation services 2021-10-15 16:25:01 -05:00
blkdeactivate.sh.in blkdeactivate: add missing VDO_AVAILABLE check in deactivate_vdo 2020-06-08 15:41:35 +02:00
cmirrord_init_red_hat.in shellcheck: some apostrophe changes and cleanups 2017-10-25 22:02:54 +02:00
code-stats.rb scripts/code-stats.rb: count files better, handle bad utf8 2018-05-17 09:52:13 +01:00
com.redhat.lvmdbus1.conf lvmdbus: Add new daemon. 2016-02-17 23:53:35 +00:00
com.redhat.lvmdbus1.service.in systemd: use proper sbindir path 2017-10-25 22:02:54 +02:00
dm_event_systemd_red_hat.service.in systemd: remove Install sections from socket-activated services 2017-11-01 15:37:19 +01:00
dm_event_systemd_red_hat.socket.in systemd: use RemoveOnStop for dm-event.socket and lvm2-lvmetad.socket 2014-06-13 15:45:25 +02:00
fsadm.sh shellcheck: updates 2021-04-23 23:00:55 +02:00
gdbinit doc: change fsf address 2016-01-21 12:11:37 +01:00
generator-internals.c generators: avoid contacting syslog with generators 2019-01-08 13:13:54 +01:00
lvm2_activation_generator_systemd_red_hat.c systemd: add missing Before=shutdown.target to LVM2 services to fix shutdown ordering 2019-04-09 12:24:37 +02:00
lvm2_cmirrord_systemd_red_hat.service.in systemd: add missing Before=shutdown.target to LVM2 services to fix shutdown ordering 2019-04-09 12:24:37 +02:00
lvm2_lvmdbusd_systemd_red_hat.service.in systemd: use proper sbindir path 2017-10-25 22:02:54 +02:00
lvm2_lvmpolld_init_red_hat.in shellcheck: some apostrophe changes and cleanups 2017-10-25 22:02:54 +02:00
lvm2_lvmpolld_systemd_red_hat.service.in systemd: add missing Before=shutdown.target to LVM2 services to fix shutdown ordering 2019-04-09 12:24:37 +02:00
lvm2_lvmpolld_systemd_red_hat.socket.in systemd: put back DefaultDependencies=no for lvmpolld socket unit 2019-04-11 12:18:02 +02:00
lvm2_monitoring_init_red_hat.in shellcheck: some apostrophe changes and cleanups 2017-10-25 22:02:54 +02:00
lvm2_monitoring_init_rhel4 doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm2_monitoring_systemd_red_hat.service.in add fixed event activation services 2021-10-15 16:25:01 -05:00
lvm2_tmpfiles_red_hat.conf.in Use 'd' instead of 'D' in tmpfiles configuration to not overwrite any existing directory. 2012-02-23 14:24:30 +00:00
lvm2-pvscan.service.in pvscan service: use StartLimitIntervalSec 2019-02-28 08:50:37 -06:00
lvm_import_vdo.sh shellcheck: warning enhancements 2021-09-21 21:03:47 +02:00
lvm-activate-vgs-last.service.in add fixed event activation services 2021-10-15 16:25:01 -05:00
lvm-activate-vgs-main.service.in add fixed event activation services 2021-10-15 16:25:01 -05:00
lvmdump.sh.in shellcheck: updates 2021-04-23 23:00:55 +02:00
lvmlockd.service.in More cleanup needed for dropped scripts 2018-09-13 11:09:25 -05:00
lvmlocks.service.in Fix scripts/lvmlocks.service.in using nonexistent --lock-opt autowait 2020-04-21 16:52:45 -05:00
Makefile.in add fixed event activation services 2021-10-15 16:25:01 -05:00
relpath.awk doc: change fsf address 2016-01-21 12:11:37 +01:00
vgimportclone.sh shellcheck: updates 2021-04-23 23:00:55 +02:00
VolumeGroup.ocf Add OCF support 2010-11-05 16:18:38 +00:00