<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>HBY Consultancy &#187; Blog</title>
	<atom:link href="http://www.hbyconsultancy.com/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://www.hbyconsultancy.com</link>
	<description>IT Consultant, PHP Expert, e-Government Specialist and Energy Engineer</description>
	<lastBuildDate>Sun, 01 Jan 2012 12:21:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>الشفافية والحوكمة المفتوحة، نقاش الفصلين 62 و68</title>
		<link>http://www.hbyconsultancy.com/blog/%d8%a7%d9%84%d8%b4%d9%81%d8%a7%d9%81%d9%8a%d8%a9-%d9%88%d8%a7%d9%84%d8%ad%d9%88%d9%83%d9%85%d8%a9-%d8%a7%d9%84%d9%85%d9%81%d8%aa%d9%88%d8%ad%d8%a9.html</link>
		<comments>http://www.hbyconsultancy.com/blog/%d8%a7%d9%84%d8%b4%d9%81%d8%a7%d9%81%d9%8a%d8%a9-%d9%88%d8%a7%d9%84%d8%ad%d9%88%d9%83%d9%85%d8%a9-%d8%a7%d9%84%d9%85%d9%81%d8%aa%d9%88%d8%ad%d8%a9.html#comments</comments>
		<pubDate>Sun, 01 Jan 2012 12:21:41 +0000</pubDate>
		<dc:creator>hatem</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[OpenData]]></category>
		<category><![CDATA[OpenGov]]></category>
		<category><![CDATA[tnANC]]></category>

		<guid isPermaLink="false">http://www.hbyconsultancy.com/?p=604</guid>
		<description><![CDATA[أردت أن أفتح قوس حول سرية أو علانية أشغال اللجان وما ناقشه مؤخرا المجلس التأسيسي من خلال الفصلين 62 و68. وأول سؤال "خطير" هل تعلم ماهو نص الفصلين 62 و68 ؟ أعلم إجابتكم مسبقا، إقرأ لمزيد من التفاصيل.<h3>Related Posts</h3>

No related posts.
]]></description>
			<content:encoded><![CDATA[<p dir="rtl">أردت أن أفتح قوس حول سرية أو علانية أشغال اللجان وما ناقشه مؤخرا المجلس التأسيسي من خلال الفصلين 62 و68. وأول سؤال &#8220;خطير&#8221; هل تعلم ماهو نص الفصلين 62 و68 ؟ أعلم إجابتكم مسبقا، إقرأ لمزيد من التفاصيل.</p>
<p dir="rtl">يبتهج  البعض دفاعا عن نوابهم أو أحزابهم، ولعلي أقف موقف محايد من الجميع لعدم  انتمائي لأي حزب سياسي و ليس لي أية نشاط سياسي لا قبل ولا بعد الثورة، ما  يهمني فقط مصلحة بلدي تونس ومستقبلها ومستقبل أجيال من بعدنا. أتحدث من  موقعي أولا كمواطن تونسي، ثم كمهندس تونسي، مستشار في تكنولوجيا المعلومات  والاتصالات، وخبير في الحوكمة الالكترونية.</p>
<p dir="rtl">موضوع  الشفافية والحوكمة المفتوحة موضوع يهم كل التونسيين والتونسيات بكل  اطيافهم وتياراتهم وأفكارهم وانتماءاتهم الحزبية والسياسية، لأن الموضوع  يحد من تفشي الفساد الاداري من ناحية، ويعطي الشعب فرصة حقيقية للمساهمة في  اتخاذ القرار وتقرير مستقبل البلاد. بالاضافة الى ان للموضوع ابعاد  ايجابية عدة من الناحية الاقتصادية، السياسية، والاجتماعية. سنعود لهذه  المفاهيم بالمزيد من التفاصيل، ونحن نعمل داخل مجموعة OpenGovTN على اصدار  كتيب يوضح اكثر هذه المفاهيم، ولكن لاختصار الطريق ان المطالبة بالشفافية  ليست مطالبة سياسية وانما هي مطالبة طبيعية وشرعية !</p>
<p dir="rtl">أولا، لدي بعض التساؤلات</p>
<p dir="rtl">1- هل تعتبرون البث المباشر للجلسة العامة تحقيق للشفافية نعم أم لا ؟</p>
<p dir="rtl">اذا  كانت الاجابة بنعم، فاعطني لمحة عن القانون الذي هو بصدد المناقشة في  المجلس التأسيسي حاليا ومحتواه (عدد الفصول على الاقل). ويستثنى السادة  النواب من الاجابة ومن لم يجب على السؤال الأول أعلاه.</p>
<p dir="rtl">اذا  كانت الاجابة بلا، فاعلم انه من موقعك كمتفرج ترى نوابا تناقش موضوع ليس  لديك عنه اية خلفية ولايصلك سوى بعض ملاحظات نواب الكتلة او المعارضة فقط.  تقريبا كما تشاهد احد المسلسلات التركية او المكسيكية. ومع ذلك نعتبره ضربا  من الشفافية نظرا لبداية التجربة الديمقراطية في تونس، واول الغيث قطرة.</p>
<p dir="rtl">2-  هل تعتبرون النواب تم انتخابهم واعطائهم الثقة العمياء ليفعلوا مايريدون  داخل المجلس نعم ام لا ؟ بغض النظر عن البرامج التي قدمت سابقا ولن تنفذ  أغلبها.</p>
<p dir="rtl">اذا كانت الاجابة بنعم، فضلا التوقف عند هذا السطر. وإعادة قرائة السؤال مع التركيز على عبارة &#8220;الثقة العمياء&#8221;.</p>
<p dir="rtl">اذا  كانت الاجابة بلا، فاعلم أنه اي شخص مهما كان مستواه، ثقافته، وعلمه، ولم  يجد النصيحة منك فأنك تشارك في افساده وتغليطه كما قال الرئيس السابق  &#8220;غلطوني&#8221;. وكفى ما أفسدنا من بلادنا.</p>
<p dir="rtl">3- هل تونس تبني دستور مؤقت، أو لـ 50 سنة، أو للأجيال القادمة ؟</p>
<p dir="rtl">وأترك لكم الاجابة&#8230;</p>
<p dir="rtl">فالموضوع  المطروح في الحوكمة المفتوحة هو كيف يمكنك تقديم النصح للنواب أو الحكومة   وليس لديك اية معلومة عما يدور بداخل المجلس، ولمن صوت النائب، وكأن كل  المواضيع المطروحة تخص امن الدولة، بما في ذلك الجلسات العلانية. دون  الحديث عن غياب النواب، وأذكر (فقط للذكر ولا للحصر) بغياب 14 نائب في جلسة  انتخاب رئيس الجمهورية، غياب 39 نائب في اول تصويت للمجلس التاسيسي  للمصادقة على الدستور الصغير.</p>
<p dir="rtl">من  خلال نقاش النواب للفصلين 62 و68 توقفت على ملاحظات النواب الرافضين قطعيا  لعلانية أشغال اللجان. النقطة الاولى استند عليها النائب حبيب خضر وهي  &#8220;المبدأ في عمل اللجان هو السرية، وعلى هذا الاساس يكون النص : جلسات  اللجان سرية ولرئيس اللجنة أن يقرر علانيتها&#8221; ويبرر ذالك بأن عمل اللجان  عمل تمهيدي&#8230; لم تتعود أذني على ما قيل فعلى حد علمي ان الاصل في الاشياء عموما هو  المباح الا ما يمنعه القانون، او أحد يصلح لي اذا ذُكِر في قانون ما أن  الاصل في الاشياء المنع ماعدا المباح. والقياس على الدين ممكن، بأن الاصل في الاشيء الحلال الا ما حرم الله. وهي قواعد عامة والمنع هو الاستثناء. للملاحظة، فإن الاستاذ يتحدث فقط على  البث المباشر لأعمال اللجان، وهو ليس الهدف في حد ذاته. الهدف من النقاش في الفصلين تحديدا هو الشفافية  في اعمال اللجان وان اختلفت الوسائل والسبل للوصول اليها.</p>
<p dir="rtl">النقطة  الثانية هي نجاعة اللجان، حيث ان علانيتها يمكن ان يعطل ويؤخر اتخاذ  القرار في اعمالها. والواقع انه يمكن ان نكتفي بنشر محاضر اللجان بعد اتمام  أعمالها، وهذا لا يعطل ولا يؤخر مجرى العمل. صورة المحضر كما توزع على  السادة النواب فهي تنشر على الموقع. لكن الوقوف على السرية التامة لكل اعمال  اللجان أمر غير مقبول.</p>
<p dir="rtl">بقية المداخلات الاخرى توافق اغلبها النائب حبيب خضر، ولاتناقش مبدأ الشفافية في العمل.</p>
<p dir="rtl">ملاحظة النائب محمد السعيدي أن أغلب البرلمانات تعمل لجانها في سرية غير صحيح، وهذه بعض الامثلة :</p>
<ol>
<li>
<p dir="rtl">البرلمان  الاروبي : &#8220;Les commissions parlementaires se réunissent une ou deux fois  par mois à Bruxelles et leurs débats sont publics.&#8221; المصدر :  <a href="http://www.europarl.europa.eu/parliament/public/staticDisplay.do?id=45&#038;pageRank=5&#038;language=FR">http://www.europarl.europa.eu/parliament/public/staticDisplay.do?id=45&#038;pageRank=5&#038;language=FR</a></p>
</li>
<li>
<p dir="rtl">فرنسا  (الفصل 46) : قرار علنية الجلسة لدى مكتب اللجنة ولا ينفرد به رئيس اللجنة  فقط : &#8220;À l’issue de chaque réunion, un compte rendu est publié, faisant  état des travaux et des votes de la commission, ainsi que des  interventions prononcées devant elle.&#8221; et que le bureau peut décider en  plus de diffuser un rapport audiovisuel. Alors que dans le projet actuel  du RI aucun rapport n&#8217;est public. <a href="http://www.assemblee-nationale.fr/connaissance/reglement.asp#P718_60974">http://www.assemblee-nationale.fr/connaissance/reglement.asp#P718_60974</a></p>
</li>
<li>
<p dir="rtl">كندا  : نوعين من اللجان مغلقة وعلانية. لكل مواطن الحق في الحضور في الجلسات  العلانية للمجلس واللجان ! محاضر واعمال اللجان المقدمة للمجلس تكون متوفرة  للعموم.  المصدر : <a href="http://www.assnat.qc.ca/fr/document/14803.html">http://www.assnat.qc.ca/fr/document/14803.html</a> <a href="http://www.assnat.qc.ca/fr/visiteurs/assister-travaux.html">http://www.assnat.qc.ca/fr/visiteurs/assister-travaux.html</a></p>
</li>
</ol>
<p dir="rtl">ملاحظة  النائب في ما يخص لجنة الحصانة ولجنة التحقيق، أذكر بأنه يستثنى من  العلانية المواضيع الامنية، وخصوصية الافراد، وهي لا تحقق الهدف من  الشفافية وهو خدمة مصلحة  البلاد، لا أن تصبح هتكا في أعراض العباد.</p>
<p dir="rtl">للمزيد  من المعلومات، المقترحات الخمس من مجموعة <a href="https://www.facebook.com/OpenGovTN">OpenGovTN</a> حول الشفافية في  القانون الداخلي للمجلس التأسيسي متوفرة بالعربية والفرنسية على هذا الرابط : <a href="http://opengovtn.info/2011/12/5-propositions-pour-le-reglement-interieur-de-lassemblee-constituante/">http://opengovtn.info/2011/12/5-propositions-pour-le-reglement-interieur-de-lassemblee-constituante/</a></p>
<p dir="rtl">
<p dir="rtl">والدعوة مفتوحة للجميع لتبادل الآراء والمشاركة في المجموعة، علما وان المجموعة تضم حاليا اكثر من 250 عضو من تيارات مختلفة، منهم عشرة نواب من 6 احزاب مختلفة من الكتلة والمعارضة.</p>
<h3>Related Posts</h3>
<p>No related posts.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hbyconsultancy.com/blog/%d8%a7%d9%84%d8%b4%d9%81%d8%a7%d9%81%d9%8a%d8%a9-%d9%88%d8%a7%d9%84%d8%ad%d9%88%d9%83%d9%85%d8%a9-%d8%a7%d9%84%d9%85%d9%81%d8%aa%d9%88%d8%ad%d8%a9.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Howto Fix Repository Signature Verification Issues</title>
		<link>http://www.hbyconsultancy.com/blog/ubuntu-howto-fix-repository-signature-verification-issues.html</link>
		<comments>http://www.hbyconsultancy.com/blog/ubuntu-howto-fix-repository-signature-verification-issues.html#comments</comments>
		<pubDate>Tue, 06 Sep 2011 06:38:30 +0000</pubDate>
		<dc:creator>hatem</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.hbyconsultancy.com/?p=594</guid>
		<description><![CDATA[Repository signature verification issues in ubuntu are becoming annoying, I&#8217;m getting this after apt-get update : W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.ubuntu.com natty-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key W: [...]<h3>Related Posts</h3>
<ol class="yarpp">
		<li><a href="http://www.hbyconsultancy.com/blog/backupexec-support-for-ubuntu-10-and-11-maverick-and-natty.html" rel="bookmark">BackupExec support for ubuntu 10 and 11 (maverick and natty) &raquo;</a><!-- (7.4)--></li>
		<li><a href="http://www.hbyconsultancy.com/blog/two-nodes-load-balance-and-failover-with-keepalived-and-ubuntu-server-10-04-x64.html" rel="bookmark">Two nodes Load balance and Failover with keepalived and Ubuntu Server 10.04 x64 &raquo;</a><!-- (5.3)--></li>
		<li><a href="http://www.hbyconsultancy.com/blog/shared-ocfs2-partition-on-ubuntu-server-10-04-x64.html" rel="bookmark">Shared OCFS2 partition on Ubuntu Server 10.04 x64 &raquo;</a><!-- (5.1)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<p>Repository signature verification issues in ubuntu are becoming annoying, I&#8217;m getting this after apt-get update :</p>
<p><code>W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.ubuntu.com natty-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key<br />
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/natty-updates/Release<br />
W: Some index files failed to download. They have been ignored, or old ones used instead.</code></p>
<p>here is a quick fix :</p>
<p><code>$ sudo apt-get clean<br />
$ cd /var/lib/apt<br />
$ sudo mv lists lists.old<br />
$ sudo mkdir -p lists/partial<br />
$ sudo apt-get clean</code></p>
<p>Should be enough, but still getting error like :</p>
<p><code>W: GPG error: http://archive.ubuntu.com natty-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key</code></p>
<p>Try another clean</p>
<p><code>$ sudo apt-get clean<br />
$ sudo aptitude -o Acquire::http::No-Cache=True -o Acquire::BrokenProxy=true update</code></p>
<p>Test now</p>
<p><code>$ sudo apt-get update<br />
$ sudo apt-get upgrade</code></p>
<p>Fixed !</p>
<h3>Related Posts</h3>
<ol class="yarpp">
		<li><a href="http://www.hbyconsultancy.com/blog/backupexec-support-for-ubuntu-10-and-11-maverick-and-natty.html" rel="bookmark">BackupExec support for ubuntu 10 and 11 (maverick and natty) &raquo;</a><!-- (7.4)--></li>
		<li><a href="http://www.hbyconsultancy.com/blog/two-nodes-load-balance-and-failover-with-keepalived-and-ubuntu-server-10-04-x64.html" rel="bookmark">Two nodes Load balance and Failover with keepalived and Ubuntu Server 10.04 x64 &raquo;</a><!-- (5.3)--></li>
		<li><a href="http://www.hbyconsultancy.com/blog/shared-ocfs2-partition-on-ubuntu-server-10-04-x64.html" rel="bookmark">Shared OCFS2 partition on Ubuntu Server 10.04 x64 &raquo;</a><!-- (5.1)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.hbyconsultancy.com/blog/ubuntu-howto-fix-repository-signature-verification-issues.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The future of CDIA+ after December 31, 2011</title>
		<link>http://www.hbyconsultancy.com/blog/the-future-of-cdia-after-december-31-2011.html</link>
		<comments>http://www.hbyconsultancy.com/blog/the-future-of-cdia-after-december-31-2011.html#comments</comments>
		<pubDate>Sat, 09 Jul 2011 19:09:00 +0000</pubDate>
		<dc:creator>hatem</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[CDIA+]]></category>
		<category><![CDATA[CompTIA]]></category>
		<category><![CDATA[document imaging]]></category>

		<guid isPermaLink="false">http://www.hbyconsultancy.com/?p=568</guid>
		<description><![CDATA[Eight months ago I started a discussion in Linkedin&#8217;s CDIA+ Certified group titled &#8220;The future of CDIA+ after December 31, 2011&#8243; : As you might know CDIA is quiet old certification and will be retired in 2011, is there an alternative for document imaging professionals ? how do you see the future ? would love [...]<h3>Related Posts</h3>

No related posts.
]]></description>
			<content:encoded><![CDATA[<p>Eight months ago I started a discussion in <a href="http://www.linkedin.com/groups?gid=51775">Linkedin&#8217;s CDIA+ Certified</a> group titled &#8220;The future of CDIA+ after December 31, 2011&#8243; :</p>
<blockquote><p>As you might know CDIA is quiet old certification and will be retired in 2011, is there an alternative for document imaging professionals ? how do you see the future ? would love to hear CDIA&#8217;s opinion.</p></blockquote>
<p><img src="http://www.hbyconsultancy.com/wp-content/uploads/2011/07/cdia.png" alt="" title="cdia" width="100" height="50" class="aligncenter size-full wp-image-575" /></p>
<p>Well, I was not expecting too much feedback for a certification that is retiring. I&#8217;m more interested to the CDIA knowledge, much more than the certification itself. The <a href="http://certification.comptia.org/getCertified/certifications/cdia.aspx">CompTIA Certified Document Imaging Architect (CDIA+)</a> certification ensures critical knowledge for a career in the document imaging and document management industry.</p>
<p>It&#8217;s an international, vendor-neutral certification covering all major areas in the technologies and best practices used to plan, design, and specify a document imaging management system. The exam was last updated in 2009, and I think that the CDIA+ knowledge need lots of refreshments with new technologies, techniques, and best practices.</p>
<p>I have a small experience with document imaging solutions, and I have done a research &#8211; maybe in 2006 &#8211; as part of my job about different imaging solutions available, their benefits, features&#8230; etc. I have also implemented with my colleagues a very small but terrible imaging system based on open source tools, which is actually running in high-demand environment and serving million of documents, and hundreds of new documents archived daily&#8230; and this was a substitution to a commercial closed software which was expensive, limited, and poorly supported. So somehow CDIA+ knowledge was part of my daily job even if I was not certified at that time, but I was reading a lot about it.</p>
<p>I would like to thank Chuck Romano &#8211; SME Technical Advisory Committee member at CompTIA, who was probably the most enthusiast to keep this certification active and updated in the linkedin groups. Many CDIAs joined and welcomed the idea later ! And guess what ? Even <a href="http://itpro.comptia.org/p/cdia.aspx">CompTIA posted an updated about this certification</a> and is actually recruiting subject matter experts (SME) to help keep this exam current and relevant for the industry, it&#8217;s not retiring anymore !</p>
<blockquote><p>&#8220;This is where we’ll need all of you. To successfully complete the update of a certification exam it requires a minimum of 15 subject matter experts to participate in three separate workshops (job task analysis (JTA), item writing and cut-score workshop).&#8221;</p></blockquote>
<p>If you are CDIA+ and have at least four years technical experience, <a href="http://certification.comptia.org/getCertified/examdevelopment/cdia.aspx">you can become an SME</a> and contribute to keep this certification active and updated. An exam development workshop is scheduled for October 3-7, 2011 in CompTIA Headquarters, Downers Grove, IL. </p>
<p>Notice that if they will not have 15 SME’s approved and confirmed to travel to this workshop by September 1st, 2011 the workshop will be cancelled and the CDIA+ retirement will be re-instated and moved to March 31st, 2012. Silly me, I would have helped to delay CDIA+ retirement for three months only <img src='http://www.hbyconsultancy.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  No seriously, I&#8217;m not in US to actively contribute, however I passed today CDIA+ with a score of 856/900. (Thank you)</p>
<p>Subject matter experts (SMEs) will receive a $300 a day stipend for the 5-day workshop, as well as meals provided during the 9 a.m. to 5 p.m. working days. Recognition for SMEs includes listing on the CompTIA website pending full participation in the program. I would love to be with you guys ! </p>
<p>You can also join <a href="http://www.linkedin.com/groups/CDIA-Advocacy-Group-3854084">CDIA+ Advocacy Group</a> to help document imaging industry advance, grow, and strengthen.</p>
<p>Your contribution is really needed, thank you !</p>
<h3>Related Posts</h3>
<p>No related posts.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hbyconsultancy.com/blog/the-future-of-cdia-after-december-31-2011.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BackupExec support for ubuntu 10 and 11 (maverick and natty)</title>
		<link>http://www.hbyconsultancy.com/blog/backupexec-support-for-ubuntu-10-and-11-maverick-and-natty.html</link>
		<comments>http://www.hbyconsultancy.com/blog/backupexec-support-for-ubuntu-10-and-11-maverick-and-natty.html#comments</comments>
		<pubDate>Sun, 19 Jun 2011 11:08:49 +0000</pubDate>
		<dc:creator>hatem</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[backupexec]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[symantec]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.hbyconsultancy.com/?p=549</guid>
		<description><![CDATA[According to Symantec support and many forum posts, Backupexec supports only Ubuntu 9, and nothing for the new versions. Since I have ubuntu 10 running in production and willing to upgrade to 11, I have managed to install support BackupExec agent on my servers without any issue and everything was working fine for the last [...]<h3>Related Posts</h3>
<ol class="yarpp">
		<li><a href="http://www.hbyconsultancy.com/blog/install-asp-net-3-5-environment-for-ubuntu-maverick-10-10.html" rel="bookmark">Install ASP.NET 3.5 Environment for Ubuntu Maverick 10.10 &raquo;</a><!-- (8.3)--></li>
		<li><a href="http://www.hbyconsultancy.com/blog/two-nodes-load-balance-and-failover-with-keepalived-and-ubuntu-server-10-04-x64.html" rel="bookmark">Two nodes Load balance and Failover with keepalived and Ubuntu Server 10.04 x64 &raquo;</a><!-- (7.4)--></li>
		<li><a href="http://www.hbyconsultancy.com/blog/ubuntu-howto-fix-repository-signature-verification-issues.html" rel="bookmark">Ubuntu Howto Fix Repository Signature Verification Issues &raquo;</a><!-- (5.3)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<p>According to Symantec support and many forum posts, Backupexec supports only Ubuntu 9, and nothing for the new versions. Since I have ubuntu 10 running in production and willing to upgrade to 11, I have managed to install support BackupExec agent on my servers without any issue and everything was working fine for the last year or two years (for one server at least). You will find below few tips and ticks in case you face issues while backing up your data with Backupexec 12.5 or 2010.</p>
<p><img class="alignnone size-full wp-image-554" title="backupexec" src="http://www.hbyconsultancy.com/wp-content/uploads/2011/06/backupexec.jpg" alt="" width="191" height="264" /></p>
<p>I have noticed today that in Ubuntu &#8211; and in debian generally, the port 10000 is reserved for webmin even if it&#8217;s not installed, which is a conflict with ndmp service for backupexec agent which run on the same port. A workaround will be to change ndmp port to 12000 for example and everything will be working like charm.</p>
<p>The only issue here, is that in a datacenter there are more complex architectures, going behind firewalls, with public servers, &#8230; you will need to restrict dynamic ports that Backupexec is using. From a range of 10000 ports to only 4 ports for example. So to make sure that there is no firewall issue, I used to add this rule to iptables (Not required) :</p>
<p><code>$ sudo iptables -A INPUT -p tcp --dport 10000:10003 -j ACCEPT<br />
$ sudo iptables-save<br />
$ sudo iptables --list<br />
Chain INPUT (policy ACCEPT)<br />
target     prot opt source               destination<br />
ACCEPT     tcp  --  anywhere             anywhere            tcp dpts:ndmp:10003<br />
Chain FORWARD (policy ACCEPT)<br />
target     prot opt source               destination<br />
Chain OUTPUT (policy ACCEPT)<br />
target     prot opt source               destination</code></p>
<p>if ndmp is not defined in services, make sure you add it :</p>
<p><code>$ sudo vi /etc/services</code></p>
<p><code># comment webmin line below<br />
# webmin         10000/tcp</code></p>
<p><code># add this for backupexec<br />
ndmp            10000/tcp                       # backupexec</code></p>
<p>Then restart RALUS service</p>
<p><code>$ sudo /opt/VRTSralus/bin/VRTSralus.init restart</code></p>
<p>As I have previously mentioned, if 10000 is not working, try with 12000. And you are done.</p>
<p>Last note, it&#8217;s &#8220;recommended&#8221; to have two different selections for windows and linux servers, and have the <strong>backup method</strong> for windows servers using the <strong>reset archive bit</strong>, while the Linux using <strong>modified time</strong>. Reset archive bit might work fine for linux though even if it&#8217;s a recommendation from Symantec.</p>
<p>Enjoy !</p>
<h3>Related Posts</h3>
<ol class="yarpp">
		<li><a href="http://www.hbyconsultancy.com/blog/install-asp-net-3-5-environment-for-ubuntu-maverick-10-10.html" rel="bookmark">Install ASP.NET 3.5 Environment for Ubuntu Maverick 10.10 &raquo;</a><!-- (8.3)--></li>
		<li><a href="http://www.hbyconsultancy.com/blog/two-nodes-load-balance-and-failover-with-keepalived-and-ubuntu-server-10-04-x64.html" rel="bookmark">Two nodes Load balance and Failover with keepalived and Ubuntu Server 10.04 x64 &raquo;</a><!-- (7.4)--></li>
		<li><a href="http://www.hbyconsultancy.com/blog/ubuntu-howto-fix-repository-signature-verification-issues.html" rel="bookmark">Ubuntu Howto Fix Repository Signature Verification Issues &raquo;</a><!-- (5.3)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.hbyconsultancy.com/blog/backupexec-support-for-ubuntu-10-and-11-maverick-and-natty.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tunisia 2.0 and e-Government, Strategies and Tactics, public draft paper</title>
		<link>http://www.hbyconsultancy.com/blog/tunisia-20-e-government-paper.html</link>
		<comments>http://www.hbyconsultancy.com/blog/tunisia-20-e-government-paper.html#comments</comments>
		<pubDate>Wed, 30 Mar 2011 09:21:24 +0000</pubDate>
		<dc:creator>hatem</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[e-Government]]></category>
		<category><![CDATA[Open Government]]></category>
		<category><![CDATA[Tunisia]]></category>
		<category><![CDATA[Tunisie]]></category>

		<guid isPermaLink="false">http://www.hbyconsultancy.com/?p=537</guid>
		<description><![CDATA[I mentioned sometimes ago on my twitter account that I&#8217;m working on a e-Gov book, since it&#8217;s a work in progress and it might take more time to go live, I have decided to start a white paper about e-Government to put practical guidelines toward implementing successfully an e-Government in the country. After the Tunisian [...]<h3>Related Posts</h3>
<ol class="yarpp">
		<li><a href="http://www.hbyconsultancy.com/blog/e-government-as-platform.html" rel="bookmark">e-Government as Platform &raquo;</a><!-- (9.5)--></li>
		<li><a href="http://www.hbyconsultancy.com/blog/yefi-e-government-interoperability-framework.html" rel="bookmark">YEFI e-Government Interoperability Framework &raquo;</a><!-- (6.7)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<p>I mentioned sometimes ago on my twitter account that I&#8217;m working on a e-Gov book, since it&#8217;s a work in progress and it might take more time to go live, I have decided to start a white paper about e-Government to put practical guidelines toward implementing successfully an e-Government in the country.</p>
<p>After the Tunisian revolution I was glad to see active Facebook pages for some ministries, but I was annoyed when I saw some Facebook applications implemented as services by these ministries. I&#8217;m not against these applications or against using Facebook platform, however I believe that our country need a serious e-Government plan with five key objectives :</p>
<ul>
<li>Transparency</li>
<li>Flexibility</li>
<li>Services</li>
<li>Efficiency</li>
<li>Follow-up</li>
</ul>
<p>Today I&#8217;m pleased to announce the first public release of this paper. Anyone on Internet can find, view and edit, so you are welcome to voice your opinions and contribute. Released under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.</p>
<p>Of course you are welcome to edit anonymously, however I suggest you to use your Google Account to give you credits for contribution.</p>
<p>Tunisia 2.0 and e-Government, Strategies and Tactics, public draft paper is available <a href="https://docs.google.com/document/d/1FxD58n5Bg2zhc7vrByx9GE28ahl8CutEWJxMnaWXzUM/edit?hl=en">here</a> (Google Document, No sign-in required)</p>
<h3>Related Posts</h3>
<ol class="yarpp">
		<li><a href="http://www.hbyconsultancy.com/blog/e-government-as-platform.html" rel="bookmark">e-Government as Platform &raquo;</a><!-- (9.5)--></li>
		<li><a href="http://www.hbyconsultancy.com/blog/yefi-e-government-interoperability-framework.html" rel="bookmark">YEFI e-Government Interoperability Framework &raquo;</a><!-- (6.7)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.hbyconsultancy.com/blog/tunisia-20-e-government-paper.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Touching jQuery Mobile at DevDay Jeddah</title>
		<link>http://www.hbyconsultancy.com/blog/touching-jquery-mobile-at-devday-jeddah.html</link>
		<comments>http://www.hbyconsultancy.com/blog/touching-jquery-mobile-at-devday-jeddah.html#comments</comments>
		<pubDate>Mon, 28 Feb 2011 17:48:31 +0000</pubDate>
		<dc:creator>hatem</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[jquerymobile]]></category>

		<guid isPermaLink="false">http://www.hbyconsultancy.com/?p=529</guid>
		<description><![CDATA[Yesterday was held the first DevDay event in Jeddah city, a small initiative to let developers meet in a really great networking opportunity. I would like to thank Reda Banjar who organized the event, and everyone who assisted and participated. In addition to Tech talks by developers and experts, there was a great talk Hattan [...]<h3>Related Posts</h3>

No related posts.
]]></description>
			<content:encoded><![CDATA[<p>Yesterday was held the first <a href="http://devday.org/jeddah.html">DevDay event in Jeddah</a> city, a small initiative to let developers meet in a really great networking opportunity. I would like to thank Reda Banjar who organized the event, and everyone who assisted and participated. In addition to Tech talks by developers and experts, there was a great talk Hattan Alshbat, co-founder <a href="http://www.yallabuyit.com/">YallaBuyIt.com</a>, talked about entrepreneurship. Overall, everyone seems to be waiting for the next <a href="http://devday.org/">DevDay</a> and until video goes online, here is my talk slides :</p>
<div id="__ss_7081605" style="width: 425px;"><strong style="display: block; margin: 12px 0 4px;"><a title="Touching jQuery Mobile" href="http://www.slideshare.net/hatemben/touching-jquery-mobile">Touching jQuery Mobile</a></strong> <object id="__sse7081605" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=presentation4-110227145820-phpapp01&amp;stripped_title=touching-jquery-mobile&amp;userName=hatemben" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><embed type="application/x-shockwave-flash" width="425" height="355" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=presentation4-110227145820-phpapp01&amp;stripped_title=touching-jquery-mobile&amp;userName=hatemben" name="__sse7081605" allowscriptaccess="always" allowfullscreen="true"></embed></object>&nbsp;</p>
<div style="padding: 5px 0 12px;">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/hatemben">Hatem Ben Yacoub</a></div>
</div>
<p>Video for those who missed this event :</p>
<p><iframe src="http://player.vimeo.com/video/20578380?color=b4193c" width="425" height="239" frameborder="0"></iframe></p>
<p>For updates follow <a href="http://twitter.com/DevDayEvents">@DevDayEvents</a> or join <a href="http://www.facebook.com/pages/DevDay/145098012216635">DevDay on Facebook</a></p>
<h3>Related Posts</h3>
<p>No related posts.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hbyconsultancy.com/blog/touching-jquery-mobile-at-devday-jeddah.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install ASP.NET 3.5 Environment for Ubuntu Maverick 10.10</title>
		<link>http://www.hbyconsultancy.com/blog/install-asp-net-3-5-environment-for-ubuntu-maverick-10-10.html</link>
		<comments>http://www.hbyconsultancy.com/blog/install-asp-net-3-5-environment-for-ubuntu-maverick-10-10.html#comments</comments>
		<pubDate>Sat, 16 Oct 2010 07:13:56 +0000</pubDate>
		<dc:creator>hatem</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Maverick]]></category>
		<category><![CDATA[Mono]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.hbyconsultancy.com/?p=519</guid>
		<description><![CDATA[If you are just curious, or looking for a way to test or develop .NET web applications under Linux, you should look at the Mono Project. Mono is an open source, cross-platform, implementation of C# and the CLR that is binary compatible with Microsoft.NET based on the ECMA standards for C# and the Common Language [...]<h3>Related Posts</h3>
<ol class="yarpp">
		<li><a href="http://www.hbyconsultancy.com/blog/backupexec-support-for-ubuntu-10-and-11-maverick-and-natty.html" rel="bookmark">BackupExec support for ubuntu 10 and 11 (maverick and natty) &raquo;</a><!-- (8.8)--></li>
		<li><a href="http://www.hbyconsultancy.com/blog/two-nodes-load-balance-and-failover-with-keepalived-and-ubuntu-server-10-04-x64.html" rel="bookmark">Two nodes Load balance and Failover with keepalived and Ubuntu Server 10.04 x64 &raquo;</a><!-- (6)--></li>
		<li><a href="http://www.hbyconsultancy.com/blog/shared-ocfs2-partition-on-ubuntu-server-10-04-x64.html" rel="bookmark">Shared OCFS2 partition on Ubuntu Server 10.04 x64 &raquo;</a><!-- (5.7)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<p>If you are just curious, or looking for a way to test or develop .NET web applications under Linux, you should look at the <a href="http://mono-project.com/">Mono Project</a>. Mono is an open source, cross-platform, implementation of C# and the CLR that is binary compatible with Microsoft.NET based on the ECMA standards for C# and the Common Language Runtime.</p>
<p>Cross platform is definitely one of its best features. Mono runs on Linux, Microsoft Windows, Mac OS X, BSD, and Sun Solaris, Nintendo Wii, Sony PlayStation 3, Apple iPhone. It also runs on x86, x86-64, IA64, PowerPC, SPARC (32), ARM, Alpha, s390, s390x (32 and 64 bits) and more. Developing your application with Mono allows you to run on nearly any computer in existence.</p>
<p>I won&#8217;t be able to try all computer in existence, but here is a quick guide to get ASP.NET 3.5 running under apache2 and ubuntu 10.10. In addition I&#8217;ll install MonoDevelop IDE, to be able to explore better Mono features : Database, debugger, Unit test, Code completion, GUI &#8230; etc.</p>
<p><a href="../wp-content/uploads/2010/10/monodevelop-mainwindow.png"><img class="alignnone size-medium wp-image-520" title="monodevelop-mainwindow" src="../wp-content/uploads/2010/10/monodevelop-mainwindow-300x207.png" alt="" width="300" height="207" /></a></p>
<p>First we need to install the necessary packages :</p>
<p><code>$ sudo apt-get install monodevelop mono-devel monodevelop-database mono-debugger mono-xsp2 libapache2-mod-mono mono-apache-server2 apache2</code></p>
<p>The Apache mod_mono module is enabled after this by default, I just disable this and enable mod_mono_auto instead for <a href="http://mono-project.com/AutoHosting">Auto Configuration</a> :</p>
<p><code>$ sudo a2dismod mod_mono<br />
$ sudo a2enmod mod_mono_auto</code></p>
<p>Finally we&#8217;ll have to edit the mod_mono_auto.conf and add default locations :</p>
<p><code>$ sudo -b gedit /etc/apache2/mods-available/mod_mono_auto.conf</code></p>
<p>Then add in the end :</p>
<p><code>MonoPath default "/usr/lib/mono/3.5"<br />
MonoServerPath default /usr/bin/mod-mono-server2<br />
AddMonoApplications default "/:/var/www"</code></p>
<p>We restart Apache again</p>
<p><code>$ sudo /etc/init.d/apache2 restart</code></p>
<p>Now let&#8217;s create a simple hello world and give it a try :</p>
<p><code>$ sudo -b gedit /var/www/index.aspx</code></p>
<p>And enter the code below, or any other sample</p>
<p><code>&lt;%@ Page Language="C#" %&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Sample Calendar&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;asp:calendar showtitle="true" runat="server"&gt;<br />
&lt;/asp:calendar&gt;</code></p>
<p>Then fire your fox at http://localhost/index.aspx and you should see the default calendar, Easy ?</p>
<p><a href="http://www.hbyconsultancy.com/wp-content/uploads/2010/10/Screenshot-Sample-Calendar-Mozilla-Firefox.png"><img class="alignnone size-medium wp-image-521" title="Screenshot-Sample Calendar - Mozilla Firefox" src="http://www.hbyconsultancy.com/wp-content/uploads/2010/10/Screenshot-Sample-Calendar-Mozilla-Firefox-300x171.png" alt="" width="300" height="171" /></a></p>
<p>More info and getting started with Mono at : <a href="http://mono-project.com/Start">http://mono-project.com/Start</a></p>
<h3>Related Posts</h3>
<ol class="yarpp">
		<li><a href="http://www.hbyconsultancy.com/blog/backupexec-support-for-ubuntu-10-and-11-maverick-and-natty.html" rel="bookmark">BackupExec support for ubuntu 10 and 11 (maverick and natty) &raquo;</a><!-- (8.8)--></li>
		<li><a href="http://www.hbyconsultancy.com/blog/two-nodes-load-balance-and-failover-with-keepalived-and-ubuntu-server-10-04-x64.html" rel="bookmark">Two nodes Load balance and Failover with keepalived and Ubuntu Server 10.04 x64 &raquo;</a><!-- (6)--></li>
		<li><a href="http://www.hbyconsultancy.com/blog/shared-ocfs2-partition-on-ubuntu-server-10-04-x64.html" rel="bookmark">Shared OCFS2 partition on Ubuntu Server 10.04 x64 &raquo;</a><!-- (5.7)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.hbyconsultancy.com/blog/install-asp-net-3-5-environment-for-ubuntu-maverick-10-10.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blog Action Day 2010 : Me &amp; Water</title>
		<link>http://www.hbyconsultancy.com/blog/blog-action-day-2010-me-water.html</link>
		<comments>http://www.hbyconsultancy.com/blog/blog-action-day-2010-me-water.html#comments</comments>
		<pubDate>Fri, 15 Oct 2010 20:07:21 +0000</pubDate>
		<dc:creator>hatem</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[BlogActionDay]]></category>
		<category><![CDATA[Ozone]]></category>
		<category><![CDATA[Water]]></category>

		<guid isPermaLink="false">http://www.hbyconsultancy.com/?p=512</guid>
		<description><![CDATA[Tunisia &#8211; Monastir, Eleven years ago ; I was studying in the National Energy Engineering School &#8211; it was my second year- and like every year we have to work on a project related to energy engineering. In that time I suggested to work on Sizing of Ozone reactor for Water treatment, the subject wasn&#8217;t [...]<h3>Related Posts</h3>

No related posts.
]]></description>
			<content:encoded><![CDATA[<p>Tunisia &#8211; Monastir, Eleven years ago ; I was studying in the National Energy Engineering School &#8211; it was my second year- and like every year we have to work on a project related to energy engineering. In that time I suggested to work on Sizing of Ozone reactor for Water treatment, the subject wasn&#8217;t as familiar as today, and not yet industrialised.</p>
<p>I was very excited when Professor Ahmed Ballagi accepted to coach me on this project, as he was our teacher for reactor&#8217;s course in that time.</p>
<p>That year I have discovered and for the first time the number of elements that could be found in water, thousands and thousands of elements ! I always thought that it&#8217;s no more that the ten elements written in the mineral water bottle !</p>
<p>The project was finished in time, and I even found very acceptable scientific results that my couch confirmed. This study should be available in my school (ENIM), and I&#8217;m still keeping a copy of this work at my parent&#8217;s home in Tunisia.</p>
<p>In the last ten years I have been actively working in the IT industry and didn&#8217;t follow-up my energy engineering studies. Today I wanted to share and remember this work, as I know that Ozone is a very dangerous element, but we can get very very good water quality especially for highly polluted water.</p>
<p>A post treatment should be considered if this water is for human usage, otherwise it might be sufficient for any other usage.</p>
<p>Today, after all these years, nothing really changed ! Do you think there is not enough technology to give clean water for everybody ? No, I think there is everything available today, however politics and economy are controlling most of the water, industry is polluting the rest of it , and for a reason or another lots of money dedicated for water treatment or protection have disappeared &#8230;.  poor people are the only ones suffering around the world, and we are all poor people.</p>
<p>God told us in Quran, Surat Al-Anbiya (Verse 30): &#8220;Have not those who disbelieve known that the heavens and the earth were joined together as one united piece, then We parted them ? And <strong>We made from water every living thing.</strong> Will they not then believe ?&#8221;</p>
<p style="text-align: center;"><a href="http://www.hbyconsultancy.com/wp-content/uploads/2010/10/water-in-quran.png"><img class="size-medium wp-image-513 aligncenter" title="water-in-quran" src="http://www.hbyconsultancy.com/wp-content/uploads/2010/10/water-in-quran-300x97.png" alt="" width="300" height="97" /></a></p>
<h3>Related Posts</h3>
<p>No related posts.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hbyconsultancy.com/blog/blog-action-day-2010-me-water.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shared OCFS2 partition on Ubuntu Server 10.04 x64</title>
		<link>http://www.hbyconsultancy.com/blog/shared-ocfs2-partition-on-ubuntu-server-10-04-x64.html</link>
		<comments>http://www.hbyconsultancy.com/blog/shared-ocfs2-partition-on-ubuntu-server-10-04-x64.html#comments</comments>
		<pubDate>Sat, 07 Aug 2010 09:08:11 +0000</pubDate>
		<dc:creator>hatem</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[cluster]]></category>
		<category><![CDATA[GFS2]]></category>
		<category><![CDATA[HBA Card]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[OCFS2]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SAN Storage]]></category>
		<category><![CDATA[Shared Filesystem]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.hbyconsultancy.com/?p=494</guid>
		<description><![CDATA[One of the applications that I&#8217;m working on uses archived documents, there is no NoSQL here, just plain tiff files with indexes in Oracle database. Everything related to document access, permissions, conversions, watermarking, security, encryption &#8230; is managed by the application itself. So I had to keep my cluster permanently connected to a SAN storage [...]<h3>Related Posts</h3>
<ol class="yarpp">
		<li><a href="http://www.hbyconsultancy.com/blog/two-nodes-load-balance-and-failover-with-keepalived-and-ubuntu-server-10-04-x64.html" rel="bookmark">Two nodes Load balance and Failover with keepalived and Ubuntu Server 10.04 x64 &raquo;</a><!-- (9.7)--></li>
		<li><a href="http://www.hbyconsultancy.com/blog/create-a-master-master-mysql-replication-ubuntu-server-10-04-x64.html" rel="bookmark">Create a Master Master MySQL replication &#8211; Ubuntu Server 10.04 x64 &raquo;</a><!-- (5.8)--></li>
		<li><a href="http://www.hbyconsultancy.com/blog/ubuntu-howto-fix-repository-signature-verification-issues.html" rel="bookmark">Ubuntu Howto Fix Repository Signature Verification Issues &raquo;</a><!-- (5.3)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<p>One of the applications that I&#8217;m working on uses archived documents, there is no NoSQL here, just plain tiff files with indexes in Oracle database. Everything related to document access, permissions, conversions, watermarking, security, encryption &#8230; is managed by the application itself. So I had to keep <a href="http://www.hbyconsultancy.com/blog/two-nodes-load-balance-and-failover-with-keepalived-and-ubuntu-server-10-04-x64.html">my cluster</a> permanently connected to a SAN storage via HBA fiber cards.</p>
<p>In the beginning I opted for NFS as shared file system, then decided to go for <a href="http://oss.oracle.com/projects/ocfs2/">OCFS2</a> which is open source, maintained by Oracle, and available under GPLv2.</p>
<p>Some Pros/Cons of NFS, GFS2 and OCFS2 (from <a href="http://www.gpaterno.com/publications/2010/dublin_ossbarcamp_2010_fs_comparison.pdf">Dublin OSS barcamp</a>) :</p>
<p><strong>NFS</strong></p>
<ul>
<li>Pro: standard, cross-platform, easy to implement</li>
<li>Con: Poor performance, single point of failure (single locking manager, even in HA)</li>
</ul>
<p><strong>GFS2</strong></p>
<ul>
<li>Pro: Very responsive on large data files, works on physical and virtual, quota and SE-Linux support, faster than EXT3 when I/O operations are on the same node</li>
<li>Con: Only supported with Red Hat, Performance issues on accessing small files on several subdirectory on different nodes</li>
</ul>
<p><strong>OCFS2</strong></p>
<ul>
<li>Pro: Very fast with large and small data files on different node with two types of performance models (mail, data file). Works on a physical and virtual.</li>
<li>Con: Supported only through contract with Oracle or SLES, no quota support, no on-line resize</li>
</ul>
<p>First we need to install OCFS2 tools :</p>
<p><code>sudo apt-get install ocfs2-tools</code></p>
<p>There is another package ocfs2console that you want to install to configure the cluster via GUI, but since I&#8217;m using ubuntu server I&#8217;m skipping this to configure my cluster manually.</p>
<p style="text-align: center;"><a href="http://www.hbyconsultancy.com/wp-content/uploads/2010/08/CFS2Console.png"><img class="size-medium wp-image-496 aligncenter" title="CFS2Console" src="http://www.hbyconsultancy.com/wp-content/uploads/2010/08/CFS2Console-300x192.png" alt="" width="300" height="192" /></a></p>
<p>Create on every node attached to storage /etc/ocfs2/cluster.conf</p>
<p><code>sudo vi /etc/ocfs2/cluster.conf</code></p>
<p>With the content below, only replace node1 and node2 with their respective names and IP for each node :</p>
<p><code>node:<br />
name = node1<br />
cluster = ocfs2<br />
number = 0<br />
ip_address = 10.10.0.0<br />
ip_port = 7777<br />
node:<br />
name = node2<br />
cluster = ocfs2<br />
number = 1<br />
ip_address = 10.10.0.1<br />
ip_port = 7777<br />
cluster:<br />
name = ocfs2<br />
node_count = 2</code></p>
<p>Now you reconfigure ocfs2-tools with the default values :</p>
<p><code>sudo dpkg-reconfigure ocfs2-tools</code></p>
<p>then restart services :</p>
<p><code>sudo /etc/init.d/o2cb restart<br />
sudo /etc/init.d/ocfs2 restart</code></p>
<p>If your fiber card connected to your host/storage, and virtual disks created and presented you should run fdisk to see it :</p>
<p><code>$ sudo fdisk -l<br />
Disk /dev/sda: 1073.7 GB, 1073741824000 bytes<br />
255 heads, 63 sectors/track, 130541 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes<br />
Sector size (logical/physical): 512 bytes / 512 bytes<br />
I/O size (minimum/optimal): 512 bytes / 512 bytes<br />
Disk identifier: 0x02020202</code></p>
<p>the result have been truncated to show only one virtual disk, and you might see multiple /dev/sda, /dev/sdb, /dev/sdc&#8230; according to your configuration in addition to your local hard disks. What I have done is creating a 1TB partition that I will share between my two nodes :</p>
<p><code>$ sudo fdisk /dev/sda</code></p>
<p>In fdisk menu choose &#8220;n&#8221; for new partition, and choose your partition size according to your requirements. Then use &#8220;w&#8221; to write changes and exit.</p>
<p>Finally we create a ocfs2 partition table :</p>
<p><code>$ mkfs.ocfs2 /dev/sda</code></p>
<p>mount your partition :</p>
<p><code>$ sudo mkdir /archives<br />
$sudo mount -t ocfs2 /dev/sda /archives</code></p>
<p>or you can add it to fstab to mount automatically on boot :</p>
<p><code>$ /dev/sda /archives ocfs2 _netdev 0 0</code></p>
<p>The _netdev option is used here to prevent the system from attempting to mount these file systems until the network has been enabled on the system.</p>
<p>You want to test your new partition, and you will notice that every file/folder created on node1 is automatically available on node2, and vise-versa.</p>
<p>Enjoy !</p>
<h3>Related Posts</h3>
<ol class="yarpp">
		<li><a href="http://www.hbyconsultancy.com/blog/two-nodes-load-balance-and-failover-with-keepalived-and-ubuntu-server-10-04-x64.html" rel="bookmark">Two nodes Load balance and Failover with keepalived and Ubuntu Server 10.04 x64 &raquo;</a><!-- (9.7)--></li>
		<li><a href="http://www.hbyconsultancy.com/blog/create-a-master-master-mysql-replication-ubuntu-server-10-04-x64.html" rel="bookmark">Create a Master Master MySQL replication &#8211; Ubuntu Server 10.04 x64 &raquo;</a><!-- (5.8)--></li>
		<li><a href="http://www.hbyconsultancy.com/blog/ubuntu-howto-fix-repository-signature-verification-issues.html" rel="bookmark">Ubuntu Howto Fix Repository Signature Verification Issues &raquo;</a><!-- (5.3)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.hbyconsultancy.com/blog/shared-ocfs2-partition-on-ubuntu-server-10-04-x64.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Two nodes Load balance and Failover with keepalived and Ubuntu Server 10.04 x64</title>
		<link>http://www.hbyconsultancy.com/blog/two-nodes-load-balance-and-failover-with-keepalived-and-ubuntu-server-10-04-x64.html</link>
		<comments>http://www.hbyconsultancy.com/blog/two-nodes-load-balance-and-failover-with-keepalived-and-ubuntu-server-10-04-x64.html#comments</comments>
		<pubDate>Sun, 01 Aug 2010 10:23:43 +0000</pubDate>
		<dc:creator>hatem</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[cluster]]></category>
		<category><![CDATA[Failover]]></category>
		<category><![CDATA[IPVS]]></category>
		<category><![CDATA[Keepalived]]></category>
		<category><![CDATA[Load balance]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.hbyconsultancy.com/?p=477</guid>
		<description><![CDATA[In an ideal system architecture using load balancers in separate nodes is preferred, however it&#8217;s also possible to have your load balancers in the same nodes with your applications. I have used in this architecture the same hardware as the previous Master/Master MySQL cluster, including Ubuntu server 10.04 x64, Apache2 as web server, two nodes [...]<h3>Related Posts</h3>
<ol class="yarpp">
		<li><a href="http://www.hbyconsultancy.com/blog/shared-ocfs2-partition-on-ubuntu-server-10-04-x64.html" rel="bookmark">Shared OCFS2 partition on Ubuntu Server 10.04 x64 &raquo;</a><!-- (9.2)--></li>
		<li><a href="http://www.hbyconsultancy.com/blog/create-a-master-master-mysql-replication-ubuntu-server-10-04-x64.html" rel="bookmark">Create a Master Master MySQL replication &#8211; Ubuntu Server 10.04 x64 &raquo;</a><!-- (6.2)--></li>
		<li><a href="http://www.hbyconsultancy.com/blog/ubuntu-howto-fix-repository-signature-verification-issues.html" rel="bookmark">Ubuntu Howto Fix Repository Signature Verification Issues &raquo;</a><!-- (5.3)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<p>In an ideal system architecture using load balancers in separate nodes is preferred, however it&#8217;s also possible to have your load balancers in the same nodes with your applications. I have used in this architecture the same hardware as the previous <a href="http://www.hbyconsultancy.com/blog/create-a-master-master-mysql-replication-ubuntu-server-10-04-x64.html">Master/Master MySQL cluster</a>, including Ubuntu server 10.04 x64, Apache2 as web server, two nodes HP DL380G6 with 3 hard disks 15K in RAID5 and connected to a SAN storage via Fiber. For load balancing and failover I used keepalived and LVS, and you can use heartbeat to get your cluster running.</p>
<p>First you will need to set at least two IPs (10.10.0.1 and 10.10.0.2) for your servers, and one virtual (10.10.0.3) shared between the two servers, you will have for the first interface :</p>
<p><code># The primary network interface<br />
auto <strong>eth0</strong><br />
iface eth0 inet static<br />
address <strong>10.10.0.1</strong><br />
netmask 255.255.255.0<br />
network 10.10.0.0<br />
broadcast 10.10.0.255<br />
gateway 10.10.0.250<br />
<strong>auto eth0:0</strong><br />
iface eth0:0 inet static<br />
address <strong>10.10.0.3</strong><br />
netmask 255.255.255.0<br />
network 10.10.0.0<br />
broadcast 10.10.0.255</code></p>
<p>and the second interface :</p>
<p><code># The primary network interface<br />
auto <strong>eth0</strong><br />
iface eth0 inet static<br />
address <strong>10.10.0.2</strong><br />
netmask 255.255.255.0<br />
network 10.10.0.0<br />
broadcast 10.10.0.255<br />
gateway 10.10.0.250<br />
<strong>auto eth0:0</strong><br />
iface eth0:0 inet static<br />
address <strong>10.10.0.3</strong><br />
netmask 255.255.255.0<br />
network 10.10.0.0<br />
broadcast 10.10.0.255</code></p>
<p>Then we can start by installing keepalived (v1.1.17 is available in Ubuntu repositories)</p>
<p><code>sudo apt-get install keepalived</code></p>
<p>You will have to create two configuration files for the first node 10.10.0.1 (Master) and second node 10.10.0.2 (Backup). So we add in the master node :</p>
<p><code>usr01@server01:~$ sudo nano /etc/keepalived/keepalived.conf<br />
# Keepalived Configuration File<br />
vrrp_instance VI_1 {<br />
state <strong>MASTER</strong><br />
interface eth0<br />
virtual_router_id 10<br />
priority <strong>200</strong><br />
virtual_ipaddress {<br />
10.10.0.3/24<br />
}<br />
notify_master "/etc/keepalived/notify.sh del 10.10.0.3"<br />
notify_backup "/etc/keepalived/notify.sh add 10.10.0.3"<br />
notify_fault "/etc/keepalived/notify.sh add 10.10.0.3"<br />
}<br />
virtual_server 10.10.0.3 80 {<br />
delay_loop 30<br />
lb_algo <strong>rr</strong><br />
lb_kind <strong>DR</strong><br />
persistence_timeout 50<br />
protocol TCP<br />
real_server 10.10.0.1 80 {<br />
weight 100<br />
HTTP_GET {<br />
url {<br />
path /index.php<br />
digest d41d8cd98f00b204e9800998ecf8427e<br />
}<br />
connect_timeout 3<br />
nb_get_retry 3<br />
delay_before_retry 2<br />
}<br />
}<br />
real_server 10.10.0.2 80 {<br />
weight 100<br />
HTTP_GET {<br />
url {<br />
path /index.php<br />
digest d41d8cd98f00b204e9800998ecf8427e<br />
}<br />
connect_timeout 3<br />
nb_get_retry 3<br />
delay_before_retry 2<br />
}<br />
}<br />
}<br />
</code></p>
<p>And in the backup node :</p>
<p><code>usr01@server02:~$ cat /etc/keepalived/keepalived.conf<br />
# Keepalived Configuration File<br />
vrrp_instance VI_1 {<br />
state <strong>BACKUP</strong><br />
interface eth0<br />
virtual_router_id 10<br />
priority <strong>100</strong><br />
virtual_ipaddress {<br />
10.10.0.3/24<br />
}<br />
notify_master "/etc/keepalived/notify.sh del 10.10.0.3"<br />
notify_backup "/etc/keepalived/notify.sh add 10.10.0.3"<br />
notify_fault "/etc/keepalived/notify.sh add 10.10.0.3"<br />
}<br />
virtual_server 10.10.0.3 80 {<br />
delay_loop 30<br />
lb_algo <strong>rr</strong><br />
lb_kind <strong>DR</strong><br />
persistence_timeout 50<br />
protocol TCP<br />
real_server 10.10.0.1 80 {<br />
weight 100<br />
HTTP_GET {<br />
url {<br />
path /check.txt<br />
digest d41d8cd98f00b204e9800998ecf8427e<br />
}<br />
connect_timeout 3<br />
nb_get_retry 3<br />
delay_before_retry 2<br />
}<br />
}<br />
real_server 10.10.0.2 80 {<br />
weight 100<br />
HTTP_GET {<br />
url {<br />
path /check.txt<br />
digest d41d8cd98f00b204e9800998ecf8427e<br />
}<br />
connect_timeout 3<br />
nb_get_retry 3<br />
delay_before_retry 2<br />
}<br />
}<br />
}</code></p>
<p>The hash is created using, notice that you can add exception so apache don&#8217;t log check.txt requests.</p>
<p><code>usr01@server01:~$ genhash -s 10.10.0.1 -p 80 -u /check.txt<br />
MD5SUM = d41d8cd98f00b204e9800998ecf8427e<br />
usr01@server01:~$ genhash -s 10.10.0.2 -p 80 -u /check.txt<br />
MD5SUM = d41d8cd98f00b204e9800998ecf8427e</code></p>
<p>Also in both nodes we have to add a small utility to notify (/etc/keepalived/notify.sh) :</p>
<p><code><br />
#!/bin/bash<br />
VIP="$2"<br />
case "$1" in<br />
add)<br />
/sbin/iptables -A PREROUTING -t nat -d $VIP -p tcp -j REDIRECT<br />
;;<br />
del)<br />
/sbin/iptables -D PREROUTING -t nat -d $VIP -p tcp -j REDIRECT<br />
;;<br />
*)<br />
echo "Usage: $0 {add|del} ipaddress"<br />
exit 1<br />
esac<br />
exit 0</code></p>
<p>Launch keepalived on the two nodes :</p>
<p><code>sudo /etc/init.d/keepalived start</code></p>
<p>Now we need to enable ip_forward on the two nodes permanently</p>
<p><code>net.ipv4.ip_forward = 1</code></p>
<p>restart network on the two nodes</p>
<p><code>sudo /etc/init.d/networking  restart</code></p>
<p>And we can check that load balancing is working correctly on Master :</p>
<p><code>usr01@server02:~$ sudo ipvsadm -L -n<br />
[sudo] password for usr01:<br />
IP Virtual Server version 1.2.1 (size=4096)<br />
Prot LocalAddress:Port Scheduler Flags<br />
-&gt; RemoteAddress:Port           Forward Weight ActiveConn InActConn<br />
TCP  10.10.0.3:80 <strong>rr persistent 50</strong><br />
-&gt; 10.10.0.1:80 <strong> Local</strong> 100    0          0<br />
-&gt; 10.10.0.2:80 <strong> Route</strong> 100    0          0 </code></p>
<p>Also on Backup server</p>
<p><code>usr01@server02:~$ sudo ipvsadm -L -n<br />
[sudo] password for usr01:<br />
IP Virtual Server version 1.2.1 (size=4096)<br />
Prot LocalAddress:Port Scheduler Flags<br />
-&gt; RemoteAddress:Port           Forward Weight ActiveConn InActConn<br />
TCP  10.10.0.3:80 <strong>rr persistent 50</strong><br />
-&gt; 10.10.0.1:80 <strong> Route</strong> 100    0          0<br />
-&gt; 10.10.0.2:80 <strong> Local</strong> 100    0          0 </code></p>
<p>We are almost done, we only need to add a preroute rule on the backup node manually to get started :</p>
<p><code>usr01@server02$ iptables -A PREROUTING -t nat -d 10.10.0.3 -p tcp -j REDIRECT<br />
usr01@server02$ iptables -t nat --list<br />
Chain PREROUTING (policy ACCEPT)<br />
target     prot opt source               destination<br />
<strong> REDIRECT   tcp  --  anywhere             10.10.0.3 </strong><br />
Chain POSTROUTING (policy ACCEPT)<br />
target     prot opt source               destination<br />
Chain OUTPUT (policy ACCEPT)<br />
target     prot opt source               destination</code></p>
<p>That&#8217;s all.</p>
<p>Now you can connect to http://10.10.0.3 and you can notice load distributed between two nodes internally. In case one of the nodes fail, it will takes few seconds until the backup server notice the failure and update its iptables prerouting rule. When apache service goes down, you will notice that request on port 80 will be automatically redirected to second node.</p>
<p>As I have mentioned in the beginning, failover control cannot goes without downtime in such architecture, but it still great to distribute load if you are limited in hardware.</p>
<p>Finally, it will be much easier (even faster) to load balance using Round Robin DNS from active directory for example, if you can manage to monitor failed service or node, however this architecture remain better on failover even with a short downtime.</p>
<h3>Related Posts</h3>
<ol class="yarpp">
		<li><a href="http://www.hbyconsultancy.com/blog/shared-ocfs2-partition-on-ubuntu-server-10-04-x64.html" rel="bookmark">Shared OCFS2 partition on Ubuntu Server 10.04 x64 &raquo;</a><!-- (9.2)--></li>
		<li><a href="http://www.hbyconsultancy.com/blog/create-a-master-master-mysql-replication-ubuntu-server-10-04-x64.html" rel="bookmark">Create a Master Master MySQL replication &#8211; Ubuntu Server 10.04 x64 &raquo;</a><!-- (6.2)--></li>
		<li><a href="http://www.hbyconsultancy.com/blog/ubuntu-howto-fix-repository-signature-verification-issues.html" rel="bookmark">Ubuntu Howto Fix Repository Signature Verification Issues &raquo;</a><!-- (5.3)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.hbyconsultancy.com/blog/two-nodes-load-balance-and-failover-with-keepalived-and-ubuntu-server-10-04-x64.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

