1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/scripts
Peter Rajnoha f814d763c6 lvmconf: add --enable-halvm, --disable-halvm, --services, --mirrorservice, --startstopservices options and use proper global/use_lvmetad default value
This patch adds new options to lvmconf:

  --enable-halvm (just like --enable-cluster, but configure LVM
                  for use in HA LVM - meaning disabling lvmetad and
                  making sure we have locking_type=1)

  --disable-halvm (just like --disable-cluster, but configure LVM
                   back from HA LVM - meaning enabling lvmetad if
                   it's enabled by default and making sure we have
                   default locking type set)

  --services (causes clvmd and lvmetad services to be enabled or
              disabled appropriately and conforming to the changes
              in lvm configuration we've just made with lvmconf)

  --mirrorservice (in addition to clvmd and lvmetad services, also
                   enable or disable cmirrord service appropriately;
                   this is a separate option because cmirrord is
                   optional and it doesn't need to be always enabled
                   when clvmd is enabled)

  --startstopservices (in addition to enabling or disabling services,
                       start and stop these services immediately)

These options are supposed to help users to make their system ready
for cluster with clvmd (active-active) or HA LVM (active-passive) use
while lvmconf script can handle services as well so users don't need
to bother about setting them manually.

Also, before this patch, we hardcoded global/use_lvmetad=0 as default
value in lvmconf script. Howeverm this default may change by just
flipping the value in config_settings.h and we may forget to edit
the lvmconf. It's better to use lvm dumpconfig --type default global/use_lvmetad
to get the actual default value and use this one instead of hardcoded one.
2015-04-13 15:27:17 +02: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 systemd: blk-availability.service: add After=iscsi-shutdown.service 2015-03-13 12:08:20 +01: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 scripts: clvmd: replace awk functionality with LVM's selection 2015-01-09 16:41:07 +01: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: use RemoveOnStop for dm-event.socket and lvm2-lvmetad.socket 2014-06-13 15:45:25 +02:00
fsadm.sh fsadm: avoid using -a in test 2014-07-02 10:45:41 +02: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: use umask 022 for generated systemd units by lvm2-activation-generator 2014-05-21 10:12:02 +02:00
lvm2_cluster_activation_red_hat.sh.in scripts: clvmd: replace awk functionality with LVM's selection 2015-01-09 16:41:07 +01:00
lvm2_cluster_activation_systemd_red_hat.service.in systemd: do not use default dependencies for clvmd/cmirrord units 2014-02-14 14:37:19 +01:00
lvm2_clvmd_systemd_red_hat.service.in revert: 7639eae and 4a52a92 2014-11-20 08:22:34 +01:00
lvm2_cmirrord_systemd_red_hat.service.in revert: 7639eae and 4a52a92 2014-11-20 08:22:34 +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: use RemoveOnStop for dm-event.socket and lvm2-lvmetad.socket 2014-06-13 15:45:25 +02:00
lvm2_monitoring_init_red_hat.in initscripts: lvm2-monitor: use @DMEVENTD_PIDFILE@ instead of hardcoded /var/run/dmeventd.pid 2015-02-27 15:48:10 +01: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: stop lvm2-monitor.service before dm-event.service 2015-03-31 15:50:16 +02:00
lvm2_pvscan_systemd_red_hat@.service.in systemd: stop lvm2-pvscan@.service before lvm2-lvmetad.service 2015-03-31 15:47:01 +02: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: add --enable-halvm, --disable-halvm, --services, --mirrorservice, --startstopservices options and use proper global/use_lvmetad default value 2015-04-13 15:27:17 +02:00
lvmdump.sh lvmdump: list also inactive units for lvmdump -s 2014-04-15 15:43:20 +02:00
Makefile.in systemd: install lvm2-cluster-activation script as executable 2014-05-21 09:45:29 +02: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 arg check that uses pvs 2015-01-20 13:08:22 -06:00
VolumeGroup.ocf Add OCF support 2010-11-05 16:18:38 +00:00