[Linux-cluster] How to see what node is the master for quorum disk?

GouNiNi gounini.geekarea at gmail.com
Mon Aug 13 09:19:50 UTC 2012


Nice ! 
RTFM, shall never say it enough.
Thank you.

-- 
  .`'`.   GouNiNi
 :  ': :  
 `. ` .`  GNU/Linux
   `'`    http://www.geekarea.fr


----- Mail original -----
> De: "emmanuel segura" <emi2fast at gmail.com>
> À: "linux clustering" <linux-cluster at redhat.com>
> Envoyé: Dimanche 12 Août 2012 22:34:23
> Objet: Re: [Linux-cluster] How to see what node is the master for quorum	disk?
> 
> 
> The easy way ;-)
> 
> mkqdisk -d -L
> 
> 
> 2012/8/12 Arpit Tolani < arpittolani at gmail.com >
> 
> 
> Hello
> 
> 
> On Fri, Aug 10, 2012 at 3:18 PM, Gianluca Cecchi <
> gianluca.cecchi at gmail.com > wrote:
> 
> 
> Hello,
> in qdiskd.log I get at cluster startup the node that becomes master
> for quorum disk.
> config is in fact something like
> 
> <quorumd device="xxxx" ... log_facility="local4" log_level="7" ... >
> 
> and in syslog.conf
> # qdisk logging
> local4.* /var/log/qdiskd.log
> 
> The file is rotated so after some time I have only empty qdiskd.log.N
> files.
> Is there any command to get which node is the master at this moment?
> 
> Thanks,
> Gianluca
> 
> 
> 
> One way is to search the group_tool output: $ group_tool | grep
> "master node" | awk '{print $3 }' Did you added status_file option
> in quorumd ? Try something like below.
> <quorumd interval="1" tko="5" votes="2" log_level="7"
> device="/dev/vg01/lv01" status_file="/var/log/qdisk-status.log">
>    <heuristic program="ping 192.168.1.1 -c2 -t2 -w1" score="1"
>    interval="5"/>
> </quorumd>
> 
> 
> Regards
> Arpit Tolani
> 
> --
> Linux-cluster mailing list
> Linux-cluster at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-cluster
> 
> 
> 
> --
> esta es mi vida e me la vivo hasta que dios quiera
> 
> --
> 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