[Pacemaker] How to display interface link status in corosync

Yuichi SEINO seino.cluster2 at gmail.com
Thu Apr 4 09:59:37 UTC 2013


Hi All,

 I want to display interface link status in corosync. So, I think that
I will add this function to the part of "pacemakerd".
 I am going to display this status to "Node Attributes"  in crm_mon.
When the state of link change, corosync can run the callback function.
When it happens, we update attributes. And, this function need to
start after "attrd" started. "pacemakerd" of mainloop start after
sub-process started. So, I think that this is the best timing.

I show the expected crm_mon.

# crm_mon -fArc1
Last updated: Thu Apr  4 08:08:08 2013
Last change: Wed Apr  3 04:15:48 2013 via crmd on coro-n2
Stack: corosync
Current DC: coro-n1 (168427526) - partition with quorum
Version: 1.1.9-c791037
2 Nodes configured, unknown expected votes
2 Resources configured.


Online: [ coro-n1 coro-n2 ]

Full list of resources:

 Clone Set: OFclone [openstack-fencing]
     Started: [ coro-n1 coro-n2 ]

Node Attributes:
* Node coro-n1:
    + ringnumber(0)                       : 10.10.0.6 is FAULTY
    + ringnumber(1)                       : 10.20.0.6 is UP
* Node coro-n2:
    + ringnumber(0)                       : 10.10.0.7 is FAULTY
    + ringnumber(1)                       : 10.20.0.7 is UP

Migration summary:
* Node coro-n2:
* Node coro-n1:

Tickets:


Sincerely,
Yuichi

--
Yuichi SEINO
METROSYSTEMS CORPORATION
E-mail:seino.cluster2 at gmail.com




More information about the Pacemaker mailing list