Benutzer-Werkzeuge

Webseiten-Werkzeuge


icinga_active_passive_pacemaker_corosync
# yum install policycoreutils-python

drbd und so...

# yum install corosync pacemaker
# cd /etc/corosync
# cp corosync.conf.example corosync.conf
# vi corosync.conf
# Please read the corosync.conf.5 manual page
compatibility: whitetank

service {
        use_mgmtd: yes
        ver: 0
        name: pacemaker
}

totem {
        rrp_mode: passive
        join: 100
        max_messages: 20
        vsftype: none
        token: 1000
        consensus: 1200
        send_join: 45
        secauth: on
        token_retransmits_before_loss_const: 4
        threads: 0
        version: 2
        interface {
                ringnumber: 0
                bindnetaddr: 192.168.1.0
                mcastaddr: 226.94.1.1
                mcastport: 5404
                ttl: 1
        }
        interface {
                ringnumber: 1
                bindnetaddr: 10.0.0.0
                mcastaddr: 226.94.1.1
                mcastport: 5406
                ttl: 1
        }
}

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
        mode: enabled
}
# vi /etc/logrotate.conf
# system-specific logs may be also be configured here.

#Corosync
/var/log/corosync.log {
        missingok
        compress
        notifyempty
        daily
        rotate 7
        copytruncate
}
# vi uidgid.d/myclustermanager
uidgid {
        uid: myclustermanager
        gid: clustergroup
}
# corosync-keygen
Corosync Cluster Engine Authentication key generator.
Gathering 1024 bits for key from /dev/random.
Press keys on your keyboard to generate entropy.
Press keys on your keyboard to generate entropy (bits = 176).
Writing corosync key to /etc/corosync/authkey.

NON-REMOTE!!!
# scp authkey tvm-ham02:/etc/corosync/authkey
# scp corosync.conf tvm-ham02:/etc/corosync/corosync.conf
# setsebool -P allow_ypbind on
# service corosync restart
# passwd hacluster
# crm configure
crm(live)configure# property no-quorum-policy=ignore
crm(live)configure# commit
crm(live)configure# verify
   error: unpack_resources:     Resource start-up disabled since no STONITH resources have been defined
   error: unpack_resources:     Either configure some or disable STONITH with the stonith-enabled option
   error: unpack_resources:     NOTE: Clusters with shared data need STONITH to ensure data integrity
crm(live)configure# property stonith-enabled=false
crm(live)configure# commit
crm(live)configure# verify
icinga_active_passive_pacemaker_corosync.txt · Zuletzt geändert: 2012/12/11 11:22 von christian