[DRBD-user] drbdadm adjust error and now resync...

Lars Ellenberg lars.ellenberg at linbit.com
Thu Jul 10 18:22:18 CEST 2008

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


On Thu, Jul 10, 2008 at 05:54:46PM +0200, Brice Figureau wrote:
> Hi,
> 
> I just reconfigured my drbd 8.0.12 installation (added no-md-flush,
> no-disk-flush and increased max-buffers and al-extents).
> Following the drbd reconfigure paragraph
> http://www.drbd.org/users-guide/s-reconfigure.html, I did:
> 
> 1) edited both drbd.conf on each node
> 2) did drbdadm adjust mysql on one node (was the secondary)
> 3) tried to drbdadm adjust mysql on the other node
> and got the following error:
> 
> /dev/drbd0: State change failed: (-4) Refusing to be inconsistent on
> both nodes
> Command 'drbdsetup /dev/drbd0 detach' terminated with exit code 11
> 
> And then the resources are now synchronizing from secondary to primary.
> Now, I don't understand why it did that. 
> Does changing the configuration means it has to resync the whole thing?
> Or did I miss something?

if you are changing _disk_ parameters, make sure the node you are doing
that on is in Secondary (or unconfigured).

check with "drbdadm -d adjust " first.
if there is a "drbdsetup detach" in the output, be careful.

the problem is: when a drbd Primary does detach,
it will get a full sync on the next attach.

so, if you want to change disk settings,
it would be advisable to either
 do the adjust on the current Secondary,
 then switchover,
 and do the adjust on the then Secondary.
or
 go Secondary/Secondary
 then drbdadm adjust on both.

that may be inconvenient, but that is the way it is.
changing this behaviour is not that easy
in the current configuration framework.

-- 
: Lars Ellenberg                           http://www.linbit.com :
: DRBD/HA support and consulting             sales at linbit.com :
: LINBIT Information Technologies GmbH      Tel +43-1-8178292-0  :
: Vivenotgasse 48, A-1120 Vienna/Europe     Fax +43-1-8178292-82 :
__
please don't Cc me, but send to list -- I'm subscribed



More information about the drbd-user mailing list