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

David Muir Sharnoff drbd at dave.sharnoff.org
Wed Jan 16 20:11:27 CET 2008

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


James Vanns <james.vanns at ...> writes:
> 
> Thanks. Yup, found that '-o' option. I've made one primary and one
> secondary for the time being - they are syncing now.
> 
> Jim
> 
> On Mon, 2006-11-27 at 17:58 +0100, Lars Ellenberg wrote:
> > / 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 ..., 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
> > 
> >  :)
> > 

The overwrite-data-of-peer thing isn't working for me:

# 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
a:/etc# drbdadm -- -o primary r0
State change failed: (-2) Refusing to be Primary without at\
  least one UpToDate disk
Command 'drbdsetup /dev/drbd0 primary -o' terminated with exit code 11

I'm trying to do an initial setup.  I'm runing Debian with a 2.6.18 
kernel I built myself using the debian patches and the debian 
drbd8-module-source patch version 2:8.0.4-1.

I've initialized my meta-data stores.  I don't know what else to try.

Help!

Thanks,
-Dave





More information about the drbd-user mailing list