<?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>crux@macumba:/var/blog$ &#187; In english</title>
	<atom:link href="http://blog.macumba.homelinux.org/category/in-english/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.macumba.homelinux.org</link>
	<description></description>
	<lastBuildDate>Sun, 28 Jun 2009 05:24:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Migrating LVM volumes using AoE</title>
		<link>http://blog.macumba.homelinux.org/2008/06/02/migrating-lvm-volumes-using-aoe/</link>
		<comments>http://blog.macumba.homelinux.org/2008/06/02/migrating-lvm-volumes-using-aoe/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 14:37:16 +0000</pubDate>
		<dc:creator>CruX</dc:creator>
				<category><![CDATA[El nerd]]></category>
		<category><![CDATA[In english]]></category>
		<category><![CDATA[Principal]]></category>
		<category><![CDATA[aoe]]></category>
		<category><![CDATA[lvm]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://blog.macumba.homelinux.org/?p=62</guid>
		<description><![CDATA[It&#8217;s been a little over two months since I accomplished this and wanted to share it as I hadn&#8217;t found it anywhere over the net. It took me a while but finally it&#8217;s here! Enjoy!   
To get everyone in context I&#8217;ll say that I had some Xen VMs which used LVM volumes as [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a little over two months since I accomplished this and wanted to share it as I hadn&#8217;t found it anywhere over the net. It took me a while but finally it&#8217;s here! Enjoy!  <img src='http://blog.macumba.homelinux.org/wp-content/plugins/smilies-themer/adiumicons/cool.png' alt=':cool:' class='wp-smiley' /> </p>
<p>To get everyone in context I&#8217;ll say that I had some Xen VMs which used LVM volumes as disk images living in one machine and I suddenly needed them on another one. After searching for some tried and tested solution I found none. So the only option I could see was to do some kind of dump (probably <strong><em>dd</em></strong> involved with <strong><em>bzip2</em></strong>) and bring them over to the other machine. Be it by network, DVD or external disk. Haven&#8217;t done it before, and it sure would have taken some effort on my part. Downsides: dangerous precise movements required and nothing new learned. This was a no-op  <img src='http://blog.macumba.homelinux.org/wp-content/plugins/smilies-themer/adiumicons/wink.png' alt=':wink:' class='wp-smiley' /> </p>
<p>Luckily an alternative came to my mind. I could use AoE [1] (<a href="http://en.wikipedia.org/wiki/ATA_over_Ethernet">ATA over Ethernet</a> not <a href="http://en.wikipedia.org/wiki/Axis_of_evil">Axis of Evil</a> nor <a href="http://en.wikipedia.org/wiki/Age_of_Empires">Age of Empires</a>!!!) and some LVM wizardry. Upsides: dangerous precise movements required and cool stuff learned. This was the way to go!  <img src='http://blog.macumba.homelinux.org/wp-content/plugins/smilies-themer/adiumicons/biggrin.png' alt=':grin:' class='wp-smiley' /> </p>
<p>Just for the sake of clarity some definitions and requirements first. All the stuff below was done on two Debian Etch 4.0 boxes. Both of them having Xen for virtualization and LVM2 for storage administration. You&#8217;ll need an AoE enabled kernel (Debian&#8217;s kernels are from 2.6.11+). You&#8217;ll also need the aoetools package in the destination machine at least. Let&#8217;s call <strong>ORIG</strong> and <strong>DEST</strong> the machines and <strong>VG = Volume Group</strong>, <strong>PV = Physical Volume</strong> and <strong>lv = Logical Volume</strong>. If that&#8217;s mumbojumbo to you then keep away from the next commands!</p>
<p>Now to the recipe:</p>
<p>Enable AoE <em>server</em> on ORIG</p>
<blockquote><p>root@orig-host# vbladed 0 0 eth1 /dev/md1</p></blockquote>
<p>That should export any block device you want over eth. In my case a whole RAID device (md1) was exported through eth1 with major 0 and minor 0. Consider that Ethernet protocol is layer 2 and is non-routable. Another thing is that AoE provides no security inherently, so I enabled it manually for this and disabled it afterwards. If you are going to use it otherwise make sure you design a security scheme to go with it.</p>
<p>Enable AoE support on DEST</p>
<blockquote><p>root@dest-host# modprobe aoe</p></blockquote>
<p>Then search for AoE devices and make sure it found some</p>
<blockquote><p>root@dest-host# aoe-discover<br />
root@dest-host# aoe-stat</p></blockquote>
<p>That should output something like &#8220;e0.0 250.000GB eth0 up&#8221;. At this point you should have a new block device available on the client box named /dev/etherd/e0.0. You can do anything to that block device as if it was a locally attached device. Cool!</p>
<p>Now we have to disable the ORIG-VG and make it unknown to the ORIG LVM system</p>
<blockquote><p>
root@orig-host# vgchange -an ORIG-VG<br />
root@orig-host# vgexport ORIG-VG</p></blockquote>
<p>Tip from experience: it&#8217;s better to have a dedicated VG for storing VMs images so we don&#8217;t have any downtime in the real box. I had the root filesystem on the same VG and had to switch to runlevel 1 just in case  :???: </p>
<p>Search for new PVs on DEST and add them to LVM</p>
<blockquote><p>root@dest-host#  pvscan</p></blockquote>
<p>Merge the two volume groups into one</p>
<blockquote><p>root@dest-host# vgmerge DEST-VG ORIG-VG</p></blockquote>
<p>Move LVs from ORIG-PV to DEST-PV. This is the step that&#8217;s gonna take forever or not depending on your network speed and the amount of data to move. I don&#8217;t have my exact figures but I recall it taking a couple of hours.</p>
<blockquote><p>root@dest-host# pvmove -n some-lv /dev/etherd/e0.0 /dev/md1</p></blockquote>
<p>Note this time /dev/md1 is the destination RAID device which belongs to DEST-VG, not the one on ORIG box stated before.</p>
<p>Once it finishes we want to make things go back to normal. So we disable the VG so we can do the split  (<a href="http://blog.macumba.homelinux.org/wp-content/uploads/2008/06/jbrownsplit.jpg">James Brown style</a> baby!) Then we re-enable the VG</p>
<blockquote><p>root@dest-host# vgchange -an DEST-VG<br />
root@dest-host# vgsplit DEST-VG ORIG-VG /dev/etherd/e0.0<br />
root@dest-host# vgchange -ay DEST-VG</p></blockquote>
<p>Now we have to disable the ORIG-VG and make it unknown to the DEST LVM system</p>
<blockquote><p>root@dest-host# vgexport ORIG-VG</p></blockquote>
<p>Back to the ORIG box we re-add the &#8220;lost&#8221; VG and re-activate the VG</p>
<blockquote><p>root@orig-host# vgimport ORIG-VG<br />
root@orig-host# vgchange -ay ORIG-VG</p></blockquote>
<p>And that should be it! I&#8217;ll stop writing now since it&#8217;s a long post already. Hope somebody finds this useful and/or inspiring. Good luck!</p>
<p>[1] <a href="http://www.howtoforge.com/ata_over_ethernet_debian_etch">http://www.howtoforge.com/ata_over_ethernet_debian_etch</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.macumba.homelinux.org/2008/06/02/migrating-lvm-volumes-using-aoe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cool reminder</title>
		<link>http://blog.macumba.homelinux.org/2008/05/11/cool-reminder/</link>
		<comments>http://blog.macumba.homelinux.org/2008/05/11/cool-reminder/#comments</comments>
		<pubDate>Sun, 11 May 2008 14:49:23 +0000</pubDate>
		<dc:creator>CruX</dc:creator>
				<category><![CDATA[Curiosidades]]></category>
		<category><![CDATA[In english]]></category>
		<category><![CDATA[Principal]]></category>

		<guid isPermaLink="false">http://blog.macumba.homelinux.org/?p=61</guid>
		<description><![CDATA[Who hasn&#8217;t sent an email claiming it had an attachment but forgot to include it? I certainly have. But don&#8217;t worry, you can start using Evolution and if you do forget your attachment the program will try to guess and remind you about it.
]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.macumba.homelinux.org/wp-content/uploads/2008/05/screenshot-attachment-reminder.png" alt="Evolution attachment reminder" title="screenshot-attachment-reminder" width="491" height="211" class="alignright size-full wp-image-60" align="right" />Who hasn&#8217;t sent an email claiming it had an attachment but forgot to include it? I certainly have. But don&#8217;t worry, you can start using <a href="http://www.gnome.org/projects/evolution/">Evolution</a> and if you do forget your attachment the program will try to guess and remind you about it.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.macumba.homelinux.org/2008/05/11/cool-reminder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The 7 &#8220;dwarfs&#8221;</title>
		<link>http://blog.macumba.homelinux.org/2007/12/20/the-7-dwarfs/</link>
		<comments>http://blog.macumba.homelinux.org/2007/12/20/the-7-dwarfs/#comments</comments>
		<pubDate>Thu, 20 Dec 2007 03:46:37 +0000</pubDate>
		<dc:creator>CruX</dc:creator>
				<category><![CDATA[Curiosidades]]></category>
		<category><![CDATA[In english]]></category>
		<category><![CDATA[Mi mundo]]></category>

		<guid isPermaLink="false">http://blog.macumba.homelinux.org/2007/12/20/the-7-dwarfs/</guid>
		<description><![CDATA[In an interview that appears in the film &#8220;This film is not yet rated (2006)&#8221; [1] [2] mister Jack Valenti says: &#8220;&#8230;the motion picture association is composed of the seven largest producers of film and television in the world, the old great studio names, and I&#8217;ve been the head of it 34 years&#8230;&#8221;. The association [...]]]></description>
			<content:encoded><![CDATA[<p>In an interview that appears in the film <em>&#8220;This film is not yet rated (2006)&#8221;</em> <a href="http://en.wikipedia.org/wiki/This_Film_Is_Not_Yet_Rated">[1]</a> <a href="http://www.imdb.com/title/tt0493459/">[2]</a> mister <a href="http://en.wikipedia.org/wiki/Jack_Valenti">Jack Valenti</a> says: <em>&#8220;&#8230;the motion picture association is composed of the seven largest producers of film and television in the world, the old great studio names, and I&#8217;ve been the head of it 34 years&#8230;&#8221;</em>. The association he was referring to is the <a href="http://en.wikipedia.org/wiki/Motion_Picture_Association_of_America">MPAA</a> (Motion Picture Association of America) which is integrated by:</p>
<ul>
<li>Sony Pictures</li>
<li>Warner Brothers</li>
<li>Universal</li>
<li>20th Century Fox</li>
<li>Walt Disney Pictures</li>
<li>Paramount</li>
<li>MGM (bought in 2005 by capitals in part from Sony)</li>
</ul>
<p> :arrow: These corporations control more than 95% of the U.S. film business :!:</p>
<p>Even more, these corporations are part of even larger conglomerates:</p>
<ul>
<li>Sony Pictures → Sony</li>
<li>Warner Brothers → TimeWarner</li>
<li>Universal → General Electric</li>
<li>20th Century Fox → News Corp.</li>
<li>Walt Disney Pictures → The Walt Disney Company</li>
<li>Paramount → VIACOM</li>
<li>MGM → Sony</li>
</ul>
<p> :arrow: These last conglomerates own more than 90% of <strong>all media</strong> in the U.S.  <img src='http://blog.macumba.homelinux.org/wp-content/plugins/smilies-themer/adiumicons/emoticon_surprised.png' alt=':shock:' class='wp-smiley' /> :!: </p>
<p>PS: Watch the movie. It&#8217;s a documentary about how the MPAA accomplishes censorship in the <em>land of freedom</em> in the most open and declared way. One more and counting&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.macumba.homelinux.org/2007/12/20/the-7-dwarfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The programmer hierarchy&#8230;</title>
		<link>http://blog.macumba.homelinux.org/2007/02/08/the-programmer-hierarchy/</link>
		<comments>http://blog.macumba.homelinux.org/2007/02/08/the-programmer-hierarchy/#comments</comments>
		<pubDate>Thu, 08 Feb 2007 05:10:31 +0000</pubDate>
		<dc:creator>CruX</dc:creator>
				<category><![CDATA[El nerd]]></category>
		<category><![CDATA[In english]]></category>
		<category><![CDATA[Principal]]></category>

		<guid isPermaLink="false">http://blog.macumba.homelinux.org/2007/01/30/the-programmer-hierarchy/</guid>
		<description><![CDATA[&#8230; in order of arrogance  

Note: I apologize to Luke Welling for taking this from his blog and never citing the source. An anonymous comment made me realize about my mistake.
]]></description>
			<content:encoded><![CDATA[<p>&#8230; in order of arrogance <img src='http://blog.macumba.homelinux.org/wp-content/plugins/smilies-themer/adiumicons/wink.png' alt=';)' class='wp-smiley' /> </p>
<p><a href="http://blog.macumba.homelinux.org/wp-content/uploads/2007/01/the-programmer-hierarchy.pdf" title="The programmer hierarchy" ><img id="image49" src="http://blog.macumba.homelinux.org/wp-content/uploads/2007/01/the-programmer-hierarchy.png" alt="The programmer hierarchy" /></a></p>
<p><strong>Note:</strong> I apologize to <a href="http://lukewelling.com/">Luke Welling</a> for taking this from his <a href="http://lukewelling.com/2006/08/03/java-programmers-are-the-erotic-furries-of-programming/">blog</a> and never citing the source. An anonymous comment made me realize about my mistake.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.macumba.homelinux.org/2007/02/08/the-programmer-hierarchy/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>And why not me?</title>
		<link>http://blog.macumba.homelinux.org/2006/08/20/and-why-not-me/</link>
		<comments>http://blog.macumba.homelinux.org/2006/08/20/and-why-not-me/#comments</comments>
		<pubDate>Sun, 20 Aug 2006 22:46:50 +0000</pubDate>
		<dc:creator>CruX</dc:creator>
				<category><![CDATA[In english]]></category>
		<category><![CDATA[Mi mundo]]></category>
		<category><![CDATA[Principal]]></category>

		<guid isPermaLink="false">http://blog.macumba.homelinux.org/2006/08/20/and-why-not-me/</guid>
		<description><![CDATA[OK, so I still consider myself as a newbie here in the blogosphere. And just to prove it I can say that recently I discovered that a lot of spanish spoken people that have blogs and happen to have english as a second language do also have a section in their blogs for that language.
So, [...]]]></description>
			<content:encoded><![CDATA[<p>OK, so I still consider myself as a newbie here in the blogosphere. And just to prove it I can say that recently I discovered that a lot of spanish spoken people that have blogs and happen to have english as a second language do also have a section in their blogs for that language.<br />
So, here I go, I&#8217;m inaugurating this part of the blog, just in case I have something to say in english. Never more appropiate than today: <strong>welcome!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.macumba.homelinux.org/2006/08/20/and-why-not-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
