[ClusterLabs] 2node cluster question

Stefan K Shadow_7 at gmx.net
Wed Aug 15 04:58:20 EDT 2018


Hello,

what is the 'best' 2-node cluster config?
What I want, if it run on nodeA and nodeA goes in standby or shut down, everything must start at nodeB, if nodeA comes back, everything must still run on nodeB.

pacemaker looks like:
        have-watchdog=false \
        dc-version=1.1.16-94ff4df \
        cluster-infrastructure=corosync \
        cluster-name=zfs-vmstorage \
        no-quorum-policy=stop \
        stonith-enabled=true \
        last-lrm-refresh=1528814481
rsc_defaults rsc_defaults-options: \
        resource-stickiness=100

and the corosync.config:
totem {
    version: 2
    secauth: off
    cluster_name: zfs-vmstorage
    transport: udpu
    rrp_mode: passive
}

nodelist {
    node {
        ring0_addr: zfs-serv3
        ring1_addr: 192.168.251.1
        nodeid: 1
    }

    node {
        ring0_addr: zfs-serv4
        ring1_addr: 192.168.251.2
        nodeid: 2
    }
}

quorum {
    provider: corosync_votequorum
    two_node: 1
}

logging {
    to_logfile: yes
    logfile: /var/log/corosync/corosync.log
    to_syslog: yes
}

thanks in advance
and best regards
Stefan


More information about the Users mailing list