Friday, March 1, 2013

DRBD Clustering vs. C

- REad Clusters From Scratch
- search for pacemaker, drbd and distribution
- project websites


COROSYNC on top of DRBD file systems
- both think that they are both master or both are slaves


crm Status
---------------
#sudo crm status | grep -Ev '^=*%'

2nodes configured 2 expected votes
2 resources configured
online ha1 ha2

master/slave ms_drbd_database
master ha2
slave ha1

resource group mysql
fs_db (ocf::hearbeat:filesystem): started ha2
ip_mysql (ocf:heartbeat:IPaddr2): started ha2
app_mysqld(lsb:mysql): started ha2

Failed actions:
drbd_database: 0_promote_0 (node=ha1, call=9, rc=1, status=complete):unknown error



CRM CONFIGURE
- crm configure show - show the current configuration
- crm configure edit - should not do live edits, do as i say,not as I do
- crm node online $node (how to turn it on)
- crm node standby $node (how to turn it off
- crm resouce cleanup $resouce (if there are errors after running a status, it might help if you run cleanup)
- crm resource start $resouce
- crm resource stop $resource
- crm resource promote $resource
- crm resource migrate $resource (problem with migrate, Fencing)

FENCING
- fencing tells a resource to try to stay on particular node or to avoid a particular node
- crm resource migrate causes fenscing

No comments: