> What''s the best was to determine which node is the
master (or active)> node?
>
> AFAICT using "cl_status rscstatus" is the best way.
I either get all or> none as a result with the master or active node
returning ''all'' and the> slave or standby node returning ''none''.
>
> I need determine the master (or active) node for
certain cron jobs that> I don''t want to run on both nodes.
Personnally I wrote a resource.d script that creates a
file /var/run/ismaster (Ismaster, see attached files),
that I include in haresources. The test in other
scripts is very simple, then :
[ -e /var/run/ismaster ]
For people interested in Crontab stuff, i attach my
resource.d script that
comments/uncomments scripts that don''t have to be run
on the slave.
Sorry all this is in french...But easy to understand.
You may have already written it, Edward, but this may
help others
Now I always use theses two scripts so that the
haresources in my clusters begin like this :
node.domain Ismaster Cronscripts::root
Cronscripts::other_user etc. blablabla
...
> > 1.2.3 has cl_status set up as setgid to hacluster,
and then has a default> > authorization which allows group hacluster to run
cl_status.
Well, you told me ''setgid haclient'', not hacluster in
your reply to my msg
"cl_status USAGE". And I replied that it worked with
my Debian 1.2.3 package
:
<<GREAT !!
Thanks, it works. This looks like an oversight in
Debian''s package, so :
#chgrp haclient /usr/bin/cl_status
#chmod g+s /usr/bin/cl_status
for those who had the same problem.>>
The problem seems to be corrected in latest Debs : see
the msg "RE:cl_status USAGE" from Horms
Découvrez le nouveau Yahoo! Mail : 250 Mo d''espace de stockage pour vos
mails !
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/
--0-1464629480-1103187621=:98543
Content-Type: application/octet-stream; name=Cronscripts
Content-Transfer-Encoding: base64
Content-Description: Cronscripts
Content-Disposition: attachment; filename=Cronscripts
IyEvYmluL2Jhc2ggCgpVU0VSPSQxCgpjYXNlICRVU0VSIGluCnJvb3QpCgkj
bmJfc2NyaXB0cz0wIE9LIGNhciBzZXEgMSAwIG5lIHJlbmQgcmllbiA6KQoJ
bmJfc2NyaXB0cz0xCgkjU0NSSVBUMT0ic292X2NmZ3Nfdm1zIgoJI1NDUklQ
VDI9InN5bmNocm8iCglTQ1JJUFQxPSJiYXNjdWxlIgoJI1NDUklQVDI9Im1v
bml0IgoJ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vIC1lICJVc2FnZSA6ICQwIDxVU0VS
PiB7c3RhcnR8c3RvcHxzdGF0dXN9XG5cdHN0YXJ0IGTpY29tbWVudGUgIGV0
ICBzdG9wIGNvbW1lbnRlIgoJOzsKZXNhYwo
--0-1464629480-1103187621=:98543
Content-Type: application/octet-stream; name=Ismaster
Content-Transfer-Encoding: base64
Content-Description: Ismaster
Content-Disposition: attachment; filename=Ismaster
IyEvYmluL2Jhc2gKCkZJTEU9L3Zhci9ydW4vaXNtYXN0ZXIKCmNhc2UgJDEg
aW4Kc3RhcnQpCgl0b3VjaCAkRklMRQoJOzsKc3RvcCkKCXJtIC1mICRGSUxF
Cgk7OwpzdGF0dXMpCglpZiBbIC1lICRGSUxFIF07IHRoZW4KCQllY2hvIHJ1
bm5pbmcKCWVsc2UKCQllY2hvIHN0b3BwZWQKCWZpCgk7OwoqKQoJCWVjaG8g
IlVzYWdlIDogJDAge3N0YXJ0fHN0b3B8c3RhdHVzfSI7Cgk7Owplc2FjCg=
--0-1464629480-1103187621=:98543--
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/