[DRBD-user] (DRBD 9) promote secondary to primary with primary crashed

Daniel Hertanu dhertanu at blinc.co
Fri Nov 2 20:29:08 CET 2018


Hello Yannis,

I tried that, same result, won't switch to primary.


Daniel

On Fri, Nov 2, 2018 at 9:14 PM, Yannis Milios <yannis.milios at gmail.com>
wrote:

> Try adding --force parameter in drbdadm command.
>
>
>
> On Friday, November 2, 2018, Daniel Hertanu <dhertanu at blinc.co> wrote:
>
>> Hi,
>>
>> I'm running two nodes with DRBD 9 and I want to simulate a primary node
>> crash followed by restoring the access to the data on the secondary node
>> left.
>>
>> So, having the sync done between the hosts I'm disconnecting the network
>> to the primary to simulate the crash.
>> All my attempts to promote the secondary to primary so I can mount the
>> drbd device and access the data have failed. Usually I'm getting this:
>>
>> [root at server2-drbd ~]# drbdadm primary resource01
>> resource01: State change failed: (-2) Need access to UpToDate data
>> Command 'drbdsetup primary resource01' terminated with exit code 17
>>
>> Can anyone help me?
>>
>> Thanks,
>>
>> Daniel
>>
>>
>
> --
> Sent from Gmail Mobile
>
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20181102/fcd2745a/attachment.htm>


More information about the drbd-user mailing list