Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
On 11/16/2011 04:53 PM, fosiul alam wrote: > Hi Flex : > bellow is my another simulation > > 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. > > > > DRBD1 and DRBD2 is OFF (uk is off) > > DRBD-DRS is on and primary > > root at drbd-drs:/# /etc/init.d/drbd status > drbd driver loaded OK; device status: > version: 8.3.7 (api:88/proto:86-91) > srcversion: EE47D8BF18AC166BE219757 > m:res cs ro ds p mounted > fstype > 10:home-U WFConnection Primary/Unknown UpToDate/DUnknown A > 11:data-U WFConnection Primary/Unknown UpToDate/DUnknown A > > > DRBd1 : > > root at drbd1:~# /etc/init.d/drbd status > drbd driver loaded OK; device status: > version: 8.3.7 (api:88/proto:86-91) > srcversion: EE47D8BF18AC166BE219757 > m:res cs ro ds p mounted fstype > 0:home Connected Primary/Secondary UpToDate/UpToDate C > 1:data Connected Primary/Secondary UpToDate/UpToDate C > root at drbd1:~# > > > root at drbd1:~# drbdadm up --stacked data-U > root at drbd1:~# drbdadm up --stacked home-U > > root at drbd1:~# /etc/init.d/drbd status > drbd driver loaded OK; device status: > version: 8.3.7 (api:88/proto:86-91) > srcversion: EE47D8BF18AC166BE219757 > m:res cs ro ds p > mounted fstype > 0:home Connected Primary/Secondary UpToDate/UpToDate C > 1:data Connected Primary/Secondary UpToDate/UpToDate C > 10:home-U^^0 StandAlone Secondary/Unknown UpToDate/DUnknown r---- > 11:data-U^^1 StandAlone Secondary/Unknown UpToDate/DUnknown r---- > > > Afater I execute previous command, when i check DRBD-DRS : > > > root at drbd-drs:/# /etc/init.d/drbd status > drbd driver loaded OK; device status: > version: 8.3.7 (api:88/proto:86-91) > srcversion: EE47D8BF18AC166BE219757 > m:res cs ro ds p > mounted fstype > 10:home-U StandAlone Primary/Unknown UpToDate/DUnknown r---- > 11:data-U StandAlone Primary/Unknown UpToDate/DUnknown r---- > > ---------------------------------------------------------------------------------- > > DRBD1 :: > > > root at drbd1:~# drbdadm connect --stacked data-U > root at drbd1:~# drbdadm connect --stacked home-U > root at drbd1:~# /etc/init.d/drbd status > drbd driver loaded OK; device status: > version: 8.3.7 (api:88/proto:86-91) > srcversion: EE47D8BF18AC166BE219757 > m:res cs ro ds p > mounted fstype > 0:home Connected Primary/Secondary UpToDate/UpToDate C > 1:data Connected Primary/Secondary UpToDate/UpToDate C > 10:home-U^^0 WFConnection Secondary/Unknown UpToDate/DUnknown A > 11:data-U^^1 WFConnection Secondary/Unknown UpToDate/DUnknown A > > > DRBD-DRS: > > root at drbd-drs:/# /etc/init.d/drbd status > drbd driver loaded OK; device status: > version: 8.3.7 (api:88/proto:86-91) > srcversion: EE47D8BF18AC166BE219757 > m:res cs ro ds p > mounted fstype > 10:home-U StandAlone Primary/Unknown UpToDate/DUnknown r---- > 11:data-U StandAlone Primary/Unknown UpToDate/DUnknown r---- > > ------------------------------------------------------------------------------------------ > > Now if i execute drbdadm connect on DRBD-DRS : > > root at drbd-drs:/# drbdadm connect data-U > root at drbd-drs:/# drbdadm connect home-U > root at drbd-drs:/# /etc/init.d/drbd status > drbd driver loaded OK; device status: > version: 8.3.7 (api:88/proto:86-91) > srcversion: EE47D8BF18AC166BE219757 > m:res cs ro ds p > mounted fstype > 10:home-U StandAlone Primary/Unknown UpToDate/DUnknown r---- > 11:data-U StandAlone Primary/Unknown UpToDate/DUnknown r---- > > now output from DRBD1 > > root at drbd1:~# /etc/init.d/drbd status > drbd driver loaded OK; device status: > version: 8.3.7 (api:88/proto:86-91) > srcversion: EE47D8BF18AC166BE219757 > m:res cs ro ds p > mounted fstype > 0:home Connected Primary/Secondary UpToDate/UpToDate C > 1:data Connected Primary/Secondary UpToDate/UpToDate C > 10:home-U^^0 StandAlone Secondary/Unknown UpToDate/DUnknown r---- > 11:data-U^^1 StandAlone Secondary/Unknown UpToDate/DUnknown r---- > > > ------------------------------------------------------------------------------------------- > > So connect does not do anything ... .. Did you _really_ read this? http://www.drbd.org/users-guide-legacy/s-resolve-split-brain.html I strongly doubt! ... there is really no need to invalidate and do a full sync if this is "only" a split brain situation. Regards, Andreas -- Need help with DRBD? http://www.hastexo.com/now > > now if i invalidate .. in DRBD1 > > > root at drbd1:~# drbdadm invalidate --stacked data-U > root at drbd1:~# drbdadm invalidate --stacked home-U > > root at drbd1:~# /etc/init.d/drbd status > drbd driver loaded OK; device status: > version: 8.3.7 (api:88/proto:86-91) > srcversion: EE47D8BF18AC166BE219757 > m:res cs ro ds > p mounted fstype > 0:home Connected Primary/Secondary UpToDate/UpToDate C > 1:data Connected Primary/Secondary UpToDate/UpToDate C > 10:home-U^^0 StandAlone Secondary/Unknown Inconsistent/DUnknown r---- > 11:data-U^^1 StandAlone Secondary/Unknown Inconsistent/DUnknown r---- > root at drbd1:~# drbdadm connect --stacked data-U > root at drbd1:~# drbdadm connect --stacked home-U > root at drbd1:~# /etc/init.d/drbd status > drbd driver loaded OK; device status: > version: 8.3.7 (api:88/proto:86-91) > srcversion: EE47D8BF18AC166BE219757 > m:res cs ro ds p > mounted fstype > 0:home Connected Primary/Secondary UpToDate/UpToDate C > 1:data Connected Primary/Secondary UpToDate/UpToDate C > 10:home-U^^0 WFConnection Secondary/Unknown Inconsistent/DUnknown A > 11:data-U^^1 WFConnection Secondary/Unknown Inconsistent/DUnknown A > > > > Now in DRBD-DRS : > > root at drbd-drs:/# drbdadm connect data-U > root at drbd-drs:/# drbdadm connect home-U > root at drbd-drs:/# /etc/init.d/drbd status > drbd driver loaded OK; device status: > version: 8.3.7 (api:88/proto:86-91) > srcversion: EE47D8BF18AC166BE219757 > m:res cs ro ds p > mounted fstype > ... sync'ed: 0.5% (4003612/4015896)K > ... sync'ed: 2.2% (2061324/2104304)K > 10:home-U SyncSource Primary/Secondary UpToDate/Inconsistent A > 11:data-U SyncSource Primary/Secondary UpToDate/Inconsistent A > > > > > So BAsically > > I need to invlidate data-U and home-U in DRBD1 , > > then drbdadm connect data-U > > also > in DRBD-DRS : drbdadm connect data-U > drbdadm connect home-U > > its trigers the syncronization... > > > > but the DRBD documentaion does not saything .. > > so what i am missign now ? > > > Hope fully it will make sense > > > > > > > On 16 November 2011 15:19, fosiul alam <expertalert at gmail.com > <mailto:expertalert at gmail.com>> wrote: > > Hi Flex > > this is 3rd time, i simulate the whole thing .. > > every time, I had to use > > drbdadm invalidate --stacked data-U > drbdadm invalidate --stacked home-U > > after that when I type > > drbdadm connect --stacked data-U > > and in > > Drbd-dRS > > drbdadm connect data-U > > its starts to syncronized .. > > > why do i have have to use invalidate every time ?? > > as far i belived thats not the requirement for split brain .. > > i will try one more time and will sent you step by step .. > thanks > > > > > > On 16 November 2011 13:56, Felix Frank <ff at mpexnet.de > <mailto:ff at mpexnet.de>> wrote: > > Hi, > > On 11/16/2011 02:41 PM, fosiul alam wrote: > > (a) I make primary on Low lever device on DRBD1 > > (B) I turn on Stacked device on DRBD1 > > (c) I set secondary on Stacked devices. (DRBD2) > > yes, you're missing the "drbdadm --stacked connect" (or, even > better, > use "drbdadm --stacked up" in the first place). > > Cheers, > Felix > > > > > > _______________________________________________ > drbd-user mailing list > drbd-user at lists.linbit.com > http://lists.linbit.com/mailman/listinfo/drbd-user -- Need help with DRBD? http://www.hastexo.com/now -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 286 bytes Desc: OpenPGP digital signature URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20111116/0e4df4b2/attachment.pgp>