[DRBD-user] How to recover data from node3

fosiul alam expertalert at gmail.com
Wed Nov 16 17:24:42 CET 2011

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hi Flex

yes i have read that link so many times...
but i guess my understanding was not good.


and i also did not read your last email properly..

root at drbd1:~# drbdadm -S -- --discard-my-data connect  data-U
root at drbd1:~# drbdadm -S -- --discard-my-data connect  home-U


according to drbd link

i tryed bellow command so many times but its say, command not found ..

drbdadm connect --discard-my-data <resource>


but when i tryed your command
drbdadm -S -- --discard-my-data connect  data-U

it works.!!

whats is drbdadm -S  ???

its look ok now.. but i will try few more times ..



On 16 November 2011 15:53, fosiul alam <expertalert at gmail.com> 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 ... ..
>
> 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> 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> 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
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20111116/609a39fc/attachment.htm>


More information about the drbd-user mailing list