Last active
March 5, 2019 15:14
-
-
Save jclaret/ff1e154e7687e27f0ec2709b5fb17bb8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pcs status | |
pcs resource failcount show firstwebserver | |
pcs resource show --full | |
pcs resource debug-start firstwebserver --full | |
pcs resource show firstwebserver | |
pcs resource update firstwebserver configfile=/etc/httpd/conf/httpd.conf | |
pcs resource failcount show firstwebserver | |
pcs resource failcount reset firstwebserver | |
firewall-cmd --list-all | |
DEFAULT LOG | |
=========== | |
pacemaker > /var/log/pacemaker.log | |
corosync > /var/log/messages | |
COROSYNC LOG | |
============ | |
/etc/corosync/corosync.conf | |
> logging { | |
> to_syslog: yes | |
> to_file: yes | |
> logfile: /var/log/cluster.log | |
> debug: on | |
> } | |
pcs cluster sync | |
PACEMAKER LOG | |
============= | |
/etc/sysconfig/pacemaker | |
> PCMK_debug=yes | |
scp /etc/sysconfig/pacemaker clus0[1,2].local.net:/etc/sysconfig | |
LOGROTATE | |
========= | |
cp /etc/logrotate.d/pacemaker /etc/logrotate.d/cluster | |
sed -i 's/pacemaker/cluster/' /etc/logrotate.d/cluster | |
scp /etc/logrotate.d/cluster clus0[1,2].local.net:/etc/logrotate.d/ | |
pcs cluster stop --all | |
pcs cluster start --all | |
tail -f /var/log/cluster.log | |
journalctl -l -u pacemaker.service -u corosync.service | |
CLUSTER NOTIFICATIONS | |
===================== | |
pcs resource create webmail MailTo [email protected] subject="CLUSTER-NOTIFICATINS" --group=firstweb | |
vim /usr/local/bin/crm_notify.sh | |
pcs resource create mailme ClusterMon extra_options="-e [email protected] -E /usr/local/bin/crm_notify.sh --clone |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment