Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DRBD: Users

DRBD issues : cs:WFConnection st:Secondary/Unknown

 

 

DRBD users RSS feed   Index | Next | Previous | View Threaded


Sayed.Mujtaba at in

Nov 27, 2007, 6:49 AM

Post #1 of 5 (17484 views)
Permalink
DRBD issues : cs:WFConnection st:Secondary/Unknown

Hi all ,

I have configured drbd on two machines and able to start the services

but one node is not detecting the others ..

As it shows Secondary/Unknown in place of Secondary/Secondary first..



[root [at] p5pv ~]# service drbd status
drbd driver loaded OK; device status:
version: 8.0.3 (api:86/proto:86)
SVN Revision: 2881 build by root [at] p5pv, 2007-11-22 00:06:58
0: cs:WFConnection st:Secondary/Unknown ds:Inconsistent/DUnknown 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/127 hits:0 misses:0 starving:0 dirty:0 changed:0
[root [at] p5pv ~]#




I tried running these commands to resolve it but it is saying device
has net config and needs to disconnect it





[root [at] p5pv ~]# drbdadm connect all
Failure: (125) Device has a net-config (use disconnect first)
Command 'drbdsetup /dev/drbd0 net 10.1.143.128:7788 10.1.143.154:7788 C
--set-defaults --create-device' terminated with exit code 10
drbdsetup exited with code 10
[root [at] p5pv ~]#



Any idea what netconfig configuration can be the problem ??



Thanks,

-Mujtaba


anujhere at gmail

Nov 27, 2007, 7:47 AM

Post #2 of 5 (17407 views)
Permalink
Re: DRBD issues : cs:WFConnection st:Secondary/Unknown [In reply to]

Did you gave
drbdadm -- --overwrite-data-of-peer primary all
>From one node which you want to be Primary at the first time.


On Nov 27, 2007 8:19 PM, Mujtaba, Sayed Mohammed
<Sayed.Mujtaba [at] in> wrote:
>
>
>
>
>
>
>
>
> Hi all ,
>
> I have configured drbd on two machines and able to start the services
>
> but one node is not detecting the others ..
>
> As it shows Secondary/Unknown in place of Secondary/Secondary first..
>
>
>
> [root [at] p5pv ~]# service drbd status
> drbd driver loaded OK; device status:
> version: 8.0.3 (api:86/proto:86)
> SVN Revision: 2881 build by root [at] p5pv, 2007-11-22 00:06:58
> 0: cs:WFConnection st:Secondary/Unknown ds:Inconsistent/DUnknown 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/127 hits:0 misses:0 starving:0 dirty:0 changed:0
> [root [at] p5pv ~]#
>
>
>
>
> I tried running these commands to resolve it but it is saying device has
> net config and needs to disconnect it
>
>
>
>
>
> [root [at] p5pv ~]# drbdadm connect all
> Failure: (125) Device has a net-config (use disconnect first)
> Command 'drbdsetup /dev/drbd0 net 10.1.143.128:7788 10.1.143.154:7788 C
> --set-defaults --create-device' terminated with exit code 10
> drbdsetup exited with code 10
> [root [at] p5pv ~]#
>
>
>
> Any idea what netconfig configuration can be the problem ??
>
>
>
> Thanks,
>
> -Mujtaba
>
>
> _______________________________________________
> drbd-user mailing list
> drbd-user [at] lists
> http://lists.linbit.com/mailman/listinfo/drbd-user
>
>
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


florian.haas at linbit

Nov 27, 2007, 9:44 AM

Post #3 of 5 (17405 views)
Permalink
Re: DRBD issues : cs:WFConnection st:Secondary/Unknown [In reply to]

On Tuesday 27 November 2007 16:47:40 अनुज wrote:
> Did you gave
> drbdadm -- --overwrite-data-of-peer primary all
>
> >From one node which you want to be Primary at the first time.

Probably not such a good idea. Mujtaba has indicated that he doesn't even have
connectivity on the network level at this point.

So, Mujtaba,
- check whether you can get a raw TCP connection between both hosts on port
7788/tcp;
- check whether a firewall happens to be blocking incoming or outgoing DRBD
traffic;
- check whether an SELinux/AppArmor/whatever policy impedes your DRBD
connection;
- and fix any associated issues.

Then, when you get "cs:Connected st:Secondary/Secondary
ds:Inconsistent/Inconsistent", do as anujhere told you to.

Cheers,
Florian


--
: Florian G. Haas
: LINBIT Information Technologies GmbH
: Vivenotgasse 48, A-1120 Vienna, Austria
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


Sayed.Mujtaba at in

Nov 27, 2007, 10:31 PM

Post #4 of 5 (17402 views)
Permalink
RE: DRBD issues : cs:WFConnection st:Secondary/Unknown [In reply to]

Hi Florian,
Thanks for your tips ..It helped me in resolving these issues ..
The real problem was with firewall and connectivity between hosts on port.



-----Original Message-----
From: drbd-user-bounces [at] lists [mailto:drbd-user-bounces [at] lists] On Behalf Of Florian Haas
Sent: Tuesday, November 27, 2007 11:14 PM
To: drbd-user [at] lists
Subject: Re: [DRBD-user] DRBD issues : cs:WFConnection st:Secondary/Unknown

On Tuesday 27 November 2007 16:47:40 अनुज wrote:
> Did you gave
> drbdadm -- --overwrite-data-of-peer primary all
>
> >From one node which you want to be Primary at the first time.

Probably not such a good idea. Mujtaba has indicated that he doesn't even have
connectivity on the network level at this point.

So, Mujtaba,
- check whether you can get a raw TCP connection between both hosts on port
7788/tcp;
- check whether a firewall happens to be blocking incoming or outgoing DRBD
traffic;
- check whether an SELinux/AppArmor/whatever policy impedes your DRBD
connection;
- and fix any associated issues.

Then, when you get "cs:Connected st:Secondary/Secondary
ds:Inconsistent/Inconsistent", do as anujhere told you to.

Cheers,
Florian


--
: Florian G. Haas
: LINBIT Information Technologies GmbH
: Vivenotgasse 48, A-1120 Vienna, Austria
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


florian.haas at linbit

Nov 27, 2007, 11:35 PM

Post #5 of 5 (17403 views)
Permalink
Re: DRBD issues : cs:WFConnection st:Secondary/Unknown [In reply to]

Yes. So I figured. :-)

Cheers,
Florian

On Wednesday 28 November 2007 07:31:53 Mujtaba, Sayed Mohammed wrote:
> Hi Florian,
> Thanks for your tips ..It helped me in resolving these issues ..
> The real problem was with firewall and connectivity between hosts on port.

--
: Florian G. Haas
: LINBIT Information Technologies GmbH
: Vivenotgasse 48, A-1120 Vienna, Austria
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user

DRBD users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.