[DRBD-user] drbd and secondary while primary down

Lars Ellenberg Lars.Ellenberg at linbit.com
Mon Jul 18 16:11:14 CEST 2005

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


/ 2005-07-18 08:50:05 -0400
\ Tim Hibbard:

> While NodeB is active I deleted a directory on the block device, excepting the 
> change to also reflect when NodeA became available again.  Instead when NodeA 
> comes alive again it seems to sync NodeA to NodeB block.  When heartbeat does 
> its recovery the directory and all it's contents are found on both block 
> devices again.  As a note, while NodeB is primary, /proc/drbd does show 
> Primary/UnKnown and mount shows /dev/drbd3 mounted to /usr/local/leo.

so. first, is it correct that you basically did:

| leo1# grep "^ 3: cs:" /proc/drbd
|  3: cs:Connected st:Primary/Secondary ld:Consistent
| 
| leo1# halt
| 
| ... automatic failover by heartbeat to leo2 ...
| 
| leo2# grep "^ 3: cs:" /proc/drbd
|  3: cs:WFConnettion st:Primary/Unknown ld:Consistent
| 
| leo2# rm -r /mountpoint/of/drbd3/some/previously/existing/directory
| 
| ... switch on leo1 again ...
| 
| leo2# grep "^ 3: cs:" /proc/drbd
|  3: cs:SyncSource st:Primary/Secondary ld:Consistent
| 
| ...
| 
| leo2# grep "^ 3: cs:" /proc/drbd
|  3: cs:Connected st:Primary/Secondary ld:Consistent
| 
| leo2# ..../hb_standby
| 
| ... operator triggered heartbeat failback to leo1 again ...
| 
| leo1# grep "^ 3: cs:" /proc/drbd
|  3: cs:Connected st:Primary/Secondary ld:Consistent
| 
| leo1# ln -l /mountpoint/of/drbd3/some/previously/existing/directory
|   [ lists contents of supposedly removed directory ]

if that is indeed what has happend, I'd be interessted in the syslog/kernel
logs, to be able to explain to you why what happened was expected, even though
you expected otherwise ;-)

especially the lines looking similar to

  kernel: drbd0: drbd0_receiver [5482]: cstate WFConnection --> WFReportParams
  kernel: drbd0: Handshake successful: DRBD Network Protocol version 74
  kernel: drbd0: Connection established.
  kernel: drbd0: I am(P): 1:00000002:00000001:00000004:00000001:10
  kernel: drbd0: Peer(S): 1:00000002:00000001:00000003:00000001:01
  kernel: drbd0: drbd0_receiver [5482]: cstate WFReportParams --> WFBitMapS
  kernel: drbd0: Primary/Unknown --> Primary/Secondary
  kernel: drbd0: drbd0_receiver [5482]: cstate WFBitMapS --> SyncSource
  kernel: drbd0: Resync started as SyncSource (need to sync 156640 KB [39160 bits set]).
  kernel: drbd0: Resync done (total 7 sec; paused 0 sec; 22377 K/sec)

(including hostname and timestamp, obviously)

if you did something else, please specify.

cheers,

-- 
: Lars Ellenberg                                  Tel +43-1-8178292-0  :
: LINBIT Information Technologies GmbH            Fax +43-1-8178292-82 :
: Schoenbrunner Str. 244, A-1120 Vienna/Europe   http://www.linbit.com :
__
please use the "List-Reply" function of your email client.



More information about the drbd-user mailing list