heart beat heartbeat状態確認の履歴

## heartbeat status check
crm_mon
#
## heartbeat standby ON
crm_standby -U `hostname` -v on
#
## heartbeat active ON
crm_standby -U `hostname` -v off
#
#
## IP addr status cheack
ip addr show eth0

unknown plugin(ex)

) IP addr status
inet 192.168.1.153/24 brd 192.168.1.255 scope global eth0
inet 192.168.1.130/24 brd 192.168.1.255 scope global secondary eth0
#
#
## drbd status check
/etc/init.d/drbd status

unknown plugin(ex)

) drbd ERROR status
cs = StandAlone
ro = Primary/Unknown
ds = UpToDate/DUnknown

unknown plugin(ex)

) drbd OK status
cs = SyncSource
ro = Primary/Secondary
ds = UpToDate/Inconsistent
#
## drbd state check
drbdadm state all

unknown plugin(ex)

) state ERROR status
Secondary/Secondary,Primary/Unknown,Secondary/Unknown

unknown plugin(ex)

) state OK status
Secondary/Primary,Primary/Secondary
#
#
## drbd cstate check
drbdadm cstate all

unknown plugin(ex)

) cstate ERROR status
StandAlone

unknown plugin(ex)

) cstate WAIT status
WFConnection

unknown plugin(ex)

) cstate OK status
Connected
#
## drbd primary ON
drbdadm primary all
#
## drbd secondary ON
drbdadm secondary all
#
## drbd recovery

unknown plugin(ex)

) master slave
drbdadm down all
drbdadm attach all
drbdadm invalidate all
drbdadm connect all
#