node server1 node server2 primitive apache2 ocf:heartbeat:apache \ params configfile="/etc/apache2/apache2.conf" httpd="/usr/sbin/apache2" \ op monitor interval="30s" \ op start interval="0" timeout="240s" \ op stop interval="0" timeout="100s" primitive apache_ip ocf:heartbeat:IPaddr2 \ params ip="192.168.26.10" nic="eth2" \ op monitor interval="30s" \ op start interval="0" timeout="240s" \ op stop interval="0" timeout="100s" primitive drbd_disk ocf:linbit:drbd \ params drbd_resource="disk0" \ op monitor interval="50s" role="Master" timeout="30s" \ op monitor interval="60s" role="Slave" timeout="30s" \ op start interval="0" timeout="240s" \ op stop interval="0" timeout="100s" primitive drbd_mysql_disk ocf:linbit:drbd \ params drbd_resource="mysql" \ op monitor interval="50s" role="Master" timeout="30s" \ op monitor interval="60s" role="Slave" timeout="30s" \ op start interval="0" timeout="240s" \ op stop interval="0" timeout="100s" primitive drbd_pgsql_disk ocf:linbit:drbd \ params drbd_resource="pgsql" \ op monitor interval="50s" role="Master" timeout="30s" \ op monitor interval="60s" role="Slave" timeout="30s" \ op start interval="0" timeout="240s" \ op stop interval="0" timeout="100s" primitive fs_drbd ocf:heartbeat:Filesystem \ params device="/dev/drbd/by-res/disk0" directory="/mnt" fstype="ext4" run_fsck="auto" options="nosuid,nodev,noexec" \ op start interval="0" timeout="240s" \ op stop interval="0" timeout="100s" \ meta target-role="Started" primitive fs_drbd_mysql ocf:heartbeat:Filesystem \ params device="/dev/drbd/by-res/mysql" directory="/srv/mysql" fstype="ext4" run_fsck="auto" options="nosuid,nodev,noexec" \ op start interval="0" timeout="240s" \ op stop interval="0" timeout="100s" primitive fs_drbd_pgsql ocf:heartbeat:Filesystem \ params device="/dev/drbd/by-res/pgsql" directory="/srv/pgsql" fstype="ext4" run_fsck="auto" options="nosuid,nodev,noexec" \ op start interval="0" timeout="240s" \ op stop interval="0" timeout="100s" primitive mysql_ip ocf:heartbeat:IPaddr2 \ params ip="192.168.26.11" nic="eth2" \ op monitor interval="30s" \ op start interval="0" timeout="240s" \ op stop interval="0" timeout="100s" primitive mysql_service ocf:heartbeat:mysql \ params config="/etc/mysql/my.cnf" binary="/usr/bin/mysqld_safe" datadir="/srv/mysql" log="/var/log/mysql/mysql.log" pid="/var/run/mysqld/mysqld.pid" socket="/var/run/mysqld/mysqld.sock" \ op monitor interval="40s" timeout="30s" \ op start interval="0" timeout="240s" \ op stop interval="0" timeout="150s" primitive pgsql_ip ocf:heartbeat:IPaddr2 \ params ip="192.168.26.12" nic="eth2" \ op monitor interval="30s" \ op start interval="0" timeout="240s" \ op stop interval="0" timeout="100s" primitive ping ocf:pacemaker:ping \ params host_list="10.0.2.2" multiplier="1000" dampen="10s" \ op monitor interval="30s" timeout="10s" \ op start interval="0" timeout="240s" \ op stop interval="0" timeout="100s" group apache_group apache_ip apache2 fs_drbd group mysql_group mysql_ip mysql_service fs_drbd_mysql group pgsql_group pgsql_ip fs_drbd_pgsql ms ms_drbd drbd_disk \ meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true" ms ms_drbd_mysql drbd_mysql_disk \ meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true" ms ms_drbd_pgsql drbd_pgsql_disk \ meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true" clone pingclone ping \ meta globally-unique="false" target-role="Started" location drbd-fence-by-handler-ms_drbd ms_drbd \ rule $id="drbd-fence-by-handler-rule-ms_drbd" $role="Master" -inf: #uname ne server2 location drdb_on_connected_node ms_drbd \ rule $id="drdb_on_connected_node-rule" pingd: defined pingd colocation apache_cl inf: fs_drbd ms_drbd:Master apache_ip apache2 colocation mysql_cl inf: fs_drbd_mysql ms_drbd_mysql:Master mysql_ip mysql_service colocation pgsql_cl inf: fs_drbd_pgsql ms_drbd_pgsql:Master pgsql_ip order apache_order inf: ms_drbd:promote fs_drbd:start apache_ip:start apache2:start order mysql_order inf: ms_drbd_mysql:promote fs_drbd_mysql:start mysql_ip:start mysql_service:start order pgsql_order inf: ms_drbd_pgsql:promote fs_drbd_pgsql:start pgsql_ip:start property $id="cib-bootstrap-options" \ dc-version="1.1.5-01e86afaaa6d4a8c4836f68df80ababd6ca3902f" \ cluster-infrastructure="openais" \ expected-quorum-votes="2" \ stonith-enabled="false" \ no-quorum-policy="ignore" rsc_defaults $id="rsc-options" \ resource-stickiness="100"