<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=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:"Cordia New";
        panose-1:2 11 3 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Cordia New";
        panose-1:2 11 3 4 2 2 2 2 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        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;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></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="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Dear DRBD-dev,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> Thank you for drbd 3 way replication,<o:p></o:p></p>
<p class="MsoNormal"> I already finished for testing this issue on 3 new servers , It’s could working well.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> But for my current production system , right now implementation phase already finished for 2 nodes and run as production system work with Heartbeat3+drbd8.3 on 2 nodes ( drbd.conf use = r0)<o:p></o:p></p>
<p class="MsoNormal"> Then I would like to build new 1 server node to do 3 way replication with current system , So I stuck on method
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> #drbdadm –stacked create-md r2 <o:p></o:p></p>
<p class="MsoNormal"> If I clear meta data on internal disk , It will destroy data also , Do you have recommend way to implement 3 way replication on my case ?
<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">#### Log show #####<o:p></o:p></p>
<p class="MsoNormal"> md_offset 19624873984<o:p></o:p></p>
<p class="MsoNormal">al_offset 19624841216<o:p></o:p></p>
<p class="MsoNormal">bm_offset 19624239104<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Found ext3 filesystem<o:p></o:p></p>
<p class="MsoNormal"> 19164920 kB data area apparently used<o:p></o:p></p>
<p class="MsoNormal"> 19164296 kB left usable by current configuration<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Device size would be truncated, which<o:p></o:p></p>
<p class="MsoNormal">would corrupt data and result in<o:p></o:p></p>
<p class="MsoNormal">'access beyond end of device' errors.<o:p></o:p></p>
<p class="MsoNormal">You need to either<o:p></o:p></p>
<p class="MsoNormal"> * use external meta data (recommended)<o:p></o:p></p>
<p class="MsoNormal"> * shrink that filesystem first<o:p></o:p></p>
<p class="MsoNormal"> * zero out the device (destroy the filesystem)<o:p></o:p></p>
<p class="MsoNormal">Operation refused.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Command 'drbdmeta 3 v08 /dev/drbd0 internal create-md' terminated with exit code 40<o:p></o:p></p>
<p class="MsoNormal">drbdadm create-md r2: exited with code 40<o:p></o:p></p>
<p class="MsoNormal">#### Log show #####<o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">#### configure /etc/drbd.conf ####
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">global {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> usage-count no;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">common {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> syncer { rate 300M;}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">resource r0 {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> protocol C;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> disk {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> on-io-error pass_on;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> device /dev/drbd0;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> disk /dev/sda3;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> startup {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> wfc-timeout 100;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> on backup01 {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> address 192.168.250.16:7788;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> meta-disk internal;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> on backup02 {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> address 192.168.250.15:7788;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> meta-disk internal;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">resource r2 {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> protocol C;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> stacked-on-top-of r0 {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> device /dev/drbd3;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> address 192.168.251.19:7788; # IP provided by Heartbeat<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> on backup03 {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> device /dev/drbd3;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> disk /dev/sda3;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> address 192.168.251.14:7788; # Public IP of the backup node<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> meta-disk internal;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">#### configure /etc/drbd.conf ####
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Please do not hesitate to contact us , If you have any questions .<br>
Best Regards.<br>
################################<br>
# Watthanachai KEKHUA (Golf)<br>
# Operation And Maintenance Department (OAM)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"># Tel: 02-2367227 Ext. 1624<br>
# NTT Communications (Thailand) Co., Ltd.<br>
#################################</span><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">DISCLAIMER :<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">This email is for the use of the intended recipient(s) only.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">If you have received this email in error, please notify the sender immediately and then delete it.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">If you are not the intended recipient, you must not keep, use, disclose, copy or distribute this email without the author's prior permission.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">We have taken precautions to minimise the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">We cannot accept liability for any loss or damage caused by software viruses.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">The information contained in this communication may be confidential and may be subject to the attorney-client privilege.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">If you are the intended recipient and you do not wish to receive similar electronic messages from us in future then please respond to the sender to this effect.<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Watthanachai Kekhua
<br>
<b>Sent:</b> Thursday, October 10, 2013 3:43 PM<br>
<b>To:</b> 'drbd-dev@lists.linbit.com'<br>
<b>Cc:</b> Watthanachai Kekhua<br>
<b>Subject:</b> Ask about drbd 3 way replicate.<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Dear DRBD-dev,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> Thank you for drbd 3 way replication,<o:p></o:p></p>
<p class="MsoNormal"> I already finished for testing this issue on 3 new servers , It’s could working well.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> But for my current production system , right now implement for Heartbeat3+drbd8.3 on 2 nodes ( drbd.conf use = r0)<o:p></o:p></p>
<p class="MsoNormal"> Then I would like to build new server node to do 3 way replication with current system , So I stuck on method
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> #drbdadm –stacked create-md r2 <o:p></o:p></p>
<p class="MsoNormal"> If I clear meta data on internal disk , It will destroy data also , Do you have recommend way to implement 3 way replication on my case ?
<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">#### Log show #####<o:p></o:p></p>
<p class="MsoNormal"> md_offset 19624873984<o:p></o:p></p>
<p class="MsoNormal">al_offset 19624841216<o:p></o:p></p>
<p class="MsoNormal">bm_offset 19624239104<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Found ext3 filesystem<o:p></o:p></p>
<p class="MsoNormal"> 19164920 kB data area apparently used<o:p></o:p></p>
<p class="MsoNormal"> 19164296 kB left usable by current configuration<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Device size would be truncated, which<o:p></o:p></p>
<p class="MsoNormal">would corrupt data and result in<o:p></o:p></p>
<p class="MsoNormal">'access beyond end of device' errors.<o:p></o:p></p>
<p class="MsoNormal">You need to either<o:p></o:p></p>
<p class="MsoNormal"> * use external meta data (recommended)<o:p></o:p></p>
<p class="MsoNormal"> * shrink that filesystem first<o:p></o:p></p>
<p class="MsoNormal"> * zero out the device (destroy the filesystem)<o:p></o:p></p>
<p class="MsoNormal">Operation refused.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Command 'drbdmeta 3 v08 /dev/drbd0 internal create-md' terminated with exit code 40<o:p></o:p></p>
<p class="MsoNormal">drbdadm create-md r2: exited with code 40<o:p></o:p></p>
<p class="MsoNormal">#### Log show #####<o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">#### configure /etc/drbd.conf ####
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">global {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> usage-count no;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">common {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> syncer { rate 300M;}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">resource r0 {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> protocol C;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> disk {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> on-io-error pass_on;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> device /dev/drbd0;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> disk /dev/sda3;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> startup {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> wfc-timeout 100;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> on backup01 {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> address 192.168.250.16:7788;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> meta-disk internal;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> on backup02 {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> address 192.168.250.15:7788;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> meta-disk internal;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">resource r2 {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> protocol C;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> stacked-on-top-of r0 {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> device /dev/drbd3;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> address 192.168.251.19:7788; # IP provided by Heartbeat<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> on backup03 {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> device /dev/drbd3;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> disk /dev/sda3;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> address 192.168.251.14:7788; # Public IP of the backup node<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> meta-disk internal;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">#### configure /etc/drbd.conf ####
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Please do not hesitate to contact us , If you have any questions .<br>
Best Regards.<br>
################################<br>
# Watthanachai KEKHUA (Golf)<br>
# Operation And Maintenance Department (OAM)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"># Tel: 02-2367227 Ext. 1624<br>
# NTT Communications (Thailand) Co., Ltd.<br>
#################################</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">DISCLAIMER :<o:p></o:p></p>
<p class="MsoNormal">This email is for the use of the intended recipient(s) only.
<o:p></o:p></p>
<p class="MsoNormal">If you have received this email in error, please notify the sender immediately and then delete it.
<o:p></o:p></p>
<p class="MsoNormal">If you are not the intended recipient, you must not keep, use, disclose, copy or distribute this email without the author's prior permission.
<o:p></o:p></p>
<p class="MsoNormal">We have taken precautions to minimise the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message.<o:p></o:p></p>
<p class="MsoNormal">We cannot accept liability for any loss or damage caused by software viruses.<o:p></o:p></p>
<p class="MsoNormal">The information contained in this communication may be confidential and may be subject to the attorney-client privilege.
<o:p></o:p></p>
<p class="MsoNormal">If you are the intended recipient and you do not wish to receive similar electronic messages from us in future then please respond to the sender to this effect.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>