<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
mydrbd.mlist wrote:
<blockquote
cite="mid:717D04902087D249B74A08F81999FACF9BD8E0@mailserver.apsystems.local"
type="cite">
<meta http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 11 (filtered medium)">
<o:smarttagtype
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="metricconverter">
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
h1
        {margin-top:12.0pt;
        margin-right:0cm;
        margin-bottom:3.0pt;
        margin-left:39.6pt;
        text-indent:-21.6pt;
        page-break-after:avoid;
        mso-list:l2 level1 lfo4;
        font-size:16.0pt;
        font-family:Arial;}
h2
        {margin-top:12.0pt;
        margin-right:0cm;
        margin-bottom:12.0pt;
        margin-left:46.8pt;
        text-align:justify;
        text-indent:-28.8pt;
        page-break-after:avoid;
        mso-list:l2 level2 lfo4;
        font-size:11.0pt;
        font-family:Tahoma;}
h3
        {margin-top:0cm;
        margin-right:3.1pt;
        margin-bottom:0cm;
        margin-left:90.0pt;
        margin-bottom:.0001pt;
        text-align:justify;
        text-indent:-36.0pt;
        page-break-after:avoid;
        mso-list:l0 level3 lfo5;
        font-size:10.0pt;
        font-family:Verdana;
        text-transform:uppercase;}
h4
        {margin-top:0cm;
        margin-right:3.1pt;
        margin-bottom:0cm;
        margin-left:61.2pt;
        margin-bottom:.0001pt;
        text-align:justify;
        text-indent:-43.2pt;
        page-break-after:avoid;
        mso-list:l2 level4 lfo4;
        font-size:11.0pt;
        font-family:Verdana;
        text-transform:uppercase;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.StileMessaggioDiPostaElettronica17
        {mso-style-type:personal-compose;
        font-family:Tahoma;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.Section1
        {page:Section1;}
/* List Definitions */
@list l0
        {mso-list-id:6762679;
        mso-list-template-ids:-12131196;}
@list l0:level1
        {mso-level-tab-stop:18.0pt;
        mso-level-number-position:left;
        margin-left:18.0pt;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Verdana;
        mso-ansi-font-weight:bold;
        mso-ansi-font-style:normal;}
@list l0:level2
        {mso-level-text:"%1\.%2";
        mso-level-tab-stop:82.8pt;
        mso-level-number-position:left;
        margin-left:82.8pt;
        text-indent:-28.8pt;
        mso-ansi-font-weight:bold;
        mso-ansi-font-style:normal;}
@list l0:level3
        {mso-level-style-link:"Titolo 3";
        mso-level-text:"%1\.%2\.%3";
        mso-level-tab-stop:90.0pt;
        mso-level-number-position:left;
        margin-left:90.0pt;
        text-indent:-36.0pt;}
@list l0:level4
        {mso-level-text:"%1\.%2\.%3\.%4";
        mso-level-tab-stop:97.2pt;
        mso-level-number-position:left;
        margin-left:97.2pt;
        text-indent:-43.2pt;}
@list l0:level5
        {mso-level-text:"%1\.%2\.%3\.%4\.%5";
        mso-level-tab-stop:108.0pt;
        mso-level-number-position:left;
        margin-left:82.35pt;
        text-indent:-1.0cm;}
@list l0:level6
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6";
        mso-level-tab-stop:111.6pt;
        mso-level-number-position:left;
        margin-left:111.6pt;
        text-indent:-57.6pt;}
@list l0:level7
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7";
        mso-level-tab-stop:118.8pt;
        mso-level-number-position:left;
        margin-left:118.8pt;
        text-indent:-64.8pt;}
@list l0:level8
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8";
        mso-level-tab-stop:126.0pt;
        mso-level-number-position:left;
        margin-left:126.0pt;
        text-indent:-72.0pt;}
@list l0:level9
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8\.%9";
        mso-level-tab-stop:133.2pt;
        mso-level-number-position:left;
        margin-left:133.2pt;
        text-indent:-79.2pt;}
@list l1
        {mso-list-id:1676422185;
        mso-list-type:hybrid;
        mso-list-template-ids:-477596226 68157457 68157465 68157467 68157455 68157465 68157467 68157455 68157465 68157467;}
@list l1:level1
        {mso-level-text:"%1\)";
        mso-level-tab-stop:36.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l2
        {mso-list-id:1964117485;
        mso-list-template-ids:1826102214;}
@list l2:level1
        {mso-level-style-link:"Titolo 1";
        mso-level-text:%1;
        mso-level-tab-stop:39.6pt;
        mso-level-number-position:left;
        margin-left:39.6pt;
        text-indent:-21.6pt;}
@list l2:level2
        {mso-level-style-link:"Titolo 2";
        mso-level-text:"%1\.%2";
        mso-level-tab-stop:46.8pt;
        mso-level-number-position:left;
        margin-left:46.8pt;
        text-indent:-28.8pt;}
@list l2:level3
        {mso-level-text:"%1\.%2\.%3";
        mso-level-tab-stop:54.0pt;
        mso-level-number-position:left;
        margin-left:54.0pt;
        text-indent:-36.0pt;}
@list l2:level4
        {mso-level-style-link:"Titolo 4";
        mso-level-text:"%1\.%2\.%3\.%4";
        mso-level-tab-stop:61.2pt;
        mso-level-number-position:left;
        margin-left:61.2pt;
        text-indent:-43.2pt;}
@list l2:level5
        {mso-level-text:"%1\.%2\.%3\.%4\.%5";
        mso-level-tab-stop:72.0pt;
        mso-level-number-position:left;
        margin-left:46.35pt;
        text-indent:-1.0cm;}
@list l2:level6
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6";
        mso-level-tab-stop:75.6pt;
        mso-level-number-position:left;
        margin-left:75.6pt;
        text-indent:-57.6pt;}
@list l2:level7
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7";
        mso-level-tab-stop:82.8pt;
        mso-level-number-position:left;
        margin-left:82.8pt;
        text-indent:-64.8pt;}
@list l2:level8
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8";
        mso-level-tab-stop:90.0pt;
        mso-level-number-position:left;
        margin-left:90.0pt;
        text-indent:-72.0pt;}
@list l2:level9
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8\.%9";
        mso-level-tab-stop:97.2pt;
        mso-level-number-position:left;
        margin-left:97.2pt;
        text-indent:-79.2pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
</style>
<div class="Section1">
<p class="MsoNormal"><font face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;" lang="EN-GB">I have
mysql on drbd with heartbeat and dopd.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;" lang="EN-GB"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;" lang="EN-GB">When I do
cold backup on DRBD mysql disk, the
sequence is:<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;" lang="EN-GB"><o:p> </o:p></span></font></p>
<p class="MsoNormal" style="margin-left: 36pt; text-indent: -18pt;"><!--[if !supportLists]--><font
face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;" lang="EN-GB"><span
style="">1)<font face="Times New Roman" size="1"><span
style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">
</span></font></span></span></font><!--[endif]--><font face="Tahoma"
size="2"><span style="font-size: 10pt; font-family: Tahoma;"
lang="EN-GB">Stop
mysql service<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left: 36pt; text-indent: -18pt;"><!--[if !supportLists]--><font
face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;" lang="EN-GB"><span
style="">2)<font face="Times New Roman" size="1"><span
style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">
</span></font></span></span></font><!--[endif]--><font face="Tahoma"
size="2"><span style="font-size: 10pt; font-family: Tahoma;"
lang="EN-GB">Do
a backup of data on DRBD disk on another dir always on DRBD disk<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left: 36pt; text-indent: -18pt;"><!--[if !supportLists]--><font
face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;" lang="EN-GB"><span
style="">3)<font face="Times New Roman" size="1"><span
style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">
</span></font></span></span></font><!--[endif]--><font face="Tahoma"
size="2"><span style="font-size: 10pt; font-family: Tahoma;"
lang="EN-GB">Start
mysql service<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;" lang="EN-GB"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;" lang="EN-GB">mysql
service is not running, so shouldn’t be problems
if I take secondary node down for a while, what you think of this ?</span></font></p>
</div>
</o:smarttagtype></blockquote>
why that way of backup is chhosen ?<br>
better use internal backup capability of mysql server, that not need
server stopping :<br>
so read mysqldump manual for more information ... and decide about
locking tables, extended insert format and other features ...<br>
examples for each of database:<br>
<br>
mysqldump -h 127.0.0.1 -C -u backup_user
--password=backup_user_password --skip-extended-insert
--skip-lock-tables database1 > db1.sql<br>
mysqldump -h 127.0.0.1 -C -u backup_user
--password=backup_user_password --skip-extended-insert
--skip-lock-tables database2 > db2.sql<br>
<br>
or all together in one dump:<br>
<br>
mysqldump -h 127.0.0.1 -C -u backup_user
--password=backup_user_password --skip-extended-insert
--skip-lock-tables --all-databases > all_dbs.sql<br>
<br>
<blockquote
cite="mid:717D04902087D249B74A08F81999FACF9BD8E0@mailserver.apsystems.local"
type="cite"><o:smarttagtype
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="metricconverter">
<div class="Section1">
<p class="MsoNormal"><font face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;" lang="EN-GB"><o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;" lang="EN-GB"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;" lang="EN-GB">Can someone
tell me what is the best method to add
command after poit <st1:metricconverter productid="1 in" w:st="on">1 in</st1:metricconverter>
backup script so secondary node will be disconnected ?<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;" lang="EN-GB">backup
should be faster and at the end of backup I
can reconnect secondary and restart mysql service and DRBD resync.</span></font></p>
</div>
</o:smarttagtype></blockquote>
temporarily disable synchronization (stop slow down by disable of
trying network operations to dead node)<br>
drbdadm disconnect all<br>
---<br>
do needed operations on secondary node<br>
---<br>
drbdadm connect all<br>
<blockquote
cite="mid:717D04902087D249B74A08F81999FACF9BD8E0@mailserver.apsystems.local"
type="cite"><o:smarttagtype
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="metricconverter">
<div class="Section1">
<p class="MsoNormal"><font face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;" lang="EN-GB"><o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;" lang="EN-GB">All this
should be on the primary (owner of drbd resource),
so I need commands that instruct peer node to disconnect/reconnect.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;" lang="EN-GB">At
reconnection resynchronization should be take
place automatically and straightforward.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;" lang="EN-GB"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;" lang="EN-GB">Thank you.<o:p></o:p></span></font></p>
</div>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
drbd-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a>
<a class="moz-txt-link-freetext" href="http://lists.linbit.com/mailman/listinfo/drbd-user">http://lists.linbit.com/mailman/listinfo/drbd-user</a>
</pre>
</o:smarttagtype></blockquote>
<br>
</body>
</html>