[Linux-cluster] Qdisk with multiple heuristics?

brem belguebli brem.belguebli at gmail.com
Wed Dec 2 10:49:30 UTC 2009

Hi Rafael,

Concerning your second point, have you initialized your
/dev/mpath/quorum device with mkqdisk ?

Also, the qdisk daemon must be running if you want it to be
operationnal in your cluster.

In my setup, everything is started manually, no automatic boot time
cluster start (safest option IMHO), and I use the following stepping:

1) start qdisk (service qdiskd start)
2) start cman (service cman start)
3) start rgmanager (service rgmanager start)
4) wait untill the cluster is quorate (a shell loop) before starting clvmd
5) start clvmd

 Output of clustat:

Cluster Status for rhcl1 @ Wed Dec  2 11:20:20 2009
Member Status: Quorate

 Member Name                                           ID   Status
 ------ ----                                                     ---- ------
 node1.mydom                                        1 Online, Local, rgmanager
 node2.mydom                                        2 Online, rgmanager
 node3.mydom                                        3 Online, rgmanager
 /dev/iscsi/storage.quorum                        0 Online, Quorum
Disk                       <-- Qorum disk started...

 Service Name                                            Owner (Last)

[root at node1 ~]# ps -edf | grep qdisk
root      4409     1  0 Nov26 ?        00:04:00 qdiskd -Q

Concerning your point 1, you may address this by giving a different
score to each heuristic, but I clearly don't know if this is what it
intends to.


2009/12/2 Rafael Micó Miranda <rmicmirregs at gmail.com>:
> Hi all,
> As it can be found in qdiskd man page, it is allowed to use up to 10
> different heuristics in one cluster.
> How is this specified into cluster.conf? I'm trying to make it work with
> the following piece of cluster.conf file:
> <quorumd device="/dev/mpath/quorum" interval="6" min_score="1" tko="10"
> votes="3">
>        <heuristic interval="3" program="ping -c3 -t2" score="1"/>
>        <heuristic interval="3" program="ping -c3 -t2"
> score="1"/>
> </quorumd>
> My objective is to have 2 (or more) different heuristics which keep this
> node alive even if only one heuristic is OK. The cluster.conf file was
> created with system-config-cluster and later was edited by hand.
> The qdisk and heuristics are not working:
> 1.- system-config-cluster shows me a warning about an error related to
> some options not allowed into quorumd. I'm sorry i cannot be more
> specific right now, I could attach the exact message tomorrow.
> 2.- The cluster is operational, but using "clustat" i don't see the
> qdisk with its votes in the node list. The qdisk process is neither
> shown in the process list on the system.
> Is there somethin wrong?
> I'm using RHEL5.3 with:
> cman-2.0.98-1.el5.x86_64
> openais-0.80.3-22.el5.x86_64
> rgmanager-2.0.46-1.el5.x86_64
> Thanks in advance. Cheers,
> Rafael
> --
> Rafael Micó Miranda
> --
> Linux-cluster mailing list
> Linux-cluster at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-cluster

More information about the Linux-cluster mailing list