[Linux-HA] cl_status rscstatus

Pascal Bleser pascal.bleser at atosorigin.com
Thu Oct 20 01:35:50 MDT 2005


Jens Grigel wrote:
> On Wed, 2005-10-19 at 17:08, Ivo Bitter wrote:
>> On Wed, Oct 19, 2005 at 03:48:10PM +0200, Pascal Bleser wrote:
>>> Could someone point me to the difference between those ("all" and "none" seem pretty
>>> straightforward, but what about "foreign" and "local" ?).
>>> Currently, my alert script assumes that "local" and "all" mean that I'm on the active node, whereas
>>> "foreign" or "none" means I'm on the passive node.
>> foreign means that the node is running those resources which are
>> assigned to the other node in haresources. none means it is running no
>> resources at all. local means it's running only the resources it was
>> assigned, all means it has both it's own and the other node's resources.
> 
> "cl_status rscstatus" might also return "transition" if heartbeat is
> currently in any process of acquring/releasing the resources (e.g. at
> startup, failover, switchover) and hasn't finished that process. 
> Be sure to also take care of that case.

Thanks for the information.

Any advice on the best way to know whether the node I'm running on is the "active" node ?

There are no resources that are local to a given node.
Hence, I suppose that I should never get the "foreign" or "local" status.
Am I correct ? ;-)

As far as I understand this, "local" and "foreign" could only happen if, say, I have a different
haresources definition on node 1 than on node 2, with e.g. some haresources that are only defined on
node 1.

My current /etc/ha.d/haresources is as follows:
lvs1    10.10.2.10/24 mon rinetd apache2

where "lvs1" = the preferred cluster node, "10.10.2.10/24" = the cluster VIP

I have exactly the same haresources definition on the 2nd node.

Could I still end up with a resource status "foreign" or "local" in the cl_status output ?

cheers
-- 
  -o) Pascal Bleser               ATOS Worldline/Aachen(DE)
  /\\   System Architect              WLP Business Platform
 _\_v "Really, I'm not out to destroy Microsoft.  That will
just be a completely unintentional side effect."-L.Torvalds


More information about the Linux-HA mailing list