Pacemaker

De MySoLo Wiki.

Sommaire

Corosync

gentoo et debian version 1.3.0 de corosync

Configuration

panthera ~ # cat /etc/corosync/corosync.conf
# Please read the corosync.conf.5 manual page
compatibility: whitetank

    max_messages: 20


totem {
        nodeid: 0001
        rrp_mode: none

        token: 3000
        token_retransmits_before_loss_const: 10
        join: 60
        consensus: 3600

        version: 2
        secauth: off
        threads: 0
        interface {
                ringnumber: 0
                bindnetaddr: 172.16.0.0
                mcastaddr: 226.94.1.1
                mcastport: 5405
        }
}

logging {
        fileline: off
        to_stderr: no
        to_logfile: yes
        to_syslog: yes
        logfile: /var/log/cluster/corosync.log
        debug: off
        timestamp: on
        logger_subsys {
                subsys: AMF
                debug: off
        }
}

amf {
        mode: disabled
}
  • nodeid: permet de donner un identificateur unique du serveur dans le cluster.

Lancement

/etc/init.d/corosync start

Pacemaker

gentoo version 1.1.14 de pacemaker

debian version 1.1.15 compilé avec les options utilisées du configure du package 1.0.10.

 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var         \
  --mandir=/usr/share/man \
  --enable-snmp-subagent --with-mibsdir=/usr/share/snmp/mibs      \
  --disable-fatal-warnings --enable-glib-malloc --with-esmtp      \
  --with-snmp --with-ais --with-heartbeat --libdir=/usr/lib       \
  --with-lcrso-dir=/usr/lib/lcrso

lancement des daemons:

/etc/init.d/pacemaker start

Vérification que les process tournent:

sous gentoo par pacemaker ( version 1.1.14 ?? )
  538 ?        SLsl   0:01 /usr/sbin/corosync -f
  718 ?        Ss     0:00 /usr/sbin/pacemakerd -f
  735 ?        Ss     0:00  \_ /usr/lib64/heartbeat/stonithd
  736 ?        Ss     0:00  \_ /usr/lib64/heartbeat/cib
  737 ?        Ss     0:00  \_ /usr/lib64/heartbeat/lrmd
  738 ?        Ss     0:00  \_ /usr/lib64/heartbeat/attrd
  739 ?        Ss     0:00  \_ /usr/lib64/heartbeat/pengine
  740 ?        Ss     0:00  \_ /usr/lib64/heartbeat/crmd


Check le cluster de host vu par corosync:

panthera ~ # crm_mon -V -1
crm_mon[31506]: 2011/03/17_23:51:05 ERROR: unpack_resources: Resource start-up disabled since no STONITH resources have been defined
crm_mon[31506]: 2011/03/17_23:51:05 ERROR: unpack_resources: Either configure some or disable STONITH with the stonith-enabled option
crm_mon[31506]: 2011/03/17_23:51:05 ERROR: unpack_resources: NOTE: Clusters with shared data need STONITH to ensure data integrity
============
Last updated: Thu Mar 17 23:51:05 2011
Stack: openais
Current DC: panthera - partition with quorum
Version: 1.1.4-ac608e3491c7dfc3b3e3c36d966ae9b016f77065
2 Nodes configured, 2 expected votes
0 Resources configured.
============

Online: [ hendy panthera ]
développement