See <a href="https://bugzilla.redhat.com/show_bug.cgi?id=729586">https://bugzilla.redhat.com/show_bug.cgi?id=729586</a><br><br><div class="gmail_quote">On Tue, Jan 15, 2013 at 1:10 PM, Luis Fernando Alen <span dir="ltr">&lt;<a href="mailto:luis.alen@izap.com.br" target="_blank">luis.alen@izap.com.br</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello, list.<div><br></div><div>Yesterday I was pleased to see that Centos has released official images at the aws marketplace. Nice job.</div>
<div><br></div><div>Today I started playing with the Centos 6.3 image (<a href="https://aws.amazon.com/marketplace/pp/B00A6L6F9I" target="_blank">https://aws.amazon.com/marketplace/pp/B00A6L6F9I</a>, on which I plan to deploy a gluster cluster in production soon) and noticed a weird thing.</div>


<div><br></div><div>EBS Volumes attached to sd&lt;X&gt; are translated to xvd&lt;Y&gt; at the OS level. However, after a few research and IRC chat, I figured out that it&#39;s not weird, it&#39;s actually a normal and expected behavior (thanks for your help, z00dax).<br>


</div><div><br></div><div>sdX is actually mapped to xvdX+4. There is a consistent offset of 4. Suppose you attach an ebs volume to /dev/sdf. It&#39;ll be translated to xvdj at the OS level. sdg to xvdk, sdh to xvdl and so on.</div>


<div><br></div><div>Allright. After having figured the mystery out, it became easy to work on automations that deal with ebs volumes and file systems, such as volumes created, attached and mounted on the fly, snapshots that freeze file systems and so on...</div>


<div><br></div><div>However, I really do think to myself: Wouldn&#39;t it be cleaner if the image use simple translation (sdX to xvdX)? If I&#39;m not wrong, Rightscale uses this on their Centos images and it&#39;s much simpler. There&#39;s no extra work needed to deal with that 4 offset when you want to automate things.</div>


<div><br></div><div>Is there a reasonable reason for the 4 offset which makes it unchangeable? <br></div><div><br></div><div>It&#39;s just a thought. I think it&#39;s worth considering it..</div><div>

<br></div><div><div><div><font style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif" color="#888888"><font color="#888888">Luis Alen<br></font></font><div style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">


<font color="#888888"><a href="http://www.izap.com.br/" style="color:rgb(17,85,204)" target="_blank">www.izap.com.br</a><br></font><font color="#999999"><font size="1">Ligue com tarifa local de todo o Brasil</font> 4020.3000 <font><a value="+13186810642" style="color:rgb(17,85,204)"></a></font></font></div>


<div style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif"><br></div><div style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">

<img src="" height="33" width="96"></div></div></div>
</div></div>
<br>_______________________________________________<br>
CentOS-virt mailing list<br>
<a href="mailto:CentOS-virt@centos.org">CentOS-virt@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos-virt" target="_blank">http://lists.centos.org/mailman/listinfo/centos-virt</a><br>
<br></blockquote></div><br>