Send crm_mon stderr to /dev/null while waiting for cluster bringup

Signed-off-by: Tim Serong <tserong@suse.com>
(cherry picked from commit c928e28d70627dbb20f222f1e52c79930387cf4a)
Unify OCFS2 config with Hawk (bnc#821124)

Removing LVM and splitting the configuration into two clones
unifies the config with that generated by Hawk's setup wizard.

Signed-off-by: Tim Serong <tserong@suse.com>
(cherry picked from commit d194e13f9a94853f92ad8d83bd0bb00b57b52af4)

Conflicts:
	scripts/sleha-init
Run removal commands in bash shell to avoid prompts from zsh (bnc#862572)

If the root user has their shell set to zsh, rm -f may insist on
prompting before removing with wildcards.
(cherry picked from commit 67bf9eb4791134bb2117437c0e901dc00d1bce2c)
Correctly detect unconfigured SBD when SBD_DEVICE="" (bnc#865260)

Signed-off-by: Tim Serong <tserong@suse.com>
(cherry picked from commit c6201f3999f880c9b63c5dab7993da0ac7c4e4f3)

Conflicts:
	scripts/sleha-functions
Use netstat to guess at the default route interface (bnc#854172)

Since the name of the default network interface is no longer
likely to be eth0, use netstat to make an educated guess.
(cherry picked from commit c9205fcc5ce96113f657abf78cdd280b5f90cd77)
Sync all config files across all nodes when adding new node (bnc#867048)

Previously we used `csync2 -xv -P $(hostname)` to sync files only to the
new node.  Unfortunately this leaves all other files marked dirty on
that node, so a subsequent join of another node may have a failed csync2
run, causing e.g.: corosync.conf to be out of date at that point on one
node.  To fix this, we just sync all files across the cluster when doing
a join.  *sigh*

Signed-off-by: Tim Serong <tserong@suse.com>
(cherry picked from commit 213cf6fa8a47e0a67d2f6d0458e3e2bcc44d1398)
Use `csync2 -R` to cleanup DB when removing node (bnc#867039)

Signed-off-by: Tim Serong <tserong@suse.com>
(cherry picked from commit 15bce9eca66ba59e757f45b6dafc2c0a115fd1c8)

Conflicts:
	scripts/sleha-remove
Ensure corosync and SBD config are marked dirty before syncing

Signed-off-by: Tim Serong <tserong@suse.com>
(cherry picked from commit b3c895d2ea321ee70eeb68696efcb7695c990fba)

Conflicts:
	scripts/sleha-join
	scripts/sleha-remove
Warn if /dev/watchdog not present

Signed-off-by: Tim Serong <tserong@suse.com>
(cherry picked from commit cc1daef26251bc66eda3bc148ffbbd2b2c6c7bc6)
Update firewall rules correctly for corosync.conf (bnc#868986)

Signed-off-by: Tim Serong <tserong@suse.com>
(cherry picked from commit 85bcef54c9ec48e4ce316517743be4c06048ea5a)
Drop no-quorum-policy=ignore when adding third node

Signed-off-by: Tim Serong <tserong@suse.com>
(cherry picked from commit 6a0c451e9b128947c2db542eb6a77c899fc23e24)

Conflicts:
	scripts/sleha-join
Don't set sbd_device in crm config (bnc#863527)

Signed-off-by: Tim Serong <tserong@suse.com>
(cherry picked from commit 7f1629aea9eb76ef9144ca7e5ffaed4b0e332625)