1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 18:55:19 +03:00
lvm2/scripts
Ondrej Kozina fd41dd8f9c Add systemd native service for clvmd and cluster activation
The commit splits original clvmd service in two new native services
for systemd enabled systems while original init scripts remain unaltered.

New systemd native services:

  1) clvmd daemon itself (lvm2_clvmd_red_hat.service.in)
  2) (de)activation of clustered VGs (lvm2_cluster_activation_red_hat.service.in)

There're several reasons to split it. First, there's no support for conditional
stop in systemd and AFAIK they don't plan to support it. In other words:
if the deactivation fails for some reason, systemd doesn't care and will simply
kill all remaining processes in original cgroup (by default). Killing the
remaining procs can be suppressed however it doesn't solve the following problem:

You can't repeat the stop command of a failed service. The repeated stop command
is simply not propagated to the service in a failed state. You would have to start
and then try to stop the service again. Unfortunately, this can't be done while
the daemon is still running (and we need the daemon to stay active until all
clustered VGs are deactivated properly).

In a separated setup we need only to restart the failed activation service and
that's fine.
2014-02-10 17:13:49 +01:00
..
lvm2create_initrd Add .gitignore files for an in-source-tree build. 2012-06-08 16:26:21 +01:00
.gitignore More .gitignore files for an in-source-tree build. 2012-06-08 16:34:43 +01:00
blk_availability_init_red_hat.in scripts: blk-availability - use full name for clarity 2012-10-15 16:10:58 +02:00
blk_availability_systemd_red_hat.service.in scripts: blk-availability should be stopped before FCoE 2012-10-15 15:00:12 +02:00
blkdeactivate.sh.in blkdeactivate: fix endless loop if device(s) given and unable to umount/deactivate 2013-10-22 16:24:39 +02:00
clvmd_fix_conf.sh Use /bin/bash for scripts with bashisms 2010-05-14 11:33:20 +00:00
clvmd_init_red_hat.in initscripts: add pidfile reference in chkconfig header for clvmd and cmirrord 2013-06-07 14:07:56 +02:00
cmirrord_init_red_hat.in initscripts: add pidfile reference in chkconfig header for clvmd and cmirrord 2013-06-07 14:07:56 +02:00
dm_event_systemd_red_hat.service.in dmeventd: fix dmeventd -R to work properly with systemd 2014-02-06 17:15:19 +01:00
dm_event_systemd_red_hat.socket.in systemd: add doc reference in dm-event.socket 2012-06-29 13:54:35 +02:00
fsadm.sh fsadm: use xfs_repair when available 2014-01-20 11:57:39 +01:00
gdbinit RAID: Add writemostly/writebehind support for RAID1 2013-04-15 13:59:46 -05:00
lvm2_activation_generator_systemd_red_hat.c systemd: run lvm2-activation-net.service after lvm2-activation.service 2013-09-16 11:47:09 +02:00
lvm2_cluster_activation_red_hat.service.in Add systemd native service for clvmd and cluster activation 2014-02-10 17:13:49 +01:00
lvm2_cluster_activation_red_hat.sh.in Add systemd native service for clvmd and cluster activation 2014-02-10 17:13:49 +01:00
lvm2_clvmd_red_hat.service.in Add systemd native service for clvmd and cluster activation 2014-02-10 17:13:49 +01:00
lvm2_lvmetad_init_red_hat.in Remove pvscan --cache from lvm2-lvmetad init script. 2012-10-15 12:58:23 +02:00
lvm2_lvmetad_systemd_red_hat.service.in systemd: cleanup for lvmetad systemd unit 2014-02-10 16:20:45 +01:00
lvm2_lvmetad_systemd_red_hat.socket.in systemd: Add Documentation references 2012-06-20 14:23:50 +02:00
lvm2_monitoring_init_red_hat.in Use also normalized output for vgchange command in lvm2-monitor init script. 2011-12-16 11:42:56 +00:00
lvm2_monitoring_init_rhel4 Use also normalized output for vgchange command in lvm2-monitor init script. 2011-12-16 11:42:56 +00:00
lvm2_monitoring_systemd_red_hat.service.in systemd: remove quotes in lvm2-monitor.service ExecStop 2012-11-02 20:32:28 +01:00
lvm2_pvscan_systemd_red_hat@.service.in systemd: use only major:minor for pvscan in lvm2-pvscan@.service 2013-12-18 12:23:59 +01: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
lvmconf_lockingtype2.sh Use /bin/bash for scripts with bashisms 2010-05-14 11:33:20 +00:00
lvmconf.sh lvmconf: use_lvmetad=0 on --enable-cluster, reset to default on --disable-cluster 2013-09-24 14:03:42 +02:00
lvmdump.sh lvmdump: follow symbolic links in /etc/lvm 2013-12-05 16:36:45 +01:00
Makefile.in Add systemd native service for clvmd and cluster activation 2014-02-10 17:13:49 +01:00
relpath.awk Fix scripts/relpath.awk to work with mawk 2010-05-21 15:28:16 +00:00
vg_convert change two files in different directories 2006-06-06 17:44:11 +00:00
vgimportclone.sh vgimportclone: remove 2>/dev/null from three lvm commands 2013-10-21 18:04:14 -04:00
VolumeGroup.ocf Add OCF support 2010-11-05 16:18:38 +00:00