Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
*********************** This mail has been scanned by InterScan MSS. ***********-*********** Hello everyone DRBD works smothly most of time in my environment ( kernel 2.6,DRBD 0.7.11 with XFS and LVM2). However sometimes when I drbdadm up lv, the full-sync process started automatically before I drbdadm primary the source side. At this monent DRBD seems confusing with the SyncSource and SyncTarget accorind dmesg, it makes the data of source filesystem lost. It even happened in the fresh environment occasionally. The following is my dmesg of the source side: Notice that in drbd33 34: drbd33: Peer(S): 0:00000001:00000001:00000001:00000001:01 drbd33: drbd33_receiver [31581]: cstate Connected --> WFBitMapS drbd33: drbd33_receiver [31581]: cstate WFBitMapS --> SyncSource drbd34: drbd34_receiver [31898]: cstate Connected --> WFBitMapS drbd34: drbd34_receiver [31898]: cstate WFBitMapS --> SyncSource drbd34: Resync started as SyncSource (need to sync 131072 KB [32768 bits set]). However in drbd35: drbd35: drbd35_receiver [2337]: cstate WFReportParams --> WFBitMapT drbd35: Secondary/Unknown --> Secondary/Secondary drbd35: drbd35_receiver [2337]: cstate WFBitMapT --> SyncTarget drbd35: Resync started as SyncTarget (need to sync 131072 KB [32768 bits set]). ---full dmesg logs------------------------------------------------------- drbd34: Creating state block drbd34: resync bitmap: bits=32768 words=1024 drbd34: size = 128 MB (131072 KB) drbd34: Assuming that all blocks are out of sync (aka FullSync) drbd34: 131072 KB now marked out-of-sync by on disk bit-map. drbd34: drbdsetup [31894]: cstate Unconfigured --> StandAlone drbd34: drbdsetup [31897]: cstate StandAlone --> Unconnected drbd34: drbd34_receiver [31898]: cstate Unconnected --> WFConnection drbd34: drbd34_receiver [31898]: cstate WFConnection --> WFReportParams drbd34: Handshake successful: DRBD Network Protocol version 74 drbd34: Connection established. drbd34: I am(S): 0:00000001:00000001:00000001:00000001:00 drbd34: Peer(S): 0:00000001:00000001:00000001:00000001:00 drbd34: drbd34_receiver [31898]: cstate WFReportParams --> Connected drbd34: I am inconsistent, but there is no sync? BOTH nodes inconsistent! drbd34: Secondary/Unknown --> Secondary/Secondary drbd33: Secondary/Secondary --> Primary/Secondary drbd33: I am(P): 1:00000002:00000001:00000001:00000001:11 drbd33: Peer(S): 0:00000001:00000001:00000001:00000001:01 drbd33: drbd33_receiver [31581]: cstate Connected --> WFBitMapS drbd33: drbd33_receiver [31581]: cstate WFBitMapS --> SyncSource drbd33: Resync started as SyncSource (need to sync 131072 KB [32768 bits set]). XFS mounting filesystem drbd33 Ending clean XFS mount for filesystem: drbd33 drbd34: Secondary/Secondary --> Primary/Secondary drbd34: I am(P): 1:00000002:00000001:00000001:00000001:11 drbd34: Peer(S): 0:00000001:00000001:00000001:00000001:01 drbd34: drbd34_receiver [31898]: cstate Connected --> WFBitMapS drbd34: drbd34_receiver [31898]: cstate WFBitMapS --> SyncSource drbd34: Resync started as SyncSource (need to sync 131072 KB [32768 bits set]). XFS mounting filesystem drbd34 Ending clean XFS mount for filesystem: drbd34 drbd33: Resync done (total 22 sec; paused 0 sec; 5956 K/sec) drbd33: drbd33_worker [31578]: cstate SyncSource --> Connected drbd34: Resync done (total 21 sec; paused 0 sec; 6240 K/sec) drbd34: drbd34_worker [31895]: cstate SyncSource --> Connected XFS mounting filesystem dm-40 Ending clean XFS mount for filesystem: dm-40 XFS quotacheck dm-40: Please wait. XFS quotacheck dm-40: Done. TABLE_DESTORY~~~~~~~ drbd35: Creating state block drbd35: resync bitmap: bits=32768 words=1024 drbd35: size = 128 MB (131072 KB) drbd35: Assuming that all blocks are out of sync (aka FullSync) drbd35: 131072 KB now marked out-of-sync by on disk bit-map. drbd35: drbdsetup [2331]: cstate Unconfigured --> StandAlone drbd35: drbdsetup [2336]: cstate StandAlone --> Unconnected drbd35: drbd35_receiver [2337]: cstate Unconnected --> WFConnection drbd35: drbd35_receiver [2337]: cstate WFConnection --> WFReportParams drbd35: Handshake successful: DRBD Network Protocol version 74 drbd35: Connection established. drbd35: I am(S): 0:00000001:00000001:00000001:00000001:00 drbd35: Peer(S): 1:00000002:00000001:00000013:00000001:01 drbd35: drbd35_receiver [2337]: cstate WFReportParams --> WFBitMapT drbd35: Secondary/Unknown --> Secondary/Secondary drbd35: drbd35_receiver [2337]: cstate WFBitMapT --> SyncTarget drbd35: Resync started as SyncTarget (need to sync 131072 KB [32768 bits set]). drbd35: Resync done (total 12 sec; paused 0 sec; 10920 K/sec) drbd35: drbd35_worker [2334]: cstate SyncTarget --> Connected drbd35: Secondary/Secondary --> Primary/Secondary XFS mounting filesystem drbd35 Ending clean XFS mount for filesystem: drbd35