<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:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" 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:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 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.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
        {page:Section1;}
/* List Definitions */
@list l0
        {mso-list-id:1798528562;
        mso-list-type:hybrid;
        mso-list-template-ids:533101076 796959458 67567619 67567621 67567617 67567619 67567621 67567617 67567619 67567621;}
@list l0:level1
        {mso-level-start-at:2;
        mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;
        mso-fareast-font-family:Calibri;
        mso-bidi-font-family:"Times New Roman";}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
</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=DE link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>Hello list,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I have got the following configuration (tested out with drbd
version 2:8.3.2-1~bpo50+1 and 2:8.0.14-2) on two Debian Lenny/amd64 servers:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>global { usage-count no; }<o:p></o:p></p>
<p class=MsoNormal>common {<o:p></o:p></p>
<p class=MsoNormal> protocol C;<o:p></o:p></p>
<p class=MsoNormal> startup {<o:p></o:p></p>
<p class=MsoNormal> become-primary-on both;<o:p></o:p></p>
<p class=MsoNormal> wfc-timeout 60;<o:p></o:p></p>
<p class=MsoNormal> degr-wfc-timeout 60;<o:p></o:p></p>
<p class=MsoNormal> }<o:p></o:p></p>
<p class=MsoNormal> disk { on-io-error detach; }<o:p></o:p></p>
<p class=MsoNormal> net {<o:p></o:p></p>
<p class=MsoNormal> allow-two-primaries;<o:p></o:p></p>
<p class=MsoNormal> after-sb-0pri discard-younger-primary;<o:p></o:p></p>
<p class=MsoNormal> after-sb-1pri discard-secondary;<o:p></o:p></p>
<p class=MsoNormal> after-sb-2pri call-pri-lost-after-sb;<o:p></o:p></p>
<p class=MsoNormal> }<o:p></o:p></p>
<p class=MsoNormal>}<o:p></o:p></p>
<p class=MsoNormal>resource r0 {<o:p></o:p></p>
<p class=MsoNormal> disk {<o:p></o:p></p>
<p class=MsoNormal> fencing resource-only;<o:p></o:p></p>
<p class=MsoNormal> on-io-error detach;<o:p></o:p></p>
<p class=MsoNormal> }<o:p></o:p></p>
<p class=MsoNormal> syncer {<o:p></o:p></p>
<p class=MsoNormal> rate 100M;<o:p></o:p></p>
<p class=MsoNormal> al-extents 257;<o:p></o:p></p>
<p class=MsoNormal> }<o:p></o:p></p>
<p class=MsoNormal> net {<o:p></o:p></p>
<p class=MsoNormal> after-sb-0pri disconnect;<o:p></o:p></p>
<p class=MsoNormal> after-sb-1pri disconnect;<o:p></o:p></p>
<p class=MsoNormal> after-sb-2pri disconnect;<o:p></o:p></p>
<p class=MsoNormal> rr-conflict disconnect;<o:p></o:p></p>
<p class=MsoNormal> }<o:p></o:p></p>
<p class=MsoNormal> handlers {<o:p></o:p></p>
<p class=MsoNormal> pri-on-incon-degr "echo o > /proc/sysrq-trigger
; halt f";<o:p></o:p></p>
<p class=MsoNormal> pri-lost-after-sb "echo o > /proc/sysrq-trigger
; halt f";<o:p></o:p></p>
<p class=MsoNormal> local-io-error "echo o > /proc/sysrq-trigger ;
halt f";<o:p></o:p></p>
<p class=MsoNormal> outdate-peer "/usr/lib/heartbeat/drbd-peer-outdater
-t 5";<o:p></o:p></p>
<p class=MsoNormal> }<o:p></o:p></p>
<p class=MsoNormal> startup {<o:p></o:p></p>
<p class=MsoNormal> degr-wfc-timeout 120; # 2 minutes.<o:p></o:p></p>
<p class=MsoNormal> become-primary-on both;<o:p></o:p></p>
<p class=MsoNormal> }<o:p></o:p></p>
<p class=MsoNormal> on mysql1 {<o:p></o:p></p>
<p class=MsoNormal> device /dev/drbd0;<o:p></o:p></p>
<p class=MsoNormal> disk /dev/sda4;<o:p></o:p></p>
<p class=MsoNormal> address 192.168.123.6:7789;<o:p></o:p></p>
<p class=MsoNormal> meta-disk internal;<o:p></o:p></p>
<p class=MsoNormal> }<o:p></o:p></p>
<p class=MsoNormal> on mysql2 {<o:p></o:p></p>
<p class=MsoNormal> device /dev/drbd0;<o:p></o:p></p>
<p class=MsoNormal> disk /dev/sdb1;<o:p></o:p></p>
<p class=MsoNormal> address 192.168.123.17:7789;<o:p></o:p></p>
<p class=MsoNormal> meta-disk internal;<o:p></o:p></p>
<p class=MsoNormal>}<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>In the primary/secondary mode, everything is perfect, but if
I use the primary/primary mode and do the following, it fails:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='font-family:Symbol'><span style='mso-list:Ignore'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]>Create a file foo.txt on mysql1<o:p></o:p></p>
<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='font-family:Symbol'><span style='mso-list:Ignore'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]>Create a file blubb.txt on mysql2<o:p></o:p></p>
<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='font-family:Symbol'><span style='mso-list:Ignore'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]>On both nodes, the file of the other one does
not appear<o:p></o:p></p>
<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='font-family:Symbol'><span style='mso-list:Ignore'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]>If I umount the device, wait a few seconds and mount
it again, the file foo.txt (created on mysql1) appears on mysql2<o:p></o:p></p>
<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='font-family:Symbol'><span style='mso-list:Ignore'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]>The file blubb.txt (created on mysql2) is
deleted on both hosts<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>/proc/drbd looks everytime good.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>For example:<o:p></o:p></p>
<p class=MsoNormal>mysql1:~# cat /proc/drbd<o:p></o:p></p>
<p class=MsoNormal>version: 8.3.2 (api:88/proto:86-90)<o:p></o:p></p>
<p class=MsoNormal>GIT-hash: dd7985327f146f33b86d4bff5ca8c94234ce840e build by
phil@fat-tyre, 2009-07-03 15:35:39<o:p></o:p></p>
<p class=MsoNormal> 0: cs:Connected ro:Primary/Primary ds:UpToDate/UpToDate C
r---n<o:p></o:p></p>
<p class=MsoNormal> ns:4343908 nr:108 dw:4344016 dr:3337 al:4530 bm:0 lo:0
pe:0 ua:0 ap:0 ep:1 wo:b oos:0<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>mysql2:~# cat /proc/drbd<o:p></o:p></p>
<p class=MsoNormal>version: 8.3.2 (api:88/proto:86-90)<o:p></o:p></p>
<p class=MsoNormal>GIT-hash: dd7985327f146f33b86d4bff5ca8c94234ce840e build by
phil@fat-tyre, 2009-07-03 15:35:39<o:p></o:p></p>
<p class=MsoNormal> 0: cs:Connected ro:Primary/Primary ds:UpToDate/UpToDate C
r----<o:p></o:p></p>
<p class=MsoNormal> ns:108 nr:4343908 dw:4344016 dr:648 al:3 bm:0 lo:0 pe:0
ua:0 ap:0 ep:1 wo:b oos:0<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Any ideas?<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Thanks in advance.<o:p></o:p></p>
</div>
</body>
</html>