Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
/ 2007-02-13 11:51:24 -0500 \ Ross S. W. Walker: > > -----Original Message----- > > From: drbd-user-bounces at lists.linbit.com > > [mailto:drbd-user-bounces at lists.linbit.com] On Behalf Of > > Jeronimo Zucco > > Sent: Tuesday, February 13, 2007 11:28 AM > > To: drbd-user at lists.linbit.com > > Subject: [DRBD-user] State change failed in drbd8 > > > > Hi, list. > > > > I'm installing drbd8 in Ubuntu server, but when I try to set a > > primary server, I receive: > > > > root at odin1:/etc# drbdadm primary all > > State change failed: (-2) Refusing to be Primary without at least one > > UpToDate disk > > Command 'drbdsetup /dev/drbd0 primary' terminated with exit code 11 > > drbdsetup exited with code 11 > > > > > > My server status is: > > > > root at odin1:/etc# cat /proc/drbd > > version: 8.0.0 (api:86/proto:86) > > SVN Revision: 2747 build by root at odin1, 2007-02-12 18:50:51 > > 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 > > > > > > I apreciate any help. > > First time, you need to force one side as primary with: drbdadm > --do-what-I-say primary all in drbd 8, this has been renamed, since people not always know what they are saying... what you need to do is drbdadm -- --overwrite-data-of-peer primary all ^^ ^^^^^^^^^^^^^^^^^^^^^^^^ note the extra "--" in front of the plain english long option. in case you have existing data in that partition, you should obviously give this on the node with the good data. you should normally give this extra option exactly _one_ time in the lifetime of one drbd device (the first time you make it primary). unless you have to recover from some deasaster, maybe. -- : Lars Ellenberg Tel +43-1-8178292-0 : : LINBIT Information Technologies GmbH Fax +43-1-8178292-82 : : Vivenotgasse 48, A-1120 Vienna/Europe http://www.linbit.com : __ please use the "List-Reply" function of your email client.