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.
>
> crmd[4242]: 2009/03/16_06:38:17 info: do_lrm_rsc_op: Performing
> op=resource_drbd:0_start_0 key=7:5:0:fbe18f1e-31f4-4272-b23a-2c106e4064b0)
> lrmd[4239]: 2009/03/16_06:38:17 info: rsc:resource_drbd:0: start
> lrmd[4239]: 2009/03/16_06:38:18 info: RA output:
> (resource_drbd:0:start:stdout)
>
> lrmd[4239]: 2009/03/16_06:38:20 info: RA output:
> (resource_drbd:0:start:stdout)
>
> drbd[4503]: 2009/03/16_06:38:20 ERROR: r0 start: not in Secondary mode
> after start.
>
>
> The debugging of OCF drbd RA showed that the reason for the error was
> deprecated "drbdadm state $RESOURCE" command. Which was returning below
> output
>
> # drbdadm state r0
> 'drbdadm state' is deprecated, use 'drbdadm role' instead.
> Primary/Unknown
>
> Following small patch was able resolve this issue, can someone tell me
> whether it is a correct method to resolve this issue. Because "drbdadm role
> $RESOURCE" command may not work in previous versions of DRBD.
>
> --- drbd.org 2009-03-17 01:39:22.000000000 -0400
> +++ drbd.changed 2009-03-17 01:48:36.000000000 -0400
> @@ -240,7 +240,7 @@ is_drbd_enabled () {
>
>
> drbd_get_status() {
> - DRBD_STATE=$(do_drbdadm state $RESOURCE)
> + DRBD_STATE=$(do_drbdadm role $RESOURCE)
> DRBD_STATE_LOCAL=$(echo $DRBD_STATE | sed -e 's#/.*##')
> DRBD_STATE_REMOTE=$(echo $DRBD_STATE | sed -e 's#.*/##')
> DRBD_CSTATE=$(do_drbdadm cstate $RESOURCE)
Thanks for the patch. But do all supported drbd versions have the
role command?
Thanks,
Dejan
> Regards,
> Arun.
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems