<?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>Cloudweavers &#187; Technique</title>
	<atom:link href="http://www.cloudweavers.org/tag/technique/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cloudweavers.org</link>
	<description>Cutting-edge technology consultant</description>
	<lastBuildDate>Tue, 31 Jan 2012 13:56:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>google chrome for mac</title>
		<link>http://www.cloudweavers.org/2009/08/google-chrome-for-mac/</link>
		<comments>http://www.cloudweavers.org/2009/08/google-chrome-for-mac/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 18:09:55 +0000</pubDate>
		<dc:creator>pascal.charest</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[Technique]]></category>

		<guid isPermaLink="false">http://blog.pacharest.com/?p=1260</guid>
		<description><![CDATA[Google chrome for mac is available through a developer release: http://www.google.com/chrome/intl/en/eula_dev.html?dl=mac]]></description>
			<content:encoded><![CDATA[<p>Google chrome for mac is available through a developer release:<a href=" http://www.google.com/chrome/intl/en/eula_dev.html?dl=mac"> http://www.google.com/chrome/intl/en/eula_dev.html?dl=mac</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudweavers.org/2009/08/google-chrome-for-mac/feed/</wfw:commentRss>
		<slash:comments>139</slash:comments>
		</item>
		<item>
		<title>Security @ DEFCON 17</title>
		<link>http://www.cloudweavers.org/2009/08/security-defcon-17/</link>
		<comments>http://www.cloudweavers.org/2009/08/security-defcon-17/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 17:16:44 +0000</pubDate>
		<dc:creator>pascal.charest</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[consultant]]></category>
		<category><![CDATA[defcon]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[labsphoenix]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[symposium]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[vacation]]></category>

		<guid isPermaLink="false">http://blog.pacharest.com/?p=1238</guid>
		<description><![CDATA[Survived! Well my laptop did &#8211; I&#8217;m exhausted and work was waiting for me in Montreal, but &#8211; let be honest, I can&#8217;t really complain. For those who don&#8217;t know, the DEFCON is one of the leading hacker conference with over 8k attendees getting together in Las Vegas to share knowledge on hacking, cracking, social [...]]]></description>
			<content:encoded><![CDATA[<p>Survived! Well my laptop did &#8211; I&#8217;m exhausted and work was waiting for me in Montreal, but &#8211; let be honest, I can&#8217;t really complain.<br />
<br />
For those who don&#8217;t know, the <a href="http://defcon.org"><strong>DEFCON</strong></a> is one of the leading hacker conference with over 8k attendees getting together in Las Vegas to share knowledge on hacking, cracking, social engineering, lock picking and similar discipline. Peoples come from all social group &#8211; 14y old video gamer to senior security specialist for the gov, going through consultant, programmer, developer and hobbyist. Fun crowd.<br />
<br />
While my trip was flanked by 2 series of 4 vacation days (before and after), I was @DEFCON as the owner of <strong>Les Laboratoires Phoenix</strong> &#8211; my free software consulting firm &#8211; and as such, I was confronted to this dichotomy:<br />
<br />
* I need Internet access to answer clients requests<br />
* Connecting to Internet at DEFCON is professional suicide if your not up to it<br />
<br />
Let me explain this second point a bit: first, the <strong>Wall of Sheep</strong>, an inline filter tracking unencrypted connections and broadcasting users credentials (including a partially obscured password) on a big screen in the lounge. Generally, the flow is quasi non-stop.<br />
<br />
If you think that it&#8217;s not that bad, the password being garbled&#8230;  think again : <strong>Wall of Death</strong>. It&#8217;s an inline switch, freely available, where the 7 ports broadcast a mirror of everything the firewall see (which is.. everything). Live, un-garbled, un-modified feed of everything in the pipe. In other words, if you are on the Wall of Sheep, then someone from the Wall of Death got your credential.<br />
<br />
And then, this is only using the standard infrastructure. I am not mentioning peer attack, wireless impersonation and so on.<br />
<br />
So, how to survive in such hostile environment ? Here&#8217;s a few rules (which should also be taken as golden rules if you work from your client&#8217;s office).<br />
<br />
1) &#8216;<strong>netstat -lntp</strong>&#8216; ; this command (an output of incoming listing ports on your system) should return nothing. There is no need to have any listening services if you are &#8216;mobile&#8217;.<br />
<br />
2) <strong>iptables -L -n -v </strong>; this command give you your firewall rules. INPUT should be restricted to established and related connection with a default policy of DROP. OUTPUT, when in a &#8216;not-so-friendly&#8217; environment, should defaulted to DROP with allowed outgoing on secure protocol only (http:443, ssh:22, &#8230;). If you need to connect to an un-encrypted destination, at least forward through a ssh-tunnel/proxy.<br />
<br />
3) never auto-connect to unencrypted network. This is exactly what causes the wall of sheep to be full of iPhone user&#8217;s credentials. This cute little device can <strong>auto-connect to the unprotected network</strong> (such as DEFCON) and start sending security credential (un-encrypted) to twitter, facebook, myspace&#8230;<br />
<br />
4) Do not take anything for granted. PREPARATION is the key. Before the trip, start <strong>collecting all your ssh-key fingerprint</strong> on your system, this can become really handy if someone tries some &#8216;not-so-great&#8217; men-in-the-middle attack against you.<br />
<br />
Well, thinking about it, number 4 is the best advice. <strong>DO NOT TAKE ANYTHING FOR GRANTED</strong>. In the last 2 years, there have been 2 attack against the SSL infrastructure disclosed at DEFCON.  Btw, this is for GNU/Linux system. If you are using a Microsoft operating system at the DEFCON, you better&#8230; well&#8230; just don&#8217;t use it. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudweavers.org/2009/08/security-defcon-17/feed/</wfw:commentRss>
		<slash:comments>202</slash:comments>
		</item>
		<item>
		<title>Zimbra &amp; Sphinx &amp; inodes &amp; U.P.C. ; Being a free software consultant is all about diversity</title>
		<link>http://www.cloudweavers.org/2009/07/zimbra-sphinx-inodes-upc-free-software-consultant/</link>
		<comments>http://www.cloudweavers.org/2009/07/zimbra-sphinx-inodes-upc-free-software-consultant/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 01:09:02 +0000</pubDate>
		<dc:creator>pascal.charest</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[consultant]]></category>
		<category><![CDATA[freesoftware]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[inode]]></category>
		<category><![CDATA[jobs]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[Technique]]></category>

		<guid isPermaLink="false">http://blog.pacharest.com/?p=1227</guid>
		<description><![CDATA[Being a free software consultant is all about the ability to adapt to any given situation&#8230; As the main conduit between my clients and the world of cutting edge technologies, they often call me to complete mandate that have little to do with my specialties. Officially, I build high throughput, high redundancy information system. However, [...]]]></description>
			<content:encoded><![CDATA[<p>Being a <strong>free software consultant</strong> is all about the ability to adapt to any given situation&#8230; As the main conduit between my clients and the world of cutting edge technologies, they often call me to complete mandate that have little to do with my specialties. Officially, <strong>I build high throughput, high redundancy information system</strong>. However, here is a quick glance of my &#8216;monday&#8217;: </p>
<p>&nbsp;</p>
<p><strong>1. no more free inode on server</strong><br />
Database server of a client is sometimes throwing out error about inodes. This morning, I&#8217;ve decided to correct the problem once and for all.  </p>
<blockquote><p>
#checking inodes<br />
root@server:/home# <strong>df -hi | grep sda</strong><br />
/dev/sda1               640K    606K     35K   95% /<br />
<br />
#checking free space<br />
root@server:/home#<strong> df -h | grep sda</strong><br />
/dev/sda1              10G  5.1G  4.4G  55% /
</p></blockquote>
<p>A quick check shows 4.4G of free disk space but a little bit less than 35K inodes availables. Taking into account that each file require at least one inode&#8230; this could easily become a very dangerous situation. Resolving this issue isn&#8217;t very complicated : I&#8217;ve destroyed some of the 500k idle file on the server and move some more to another partition. Easy solution for a problem that can easily crash your server.</p>
<p>&nbsp;</p>
<p><strong>2. Zimbra &#038; Sphinx ; 2 deployments</strong><br />
One client wanted an easy to manage, web accessible and fully featured messaging &#038; collaboration software. <strong>Zimbra [<a href="http://www.zimbra.com/">website</a>, <a href="http://www.zimbra.com/community/downloads.html">download</a>] is one of the easiest open source solution to recommend</strong> in those case. It integrate with active directory, it support full text search, tagging and got a very good web interface. Kinda of remind me of MailEnable (for Windows), but a lot less costly and available on GNU/Linux. I&#8217;ve completed quite a few single/multi-node deployment of Zimbra and I&#8217;ve always been impressed by the quality of the system. Hoo, and btw, I&#8217;m a certified Zimbra consultant.  </p>
<p>&nbsp;</p>
<p>Another wanted to add full-text search capacity to an existing MySQL database. While innodb &#038; MyISAM built-in indexes can help speed up some queries, they are restricted by the b-tree data model. The second problems in this scenario is that the data is already partitioned in multiple database / servers. This is the perfect use case for Sphinx [<a href="http://sphinxsearch.com/">website</a>] with multi-tables/multi-databases data sources.</p>
<p>&nbsp;</p>
<p><strong>3. U.P.C. &#8211; BarCode reader</strong><br />
I&#8217;ve received a shipment of 8mm barcode reader for a client. The device is to be integrated in a point-of-sale solution my corp. (<a href="http://labsphoenix.com">Les Laboratoires Phoenix</a>) is developing for them. The small USB Acan device [<a href="http://shop.ebay.ca/?_from=R40&#038;_trksid=p3907.m38.l1312&#038;_nkw=USB+Barcode+scanner&#038;_sacat=See-All-Categories">ebay search</a>] is easy to configure (scan specific code) and to use (act as a keyboard). True plug-and-play on Microsoft Windows XP, Vista, on GNU/Linux and Mac OSX Tiger&#8230;  I&#8217;m very satisfied by the device and look forward to complete the assignment. </p>
<p>&nbsp;</p>
<p><strong>4. More stuff</strong><br />
Did way more stuff than those 3 contracts today&#8230; but hey, I can&#8217;t be writing down for all to see all my cool gigs and contracts! Some of those are actually protected by NDA or are still stealth. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudweavers.org/2009/07/zimbra-sphinx-inodes-upc-free-software-consultant/feed/</wfw:commentRss>
		<slash:comments>137</slash:comments>
		</item>
		<item>
		<title>retrieve client browser lang setting with php</title>
		<link>http://www.cloudweavers.org/2009/07/retrieve-client-browser-lang-with-php/</link>
		<comments>http://www.cloudweavers.org/2009/07/retrieve-client-browser-lang-with-php/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 02:55:27 +0000</pubDate>
		<dc:creator>pascal.charest</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[consultant]]></category>
		<category><![CDATA[job]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programmation]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://blog.pacharest.com/?p=1214</guid>
		<description><![CDATA[I promised a client I would give him a little PHP script to help him deal with internationalization (french/english visitors) of his website. So, here is a very simple way to retrieve your visitor&#8217;s browser language setting and fork through a IF clause based on this value : < ?php #we retreive the language $lang [...]]]></description>
			<content:encoded><![CDATA[<p>I promised a client I would give him a little PHP script to help him deal with internationalization (french/english visitors) of his website. So, here is a very simple way to retrieve your visitor&#8217;s browser language setting and fork through a IF clause based on this value :</p>
<blockquote><p>< ?php<br />
#we retreive the language<br />
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);<br />
<br/><br />
#if french $lang=fr, english $lang=en<br />
if ( $lang==&#8221;fr&#8221; ) {<br />
        echo &#8220;ceci est la version francaise&#8221;;<br />
        }<br />
else {<br />
         echo &#8220;other language&#8221;;<br />
        }</p>
<p>?>
</p></blockquote>
<p>This is not meant to be the &#8216;best&#8217; way or the &#8216;easiest&#8217;, it is simply the way I would do it for a small project. If you got a better way, feel free to post it in the comment section of this post ! </p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudweavers.org/2009/07/retrieve-client-browser-lang-with-php/feed/</wfw:commentRss>
		<slash:comments>167</slash:comments>
		</item>
		<item>
		<title>processor/CPU affinity on GNU/linux</title>
		<link>http://www.cloudweavers.org/2009/06/processor-affinity-on-gnu-linux/</link>
		<comments>http://www.cloudweavers.org/2009/06/processor-affinity-on-gnu-linux/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 11:19:53 +0000</pubDate>
		<dc:creator>pascal.charest</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[affinity]]></category>
		<category><![CDATA[consultant]]></category>
		<category><![CDATA[cpu]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[jobs]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[Technique]]></category>

		<guid isPermaLink="false">http://blog.pacharest.com/?p=1192</guid>
		<description><![CDATA[With the new computer trend of adding more processing core rather than speeding each of them, CPU affinity is becoming quite important. It allow intelligent GNU/Linux system administrators to bind specific process or hardware interrupt to a list of CPU or core. This binding capacity is very useful in database server and high throughput environment [...]]]></description>
			<content:encoded><![CDATA[<p>With the new computer trend of adding more processing core rather than speeding each of them, CPU affinity is becoming quite important. It allow intelligent GNU/Linux system administrators to bind specific process or hardware interrupt to a list of CPU or core. This binding capacity is very useful in database server and high throughput environment by removing a lot of context-switching request on high load cpu. It can even be  used  to offload workstation CPU of the dreaded &#8216;firefox&#8217;/'flash&#8217; combo. </p>
<p>&nbsp;</p>
<p>Here is a quite interesting article from Intel, <a href="http://software.intel.com/en-us/articles/improved-linux-smp-scaling-user-directed-processor-affinity/">Improved Linux* SMP Scaling: User-directed Processor Affinity</a>, on the subject. It shows how to distribute hardware-based interrupts to specifics CPU to lower context switching. It is way more technical that this very article, but I don&#8217;t see the need to copy/paste everything. Read it, it worth it. </p>
<p>&nbsp;</p>
<p>So, <strong>checking out a process cpu affinity</strong> is done with following syntax:</p>
<blockquote><p># taskset -pc &#8216;pid&#8217;</p></blockquote>
<p>The processor IDs start at 0. The CPU-ID list is available with &#8216;<em>cat /proc/cpuinfo</em>&#8216;. </p>
<p>&nbsp;</p>
<p><strong>Binding a process ID (pID) to a specific processor</strong> is done with the following command. The only difference between the list/bind command is the processor id list added before the pID. It can be inserted as a single digit (1) or a list (1,2,3) or a suite (1-3).</p>
<blockquote><p># taskset -pc 1 &#8216;pid&#8217;</p></blockquote>
<p>There you go: your now able to bind this CPU intensive oracle process on specific core on this 16-ways system.</p>
<p>&nbsp;</p>
<p><strong>Links</strong> : old <a href="http://www.ibm.com/developerworks/linux/library/l-affinity.html">&#8216;for coder&#8217; IBM article</a> &#8211; another one for <a href="http://www.yellow-bricks.com/2009/04/28/cpu-affinity/">VMWare</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudweavers.org/2009/06/processor-affinity-on-gnu-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UBUNTU: mouse key (or keypad isn&#8217;t working anymore)</title>
		<link>http://www.cloudweavers.org/2009/05/ubuntu-mouse-key-or-keypad-isnt-working-anymore/</link>
		<comments>http://www.cloudweavers.org/2009/05/ubuntu-mouse-key-or-keypad-isnt-working-anymore/#comments</comments>
		<pubDate>Thu, 28 May 2009 13:08:34 +0000</pubDate>
		<dc:creator>pascal.charest</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.pacharest.com/?p=1152</guid>
		<description><![CDATA[I&#8217;ve updated to Ubuntu 9.04 and suddenly my keypad isn&#8217;t working anymore. What to do ? Well, go in &#8220;System&#8221; \ &#8220;Preference&#8221; \ &#8220;Assistive Technologies&#8221; \ &#8220;Keyboard Accessibility&#8221; \ &#8220;Mouse Key&#8221;&#8230; and disable the little bugger that sometimes auto-enable itself after a distribution upgrade]]></description>
			<content:encoded><![CDATA[<p><strong>I&#8217;ve updated to Ubuntu 9.04 and suddenly my keypad isn&#8217;t working anymore. What to do ? </strong><br />
<br />
Well, go in &#8220;System&#8221; \ &#8220;Preference&#8221; \ &#8220;Assistive Technologies&#8221; \ &#8220;Keyboard Accessibility&#8221; \ &#8220;Mouse Key&#8221;&#8230; and disable the little bugger that <em>sometimes</em> auto-enable itself after a distribution upgrade</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudweavers.org/2009/05/ubuntu-mouse-key-or-keypad-isnt-working-anymore/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>GPG error with &#8216;apt-get update&#8217;</title>
		<link>http://www.cloudweavers.org/2009/05/gpg-error-with-apt-get-update/</link>
		<comments>http://www.cloudweavers.org/2009/05/gpg-error-with-apt-get-update/#comments</comments>
		<pubDate>Thu, 28 May 2009 12:53:59 +0000</pubDate>
		<dc:creator>pascal.charest</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[gpg]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.pacharest.com/?p=1147</guid>
		<description><![CDATA[This post is only a technical reminder for me. You can disregard. This is a very frequent message when updating a APT based distro; W: GPG error: http://ppa.launchpad.net jaunty Release: The following signatures couldn&#8217;t be verified because the public key is not available: NO_PUBKEY 60D11217247D1CFF W: You may want to run apt-get update to correct [...]]]></description>
			<content:encoded><![CDATA[<p>This post is only a technical reminder for me. You can disregard.<br />
<br />
This is a very frequent message when updating a APT based distro; </p>
<blockquote><p>W: GPG error: http://ppa.launchpad.net jaunty Release: The following signatures couldn&#8217;t be verified because the public key is not available: NO_PUBKEY 60D11217247D1CFF<br />
W: You may want to run apt-get update to correct these problems</p></blockquote>
<p> I always forget the GPG retrieve command (must be on one line): </p>
<blockquote><p>#<em>gpg &#8211;keyserver hkp://subkeys.pgp.net &#8211;recv-keys 60D11217247D1CFF</em></p></blockquote>
<p>and the apt-key import command: </p>
<blockquote><p>#<em>gpg &#8211;export &#8211;armor 60D11217247D1CFF | sudo apt-key add</em> -</p></blockquote>
<p>There you go, no more problems.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudweavers.org/2009/05/gpg-error-with-apt-get-update/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>deprecation of md-multipath</title>
		<link>http://www.cloudweavers.org/2009/03/deprecation-of-md-multipath/</link>
		<comments>http://www.cloudweavers.org/2009/03/deprecation-of-md-multipath/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 12:39:47 +0000</pubDate>
		<dc:creator>pascal.charest</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[consultant]]></category>
		<category><![CDATA[freesoftware]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[SAN]]></category>
		<category><![CDATA[Technique]]></category>

		<guid isPermaLink="false">http://blog.pacharest.com/?p=1065</guid>
		<description><![CDATA[Following a discussion with a potential client about building a &#8216;truly redundant system&#8217;, thought about warning solution developer of this thread on LKML : There are talks of deprecating md-multipath (from the Linux kernel, for those that weren&#8217;t really following). Quite a few systems would be moving from md-devices to &#8220;something else&#8221;. The new flavor [...]]]></description>
			<content:encoded><![CDATA[<p>Following a discussion with a potential client about building a &#8216;truly redundant system&#8217;, thought about warning solution developer of this thread on LKML  :<br />
<br />
There are <a href="http://groups.google.com/group/linux.kernel/browse_thread/thread/d48c370ba36ffc52/e40306c98cd974bf?#e40306c98cd974bf">talks</a> of deprecating <a href="http://linux.die.net/man/8/mdmpd">md-multipath</a> (from the Linux kernel, for those that weren&#8217;t really following). Quite a few systems would be moving from md-devices to &#8220;something else&#8221;.<br />
<br />
The new flavor of the month (or year, following your P.O.V.) is <a href="http://store.redhat.com/docs/manuals/csgfs/browse/4.6/DM_Multipath/MPIO_description.html">dm-multipath</a>. The configuration file is straight forward and the <a href="https://www.redhat.com/docs/manuals/csgfs/browse/4.6/DM_Multipath/index.html">RedHat Documentation</a> is very decent.<br />
<br />
Ok, I know: the names are confusing. MD device drivers stand for &#8220;multiple devices&#8221; and is also know as Linux software raid solution. DM is the acronym of &#8220;Device Mappers&#8221; and is more known as the pre-requisite for LVM2 (not LVM1, but then who still use that!?) or as the foundation of <a href="http://www.saout.de/misc/dm-crypt/">dm-crypt</a>, a free software interface allowing block level encryption through Linux (v2.6+) kernel <a href="http://gondor.apana.org.au/~herbert/crypto/">cryptoapi</a> framework.<br />
</p>
<blockquote><p><strong>On the topic of names</strong>; This is where I insert this familiar rant. I&#8217;ve never quite understood the MD as &#8216;multiple device&#8217; name. Linux kernel device names, other than the ones directly linked to hardware, are normally named after their function not a &#8216;source&#8217;. In this instance, MD as &#8216;meta-device&#8217; would make perfect sense &#8211; A device about devices. Anyway&#8230; it wasn&#8217;t named like that&#8230; </p></blockquote>
<p>
Anyway, no labs planned for any of those two techs (yet) or for the migration of md toward dm. We never know, I&#8217;ll keep you guys informed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudweavers.org/2009/03/deprecation-of-md-multipath/feed/</wfw:commentRss>
		<slash:comments>41</slash:comments>
		</item>
		<item>
		<title>top sysadmin stuff</title>
		<link>http://www.cloudweavers.org/2009/03/top-sysadmin-stuff/</link>
		<comments>http://www.cloudweavers.org/2009/03/top-sysadmin-stuff/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 13:45:37 +0000</pubDate>
		<dc:creator>pascal.charest</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[blackberry]]></category>
		<category><![CDATA[consultant]]></category>
		<category><![CDATA[freesoftware]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[ossec]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[zabbix]]></category>

		<guid isPermaLink="false">http://blog.pacharest.com/?p=1053</guid>
		<description><![CDATA[Being challenged everyday to augment my productivity, here is a few quick tricks/software helping system administrator. 1. BlackBerry Yeah, I know. It was an easy one &#8211; and easy to expect since I&#8217;ve bought a Storm. Employees get to hate them (since they are always hooked to the business) but as owner of a small [...]]]></description>
			<content:encoded><![CDATA[<p>Being challenged everyday to augment my productivity, here is a few quick tricks/software helping system administrator.<br />
<br />
<strong>1. <a href="http://www.blackberry.com/">BlackBerry</a></strong><br />
<br />
Yeah, I know. It was an easy one &#8211; and easy to expect since I&#8217;ve bought a Storm. Employees get to hate them (since they are always hooked to the business) but as owner of a small business, I NEED to be informed of everything going on. The ability of answering my email / instant messanging while in route between Montreal &#038; Ottawa is of prime importance. My clients doesn&#8217;t need to know where I am or what I am doing, they know I&#8217;m ready to help them.<br />
<br />
The BlackBerry by itself is not as feature-complete as the iPhone seem to be. Using the pre-loaded email client with gmail just doesn&#8217;t cut it.  It&#8217;s using IMAP and discarding all your filter/labels for incoming messages. There is an alternative : gmail mobile application. Available from the <a href="http://m.google.com">central mobile application repository</a> of Google. Using a customized alert setting, you can be informed when you have new mail (in your inbox), while preserving your filter/label configuration. While you are there, you should also install the maps application, can always be handy.<br />
<br />
Another &#8220;must-have&#8221; app. for sysadmin is <a href="http://www.xk72.com/midpssh/">MidpSSH</a>. Which, as its name make it pretty clear, is a SSH/Telnet client. There have been a few reports of incompatibility between Storm and midpssh &#8211; yet, with an up-to-date OS/taking into account that your device often capitalize the first letter (of a username)/openssh is case-sensitive, you should not have any problems to connect to GNU/Linux systems.<br />
<br />
<strong>2. Monitoring software</strong><br />
<br />
A good monitoring system watching over your network is a life saver and all the difference between you informing your client of a system failure or the other way around. <a href="http://www.nagios.org/">Nagios</a> is pretty well known and getting help is very easy since the community is so dynamic. Another software doing the same job is <a href="http://www.zabbix.org">Zabbix</a>. I do have some predisposition toward it, being a certified expert. Both are free softwares and are easy to install/configure. Zabbix does have a cuter interface though &#8211; can become handy if your client require access.<br />
<br />
Both software allows sysadmins to run remote command. Personally, I find those systems to be way too complicated to setup when <a href="http://mmonit.com/monit/">Monit</a> is easily available. Its configuration allow a syntax very similar to :<em> if load > 5 for 10 minutes, then stop postfix-delivery</em>. Another life saver when you don&#8217;t expect your remote monitoring agent to be able to launch a command. I use it for limits like (<em>if load>80 for 2 minutes, then stop {httpd,mysqld}</em>). If your system is badly losing interactivity, your normal remote monitoring software will never be able to save your system (ssh will timeout).<br />
<br />
<strong>3. Log/Security software</strong><br />
<br />
While Zabbix/nagios can do some checksum on important files (such as /etc/passwd, /etc/shadow, &#8230;), they are not ready as IDS (Intrusion Detection System) yet. For such system, I recommend <a href="http://www.ossec.net/">OSSEC</a>. Following the online documentation, you will have a log-analysis system created in no time &#8211; using thousand of rules given with the software. Customization can also be done pretty quickly. The &#8216;action&#8217; following a trigger can be email-alert or a command. The system come with a pre-built interface to iptables&#8230; port-scanning and brute force password testing are no more.<br />
<br />
<em>Add to all these tools a svn repository for your code, an Puppet system for global configuration and some wiki for documentation and you should have a pretty strong backbone to deal with anything your clients throws at you. </em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudweavers.org/2009/03/top-sysadmin-stuff/feed/</wfw:commentRss>
		<slash:comments>83</slash:comments>
		</item>
		<item>
		<title>removing mysql-bin log files</title>
		<link>http://www.cloudweavers.org/2009/02/removing-mysql-bin-log-files/</link>
		<comments>http://www.cloudweavers.org/2009/02/removing-mysql-bin-log-files/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 16:04:02 +0000</pubDate>
		<dc:creator>pascal.charest</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[consultant]]></category>
		<category><![CDATA[labsphoenix]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[zabbix]]></category>

		<guid isPermaLink="false">http://blog.pacharest.com/?p=1040</guid>
		<description><![CDATA[One of the main part of Laboratoires Phoenix sentinel network is the Zabbix monitoring system. In direct correlation with this fact is that the main concern inside this sentinel network is the database footprint of MySQL. I do not mean the &#8216;size-in-memory&#8217;, since I do have quite enough ram on those systems. And I&#8217;m not [...]]]></description>
			<content:encoded><![CDATA[<p>One of the main part of <a href="http://labsphoenix.com">Laboratoires Phoenix</a> sentinel network is the <a href="http://zabbix.com">Zabbix monitoring system</a>.<br />
<br />
In direct correlation with this fact is that the main concern inside this sentinel network is the database footprint of MySQL. I do not mean the &#8216;size-in-memory&#8217;, since I do have quite enough ram on those systems. And I&#8217;m not doing that much caching since data change very, very often. What I mean is the size of the database &#038; binaries log-files on disk.<br />
<br />
<strong>To make the story short</strong>: I always move<em> /var/lib/mysql</em> on a separate partition to be certain a db surge would not bring down / compromise other server functions. Seem like I forgot (on one of the system) that Debian standard location for the mysql-bin log-files was in <em>/var/log/mysql</em>.<br />
<br />
Since those are independent servers (not multi-master / replicated MySQL system), here is the magic sequence to remove unused mysql-bin files.<br />
<br />
# vi /etc/mysql/my.cnf<br />
<em>[modify bin-log number/space usage]</em><br />
# ls -la /var/log/mysq/<br />
# mysql -uroot -p<br />
[enter password]<br />
# <a href="http://dev.mysql.com/doc/refman/5.0/en/purge-binary-logs.html">purge binary logs</a> to &#8216;mysql-bin.000321&#8242;;<br />
<em>[where mysql-bin.000321 is one of the last / up to the point you want too keep].</em><br />
<br />
There you go. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudweavers.org/2009/02/removing-mysql-bin-log-files/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

