[DRBD-user] Inconsistent state/get me out of hole

Lars Ellenberg Lars.Ellenberg at linbit.com
Mon Nov 27 17:58:53 CET 2006

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


/ 2006-11-27 15:28:37 +0000
\ James Vanns:
> So, after a fresh (and first time) install and carefully constructed (?)
> configuration file I start the drbd service (on redhat FC6).
> Unfortunately it broke :( I can't make either a primary or secondary
> because it complains about not having one UpToDate disk - there is
> nothing no these disks except the internal metadata. How can I fix this?
> 
> [root at jimmy lvm]# drbdadm primary all
> State change failed: (-2) Refusing to be Primary without at least one
> UpToDate disk
> 
> [root at jimmy lvm]# drbdadm invalidate all
> State change failed: (-4) Refusing to be inconsistent on both nodes

you are already invalid (inconsistent)·
what you want is to _forcefully mark as valid_ your data.

> [root at jimmy lvm]# drbdadm resume-sync all
> Failure: (135) PauseFlagAlreadyClear
> 
> [root at jimmy lvm]# cat /proc/drbd 
> version: 8.0pre6 (api:85/proto:85)
> SVN Revision: 2585 build by root at jimmy.prod.local, 2006-11-23 13:14:30
>  0: cs:Connected st:Secondary/Secondary ds:Inconsistent/Inconsistent C
> r---
>     ns:0 nr:0 dw:0 dr:0 al:0 bm:0 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
>  1: cs:Connected st:Secondary/Secondary ds:Inconsistent/Inconsistent C
> r---
>     ns:0 nr:0 dw:0 dr:0 al:0 bm:0 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
> 
> Any help appreciated.

cd drbd-8.0pre6/documentation
man ./drbdsetup.8
/PRIMARY

so, if you really mean it
(you probably do, if this is the initial setup)
# drbdadm -- --overwrite-data-of-peer primary all

 :)

-- 
: Lars Ellenberg                                  Tel +43-1-8178292-0  :
: LINBIT Information Technologies GmbH            Fax +43-1-8178292-82 :
: Schoenbrunner Str. 244, A-1120 Vienna/Europe   http://www.linbit.com :
__
please use the "List-Reply" function of your email client.



More information about the drbd-user mailing list