[DRBD-user] DRBD server not become as primary and sync data from other one after reboot.

Pratip Ghosh pratip.ghosh at planwell.com
Mon May 9 08:45:42 CEST 2016

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


Hi Digimer,

Thank you for your reply.
Here is my environment and config details.


_*Disk info of both server:*_

NAME    MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda    202:0    0   8G  0 disk
└─xvda1 202:1    0   8G  0 part /
xvdb    202:16   0   2G  0 disk
On Saturday 07 May 2016 09:50 PM, Digimer wrote:


_*DRBD configuration:

*_resource r0 {
   protocol C;
   syncer { rate 1000M; }
   startup {
      wfc-timeout  15;
      degr-wfc-timeout 60;
      become-primary-on both;
   }
   net {
      allow-two-primaries;
      after-sb-0pri discard-zero-changes;
      after-sb-1pri discard-secondary;
      after-sb-2pri disconnect;
      cram-hmac-alg sha1;
      shared-secret "secret";
   }
   on drbd01 {
      device /dev/drbd0;
      disk /dev/xvdb;
      address 10.98.0.114:7788;
      meta-disk internal;
   }
   on drbd02 {
      device /dev/drbd0;
      disk /dev/xvdb;
      address 10.98.10.241:7788;
      meta-disk internal;
   }
}



Regards,
Pratip Ghosh.
> On 07/05/16 06:44 AM, Pratip Ghosh wrote:
>> Hello Guys,
>>
>> I am a new user in this group and need some urgent help.
>>
>> I am trying to configure HA storage using DRBD with OCFS2 on Ubuntu
>> 14.04 at AWS EC2 instance. I configured both server as primary. If I
>> shutdown one server and start again it will automatically become primary
>> after booting process and have up-to date data in both servers, but if I
>> reboot any one server it was not connecting again as a primary after
>> booting process and showing following status in both servers. I have
>> restarted DRBD service in both server one by one but having same issue.
>> Can anyone guide me one this?
>>
>> Server1
>> =====
>> root at drbd01:~# service drbd status
>> drbd driver loaded OK; device status:
>> version: 8.4.3 (api:1/proto:86-101)
>> srcversion: 6551AD2C98F533733BE558C
>> m:res  cs          ro               ds                 p mounted  fstype
>> 0:r0   StandAlone  Primary/Unknown  UpToDate/DUnknown  r-----
>>
>>
>> Server2
>> =====
>> root at drbd02:~# service drbd status
>> drbd driver loaded OK; device status:
>> version: 8.4.3 (api:1/proto:86-101)
>> srcversion: 6551AD2C98F533733BE558C
>> m:res  cs          ro               ds                 p mounted  fstype
>> 0:r0   StandAlone  Primary/Unknown  UpToDate/DUnknown  r-----
>>
>>
>> Regards,
>> Pratip Ghosh
> This is the definition of a split-brain and it is the result of not
> having fencing configured.
>
> For a more useful answer, please share more information on your
> environment and config.
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20160509/0aaf41ab/attachment.htm>


More information about the drbd-user mailing list