<!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">
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>
<blockquote cite="mid:CA7BF697.4A48B%25badtad@mac.com" type="cite">
<div>
<div>
<div>
<div>Hi There:</div>
<div>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).</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>COYOTE---->SERVER1/2/3/4</div>
<div><br>
</div>
<div><br>
</div>
<div>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:</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>#!/bin/bash</div>
<div>#</div>
<div># migrate_backup - backup web site data for
deployment onto a running server</div>
<div>#</div>
<div># Copyright (C) 2011 Mike Tadros</div>
<div>#</div>
<div>echo Clearing old site data...</div>
<div>rm -rf /home/migrate/www.abc.org</div>
<div>#</div>
<div>echo Stopping sendmail service...</div>
<div>/etc/rc.d/init.d/sendmail stop</div>
<div>#</div>
<div>echo Backing Up Site Data...</div>
<div>/usr/sbin/cmuExport -d /home/migrate/www.abc.org</div>
<div>#</div>
<div>echo Restarting sendmail service...</div>
<div>/etc/rc.d/init.d/sendmail start</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>The tarball would then be placed in a shared directory
that the four other servers would be able to access.</div>
<div><br>
</div>
<div>After the tarball is then created, the user or cron job
would run a modified CMU script as follows on each
individual server:</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>#!/bin/bash</div>
<div>#</div>
<div># migrate_restore - deploy a migration onto a running
server</div>
<div>#</div>
<div># Copyright (C) 2011 Mike Tadros</div>
<div># Change IP to server internal IP</div>
<div>export myip="192.168.1.2"</div>
<div>#</div>
<div># First test to see if the migrate directory is
mounted</div>
<div># if not, do a mountall</div>
<div>#</div>
<div>if [ ! -d /mnt/migrate/www.abc.org ];</div>
<div> then mount -a</div>
<div>fi</div>
<div>#</div>
<div># Now, see if the migrate_backup flag is newer than
the local svr restore flag,</div>
<div># or the local flag doesn't exist as of yet (1st run)</div>
<div>#</div>
<div>if ( [ ! -e /var/local/migrate_flag ] || [
/mnt/migrate/last_backup_flag -nt
/var/local/migrate_flag ] );</div>
<div> then echo "Migrating in New Site Data" ;</div>
<div> /usr/sbin/cmuMerge -d /mnt/migrate/www.abc.org
-i $myip ;</div>
<div> touch /var/local/migrate_flag ;</div>
<div># else echo "Not Migrating Site Data - Up To Date" ;</div>
<div>fi</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Question of the day, does someone on the list know of
a more efficient way of doing this? Thanks for your help
- Mike</div>
<div><br>
</div>
<div>
<div>
<p style="margin: 0px; font: 14px Calibri; min-height:
17px;"><br>
</p>
<p style="margin: 0px; font: 14px Calibri;">Sincerely
yours;</p>
<p style="margin: 0px; font: 14px Calibri; min-height:
17px;"><br>
</p>
<p style="margin: 0px; font: 14px Calibri;">Mike Tadros</p>
<p style="margin: 0px; font: 14px Calibri;">Antenna
Systems & Solutions, Inc.</p>
<p style="margin: 0px; font: 14px Calibri;">931 Albion
Avenue</p>
<p style="margin: 0px; font: 14px Calibri;">Schaumburg,
Illinois 60193-4550</p>
<p style="margin: 0px; font: 14px Calibri;">United
States of America</p>
<p style="margin: 0px; font: 14px Calibri;">Phone:
+1-847-584-1000 Fax: +1-847-584-9951</p>
<p style="margin: 0px; font: 14px Calibri; color:
rgb(54, 2, 238);"><span style="color: rgb(0, 0, 0);"><a class="moz-txt-link-abbreviated" href="http://www.antennasystems.com">www.antennasystems.com</a>
<<a moz-do-not-send="true"
href="http://www.antennasystems.com/%3E"><span
style="text-decoration: underline;">http://www.antennasystems.com/></span></a></span></p>
<p style="margin: 0px; font: 14px Calibri; min-height:
17px;"><br>
</p>
<p style="margin: 0px; font: 14px Calibri;">email: <a
moz-do-not-send="true"
href="mailto:mike@antennasystems.com">mike@antennasystems.com</a></p>
<p style="margin: 0px; font: 14px Calibri; min-height:
17px;"><br>
</p>
<p style="margin: 0px; font: 14px Calibri; min-height:
17px;"><br>
</p>
<p style="margin: 0px; font: 14px Calibri;">GSA Contract
Numbers: GS-35F-0479T Electronic Counter Measures,
Trap and Trace Devices, and accessories.</p>
<p style="margin: 0px; font: 14px Calibri;"> </p>
<p style="margin: 0px; font: 14px Calibri;"> <span
class="Apple-tab-span" style="white-space: pre;"> </span>
GS-07F-0412X Communication Towers and related
construction accessories.</p>
<p style="margin: 0px; font: 14px Calibri; min-height:
17px;"><br>
</p>
<p style="margin: 0px; font: 14px Calibri; min-height:
17px;"><br>
</p>
<p style="margin: 0px; font: 14px Calibri;">Watch our
network broadcast television interviews on
<a class="moz-txt-link-abbreviated" href="http://www.youtube.com/antennasystems">www.youtube.com/antennasystems</a> <<a
moz-do-not-send="true"
href="http://www.youtube.com/antennasystems">http://www.youtube.com/antennasystems</a>></p>
<p style="margin: 0px; font: 14px Calibri; min-height:
17px;"><br>
</p>
<p style="margin: 0px; font: 14px Calibri; min-height:
17px;"><br>
</p>
<p style="margin: 0px; font: 14px Calibri; min-height:
17px;"><br>
</p>
<p style="margin: 0px; font: 14px Calibri;">Confidentiality
note: </p>
<p style="margin: 0px; font: 14px Calibri;">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.</p>
</div>
</div>
</div>
</div>
</div>
<div><br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Blueonyx mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Blueonyx@mail.blueonyx.it">Blueonyx@mail.blueonyx.it</a>
<a class="moz-txt-link-freetext" href="http://mail.blueonyx.it/mailman/listinfo/blueonyx">http://mail.blueonyx.it/mailman/listinfo/blueonyx</a>
</pre>
</blockquote>
</body>
</html>