<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:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 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: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:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
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
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML - vooraf opgemaakt Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.apple-tab-span
        {mso-style-name:apple-tab-span;}
span.HTML-voorafopgemaaktChar
        {mso-style-name:"HTML - vooraf opgemaakt Char";
        mso-style-priority:99;
        mso-style-link:"HTML - vooraf opgemaakt";
        font-family:Consolas;
        color:black;}
span.E-mailStijl21
        {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:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
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 bgcolor=white lang=NL link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Why not using virualization (openVZ) with a blueonyx template<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>You then can use rsync to backup the complete blueonyx template with everything in it<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>You then have a complete copy of the virtual server that you can start in one minute.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>That’s how I backup up all my servers.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Only I do it to a backup server and rsync it back to a server when needed<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Steffan.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal style='margin-left:35.4pt'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>Van:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> blueonyx-bounces@mail.blueonyx.it [mailto:blueonyx-bounces@mail.blueonyx.it] <b>Namens </b>Frank Soyer<br><b>Verzonden:</b> dinsdag 6 maart 2012 16:36<br><b>Aan:</b> BlueOnyx General Mailing List<br><b>Onderwerp:</b> [BlueOnyx:09739] BlueOnyx Cluster<o:p></o:p></span></p></div></div><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:35.4pt'>Hi all,<br>a customer ask me for "clustering" his BO server (virtual), without heartbeat, just a mirror of virtualhosts on another virtual machine on which we can switch manually in case of crash.<br>For the data I will use DRBD to mirror the /home partition, no particular problem.<br>But while searching a solution for the rest of the server (configuration, cce database) I find the following question from  Michael Tadros.<br>His script seems to be nice, but... What's this "cmuMerge" ? I haven't this file on my BOs.<br><br>Any help ?<br>Thank you.<br><br>Frank<br><br>Le 25/08/2011 19:54, Michael Tadros a écrit : ([BlueOnyx:08255])<br><br><o:p></o:p></p><div><div><div><div><p class=MsoNormal style='margin-left:35.4pt'>Hi There:<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>I am in the design stages of a web cluster (four servers) with one backend server  to handle administrative tasks such as email & ftp and a second server as a fall back email server.   There will be four separate DNS servers running.  (10 servers total).<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>As such I envision web traffic (PORT 80) coming in to the Coyote Point E350 Load Balanced Switch and then going through a round robin request to one of the four servers.<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>COYOTE---->SERVER1/2/3/4<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>I think I have devised a script using CMUexport to export the sites / database from the backend webserver to the individual load balanced servers.  The script is as follows:<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p></div><div><div><p class=MsoNormal style='margin-left:35.4pt'>#!/bin/bash<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>#<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'># migrate_backup - backup web site data for deployment onto a running server<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>#<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'># Copyright (C) 2011 Mike Tadros<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>#<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>echo Clearing old site data...<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>rm -rf  /home/migrate/www.abc.org<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>#<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>echo Stopping sendmail service...<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>/etc/rc.d/init.d/sendmail stop<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>#<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>echo Backing Up Site Data...<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>/usr/sbin/cmuExport -d /home/migrate/www.abc.org<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>#<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>echo Restarting sendmail service...<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>/etc/rc.d/init.d/sendmail start<o:p></o:p></p></div></div><div><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>The tarball would then be placed in a shared directory that the four other servers would be able to access.<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>After the tarball is then created, the user or cron job would run a modified CMU script as follows on each individual server:<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p></div><div><div><p class=MsoNormal style='margin-left:35.4pt'>#!/bin/bash<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>#<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'># migrate_restore - deploy a migration onto a running server<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>#<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'># Copyright (C) 2011 Mike Tadros<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'># Change IP to server internal IP<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>export myip="192.168.1.2"<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>#<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'># First test to see if the migrate directory is mounted<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'># if not, do a mountall<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>#<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>if [ ! -d /mnt/migrate/www.abc.org ];<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'> then mount -a<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>fi<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>#<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'># Now, see if the migrate_backup flag is newer than the local svr restore flag,<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'># or the local flag doesn't exist as of yet (1st run)<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>#<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>if ( [ ! -e /var/local/migrate_flag ] || [ /mnt/migrate/last_backup_flag -nt /var/local/migrate_flag ] );<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'> then echo "Migrating in New Site Data" ;<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>      /usr/sbin/cmuMerge -d /mnt/migrate/www.abc.org -i $myip ;<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>      touch /var/local/migrate_flag ;<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'># else echo "Not Migrating Site Data - Up To Date" ;<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>fi<o:p></o:p></p></div></div><div><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>The Load Balanced Switch would have the public IP along with the main backend server.  The backend server public IP that is shared ith load balanced switch would then be commented out from /etc/initd/eth0:1 so that when the web traffic comes in from the router.<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'>Question of the day,  does someone on the list know of a more efficient way of doing this?   Thanks for your help  - Mike<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p></div><div><div><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;margin-bottom:.0001pt;min-height:
                  17px'><span style='font-size:10.5pt;font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;margin-bottom:.0001pt'><span style='font-size:10.5pt;font-family:"Calibri","sans-serif"'>Sincerely yours;<o:p></o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;margin-bottom:.0001pt;min-height:
                  17px'><span style='font-size:10.5pt;font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;margin-bottom:.0001pt'><span style='font-size:10.5pt;font-family:"Calibri","sans-serif"'>Mike Tadros<o:p></o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;margin-bottom:.0001pt'><span style='font-size:10.5pt;font-family:"Calibri","sans-serif"'>Antenna Systems & Solutions, Inc.<o:p></o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;margin-bottom:.0001pt'><span style='font-size:10.5pt;font-family:"Calibri","sans-serif"'>931 Albion Avenue<o:p></o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;margin-bottom:.0001pt'><span style='font-size:10.5pt;font-family:"Calibri","sans-serif"'>Schaumburg, Illinois 60193-4550<o:p></o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;margin-bottom:.0001pt'><span style='font-size:10.5pt;font-family:"Calibri","sans-serif"'>United States of America<o:p></o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;margin-bottom:.0001pt'><span style='font-size:10.5pt;font-family:"Calibri","sans-serif"'>Phone: +1-847-584-1000   Fax: +1-847-584-9951<o:p></o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;margin-bottom:.0001pt'><span style='font-size:10.5pt;font-family:"Calibri","sans-serif"'><a href="http://www.antennasystems.com">www.antennasystems.com</a> <<a href="http://www.antennasystems.com/%3E">http://www.antennasystems.com/></a></span><span style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#3602EE'><o:p></o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;margin-bottom:.0001pt;min-height:
                  17px'><span style='font-size:10.5pt;font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;margin-bottom:.0001pt'><span style='font-size:10.5pt;font-family:"Calibri","sans-serif"'>email: <a href="mailto:mike@antennasystems.com">mike@antennasystems.com</a><o:p></o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;margin-bottom:.0001pt;min-height:
                  17px'><span style='font-size:10.5pt;font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;margin-bottom:.0001pt;min-height:
                  17px'><span style='font-size:10.5pt;font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;margin-bottom:.0001pt'><span style='font-size:10.5pt;font-family:"Calibri","sans-serif"'>GSA Contract Numbers: GS-35F-0479T Electronic Counter Measures, Trap and  Trace Devices, and accessories.<o:p></o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;margin-bottom:.0001pt'><span style='font-size:10.5pt;font-family:"Calibri","sans-serif"'>                      <o:p></o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;margin-bottom:.0001pt'><span style='font-size:10.5pt;font-family:"Calibri","sans-serif"'>                    <span class=apple-tab-span> </span>       GS-07F-0412X Communication Towers and related construction accessories.<o:p></o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;margin-bottom:.0001pt;min-height:
                  17px'><span style='font-size:10.5pt;font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;margin-bottom:.0001pt;min-height:
                  17px'><span style='font-size:10.5pt;font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;margin-bottom:.0001pt'><span style='font-size:10.5pt;font-family:"Calibri","sans-serif"'>Watch our network broadcast television interviews on <a href="http://www.youtube.com/antennasystems">www.youtube.com/antennasystems</a> <<a href="http://www.youtube.com/antennasystems">http://www.youtube.com/antennasystems</a>><o:p></o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;margin-bottom:.0001pt;min-height:
                  17px'><span style='font-size:10.5pt;font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;margin-bottom:.0001pt;min-height:
                  17px'><span style='font-size:10.5pt;font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;margin-bottom:.0001pt;min-height:
                  17px'><span style='font-size:10.5pt;font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;margin-bottom:.0001pt'><span style='font-size:10.5pt;font-family:"Calibri","sans-serif"'>Confidentiality note:  <o:p></o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;margin-bottom:.0001pt'><span style='font-size:10.5pt;font-family:"Calibri","sans-serif"'>This message is the property of Antenna Systems & Solutions, Inc. and contains information which may be privileged or confidential.  It is meant only for the intended recipients and/or their authorized agents.  If you believe you have received this message in error, please notify us immediately by return e-mail and destroy any printed or electronic copies of this message.  Any unauthorized use, dissemination, disclosure, or copying of this message or the information contained in it, is strictly prohibited and may be unlawful.   Thank you for your cooperation.<o:p></o:p></span></p></div></div></div></div></div><div><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p></div><pre style='margin-left:35.4pt'><o:p> </o:p></pre><pre style='margin-left:35.4pt'><o:p> </o:p></pre><pre style='margin-left:35.4pt'>_______________________________________________<o:p></o:p></pre><pre style='margin-left:35.4pt'>Blueonyx mailing list<o:p></o:p></pre><pre style='margin-left:35.4pt'><a href="mailto:Blueonyx@mail.blueonyx.it">Blueonyx@mail.blueonyx.it</a><o:p></o:p></pre><pre style='margin-left:35.4pt'><a href="http://mail.blueonyx.it/mailman/listinfo/blueonyx">http://mail.blueonyx.it/mailman/listinfo/blueonyx</a><o:p></o:p></pre></div></body></html>