No subject


Wed Oct 6 13:38:06 CEST 2010


ved. <BR>
&nbsp=3B<BR>
* Sat Apr 07 2007 21:32:39 +0200 Philipp Reisner &lt=3Bphil(at)linbit.com&g=
t=3B<BR>&nbsp=3B - drbd (8.0.2-1)<BR>&nbsp=3B&nbsp=3B * Improved the robust=
ness of the UUID based algorithm that decides about the resync direction.<B=
R><BR>
We would like to force sync in the rule 4 by doing the following=2C need yo=
ur help in this regard.<BR>
&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nb=
sp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B case 0:<BR>&nbsp=3B&nbsp=3B&n=
bsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=
=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B=
 /* !self_pri &amp=3B&amp=3B !peer_pri */<BR>&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=
=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B=
&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B if (mdev-&=
gt=3Bstate.conn =3D=3D WFBitMapT) {<BR>&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbs=
p=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=
=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B=
 drbd_start_resync(mdev=2C SyncTarget)=3B<BR>&nbsp=3B&nbsp=3B&nbsp=3B&nbsp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bsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=
=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B return 0=3B<BR>
&nbsp=3B<BR>
Testcase we are running:<BR>
Reset active board every 5 mins on a Redundant Setup.<BR>
&nbsp=3B<BR>
dmesg output:<BR>
11-02 22:10:23&nbsp=3Bunknown&nbsp=3Bkernel&nbsp=3Bdrbd0: drbd_sync_handsha=
ke:<BR>11-02 22:10:23&nbsp=3Bunknown&nbsp=3Bkernel&nbsp=3Bdrbd0: self 52A97=
4873622A8A8:0000000000000000:D1A184CD02C8EE0D:BD9572546D8C332D<BR>11-02 22:=
10:23&nbsp=3Bunknown&nbsp=3Bkernel&nbsp=3Bdrbd0: peer 77F8DC91C89BA0F9:52A9=
74873622A8A8:D1A184CD02C8EE0C:BD9572546D8C332D<BR>11-02 22:10:23&nbsp=3Bunk=
nown&nbsp=3Bkernel&nbsp=3Bdrbd0: uuid_compare()=3D-1 by rule 5<BR>11-02 22:=
10:23&nbsp=3Bunknown&nbsp=3Bkernel&nbsp=3Bdrbd0: peer( Unknown -&gt=3B Prim=
ary ) conn( WFReportParams -&gt=3B WFBitMapT ) pdsk( DUnknown -&gt=3B UpToD=
ate ) <BR>11-02 22:10:23&nbsp=3Bunknown&nbsp=3Bkernel&nbsp=3Bdrbd0: conn( W=
FBitMapT -&gt=3B WFSyncUUID ) <BR>11-02 22:10:23&nbsp=3Bunknown&nbsp=3Bkern=
el&nbsp=3Bdrbd0: conn( WFSyncUUID -&gt=3B SyncTarget ) disk( UpToDate -&gt=
=3B Inconsistent ) <BR>11-02 22:10:23&nbsp=3Bunknown&nbsp=3Bkernel&nbsp=3Bd=
rbd0: Began resync as SyncTarget (will sync 324 KB [81 bits set]).<BR>11-02=
 22:10:23&nbsp=3Bunknown&nbsp=3Bkernel&nbsp=3Bdrbd0: Resync done (total 1 s=
ec=3B paused 0 sec=3B 324 K/sec)<BR>11-02 22:10:23&nbsp=3Bunknown&nbsp=3Bke=
rnel&nbsp=3Bdrbd0: conn( SyncTarget -&gt=3B Connected ) disk( Inconsistent =
-&gt=3B UpToDate ) <BR>11-02 22:10:24&nbsp=3Bunknown&nbsp=3Bkernel&nbsp=3Bd=
rbd0: local disk flush failed with status -95=2C disabling disk-flushes<BR>=
11-02 22:14:13&nbsp=3Bunknown&nbsp=3Bkernel&nbsp=3Bdrbd0: peer( Primary -&g=
t=3B Secondary ) <BR>11-02 22:14:14&nbsp=3Bunknown&nbsp=3Bkernel&nbsp=3Bdrb=
d0: role( Secondary -&gt=3B Primary ) <BR>11-02 22:14:14&nbsp=3Bunknown&nbs=
p=3Bkernel&nbsp=3BEXT3 FS on drbd0=2C internal journal<BR>11-02 22:14:14&nb=
sp=3Bunknown&nbsp=3Bkernel&nbsp=3BSELinux: initialized (dev drbd0=2C type e=
xt3)=2C uses xattr<BR>11-02 22:14:18&nbsp=3Bunknown&nbsp=3Bkernel&nbsp=3Bdr=
bd0: peer( Secondary -&gt=3B Unknown ) conn( Connected -&gt=3B TearDown ) p=
dsk( UpToDate -&gt=3B DUnknown ) <BR>11-02 22:14:18&nbsp=3Bunknown&nbsp=3Bk=
ernel&nbsp=3Bdrbd0: Creating new current UUID<BR>11-02 22:14:18&nbsp=3Bunkn=
own&nbsp=3Bkernel&nbsp=3Bdrbd0: meta connection shut down by peer.<BR>11-02=
 22:14:18&nbsp=3Bunknown&nbsp=3Bkernel&nbsp=3Bdrbd0: asender terminated<BR>=
11-02 22:14:18&nbsp=3Bunknown&nbsp=3Bkernel&nbsp=3Bdrbd0: Terminating asend=
er thread<BR>11-02 22:14:19&nbsp=3Bunknown&nbsp=3Bkernel&nbsp=3Bdrbd0: Conn=
ection closed<BR>11-02 22:14:19&nbsp=3Bunknown&nbsp=3Bkernel&nbsp=3Bdrbd0: =
conn( TearDown -&gt=3B Unconnected ) <BR>11-02 22:14:19&nbsp=3Bunknown&nbsp=
=3Bkernel&nbsp=3Bdrbd0: receiver terminated<BR>11-02 22:14:19&nbsp=3Bunknow=
n&nbsp=3Bkernel&nbsp=3Bdrbd0: Restarting receiver thread<BR>11-02 22:14:19&=
nbsp=3Bunknown&nbsp=3Bkernel&nbsp=3Bdrbd0: receiver (re)started<BR>11-02 22=
:14:19&nbsp=3Bunknown&nbsp=3Bkernel&nbsp=3Bdrbd0: conn( Unconnected -&gt=3B=
 WFConnection ) <BR>11-02 22:15:16&nbsp=3Bunknown&nbsp=3Bkernel&nbsp=3Bdrbd=
0: Handshake successful: DRBD Network Protocol version 86<BR>11-02 22:15:16=
&nbsp=3Bunknown&nbsp=3Bkernel&nbsp=3Bdrbd0: conn( WFConnection -&gt=3B WFRe=
portParams ) <BR>11-02 22:15:16&nbsp=3Bunknown&nbsp=3Bkernel&nbsp=3Bdrbd0: =
Starting asender thread (from drbd0_receiver [1495])<BR>11-02 22:15:16&nbsp=
=3Bunknown&nbsp=3Bkernel&nbsp=3Bdrbd0: Considerable difference in lower lev=
el device sizes: 18768s vs. 32176s<BR>11-02 22:15:16&nbsp=3Bunknown&nbsp=3B=
kernel&nbsp=3Bdrbd0: drbd_sync_handshake:<BR>11-02 22:15:16&nbsp=3Bunknown&=
nbsp=3Bkernel&nbsp=3Bdrbd0: self 77F8DC91C89BA0F9:77F8DC91C89BA0F9:A1454CD2=
40FF75F4:52A974873622A8A8<BR>11-02 22:15:16&nbsp=3Bunknown&nbsp=3Bkernel&nb=
sp=3Bdrbd0: peer 77F8DC91C89BA0F8:0000000000000000:A1454CD240FF75F4:52A9748=
73622A8A8<BR>11-02 22:15:16&nbsp=3Bunknown&nbsp=3Bkernel&nbsp=3Bdrbd0: uuid=
_compare()=3D0 by rule 4<BR>11-02 22:15:16&nbsp=3Bunknown&nbsp=3Bkernel&nbs=
p=3Bdrbd0: No resync=2C but 78 bits in bitmap!<BR>11-02 22:15:16&nbsp=3Bunk=
nown&nbsp=3Bkernel&nbsp=3Bdrbd0: peer( Unknown -&gt=3B Secondary ) conn( WF=
ReportParams -&gt=3B Connected ) pdsk( DUnknown -&gt=3B UpToDate ) <BR>11-0=
2 22:19:20&nbsp=3Bunknown&nbsp=3Bkernel&nbsp=3Bdrbd0: role( Primary -&gt=3B=
 Secondary ) <BR>11-02 22:19:20&nbsp=3Bunknown&nbsp=3Bkernel&nbsp=3Bdrbd0: =
peer( Secondary -&gt=3B Unknown ) conn( Connected -&gt=3B Disconnecting ) p=
dsk( UpToDate -&gt=3B DUnknown ) <BR>
&nbsp=3B<BR>
<BR>LAK&nbsp=3B<BR><BR><BR><BR> 		 	   		  </body>
</html>=

--_cac6572a-a311-42ec-8b6d-1e4e5a4b6066_--


More information about the drbd-user mailing list