[DRBD-user] Force a resource to become primary

Achim Stumpf hakim.news at googlemail.com
Fri Apr 4 17:24:32 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.


Roy Keene (Contractor) schrieb:
> All,
> 
>     I'm using DRBD 8.2.5 and trying to force a DRBD resource to become 
> primary while the peer is unavailable.  My resource is Consistent, but 
> not UpToDate.
> 
> 
> # drbdadm -- --overwrite-data-of-peer primary r0
> State change failed: (-2) Refusing to be Primary without at least one 
> UpToDate disk
> Command 'drbdsetup /dev/drbd0 primary --overwrite-data-of-peer' 
> terminated with exit code 11
> 

Did you try:

drbdadm -- primary all


> 
> # cat /proc/drbd
> version: 8.2.5 (api:88/proto:86-88)
> GIT-hash: 9faf052fdae5ef0c61b4d03890e2d2eab550610c build by 
> keene at nrlssc.navy.mil, 2008-03-27 14:03:18
>  0: cs:WFConnection st:Secondary/Unknown ds:Consistent/DUnknown C r---
>     ns:0 nr:0 dw:0 dr:0 al:0 bm:28 lo:0 pe:0 ua:0 ap:0
>         resync: used:0/31 hits:0 misses:0 starving:0 dirty:0 changed:0
>         act_log: used:0/3833 hits:0 misses:0 starving:0 dirty:0 changed:0
> 
> 
> How do I force this resource to become primary (given that under the 
> circumstances that it will be applied, loss of data 
> integrity/split-brain are acceptable outcomes).
> 
> Thanks,
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user



More information about the drbd-user mailing list