[DRBD-user] Unable to change role from Secondary to Primary

Badge Parag-G19470 paragb at motorola.com
Fri Jul 14 10:21:55 CEST 2006

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.

Hi Milind,

We have our own heart-beat mechanism. That detects primary down and then
changes role of secondary to primary. I can see in the sys-log that DRBD
at secondary detected primary going down after this only we try to
change role at Secondary. For us it takes 10 to 15 seconds to change
role of Secondary primary after detecting primary down. Above that we
have retry mechanism which takes around 10 seconds (5 retries with 2
seconds delay). 

I am getting following messages in sys-log:

Jul 13 17:52:07 F101-SLOT-1 kernel: drbd0: PingAck did not arrive in
Jul 13 17:52:07 F101-SLOT-1 kernel: drbd0: drbd0_asender [8883]: cstate
Connected --> NetworkFailure
Jul 13 17:52:07 F101-SLOT-1 kernel: drbd0: asender terminated

 but looks like it is stuck some-where and when we try to  change role
it returns error. It is not going into WFConnection state.


-----Original Message-----
From: Milind Dumbare [mailto:milind at linsyssoft.com] 
Sent: Friday, July 14, 2006 1:07 PM
To: Badge Parag-G19470
Cc: drbd-user at linbit.com
Subject: Re: [DRBD-user] Unable to change role from Secondary to Primary

Is heartbeat running?

#/etc/init.d/heartbeat status
Do you want secondary to be primary manually?

On Fri, 2006-07-14 at 14:28 +0800, Badge Parag-G19470 wrote:
> Hello,
> We are facing this problem with DRBD 0.7.17.
> After Primary node goes down (it completely removed from the cluster),

> we are changing role of Secondary to Primary. But Secondary is 
> rejecting this role change. We are getting following error:
> ioctl(,SET_STATE,) failed: Permission denied Partner is already 
> primary Command '/sbin/drbdsetup /dev/drbd0 primary --do-what-I-say'
> terminated with exit code 20
> We have put retry mechanism in role change. We keep retrying for 10 
> seconds with the interval of 2 seconds. Still we get same error.
> We use ping interval 2 seconds.
> Could you please tell us why this role change is failing. (This 
> problem comes pretty often. 2 out of 10 times)
> I really appreciate any help.
> Thanks and regards,
> Parag.
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user

More information about the drbd-user mailing list