Hi There,<br><br>I have a 2 node corosnyc/pacemaker cluster with a drbd
file system running in Primary/Secondary mode. I have compiled RPMs
using the latest DRBD source drbd-8.3.7-1.<br><br>I'm currently trying
to put together a runbook which spells out the procedures to follow
depending on what potential failures might occur on the cluster. I
need some help on what to do in the following scenario:<br>
<br>If the Primary server in the 2 node cluster completely fails and
the drbd partition/data is lost, how do I force the Secondary server to
become the Primary drbd resource?<br>I have simulated this by shutting
down the switch port that the Primary server is connected to. I did
hope that the pacemaker would just automatically failover to the
secondary server and promote the DRBD resource as primary, but this did
not occur and if I cat /proc/drbd on the secondary server, this is the
state it is currently in:<br>
<br># cat /proc/drbd <br>version: 8.3.7 (api:88/proto:86-91)<br>GIT-hash: ea9e28dbff98e331a62bcbcc63a613<div id=":w5" class="ii gt"><br><br> 1: cs:WFConnection ro:Secondary/Unknown ds:Inconsistent/DUnknown C r----<br>
ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:564835<br><br>So
lets pretend that the above state was a result of the Primary getting
destroyed, how do I force the Secondary (inconsistent resource) to become the Primary? How do I get drbd to ignore the fact that it is in an inconsistent state and force to be primary so that the cluster can mount the partition and service can resume? Sure, there might be some lost data, but that's better than losing all the data. I have
tried running "drbdadm primary r0" but get the following error:<br>
<br># drbdadm primary r0<br>1: State change failed: (-2) Refusing to be Primary without at least one UpToDate disk<br>Command 'drbdsetup 1 primary' terminated with exit code 17<br><br>I have read through the DRBD documentation, but have not been able to find instructions on how to resolve this problem.<br>
<br>Any help would be very much appreciated.<br><br>Cheers,<br>Tom<br></div>