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

Mailing List Archive: DRBD: Users

Primary on both nodes

 

 

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


gilberto.nunes at selbetti

Nov 26, 2009, 8:03 AM

Post #1 of 18 (2341 views)
Permalink
Primary on both nodes

Hi all

I have the follow set of drbd nodes:

global { usage-count no; }
common {
syncer
{
rate 1000M;
}
}
resource r0 {
protocol C;
startup {
wfc-timeout 15;
degr-wfc-timeout 60;
become-primary-on both;
}
net {
cram-hmac-alg sha1;
shared-secret "drbd123";
allow-two-primaries;
after-sb-0pri discard-zero-changes;
after-sb-1pri discard-secondary;
after-sb-2pri disconnect;
}
on virt-00 {
device /dev/drbd0;
disk /dev/sda5;
address 10.0.0.1:7788;
meta-disk internal;
}
on virt-01 {
device /dev/drbd0;
disk /dev/sda7;
address 10.0.0.2:7788;
meta-disk internal;
}
}

Both node are identical.

But when I restart the nodes, I get both on StandAlone:

cat /proc/drbd
version: 8.3.3 (api:88/proto:86-91)
GIT-hash: 49bfeeaf3690ad0b9afd5376feda9e9eb34a30f3 build by
nobody [at] virt-0, 2009-11-25 16:09:37
0: cs:StandAlone ro:Primary/Unknown ds:UpToDate/DUnknown r----
ns:0 nr:0 dw:0 dr:220 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0

The only way to return to Primary/Primary state, is running this command
on both nodes:

drbdadm -- --overwrite-data-of-peer primary r0

It is not perfect world for me.
I need both nodes become primary on boot time...

Perhaps I miss some configuration!! I don't know..

Thanks for any help
--
*Gilberto Nunes Fereira*
*TI*
*Selbetti Gestão de Documentos*
*Telefone: +55 (47) 3441-6004*
*Celular: +55 (47) 8861-6672*



/"Bendita a nação cujo Deus é o SENHOR!"/
*99* <><

_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


gianluca.cecchi at gmail

Nov 26, 2009, 8:09 AM

Post #2 of 18 (2275 views)
Permalink
Re: Primary on both nodes [In reply to]

On Thu, Nov 26, 2009 at 5:03 PM, gilberto nunes
<gilberto.nunes [at] selbetti> wrote:
> Hi all
>
[snip]
> The only way to return to Primary/Primary state, is running this command on
> both nodes:
>
> drbdadm -- --overwrite-data-of-peer primary r0
>
> It is not perfect world for me.
> I need both nodes become primary on boot time...
>

Hi,
any logs, just for start and understand?
Any iptables rules preventing communication on drbd port?

Gianluca
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


gilberto.nunes at selbetti

Nov 26, 2009, 8:15 AM

Post #3 of 18 (2284 views)
Permalink
Re: Primary on both nodes [In reply to]

Hi Gianluca

Iptables rules is clear on both nodes...
I just restart drbd to get this on /var/log/syslog:

Nov 26 14:12:44 virt-00 kernel: [ 1499.820298] block drbd0: role(
Primary -> Secondary )
Nov 26 14:12:44 virt-00 kernel: [ 1499.843065] block drbd0: peer(
Primary -> Unknown ) conn( Connected -> Disconnecting ) pdsk( UpToDate
-> DUnknown )
Nov 26 14:12:44 virt-00 kernel: [ 1499.843679] block drbd0: short read
expecting header on sock: r=-512
Nov 26 14:12:44 virt-00 kernel: [ 1499.843760] block drbd0: asender
terminated
Nov 26 14:12:44 virt-00 kernel: [ 1499.843763] block drbd0: Terminating
asender thread
Nov 26 14:12:44 virt-00 kernel: [ 1499.850797] block drbd0: Connection
closed
Nov 26 14:12:44 virt-00 kernel: [ 1499.850808] block drbd0: conn(
Disconnecting -> StandAlone )
Nov 26 14:12:44 virt-00 kernel: [ 1499.850861] block drbd0: receiver
terminated
Nov 26 14:12:44 virt-00 kernel: [ 1499.850864] block drbd0: Terminating
receiver thread
Nov 26 14:12:44 virt-00 kernel: [ 1499.850874] block drbd0: disk(
UpToDate -> Diskless )
Nov 26 14:12:44 virt-00 kernel: [ 1499.851032] block drbd0:
drbd_bm_resize called with capacity == 0
Nov 26 14:12:44 virt-00 kernel: [ 1499.851146] block drbd0: worker
terminated
Nov 26 14:12:44 virt-00 kernel: [ 1499.851148] block drbd0: Terminating
worker thread
Nov 26 14:12:44 virt-00 kernel: [ 1499.854157] drbd: module cleanup done.
Nov 26 14:12:44 virt-00 kernel: [ 1499.861434] drbd: initialized.
Version: 8.3.3 (api:88/proto:86-91)
Nov 26 14:12:44 virt-00 kernel: [ 1499.861437] drbd: GIT-hash:
49bfeeaf3690ad0b9afd5376feda9e9eb34a30f3 build by nobody [at] virt-0,
2009-11-25 16:53:33
Nov 26 14:12:44 virt-00 kernel: [ 1499.861440] drbd: registered as block
device major 147
Nov 26 14:12:44 virt-00 kernel: [ 1499.861442] drbd: minor_table @
0xffff880037c25a00
Nov 26 14:12:44 virt-00 kernel: [ 1499.865086] block drbd0: Starting
worker thread (from cqueue [1250])
Nov 26 14:12:44 virt-00 kernel: [ 1499.868605] block drbd0: disk(
Diskless -> Attaching )
Nov 26 14:12:44 virt-00 kernel: [ 1499.886575] block drbd0: Found 4
transactions (6 active extents) in activity log.
Nov 26 14:12:44 virt-00 kernel: [ 1499.886578] block drbd0: Method to
ensure write ordering: barrier
Nov 26 14:12:44 virt-00 kernel: [ 1499.886582] block drbd0:
max_segment_size ( = BIO size ) = 32768
Nov 26 14:12:44 virt-00 kernel: [ 1499.886585] block drbd0:
drbd_bm_resize called with capacity == 195376424
Nov 26 14:12:44 virt-00 kernel: [ 1499.887404] block drbd0: resync
bitmap: bits=24422053 words=381595
Nov 26 14:12:44 virt-00 kernel: [ 1499.887407] block drbd0: size = 93 GB
(97688212 KB)
Nov 26 14:12:44 virt-00 kernel: [ 1499.942099] block drbd0: recounting
of set bits took additional 1 jiffies
Nov 26 14:12:44 virt-00 kernel: [ 1499.942104] block drbd0: 0 KB (0
bits) marked out-of-sync by on disk bit-map.
Nov 26 14:12:44 virt-00 kernel: [ 1499.942111] block drbd0: disk(
Attaching -> UpToDate )
Nov 26 14:12:44 virt-00 kernel: [ 1499.954554] block drbd0: conn(
StandAlone -> Unconnected )
Nov 26 14:12:44 virt-00 kernel: [ 1499.954575] block drbd0: Starting
receiver thread (from drbd0_worker [2157])
Nov 26 14:12:44 virt-00 kernel: [ 1499.954601] block drbd0: receiver
(re)started
Nov 26 14:12:44 virt-00 kernel: [ 1499.954605] block drbd0: conn(
Unconnected -> WFConnection )
Nov 26 14:12:44 virt-00 kernel: [ 1500.248670] block drbd0: Handshake
successful: Agreed network protocol version 91
Nov 26 14:12:44 virt-00 kernel: [ 1500.248839] block drbd0: Peer
authenticated using 20 bytes of 'sha1' HMAC
Nov 26 14:12:44 virt-00 kernel: [ 1500.248845] block drbd0: conn(
WFConnection -> WFReportParams )
Nov 26 14:12:44 virt-00 kernel: [ 1500.248871] block drbd0: Starting
asender thread (from drbd0_receiver [2169])
Nov 26 14:12:44 virt-00 kernel: [ 1500.248955] block drbd0:
data-integrity-alg: <not-used>
Nov 26 14:12:44 virt-00 kernel: [ 1500.248971] block drbd0:
drbd_sync_handshake:
Nov 26 14:12:44 virt-00 kernel: [ 1500.248975] block drbd0: self
CC4B56C41D55355C:0000000000000000:7B260A7B72B1220D:499CB8E33477A545
bits:0 flags:0
Nov 26 14:12:44 virt-00 kernel: [ 1500.248978] block drbd0: peer
9E42A3DA479613D5:CC4B56C41D55355D:7B260A7B72B1220C:499CB8E33477A545
bits:0 flags:0
Nov 26 14:12:44 virt-00 kernel: [ 1500.248981] block drbd0:
uuid_compare()=-1 by rule 50
Nov 26 14:12:44 virt-00 kernel: [ 1500.248986] block drbd0: peer(
Unknown -> Primary ) conn( WFReportParams -> WFBitMapT ) pdsk( DUnknown
-> UpToDate )
Nov 26 14:12:44 virt-00 kernel: [ 1500.326444] block drbd0: conn(
WFBitMapT -> WFSyncUUID )
Nov 26 14:12:44 virt-00 kernel: [ 1500.327822] block drbd0: helper
command: /sbin/drbdadm before-resync-target minor-0
Nov 26 14:12:44 virt-00 kernel: [ 1500.329535] block drbd0: helper
command: /sbin/drbdadm before-resync-target minor-0 exit code 0 (0x0)
Nov 26 14:12:44 virt-00 kernel: [ 1500.329541] block drbd0: conn(
WFSyncUUID -> SyncTarget ) disk( UpToDate -> Inconsistent )
Nov 26 14:12:44 virt-00 kernel: [ 1500.329546] block drbd0: Began resync
as SyncTarget (will sync 0 KB [0 bits set]).
Nov 26 14:12:45 virt-00 kernel: [ 1500.870026] block drbd0: Resync done
(total 1 sec; paused 0 sec; 0 K/sec)
Nov 26 14:12:45 virt-00 kernel: [ 1500.870032] block drbd0: conn(
SyncTarget -> Connected ) disk( Inconsistent -> UpToDate )
Nov 26 14:12:45 virt-00 kernel: [ 1500.870038] block drbd0: helper
command: /sbin/drbdadm after-resync-target minor-0
Nov 26 14:12:45 virt-00 kernel: [ 1500.871490] block drbd0: helper
command: /sbin/drbdadm after-resync-target minor-0 exit code 0 (0x0)


Any idea!?!?!?!

Thanks

*Gilberto Nunes Ferreira*
*TI*
*Selbetti Gestão de Documentos*
*Telefone: +55 (47) 3441-6004*
*Celular: +55 (47) 8861-6672*



/"Bendita a nação cujo Deus é o SENHOR!"/
*99* <><



Gianluca Cecchi escreveu:
> On Thu, Nov 26, 2009 at 5:03 PM, gilberto nunes
> <gilberto.nunes [at] selbetti> wrote:
>
>> Hi all
>>
>>
> [snip]
>
>> The only way to return to Primary/Primary state, is running this command on
>> both nodes:
>>
>> drbdadm -- --overwrite-data-of-peer primary r0
>>
>> It is not perfect world for me.
>> I need both nodes become primary on boot time...
>>
>>
>
> Hi,
> any logs, just for start and understand?
> Any iptables rules preventing communication on drbd port?
>
> Gianluca
>
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


gianluca.cecchi at gmail

Nov 26, 2009, 8:30 AM

Post #4 of 18 (2279 views)
Permalink
Re: Primary on both nodes [In reply to]

On Thu, Nov 26, 2009 at 5:15 PM, gilberto nunes
<gilberto.nunes [at] selbetti> wrote:
> Hi Gianluca
>
> Iptables rules is clear on both nodes...
> I just restart drbd to get this on /var/log/syslog:
>
[snip]
> Nov 26 14:12:44 virt-00 kernel: [ 1500.329546] block drbd0: Began resync as
> SyncTarget (will sync 0 KB [0 bits set]).
> Nov 26 14:12:45 virt-00 kernel: [ 1500.870026] block drbd0: Resync done
> (total 1 sec; paused 0 sec; 0 K/sec)
> Nov 26 14:12:45 virt-00 kernel: [ 1500.870032] block drbd0: conn( SyncTarget
> -> Connected ) disk( Inconsistent -> UpToDate )
> Nov 26 14:12:45 virt-00 kernel: [ 1500.870038] block drbd0: helper command:
> /sbin/drbdadm after-resync-target minor-0
> Nov 26 14:12:45 virt-00 kernel: [ 1500.871490] block drbd0: helper command:
> /sbin/drbdadm after-resync-target minor-0 exit code 0 (0x0)
>

and messages on the other node in the mean time?
any other ones after 14:12:45?
what does it give the command
cat /proc/drbd
on both nodes at this point?
You should have
ro:Primary/Primary ds:UpToDate/UpToDate
right?
Now, when they are in sync in which order do you stop and then start the nodes?
And what are the messages on one node when you shutdown the other one?
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


gilberto.nunes at selbetti

Nov 26, 2009, 8:40 AM

Post #5 of 18 (2274 views)
Permalink
Re: Primary on both nodes [In reply to]

Ok

Now I halt both node ok???

The
I am on virt-00, that is my node0 here.
I use this command:

cat /proc/drbd

and get this:

version: 8.3.3 (api:88/proto:86-91)
GIT-hash: 49bfeeaf3690ad0b9afd5376feda9e9eb34a30f3 build by
nobody [at] virt-0, 2009-11-25 16:53:33
0: cs:StandAlone ro:Primary/Unknown ds:UpToDate/DUnknown r----
ns:0 nr:0 dw:0 dr:220 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0

And on virt-01, that is my node1 here, I get this:

version: 8.3.3 (api:88/proto:86-91)
GIT-hash: 49bfeeaf3690ad0b9afd5376feda9e9eb34a30f3 build by
nobody [at] virt-0, 2009-11-25 16:09:37
0: cs:StandAlone ro:Primary/Unknown ds:UpToDate/DUnknown r----
ns:0 nr:0 dw:0 dr:220 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0




*Gilberto Nunes Ferreira*
*TI*
*Selbetti Gestão de Documentos*
*Telefone: +55 (47) 3441-6004*
*Celular: +55 (47) 8861-6672*



/"Bendita a nação cujo Deus é o SENHOR!"/
*99* <><



Gianluca Cecchi escreveu:
> On Thu, Nov 26, 2009 at 5:15 PM, gilberto nunes
> <gilberto.nunes [at] selbetti> wrote:
>
>> Hi Gianluca
>>
>> Iptables rules is clear on both nodes...
>> I just restart drbd to get this on /var/log/syslog:
>>
>>
> [snip]
>
>> Nov 26 14:12:44 virt-00 kernel: [ 1500.329546] block drbd0: Began resync as
>> SyncTarget (will sync 0 KB [0 bits set]).
>> Nov 26 14:12:45 virt-00 kernel: [ 1500.870026] block drbd0: Resync done
>> (total 1 sec; paused 0 sec; 0 K/sec)
>> Nov 26 14:12:45 virt-00 kernel: [ 1500.870032] block drbd0: conn( SyncTarget
>> -> Connected ) disk( Inconsistent -> UpToDate )
>> Nov 26 14:12:45 virt-00 kernel: [ 1500.870038] block drbd0: helper command:
>> /sbin/drbdadm after-resync-target minor-0
>> Nov 26 14:12:45 virt-00 kernel: [ 1500.871490] block drbd0: helper command:
>> /sbin/drbdadm after-resync-target minor-0 exit code 0 (0x0)
>>
>>
>
> and messages on the other node in the mean time?
> any other ones after 14:12:45?
> what does it give the command
> cat /proc/drbd
> on both nodes at this point?
> You should have
> ro:Primary/Primary ds:UpToDate/UpToDate
> right?
> Now, when they are in sync in which order do you stop and then start the nodes?
> And what are the messages on one node when you shutdown the other one?
>
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


gianluca.cecchi at gmail

Nov 26, 2009, 8:57 AM

Post #6 of 18 (2277 views)
Permalink
Re: Primary on both nodes [In reply to]

On Thu, Nov 26, 2009 at 5:40 PM, gilberto nunes
<gilberto.nunes [at] selbetti> wrote:
> Ok
>
> Now I halt both node ok???
>
> The
> I am on virt-00, that is my node0 here.
> I use this command:
>
> cat /proc/drbd
>
> and get this:
>
> version: 8.3.3 (api:88/proto:86-91)
> GIT-hash: 49bfeeaf3690ad0b9afd5376feda9e9eb34a30f3 build by nobody [at] virt-0,
> 2009-11-25 16:53:33
> 0: cs:StandAlone ro:Primary/Unknown ds:UpToDate/DUnknown   r----
>   ns:0 nr:0 dw:0 dr:220 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0
>
> And on virt-01, that is my node1 here, I get this:
>
> version: 8.3.3 (api:88/proto:86-91)
> GIT-hash: 49bfeeaf3690ad0b9afd5376feda9e9eb34a30f3 build by nobody [at] virt-0,
> 2009-11-25 16:09:37
> 0: cs:StandAlone ro:Primary/Unknown ds:UpToDate/DUnknown   r----
>   ns:0 nr:0 dw:0 dr:220 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0
>
>

No, it is not good.
In the first post you said that after
drbdadm -- --overwrite-data-of-peer primary r0

you was ok.
"Ok" here means that on both you have, after command above completes,
something like
cs:connected ro:Primary/Primary ds:UpToDate/UpToDate

Is this so? Otherwise it is not good..
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


gilberto.nunes at selbetti

Nov 26, 2009, 9:06 AM

Post #7 of 18 (2279 views)
Permalink
Re: Primary on both nodes [In reply to]

Yes! Yes...


After I run on virt-01 (node1)

root [at] virt-0:~# service drbd restart
* Restarting all DRBD
resources
[ OK ]
root [at] virt-0:~# cat /proc/drbd
version: 8.3.3 (api:88/proto:86-91)
GIT-hash: 49bfeeaf3690ad0b9afd5376feda9e9eb34a30f3 build by
nobody [at] virt-0, 2009-11-25 16:09:37
0: cs:SyncTarget ro:Secondary/Secondary ds:Inconsistent/UpToDate C r----
ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:1 pe:0 ua:0 ap:0 ep:1 wo:b oos:0
[===================>] sync'ed:100.0% (0/0)K
finish: 0:00:00 speed: 0 (0) K/sec
root [at] virt-0:~# cat /proc/drbd
version: 8.3.3 (api:88/proto:86-91)
GIT-hash: 49bfeeaf3690ad0b9afd5376feda9e9eb34a30f3 build by
nobody [at] virt-0, 2009-11-25 16:09:37
0: cs:Connected ro:Secondary/Secondary ds:UpToDate/UpToDate C r----
ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0


Both nodes is in Secondary/Secondary.
But remenber the drbd.conf??? become-primary-on-both???

Why this not happen???


*Gilberto Nunes Ferreira*
*TI*
*Selbetti Gestão de Documentos*
*Telefone: +55 (47) 3441-6004*
*Celular: +55 (47) 8861-6672*



/"Bendita a nação cujo Deus é o SENHOR!"/
*99* <><



Gianluca Cecchi escreveu:
> On Thu, Nov 26, 2009 at 5:40 PM, gilberto nunes
> <gilberto.nunes [at] selbetti> wrote:
>
>> Ok
>>
>> Now I halt both node ok???
>>
>> The
>> I am on virt-00, that is my node0 here.
>> I use this command:
>>
>> cat /proc/drbd
>>
>> and get this:
>>
>> version: 8.3.3 (api:88/proto:86-91)
>> GIT-hash: 49bfeeaf3690ad0b9afd5376feda9e9eb34a30f3 build by nobody [at] virt-0,
>> 2009-11-25 16:53:33
>> 0: cs:StandAlone ro:Primary/Unknown ds:UpToDate/DUnknown r----
>> ns:0 nr:0 dw:0 dr:220 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0
>>
>> And on virt-01, that is my node1 here, I get this:
>>
>> version: 8.3.3 (api:88/proto:86-91)
>> GIT-hash: 49bfeeaf3690ad0b9afd5376feda9e9eb34a30f3 build by nobody [at] virt-0,
>> 2009-11-25 16:09:37
>> 0: cs:StandAlone ro:Primary/Unknown ds:UpToDate/DUnknown r----
>> ns:0 nr:0 dw:0 dr:220 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0
>>
>>
>>
>
> No, it is not good.
> In the first post you said that after
> drbdadm -- --overwrite-data-of-peer primary r0
>
> you was ok.
> "Ok" here means that on both you have, after command above completes,
> something like
> cs:connected ro:Primary/Primary ds:UpToDate/UpToDate
>
> Is this so? Otherwise it is not good..
>
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


gilberto.nunes at selbetti

Nov 26, 2009, 10:17 AM

Post #8 of 18 (2273 views)
Permalink
Re: Primary on both nodes [In reply to]

Now I thing that I need zeroing the partition used to DRBD....

But this is a destruction procedure...
I do not want lost the data record on it!

any light!!

*Gilberto Nunes Ferreira*
*TI*
*Selbetti Gestão de Documentos*
*Telefone: +55 (47) 3441-6004*
*Celular: +55 (47) 8861-6672*



/"Bendita a nação cujo Deus é o SENHOR!"/
*99* <><



gilberto nunes escreveu:
> Yes! Yes...
>
>
> After I run on virt-01 (node1)
>
> root [at] virt-0:~# service drbd restart
> * Restarting all DRBD
> resources
> [ OK ]
> root [at] virt-0:~# cat /proc/drbd
> version: 8.3.3 (api:88/proto:86-91)
> GIT-hash: 49bfeeaf3690ad0b9afd5376feda9e9eb34a30f3 build by
> nobody [at] virt-0, 2009-11-25 16:09:37
> 0: cs:SyncTarget ro:Secondary/Secondary ds:Inconsistent/UpToDate C r----
> ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:1 pe:0 ua:0 ap:0 ep:1 wo:b oos:0
> [===================>] sync'ed:100.0% (0/0)K
> finish: 0:00:00 speed: 0 (0) K/sec
> root [at] virt-0:~# cat /proc/drbd
> version: 8.3.3 (api:88/proto:86-91)
> GIT-hash: 49bfeeaf3690ad0b9afd5376feda9e9eb34a30f3 build by
> nobody [at] virt-0, 2009-11-25 16:09:37
> 0: cs:Connected ro:Secondary/Secondary ds:UpToDate/UpToDate C r----
> ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0
>
>
> Both nodes is in Secondary/Secondary.
> But remenber the drbd.conf??? become-primary-on-both???
>
> Why this not happen???
>
>
> *Gilberto Nunes Ferreira*
> *TI*
> *Selbetti Gestão de Documentos*
> *Telefone: +55 (47) 3441-6004*
> *Celular: +55 (47) 8861-6672*
>
>
>
> /"Bendita a nação cujo Deus é o SENHOR!"/
> *99* <><
>
>
>
> Gianluca Cecchi escreveu:
>> On Thu, Nov 26, 2009 at 5:40 PM, gilberto nunes
>> <gilberto.nunes [at] selbetti> wrote:
>>
>>> Ok
>>>
>>> Now I halt both node ok???
>>>
>>> The
>>> I am on virt-00, that is my node0 here.
>>> I use this command:
>>>
>>> cat /proc/drbd
>>>
>>> and get this:
>>>
>>> version: 8.3.3 (api:88/proto:86-91)
>>> GIT-hash: 49bfeeaf3690ad0b9afd5376feda9e9eb34a30f3 build by
>>> nobody [at] virt-0,
>>> 2009-11-25 16:53:33
>>> 0: cs:StandAlone ro:Primary/Unknown ds:UpToDate/DUnknown r----
>>> ns:0 nr:0 dw:0 dr:220 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0
>>>
>>> And on virt-01, that is my node1 here, I get this:
>>>
>>> version: 8.3.3 (api:88/proto:86-91)
>>> GIT-hash: 49bfeeaf3690ad0b9afd5376feda9e9eb34a30f3 build by
>>> nobody [at] virt-0,
>>> 2009-11-25 16:09:37
>>> 0: cs:StandAlone ro:Primary/Unknown ds:UpToDate/DUnknown r----
>>> ns:0 nr:0 dw:0 dr:220 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0
>>>
>>>
>>>
>>
>> No, it is not good.
>> In the first post you said that after
>> drbdadm -- --overwrite-data-of-peer primary r0
>>
>> you was ok.
>> "Ok" here means that on both you have, after command above completes,
>> something like
>> cs:connected ro:Primary/Primary ds:UpToDate/UpToDate
>>
>> Is this so? Otherwise it is not good..
>>
> _______________________________________________
> 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


lars.ellenberg at linbit

Nov 26, 2009, 10:29 AM

Post #9 of 18 (2273 views)
Permalink
Re: Primary on both nodes [In reply to]

On Thu, Nov 26, 2009 at 04:17:36PM -0200, gilberto nunes wrote:
> Now I thing that I need zeroing the partition used to DRBD....
>
> But this is a destruction procedure...
> I do not want lost the data record on it!
>
> any light!!

Don't use Gentoo ;)

No, actually I meant,
double check your init script.


--
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
__
please don't Cc me, but send to list -- I'm subscribed
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


gilberto.nunes at selbetti

Nov 26, 2009, 10:33 AM

Post #10 of 18 (2276 views)
Permalink
Re: Primary on both nodes [In reply to]

Well...

I never use it!.. :-)

But whatever...

I will do it

Thanks

Gilberto Nunes Ferreira
TI
Selbetti Gest&atilde;o de Documentos
Telefone: +55 (47) 3441-6004
Celular: +55 (47) 8861-6672



"Bendita a na&ccedil;&atilde;o cujo Deus &eacute; o SENHOR!"
99 <><



Lars Ellenberg escreveu:
On Thu, Nov 26, 2009 at 04:17:36PM -0200, gilberto nunes wrote:
Now I thing that I need zeroing the partition used to DRBD.... But this is a destruction procedure... I do not want lost the data record on it! any light!!
Don't use Gentoo ;) No, actually I meant, double check your init script.
Attachments: image001.jpg (16.2 KB)


florian.haas at linbit

Nov 26, 2009, 10:34 AM

Post #11 of 18 (2281 views)
Permalink
Re: Primary on both nodes [In reply to]

On 11/26/2009 07:33 PM, gilberto nunes wrote:
> Well...
>
> I never use it!.. :-)

You are aware that only the init script takes care of the
become-primary-on logic?

Well if you weren't, you are now. :)

Cheers,
Florian
Attachments: signature.asc (0.25 KB)


gilberto.nunes at selbetti

Nov 26, 2009, 10:42 AM

Post #12 of 18 (2280 views)
Permalink
Re: Primary on both nodes [In reply to]

ok now

Let's put some order in the caos!!

What init script have concern to my original problem with DRBD...

Please, do not crucify me....

I just wanna learn more


Thanks

Gilberto Nunes Ferreira
TI
Selbetti Gest&atilde;o de Documentos
Telefone: +55 (47) 3441-6004
Celular: +55 (47) 8861-6672



"Bendita a na&ccedil;&atilde;o cujo Deus &eacute; o SENHOR!"
99 <><



Florian Haas escreveu:
On 11/26/2009 07:33 PM, gilberto nunes wrote:
Well... I never use it!.. :-)
You are aware that only the init script takes care of the become-primary-on logic? Well if you weren't, you are now. :) Cheers, Florian
_______________________________________________ drbd-user mailing list drbd-user [at] lists http://lists.linbit.com/mailman/listinfo/drbd-user"]http://lists.linbit.com/mailman/listinfo/drbd-user
Attachments: image001.jpg (16.2 KB)


gilberto.nunes at selbetti

Nov 27, 2009, 3:26 AM

Post #13 of 18 (2258 views)
Permalink
Re: Primary on both nodes (SOLVED) [In reply to]

Hi folks

I found a missconfiguration here...

Apparently, DRBD do not work properly with bridge devices... ( that is
correct?)

I was use br1 to dedicates device between nodes...

I disable bridge and use 'real' device and now evertything is going right...

But, to my project here, I really need bridge devices because inside a
VM that I deploy with KVM, I use DRBD too, and the DRBD use a bridge
device use by DRBD on real server....

The IP of br1 on real server is the same range on VM, to communcate with
other VM...

Thanks

*Gilberto Nunes Ferreira*
*TI*
*Selbetti Gestão de Documentos*
*Telefone: +55 (47) 3441-6004*
*Celular: +55 (47) 8861-6672*



/"Bendita a nação cujo Deus é o SENHOR!"/
*99* <><



gilberto nunes escreveu:
> ok now
>
> Let's put some order in the caos!!
>
> What init script have concern to my original problem with DRBD...
>
> Please, do not crucify me....
>
> I just wanna learn more
>
>
> Thanks
>
> *Gilberto Nunes Ferreira*
> *TI*
> *Selbetti Gestão de Documentos*
> *Telefone: +55 (47) 3441-6004*
> *Celular: +55 (47) 8861-6672*
>
>
>
> /"Bendita a nação cujo Deus é o SENHOR!"/
> *99* <><
>
>
>
> Florian Haas escreveu:
>> On 11/26/2009 07:33 PM, gilberto nunes wrote:
>>
>>> Well...
>>>
>>> I never use it!.. :-)
>>>
>>
>> You are aware that only the init script takes care of the
>> become-primary-on logic?
>>
>> Well if you weren't, you are now. :)
>>
>> Cheers,
>> Florian
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> 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
>
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


gilberto.nunes at selbetti

Nov 27, 2009, 3:44 AM

Post #14 of 18 (2246 views)
Permalink
Re: Primary on both nodes (SOLVED) [In reply to]

Just a supplement

Now, when I reboot the both machines, I get this message on secondary node:

block drbd0: short read expecting header on sock:r=0

What this meaning???

Thanks

*Gilberto Nunes Ferreira*
*TI*
*Selbetti Gestão de Documentos*
*Telefone: +55 (47) 3441-6004*
*Celular: +55 (47) 8861-6672*



/"Bendita a nação cujo Deus é o SENHOR!"/
*99* <><



gilberto nunes escreveu:
> Hi folks
>
> I found a missconfiguration here...
>
> Apparently, DRBD do not work properly with bridge devices... ( that is
> correct?)
>
> I was use br1 to dedicates device between nodes...
>
> I disable bridge and use 'real' device and now evertything is going
> right...
>
> But, to my project here, I really need bridge devices because inside a
> VM that I deploy with KVM, I use DRBD too, and the DRBD use a bridge
> device use by DRBD on real server....
>
> The IP of br1 on real server is the same range on VM, to communcate
> with other VM...
>
> Thanks
>
> *Gilberto Nunes Ferreira*
> *TI*
> *Selbetti Gestão de Documentos*
> *Telefone: +55 (47) 3441-6004*
> *Celular: +55 (47) 8861-6672*
>
>
>
> /"Bendita a nação cujo Deus é o SENHOR!"/
> *99* <><
>
>
>
> gilberto nunes escreveu:
>> ok now
>>
>> Let's put some order in the caos!!
>>
>> What init script have concern to my original problem with DRBD...
>>
>> Please, do not crucify me....
>>
>> I just wanna learn more
>>
>>
>> Thanks
>>
>> *Gilberto Nunes Ferreira*
>> *TI*
>> *Selbetti Gestão de Documentos*
>> *Telefone: +55 (47) 3441-6004*
>> *Celular: +55 (47) 8861-6672*
>>
>>
>>
>> /"Bendita a nação cujo Deus é o SENHOR!"/
>> *99* <><
>>
>>
>>
>> Florian Haas escreveu:
>>> On 11/26/2009 07:33 PM, gilberto nunes wrote:
>>>
>>>> Well...
>>>>
>>>> I never use it!.. :-)
>>>>
>>>
>>> You are aware that only the init script takes care of the
>>> become-primary-on logic?
>>>
>>> Well if you weren't, you are now. :)
>>>
>>> Cheers,
>>> Florian
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>> _______________________________________________
>>> 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
>>
> _______________________________________________
> 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


gilberto.nunes at selbetti

Nov 27, 2009, 4:35 AM

Post #15 of 18 (2254 views)
Permalink
Re: Primary on both nodes (SOLVED) [In reply to]

Is there anybody here????

Gilberto Nunes Ferreira
TI
Selbetti Gest&atilde;o de Documentos
Telefone: +55 (47) 3441-6004
Celular: +55 (47) 8861-6672



"Bendita a na&ccedil;&atilde;o cujo Deus &eacute; o SENHOR!"
99 <><



gilberto nunes escreveu:
Hi folks

I found a missconfiguration here...

Apparently, DRBD do not work properly with bridge devices... ( that is correct?)

I was use br1 to dedicates device between nodes...

I disable bridge and use 'real' device and now evertything is going right...

But, to my project here, I really need bridge devices because inside a VM that I deploy with KVM, I use DRBD too, and the DRBD use a bridge device use by DRBD on real server....

The IP of br1 on real server is the same range on VM, to communcate with other VM...

Thanks

*Gilberto Nunes Ferreira*
*TI*
*Selbetti Gest&atilde;o de Documentos*
*Telefone: +55 (47) 3441-6004*
*Celular: +55 (47) 8861-6672*



/"Bendita a na&ccedil;&atilde;o cujo Deus &eacute; o SENHOR!"/
*99* <><



gilberto nunes escreveu:
ok now

Let's put some order in the caos!!

What init script have concern to my original problem with DRBD...

Please, do not crucify me....

I just wanna learn more


Thanks

*Gilberto Nunes Ferreira*
*TI*
*Selbetti Gest&atilde;o de Documentos*
*Telefone: +55 (47) 3441-6004*
*Celular: +55 (47) 8861-6672*



/"Bendita a na&ccedil;&atilde;o cujo Deus &eacute; o SENHOR!"/
*99* <><



Florian Haas escreveu:
On 11/26/2009 07:33 PM, gilberto nunes wrote:
Well...

I never use it!.. :-)

You are aware that only the init script takes care of the
become-primary-on logic?

Well if you weren't, you are now. :)

Cheers,
Florian


------------------------------------------------------------------------

_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user"]http://lists.linbit.com/mailman/listinfo/drbd-user
------------------------------------------------------------------------

_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user"]http://lists.linbit.com/mailman/listinfo/drbd-user
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user"]http://lists.linbit.com/mailman/listinfo/drbd-user
Attachments: image001.jpg (16.2 KB)


linux at alteeve

Nov 27, 2009, 6:14 AM

Post #16 of 18 (2245 views)
Permalink
Re: Primary on both nodes (SOLVED) [In reply to]

gilberto nunes wrote:
> Hi folks
>
> I found a missconfiguration here...
>
> Apparently, DRBD do not work properly with bridge devices... ( that is
> correct?)
>
> I was use br1 to dedicates device between nodes...
>
> I disable bridge and use 'real' device and now evertything is going
> right...
>
> But, to my project here, I really need bridge devices because inside a
> VM that I deploy with KVM, I use DRBD too, and the DRBD use a bridge
> device use by DRBD on real server....
>
> The IP of br1 on real server is the same range on VM, to communcate with
> other VM...
>
> Thanks
>
> *Gilberto Nunes Ferreira*

This may not help, but at least it breaks the silence. :)

I've not used DRBD in a VM, but I do use it between dom0s via a real
switch and I use bridging between a set of VMs. As I've gotten my system
set up, my bridges don't have IPs themselves. In this configuration,
they are essentially just switches... Not addressable devices.

So what I am wondering is; Could your problem be a mis-configuration on
the networking instead of an actual problem with DRBD? To be honest, and
I am no expert, I don't see how the difference between real and virtual
switches/bridges should affect DRBD at all.

Madi
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


florian.haas at linbit

Nov 27, 2009, 6:47 AM

Post #17 of 18 (2255 views)
Permalink
Re: Primary on both nodes (SOLVED) [In reply to]

Guys this may totally baffle you, but I'm actually subscribed to the
list. :) No need to CC me personally.

Cheers,
Florian
Attachments: signature.asc (0.25 KB)


linux at alteeve

Nov 27, 2009, 5:39 PM

Post #18 of 18 (2227 views)
Permalink
Re: Primary on both nodes (SOLVED) [In reply to]

Florian Haas wrote:
> Guys this may totally baffle you, but I'm actually subscribed to the
> list. :) No need to CC me personally.
>
> Cheers,
> Florian

Lol, sorry. Out of habit I hit ctrl+alt+r when replying to lists that
default replies to the author instead of the list. I usually neglect to
remove individual senders. Sorry for the line noise.

Madi
_______________________________________________
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.