Hi Flex :<br>bellow is my another simulation <br><br>i have put step by step , I execute command on both drbd1 and drbd-drs. i have posted the output after each effect from both server.<br><br><br><br>DRBD1 and DRBD2 is OFF (uk is off)<br>
<br>DRBD-DRS is on and primary <br><br>root@drbd-drs:/# /etc/init.d/drbd status<br>drbd driver loaded OK; device status:<br>version: 8.3.7 (api:88/proto:86-91)<br>srcversion: EE47D8BF18AC166BE219757<br>m:res cs ro ds p mounted fstype<br>
10:home-U WFConnection Primary/Unknown UpToDate/DUnknown A<br>11:data-U WFConnection Primary/Unknown UpToDate/DUnknown A<br><br><br>DRBd1 :<br><br>root@drbd1:~# /etc/init.d/drbd status<br>drbd driver loaded OK; device status:<br>
version: 8.3.7 (api:88/proto:86-91)<br>srcversion: EE47D8BF18AC166BE219757<br>m:res cs ro ds p mounted fstype<br>0:home Connected Primary/Secondary UpToDate/UpToDate C<br>1:data Connected Primary/Secondary UpToDate/UpToDate C<br>
root@drbd1:~#<br><br><br>root@drbd1:~# drbdadm up --stacked data-U<br>root@drbd1:~# drbdadm up --stacked home-U<br><br>root@drbd1:~# /etc/init.d/drbd status<br>drbd driver loaded OK; device status:<br>version: 8.3.7 (api:88/proto:86-91)<br>
srcversion: EE47D8BF18AC166BE219757<br>m:res cs ro ds p mounted fstype<br>0:home Connected Primary/Secondary UpToDate/UpToDate C<br>1:data Connected Primary/Secondary UpToDate/UpToDate C<br>
10:home-U^^0 StandAlone Secondary/Unknown UpToDate/DUnknown r----<br>11:data-U^^1 StandAlone Secondary/Unknown UpToDate/DUnknown r----<br><br><br>Afater I execute previous command, when i check DRBD-DRS :<br><br><br>
root@drbd-drs:/# /etc/init.d/drbd status<br>drbd driver loaded OK; device status:<br>version: 8.3.7 (api:88/proto:86-91)<br>srcversion: EE47D8BF18AC166BE219757<br>m:res cs ro ds p mounted fstype<br>
10:home-U StandAlone Primary/Unknown UpToDate/DUnknown r----<br>11:data-U StandAlone Primary/Unknown UpToDate/DUnknown r----<br><br>----------------------------------------------------------------------------------<br>
<br>DRBD1 ::<br><br><br>root@drbd1:~# drbdadm connect --stacked data-U<br>root@drbd1:~# drbdadm connect --stacked home-U<br>root@drbd1:~# /etc/init.d/drbd status<br>drbd driver loaded OK; device status:<br>version: 8.3.7 (api:88/proto:86-91)<br>
srcversion: EE47D8BF18AC166BE219757<br>m:res cs ro ds p mounted fstype<br>0:home Connected Primary/Secondary UpToDate/UpToDate C<br>1:data Connected Primary/Secondary UpToDate/UpToDate C<br>
10:home-U^^0 WFConnection Secondary/Unknown UpToDate/DUnknown A<br>11:data-U^^1 WFConnection Secondary/Unknown UpToDate/DUnknown A<br><br><br>DRBD-DRS:<br><br>root@drbd-drs:/# /etc/init.d/drbd status<br>drbd driver loaded OK; device status:<br>
version: 8.3.7 (api:88/proto:86-91)<br>srcversion: EE47D8BF18AC166BE219757<br>m:res cs ro ds p mounted fstype<br>10:home-U StandAlone Primary/Unknown UpToDate/DUnknown r----<br>
11:data-U StandAlone Primary/Unknown UpToDate/DUnknown r----<br><br>------------------------------------------------------------------------------------------<br><br>Now if i execute drbdadm connect on DRBD-DRS :<br><br>
root@drbd-drs:/# drbdadm connect data-U<br>root@drbd-drs:/# drbdadm connect home-U<br>root@drbd-drs:/# /etc/init.d/drbd status<br>drbd driver loaded OK; device status:<br>version: 8.3.7 (api:88/proto:86-91)<br>srcversion: EE47D8BF18AC166BE219757<br>
m:res cs ro ds p mounted fstype<br>10:home-U StandAlone Primary/Unknown UpToDate/DUnknown r----<br>11:data-U StandAlone Primary/Unknown UpToDate/DUnknown r----<br>
<br>now output from DRBD1 <br><br>root@drbd1:~# /etc/init.d/drbd status<br>drbd driver loaded OK; device status:<br>version: 8.3.7 (api:88/proto:86-91)<br>srcversion: EE47D8BF18AC166BE219757<br>m:res cs ro ds p mounted fstype<br>
0:home Connected Primary/Secondary UpToDate/UpToDate C<br>1:data Connected Primary/Secondary UpToDate/UpToDate C<br>10:home-U^^0 StandAlone Secondary/Unknown UpToDate/DUnknown r----<br>11:data-U^^1 StandAlone Secondary/Unknown UpToDate/DUnknown r----<br>
<br><br>-------------------------------------------------------------------------------------------<br><br>So connect does not do anything ... .. <br><br>now if i invalidate .. in DRBD1<br><br><br>root@drbd1:~# drbdadm invalidate --stacked data-U<br>
root@drbd1:~# drbdadm invalidate --stacked home-U<br><br>root@drbd1:~# /etc/init.d/drbd status<br>drbd driver loaded OK; device status:<br>version: 8.3.7 (api:88/proto:86-91)<br>srcversion: EE47D8BF18AC166BE219757<br>m:res cs ro ds p mounted fstype<br>
0:home Connected Primary/Secondary UpToDate/UpToDate C<br>1:data Connected Primary/Secondary UpToDate/UpToDate C<br>10:home-U^^0 StandAlone Secondary/Unknown Inconsistent/DUnknown r----<br>
11:data-U^^1 StandAlone Secondary/Unknown Inconsistent/DUnknown r----<br>root@drbd1:~# drbdadm connect --stacked data-U<br>root@drbd1:~# drbdadm connect --stacked home-U<br>root@drbd1:~# /etc/init.d/drbd status<br>drbd driver loaded OK; device status:<br>
version: 8.3.7 (api:88/proto:86-91)<br>srcversion: EE47D8BF18AC166BE219757<br>m:res cs ro ds p mounted fstype<br>0:home Connected Primary/Secondary UpToDate/UpToDate C<br>
1:data Connected Primary/Secondary UpToDate/UpToDate C<br>10:home-U^^0 WFConnection Secondary/Unknown Inconsistent/DUnknown A<br>11:data-U^^1 WFConnection Secondary/Unknown Inconsistent/DUnknown A<br>
<br><br><br>Now in DRBD-DRS :<br><br>root@drbd-drs:/# drbdadm connect data-U<br>root@drbd-drs:/# drbdadm connect home-U<br>root@drbd-drs:/# /etc/init.d/drbd status<br>drbd driver loaded OK; device status:<br>version: 8.3.7 (api:88/proto:86-91)<br>
srcversion: EE47D8BF18AC166BE219757<br>m:res cs ro ds p mounted fstype<br>... sync'ed: 0.5% (4003612/4015896)K<br>... sync'ed: 2.2% (2061324/2104304)K<br>
10:home-U SyncSource Primary/Secondary UpToDate/Inconsistent A<br>11:data-U SyncSource Primary/Secondary UpToDate/Inconsistent A<br><br><br><br><br>So BAsically<br><br>I need to invlidate data-U and home-U in DRBD1 ,<br>
<br>then drbdadm connect data-U <br><br>also <br>in DRBD-DRS : drbdadm connect data-U<br> drbdadm connect home-U<br><br>its trigers the syncronization...<br><br><br><br>but the DRBD documentaion does not saything ..<br>
<br>so what i am missign now ?<br><br><br>Hope fully it will make sense <br><br><br><br><br><br><br><div class="gmail_quote">On 16 November 2011 15:19, fosiul alam <span dir="ltr"><<a href="mailto:expertalert@gmail.com">expertalert@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi Flex<br><br>this is 3rd time, i simulate the whole thing ..<br><br>every time, I had to use <br>
<br>drbdadm invalidate --stacked data-U<br>drbdadm invalidate --stacked home-U<br><br>after that when I type <br><br>drbdadm connect --stacked data-U <br>
<br>and in <br><br>Drbd-dRS<br><br>drbdadm connect data-U<br><br>its starts to syncronized ..<br><br><br>why do i have have to use invalidate every time ??<br><br>as far i belived thats not the requirement for split brain ..<br>
<br>i will try one more time and will sent you step by step .. <br>thanks<div class="HOEnZb"><div class="h5"><br> <br><br><br><br><div class="gmail_quote">On 16 November 2011 13:56, Felix Frank <span dir="ltr"><<a href="mailto:ff@mpexnet.de" target="_blank">ff@mpexnet.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br>
<div><br>
On 11/16/2011 02:41 PM, fosiul alam wrote:<br>
> (a) I make primary on Low lever device on DRBD1<br>
> (B) I turn on Stacked device on DRBD1<br>
> (c) I set secondary on Stacked devices. (DRBD2)<br>
<br>
</div>yes, you're missing the "drbdadm --stacked connect" (or, even better,<br>
use "drbdadm --stacked up" in the first place).<br>
<br>
Cheers,<br>
Felix<br>
</blockquote></div><br>
</div></div></blockquote></div><br>