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

Yannis Milios yannis.milios at gmail.com
Fri Nov 2 20:14:53 CET 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20181102/335e9cd3/attachment.htm>


More information about the drbd-user mailing list