[DRBD-user] Recovery from split-brain condition, please advice.
ivan.teliatnikov at gmail.com
Sat Nov 21 08:26:41 CET 2009
I would like to thank members of the list who replied to my question.
I followed your advice and I was able to resolved the split brain
condition and to synced both nodes successfully.
On Tue, Nov 17, 2009 at 1:06 AM, Ivan <ivan.teliatnikov at gmail.com> wrote:
> Hello everyone!
> I am new to DRBD and to this list. I recently picked up HA + drbd 2
> node cluster that suffered split-brain condition over 6 months ago.
> During this time the healthy node continued to work as a file server,
> whilst the second node has both HA and drpd turned off.
> Primary node: ( working in production )
> Secondary node: rubble ( has being off-line for 6 motnhs )
> ------------- state, dstate, cstate of primary node --------------------
> [root at flintstone ~]# drbdadm state all
> [root at flintstone ~]# drbdadm dstate all
> [root at flintstone ~]# drbdadm cstate all
> ------------- state, dstate, cstate of secondary ( not working ) node
> [root at rubble init.d]# drbdadm state all
> [root at rubble init.d]# drbdadm dstate all
> [root at rubble ~]# drbdadm cstate all
> As far as I understand a recovery steps below will guaranty recovery
> from split-brain condition.
> 1. # umount block devices
> 2. # disconnect all resources on both nodes
> $ drbdadm disconnect all
> 3. # force both nodes to be secondary
> $ drbdadm secondary all
> 4. # select slave drive and tell it to drop all data
> $ drbdadm -- --discard-my-data connect resource
> to force all resources on the secondary node ( bad ) to be secondary
> and to drop all date.
> 5. # select source and master mode and start synchronisation.
> $ drbdadm -- --overwrite-data-of-peer primary resource
> 6. # Start synchronisation on the source ( master ) node
> drbdadm connect resource
> I would greatly appreciate if you can answer my questions.
> 1. Any comments on the procedure?
> 2. How do I know if --discard-my-date option is necessary ?
> 3. I wonder if "--" is required after drbdamin? It is mentioned in the
> on-line version of DRBD User's guide, whilst man file for drbdadm does
> not mention it.
> 3. After DRBD starts process of synchronisation, can I mount block
> devises on the master node, or do I have to wait until synchronisation
> is completed?
> Thank you very much for your help.
e-mail: ivan.teliatnikov at gmail.com
моб: +7 90609 30 268 ( in Russia )
mob: +61 402 173 179 (in Australia ) *
More information about the drbd-user