Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
> -----Original Message----- > From: drbd-user-bounces at linbit.com > [mailto:drbd-user-bounces at linbit.com] On Behalf Of Peter Bagger > Sent: Friday, November 03, 2006 8:39 AM > To: Drbd-Users > Subject: Re: [DRBD-user] DRBD in Diskless/Inconsistent state, > can't changestate to Primary > > Thanks, > > I has tried it, but i still won't come into primary > > drbd64:~# drbdsetup /dev/drbd0 primary -o State change > failed: (-2) Refusing to be Primary without at least one UpToDate disk > > Peter > > > Christopher Hawkins wrote: > > >--do-what-I-say seems to be deprecated now. Try "drbdsetup > /dev/drbd0 > >primary -o" > > and for more details look at the -o paramter in the > drbdsetup man page. > > > >Chris I would also try: drbdadm create-md r0 on the secondary machine (the one without any valid data). This will mark it as a sync target, no questions asked, and may help the other node with becoming primary. However, I just looked at your log files and it appears that drbd cannot see the underlying device. Your node is diskless, and I think you to be "inconsistent" before the primary -o will work. Perhaps you need to run drbd create-md r0 on the node you are working on? You have to do that to create the initial metadata before drbd can do anything with the device. Chris