<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<title>ProActive Software</title>
<meta name="GENERATOR" content="MSHTML 8.00.6001.19298">
</head>
<body bgcolor="#ffffff" text="#000000"><!--ppd1000037-->
<div dir="ltr" align="left"><span class="622012104-13062013"><font color="#0000ff" face="Calibri">I really appreciate everyone's input but everyone misunderstood the question I was really asking. It's my fault for mentioning rsync. I fully understand the difference
between how rsync works and how drbd works. We use them both all the time. But the real question is more high level. We have been told that even if you stop the mysql service, you still cannot backup an innodb database by simply copying the files from one
server to another. We have been told that the mysql service will not start properly on the new server even if you make a 100% exact copy of all the files from the old server. If that is true, I don't understand how using drbd can work with innodb tables, since
it basically just makes a copy of the files to another server. Am I asking the question right?</font></span></div>
<div><font color="#0000ff" face="Calibri"></font> </div>
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal" align="left"><span style="FONT-FAMILY: Tahoma; FONT-SIZE: 10pt"><font size="3" face="Calibri">--<br>
</font></span><span style="FONT-FAMILY: Tahoma; FONT-SIZE: 10pt"><font size="3" face="Calibri">Eric Robinson<br>
</font></span></p>
<div><font size="2" face="Tahoma"></font> </div>
<br>
<blockquote style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px" dir="ltr">
<div dir="ltr" lang="en-us" class="OutlookMessageHeader" align="left">
<hr tabindex="-1">
<font size="2" face="Tahoma"><b>From:</b> drbd-user-bounces@lists.linbit.com [mailto:drbd-user-bounces@lists.linbit.com]
<b>On Behalf Of </b>Adam Goryachev<br>
<b>Sent:</b> Wednesday, June 12, 2013 6:58 PM<br>
<b>To:</b> drbd-user@lists.linbit.com<br>
<b>Subject:</b> Re: [DRBD-user] drbd+mysql+innodb<br>
</font><br>
</div>
<div></div>
<div class="moz-cite-prefix">On 13/06/13 10:37, Dan Barker wrote:<br>
</div>
<blockquote cite="mid:6664fa889f8c41b19e86ffb88720b1e8@BN1PR04MB060.namprd04.prod.outlook.com" type="cite">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<!--[if !mso]>
<STYLE>v\:* {
        BEHAVIOR: url(#default#VML)
}
o\:* {
        BEHAVIOR: url(#default#VML)
}
w\:* {
        BEHAVIOR: url(#default#VML)
}
shape {
        BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]--><style>@font-face {
        font-family: Cambria Math;
}
@font-face {
        font-family: Calibri;
}
@font-face {
        font-family: Tahoma;
}
@font-face {
        font-family: Consolas;
}
@font-face {
        font-family: Verdana;
}
@page WordSection1 {size: 8.5in 11.0in; margin: 1.0in 1.0in 1.0in 1.0in; }
P.MsoNormal {
        MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"; COLOR: black; FONT-SIZE: 12pt
}
LI.MsoNormal {
        MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"; COLOR: black; FONT-SIZE: 12pt
}
DIV.MsoNormal {
        MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"; COLOR: black; FONT-SIZE: 12pt
}
A:link {
        COLOR: #25aae1; TEXT-DECORATION: none; mso-style-priority: 99
}
SPAN.MsoHyperlink {
        COLOR: #25aae1; TEXT-DECORATION: none; mso-style-priority: 99
}
A:visited {
        COLOR: #25aae1; TEXT-DECORATION: none; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
        COLOR: #25aae1; TEXT-DECORATION: none; mso-style-priority: 99
}
PRE {
        MARGIN: 0in 0in 0pt; FONT-FAMILY: "Courier New"; COLOR: black; FONT-SIZE: 10pt; mso-style-priority: 99; mso-style-link: "HTML Preformatted Char"
}
P.MsoAcetate {
        MARGIN: 0in 0in 0pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black; FONT-SIZE: 8pt; mso-style-priority: 99; mso-style-link: "Balloon Text Char"
}
LI.MsoAcetate {
        MARGIN: 0in 0in 0pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black; FONT-SIZE: 8pt; mso-style-priority: 99; mso-style-link: "Balloon Text Char"
}
DIV.MsoAcetate {
        MARGIN: 0in 0in 0pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black; FONT-SIZE: 8pt; mso-style-priority: 99; mso-style-link: "Balloon Text Char"
}
SPAN.HTMLPreformattedChar {
        FONT-FAMILY: Consolas; COLOR: black; mso-style-priority: 99; mso-style-link: "HTML Preformatted"; mso-style-name: "HTML Preformatted Char"
}
SPAN.EmailStyle19 {
        FONT-FAMILY: "Calibri","sans-serif"; COLOR: #1f497d; mso-style-type: personal
}
SPAN.BalloonTextChar {
        FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black; mso-style-priority: 99; mso-style-link: "Balloon Text"; mso-style-name: "Balloon Text Char"
}
SPAN.EmailStyle23 {
        FONT-FAMILY: "Calibri","sans-serif"; COLOR: #1f497d; mso-style-type: personal-reply
}
MsoChpDefault {
        FONT-SIZE: 10pt; mso-style-type: export-only
}
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]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">rsync will not be able to synchronize from a “failed” disk, drbd already has done so.<O:P></O:P></span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><O:P></O:P></span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Dan in Atlanta<O:P></O:P></span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><O:P></O:P></span></p>
<div style="BORDER-BOTTOM: medium none; BORDER-LEFT: blue 1.5pt solid; PADDING-BOTTOM: 0in; PADDING-LEFT: 4pt; PADDING-RIGHT: 0in; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0in">
<div>
<div style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<p class="MsoNormal"><b><span style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: windowtext; FONT-SIZE: 10pt">From:</span></b><span style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: windowtext; FONT-SIZE: 10pt">
<a class="moz-txt-link-abbreviated" href="mailto:drbd-user-bounces@lists.linbit.com">
drbd-user-bounces@lists.linbit.com</a> [<a class="moz-txt-link-freetext" href="mailto:drbd-user-bounces@lists.linbit.com">mailto:drbd-user-bounces@lists.linbit.com</a>]
<b>On Behalf Of </b>Robinson, Eric<br>
<b>Sent:</b> Wednesday, June 12, 2013 6:20 PM<br>
<b>To:</b> Dirk Bonenkamp - ProActive<br>
<b>Cc:</b> <a class="moz-txt-link-abbreviated" href="mailto:drbd-user@lists.linbit.com">
drbd-user@lists.linbit.com</a><br>
<b>Subject:</b> Re: [DRBD-user] drbd+mysql+innodb<O:P></O:P></span></p>
</div>
</div>
<p class="MsoNormal"><O:P></O:P></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Hi Dirk – Thanks for the feedback. I do need some clarification, though. DRBD replicates disk block changes to a standby volume. If the primary node suddenly
fails, the cluster manager promotes the standby node to primary and starts the MySQL service. Logically, this seems exactly the same as simply rsyncing the data to the new server and starting the MySQL service. Why would it work with DRBD but not with rsync?
Thanks for your patience while I explore this.<O:P></O:P></span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><O:P></O:P></span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Note: we have over 500 separate MySQL database instances using MyISAM. I am totally not stoked about the idea of using 300% more disk space and gobs more
memory.<O:P></O:P></span></p>
</div>
</div>
<br>
</blockquote>
I think the real issue with rsync is that it will start copying the file, but new writes may come in during the copy process, therefore the destination copy is not a point in time copy of the source. This is the same issue with using rsync for disk images of
VM's that are running during the rsync. As explained, this is not an issue for DRBD replication, because at any instant in time, the replica (destination copy) is an exact copy of the source at some point in time, even if it is not the latest point in time.<br>
<br>
Regards,<br>
Adam<br>
<br>
<pre class="moz-signature" cols="72">--
Adam Goryachev
Website Managers
<a class="moz-txt-link-abbreviated" href="http://www.websitemanagers.com.au">www.websitemanagers.com.au</a>
</pre>
</blockquote>
<BR><BR><FONT color=silver><SPAN style="FONT-SIZE: 7.5pt; COLOR: gray; FONT-FAMILY: Verdana"><FONT size=1>Disclaimer - June 12, 2013</FONT></FONT></SPAN></FONT> <P></P><FONT size=1><FONT face=Verdana color=gray><SPAN style="FONT-SIZE: 7.5pt; COLOR: gray; FONT-FAMILY: Verdana">This email and any files <FONT size=1>transmitted</FONT> with it are confidential and intended solely for <STRONG>'Adam Goryachev',drbd-user@lists.linbit.com</STRONG></SPAN></FONT><FONT face=Verdana color=gray><SPAN style="FONT-SIZE: 7.5pt; COLOR: gray; FONT-FAMILY: Verdana">. If you are not the named addressee you should not disseminate, distribute, copy or alter this email. Any views or opinions presented in this email are solely those of the author and might not represent those of Physicians' Managed Care or Physician Select Management. Warning: Although Physicians' Managed Care or Physician Select Management has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments.</SPAN></FONT></FONT></body>
</html>