[ClusterLabs] Antwort: Re: Antwort: Re: hawk - pacemaker remote

Ken Gaillot kgaillot at redhat.com
Tue Dec 13 09:47:09 EST 2016


On 12/13/2016 05:26 AM, philipp.achmueller at arz.at wrote:
> 
>> Von: Kristoffer Grönlund <kgronlund at suse.com>
>> An: philipp.achmueller at arz.at, kgaillot at redhat.com, Cluster Labs -
>> All topics related to open-source clustering welcomed
> <users at clusterlabs.org>
>> Datum: 12.12.2016 16:13
>> Betreff: Re: [ClusterLabs] Antwort: Re:  hawk - pacemaker remote
>>
>> philipp.achmueller at arz.at writes:
>>
>> >
>> > tried several things, didn't get this working.
>> > Any examples how to configure this?
>> > Also how to configure for VirtualDomain with remote_node enabled
>> >
>> > thank you!
>> >
>>
>> Without any details, it is difficult to help - what things did you try,
>> what does "not working" mean? Hawk can show remote nodes, but it only
>> shows them if they have entries in the nodes section of the
>> configuration (as Ken said).
>>
> 
> hi,
> 
> this is my current testsystem:
> 
> /Online: [ lnx0223a lnx0223b ]/
> /GuestOnline: [ vm-lnx0106a at lnx0223b vm-lnx0107a at lnx0223a ]/
> 
> /Full list of resources:/
> 
> /stonith_sbd     (stonith:external/sbd): Started lnx0223a/
> / Clone Set: base-clone [base-group]/
> /     Started: [ lnx0223a lnx0223b ]/
> /     Stopped: [ vm-lnx0106a vm-lnx0107a ]/
> /FAKE1   (ocf::pacemaker:Dummy): Started lnx0223b/
> / Clone Set: post-clone [postfix-service]/
> /     Started: [ vm-lnx0106a vm-lnx0107a ]/
> /     Stopped: [ lnx0223a lnx0223b ]/
> /fence-lnx0106a  (stonith:external/libvirt):     Started lnx0223b/
> /fence-lnx0107a  (stonith:external/libvirt):     Started lnx0223a/
> /lnx0106a        (ocf::heartbeat:VirtualDomain): Started lnx0223b/
> /lnx0107a        (ocf::heartbeat:VirtualDomain): Started lnx0223a/
> /remote-paceip   (ocf::heartbeat:IPaddr):        Started vm-lnx0106a/
> 
> node section shows:
> /.../
> /    <nodes>/
> /      <node id="167873318" uname="lnx0223a">/
> /        <instance_attributes id="nodes-167873318">/
> /          <nvpair id="nodes-167873318-maintenance" name="maintenance"
> value="off"/>/
> /        </instance_attributes>/
> /      </node>/
> /      <node id="167873319" uname="lnx0223b">/
> /        <instance_attributes id="nodes-167873319">/
> /          <nvpair id="nodes-167873319-maintenance" name="maintenance"
> value="off"/>/
> /        </instance_attributes>/
> /      </node>/
> /      <node type="remote" id="vm-lnx0106a" uname="vm-lnx0106a">/
> /        <instance_attributes id="nodes-vm-lnx0106a">/
> /          <nvpair id="nodes-vm-lnx0106a-hawkdummy" name="hawkdummy"
> value="true"/>/
> /        </instance_attributes>/
> /      </node>/
> /      <node type="remote" id="vm-lnx0107a" uname="vm-lnx0107a">/
> /        <instance_attributes id="nodes-vm-lnx0107a">/
> /          <nvpair id="nodes-vm-lnx0107a-hawkdummy" name="hawkdummy"
> value="true"/>/
> /        </instance_attributes>/
> /      </node>/
> /    </nodes>/
> /.../
> 
> 
> Hawk/Status still show remote nodes as "Offline"

Ah, it's good then ;)

Getting them to show up at all is the main goal. I'm going to guess it
pulls the status from the node state section; that has been maintained
for remote nodes only since Pacemaker 1.1.15, and there are still some
corner cases being addressed. Cluster nodes' state is learned
automatically from corosync, but remote nodes have no such mechanism, so
tracking state is much trickier.




More information about the Users mailing list