[DRBD-user] Primary on both nodes

gilberto nunes gilberto.nunes at selbetti.com.br
Thu Nov 26 17:15:41 CET 2009


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-00, 
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.com.br> 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
>   


More information about the drbd-user mailing list