<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Il 18/11/2010 17:57, Or Gerlitz ha scritto:
<blockquote cite="mid:4CE55AE1.4040409@voltaire.com" type="cite">Suppose
a disconnected primary outdated (fenced) the secondary, e.g through
some other link and/or cluster management software. Now the primary
crashed and the cluster mng sw wants to promote the secondary, for that
end, it has to be taken out from the outdated state - how can this be
done e.g with drbdadm/drbdsetup?
<br>
<br>
I really hope this isn't RTFM and if yes, please show me the M... I saw
that there is some mentioning of un-fencing, but didn't manage to
follow how this works, except for the case where the connection
recovers and the state machine on the secondary node drbd kernel code
changes its own state after going to SyncTarget etc.
<br>
</blockquote>
<br>
You can promote an outdated secondary to primary with:<br>
<br>
drbdadm -- --overwrite-data-of-peer primary <resource<font
color="black" face="Verdana,Arial,Helvetica" size="2"><b>></b></font><br>
<br>
but this way, once the old primary is restored you'll get a split
brain. <br>
<br>
To solve it you should issuo on the old primary:<br>
<br>
drbdadm -- --discard-my-data connect <resource><br>
<br>
and on the new primary:<br>
<br>
drbdadm connect <resource><br>
<br>
HTH<br>
<br>
-- <br>
<pre class="moz-signature" cols="72">Dario Fiumicello - Antek S.r.l.
+3902890380 93 - Porto Mantovano (MN) Italy
+3902890380 43 - Pace del Mela (ME) Italy
</pre>
</body>
</html>