[DRBD-user] Lost whole disk data while sync

Lars Ellenberg Lars.Ellenberg at linbit.com
Sun Sep 11 16:00:09 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-09-11 15:52:29 +0800
\ Longming Lee:
> I have installed DRBD-0.7.12 on AS3, ha1 & ha2.

you want to use 0.7.13, in case you have SMP.

> ha1 is the primary and there are many files in it.
> ha2 is the secondary, it will be replicated after I start up DRBD.
> 
> I have checked that ha1 is primary and ha2 is secondary before I
> connected the cross link cable between them. All files in ha1 are
> gone after I connected this cable. I don't know what is going on.
> This isn't the first time I installed DRBD. I have done before and
> they were OK then.
> 
> Which commands I can use to force data sync from ha1 to ha2 while these
> two ha1 & ha2 are connected firstly, and that can prevent me from
> this mistake?

what do you mean by "gone"?
where exactly have "all files" been before?
where is the drbd mounted?

do you have heartbeat configured?
did your actions interfere with heartbeat actions?

please provide some log messages from that event.
you should have something like
kernel: drbd0: drbd0_receiver [###]: cstate WFConnection --> WFReportParams
kernel: drbd0: Handshake successful: DRBD Network Protocol version 74
kernel: drbd0: Connection established.
kernel: drbd0: I am(P): 1:00000002:00000001:00000046:00000005:10
kernel: drbd0: Peer(S): 1:00000002:00000001:00000045:00000005:01
kernel: drbd0: drbd0_receiver [###]: cstate WFReportParams --> WFBitMapS
kernel: drbd0: Primary/Unknown --> Primary/Secondary
kernel: drbd0: drbd0_receiver [###]: cstate WFBitMapS --> SyncSource
kernel: drbd0: Resync started as SyncSource (need to sync ### KB [### bits set]).

-- 
: 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