[DRBD-user] force primary mode without loss of local data

Martin Gombač martin at isg.si
Tue May 11 15:30:37 CEST 2010

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


I removed fencing, drbdadm adjust all and it's fixed.

Martin Gombač wrote:
> Hi,
>
> i want to force this drbd device to primary mode. It's peer is long 
> time gone, so i need to access this data. I don't want to access it 
> directly, but via drbd.
>
> 0: cs:WFConnection st:Secondary/Unknown ds:Consistent/DUnknown C r---
>    ns:0 nr:0 dw:0 dr:0 al:0 bm:130 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/257 hits:0 misses:0 starving:0 dirty:0 changed:0
>
>
> This is what i tried so far but with no luck:
>
> drbdadm -- --overwrite-data-of-peer primary X
> 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
>
> drbdadm -- --do-what-i-say primary X
> drbdsetup: unrecognized option '--do-what-i-say'
> Command 'drbdsetup /dev/drbd0 primary --do-what-i-say' terminated with 
> exit code 20
>
>
> Any other ideas? Should i recreate metadata?
> Tnx for help.
>
> Regards,
> M.
> _______________________________________________
> 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