Dejan Muhamedagic wrote:
Hi,

On Tue, Mar 17, 2009 at 11:56:04AM +0530, Arun G wrote:
Hi,
     I observed below error message when I upgraded drbd to drbd-8.3.0 in
heartbeat 2.1.4 cluster on 2.6.18-8.el5xen.

-- snip --

Thanks for the patch. But do all supported drbd versions have the
role command?

Thanks,

Dejan

No, only 8.3 has the change.  8.2 supports the old "state" argument, but
prints a warning message out, and this warning message upsets the drbd OCF
scripts parting of drbdadm's output.

drbdadm doesn't support a --version argument, but it does support a "status"
command, which has version info in it.  However, I am not sure if "drbdadm 
status"
is guaranteed to not block or not, so I didn't want to have the OCF script 
depend
on it.

So, I see three alternatives: add a new script "drbdadm8.3".  Add an extra 
parameter
saying "use role instead of status".  Or call "drbdadm status" to dynamically 
detect
our version.

Do you see other choices?  Do you have a preference for a particular 
alternative?
I'm willing to code and test the patch if we can decide what we want.

    Neil
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to