[DRBD-user] Split-Brain: how to solve?

Philipp Reisner philipp.reisner at linbit.com
Wed Jan 17 18:35:34 CET 2007

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


Am Mittwoch, 17. Januar 2007 18:25 schrieb Enrico Morelli:
> On 1/17/07, Philipp Reisner <philipp.reisner at linbit.com> wrote:
> > Am Mittwoch, 17. Januar 2007 17:50 schrieb Enrico Morelli:
> > > Dear all,
> > >
> > > I'm trying drbd-8.0rc1 and heartbeat 2. Nothing works well. But in
> > > this moment I reached the Split-Brain condition, and I'm unable to
> > > recovery the situation. I tried all command format without any result.
> > > I found another message in the list with the same situation and the
> > > suggestion was:
> > > drbdadm ----discard-my-data connect all
> > >
> > > but drbdadm hasn't this flag, only drbdsetup has and doesn't works for
> > > me.
> > >
> > > How can I solve this situation?
> >
> > You just need to add a space! Use a mono space font to read this mail!
> >
> > drbdadm -- --discard-my-data connect ...
> >
> > The meaning of the first "--" is that the next options should be passed
> > through to drbdsetup.
>
> Oops... You are ready.
>
> But the command give me an error:
> on secondary:
> newbeta2 ~ # drbdadm --- ---discard-my-data connect all
> Failure: (125) HaveNetConfig
> Command 'drbdsetup /dev/drbd0 net 192.168.0.2:7788 192.168.0.1:7788 C
> --set-defaults --create-device --unplug-watermark=20480
> --max-buffers=20480 --max-epoch-size=16384 --timeout=40
> --discard-my-data' terminated with exit code 10
> drbdsetup exited with code 10
>
> on primary:
> newbeta ~ # drbdadm -- --discard-my-data connect all
> Failure: (123) --discard-my-data not allowed when primary.
> Command 'drbdsetup /dev/drbd0 net 192.168.0.1:7788 192.168.0.2:7788 C
> --set-defaults --create-device --unplug-watermark=20480
> --max-buffers=20480 --max-epoch-size=16384 --timeout=40
> --discard-my-data' terminated with exit code 10
> drbdsetup exited with code 10
>
> How can I do?

Disconnect first:

drbdadm disconnect all
drbdadm -- --discard-my-data connect all

But use the "--discard-my-data" only on one side ;)

-Phil

-- 
: Dipl-Ing Philipp Reisner                      Tel +43-1-8178292-50 :
: LINBIT Information Technologies GmbH          Fax +43-1-8178292-82 :
: Vivenotgasse 48, 1120 Vienna, Austria        http://www.linbit.com :



More information about the drbd-user mailing list