<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Texte brut Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:Consolas;}
span.TextebrutCar
        {mso-style-name:"Texte brut Car";
        mso-style-priority:99;
        mso-style-link:"Texte brut";
        font-family:Consolas;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=FR link=blue vlink=purple>
<div class=Section1>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>Hello,<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText><span lang=EN-US>I did as you said but I got:<o:p></o:p></span></p>
<p class=MsoPlainText><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoPlainText><span lang=EN-US>root@sd-xxxx5:~# cat /proc/drbd<o:p></o:p></span></p>
<p class=MsoPlainText><span lang=EN-US>version: 8.3.7 (api:88/proto:86-91)<o:p></o:p></span></p>
<p class=MsoPlainText><span lang=EN-US>GIT-hash: ea9e28dbff98e331a62bcbcc63a6135808fe2917
build by root@sd-xxxx5, 2011-<o:p></o:p></span></p>
<p class=MsoPlainText><span lang=EN-US>05-04 10:47:00<o:p></o:p></span></p>
<p class=MsoPlainText><span lang=EN-US> 0: cs:Connected ro:Secondary/Secondary <span
style='color:red'>ds:Diskless</span>/UpToDate C r----<o:p></o:p></span></p>
<p class=MsoPlainText><span lang=EN-US> 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:0<o:p></o:p></span></p>
<p class=MsoPlainText><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoPlainText>-----Message d'origine-----<br>
De : Felix Frank [mailto:ff@mpexnet.de] <br>
Envoyé : mercredi 20 juillet 2011 09:38<br>
À : Edwige Odedele<br>
Cc : drbd-user<br>
Objet : Re: [DRBD-user] cs: Unconfigured<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>Hi,<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>you should CC the list with your replies.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>On 07/20/2011 09:28 AM, Edwige Odedele wrote:<o:p></o:p></p>
<p class=MsoPlainText>> Thank for your response,<o:p></o:p></p>
<p class=MsoPlainText>> In fact, i did has you said but i got this error:<o:p></o:p></p>
<p class=MsoPlainText>> <o:p></o:p></p>
<p class=MsoPlainText>> root@sd-xxxx5:~# cat /proc/drbd<o:p></o:p></p>
<p class=MsoPlainText>> <o:p></o:p></p>
<p class=MsoPlainText>> version: 8.3.7 (api:88/proto:86-91)<o:p></o:p></p>
<p class=MsoPlainText>> <o:p></o:p></p>
<p class=MsoPlainText>> GIT-hash: ea9e28dbff98e331a62bcbcc63a6135808fe2917
build by<o:p></o:p></p>
<p class=MsoPlainText>> root@sd-xxxx5, 2011-<o:p></o:p></p>
<p class=MsoPlainText>> <o:p></o:p></p>
<p class=MsoPlainText>> 05-04 10:47:00<o:p></o:p></p>
<p class=MsoPlainText>> <o:p></o:p></p>
<p class=MsoPlainText>> 0: *cs:Unconfigured*<o:p></o:p></p>
<p class=MsoPlainText>> root@sd-xxxx5:~# drbdadm up data<o:p></o:p></p>
<p class=MsoPlainText>> <o:p></o:p></p>
<p class=MsoPlainText>> *0: Failure: (114) Lower device is already claimed.
This usually means<o:p></o:p></p>
<p class=MsoPlainText>> it is mounted.*<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>Interesting.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>> *Command 'drbdsetup 0 disk /dev/sda4 /dev/sda4
internal --set-defaults<o:p></o:p></p>
<p class=MsoPlainText>> --create-device' terminated with exit code 10*<o:p></o:p></p>
<p class=MsoPlainText>> what shall I do now?<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>You probably managed to mount the backing storage. This
is not good,<o:p></o:p></p>
<p class=MsoPlainText>your DRBD cluster is likely already corrupted.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>First off, please share your DRBD config and the contents
of<o:p></o:p></p>
<p class=MsoPlainText>/proc/mounts on the misbehaving node.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>Your Secondary is probably fine, so after you find the
issue, you should<o:p></o:p></p>
<p class=MsoPlainText>*not* drbdadm up data, but do these instead:<o:p></o:p></p>
<p class=MsoPlainText>1. drbdadm attach data<o:p></o:p></p>
<p class=MsoPlainText>2. drbdadm invalidate data<o:p></o:p></p>
<p class=MsoPlainText>3. drbdadm syncer data<o:p></o:p></p>
<p class=MsoPlainText>4. drbdadm connect data<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>This way, you should get a full sync from your Secondary,
and need not<o:p></o:p></p>
<p class=MsoPlainText>fear corrupting it.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>HTH,<o:p></o:p></p>
<p class=MsoPlainText>Felix<o:p></o:p></p>
</div>
</body>
</html>