Category: Clusters

simple corosync+pacemaker cluster with nginx and vIP

node web1-mcc1 node web2-mcc1 primitive nginx lsb:nginx primitive vip ocf:heartbeat:IPaddr2 params ip=”10.4.30.100″ cidr_netmask=”24″ nic=”eth0″ op monitor interval=”2s” colocation nginx_with_vip inf: vip nginx order nginx_after_vip inf: vip nginx:start property $id=”cib-bootstrap-options” dc-version=”1.1.6-3.el6-a02c0f19a00c1eb2527ad38f146ebc0834814558″ cluster-infrastructure=”openais” expected-quorum-votes=”4″ stonith-enabled=”false” no-quorum-policy=”ignore” last-lrm-refresh=”1334937144″ rsc_defaults $id=”rsc-options” resource-stickiness=”100″

Read more

corosync+pacemaker under iptables and selinux

-A INPUT -p igmp -j ACCEPT -A INPUT -m addrtype –dst-type MULTICAST -j ACCEPT -A INPUT -p udp -m state –state NEW -m multiport –dports 5404,5405 -j ACCEPT mcastport: 5405 SElinux policy module: module corosync 1.1; require { type corosync_t; type sysctl_kernel_t; type lib_t; class dir search; class file { read execute_no_trans }; } #============= […]

Read more

Corosync+pacemaker cluster with DRBD, NFS services

node db1-m1 node db1-m2 primitive drbd ocf:linbit:drbd params drbd_resource=”shared” op monitor interval=”29s” role=”Master” op monitor interval=”31s” role=”Slave” primitive fs_drbd ocf:heartbeat:Filesystem params device=”/dev/drbd0″ directory=”/mnt/shared” fstype=”ext3″ primitive nfs lsb:nfs primitive nfslock lsb:nfslock primitive vip ocf:heartbeat:IPaddr2 params ip=”10.4.30.200″ cidr_netmask=”24″ nic=”bond0″ op monitor interval=”2s” group g_drbd fs_drbd vip nfs nfslock ms ms_drbd drbd meta master-max=”1″ master-node-max=”1″ clone-max=”2″ clone-node-max=”1″ notify=”true” […]

Read more