Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jclaret/ff1e154e7687e27f0ec2709b5fb17bb8 to your computer and use it in GitHub Desktop.
Save jclaret/ff1e154e7687e27f0ec2709b5fb17bb8 to your computer and use it in GitHub Desktop.
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