<div dir="ltr"><div><div><div><div><div>Hello Guilherme and all,<br><br></div>I was able to deploy live migration with gluster: I originally tried NFS like you did but I found problems.<br>On the contrary, Gluster works perfectly and it's quite easy to instal and configure.<br>
<br></div><div>This is what you need to do for a basic installation assuming that you have a node, working as a gluster server, with 2 disks and a set of compute nodes, working as gluster clients, that use the gluster shared directory for saving the running images.<br>
<br></div>-- On the gluster server --<br><br></div>1) Prepare the volumes<br><br></div>Assuming that you have two disks (/dev/sdb and /dev/sdc), create a primary partition on both of them using fdisk command.<br></div>Format the volumes with command: sudo <span style="font-size:11pt;line-height:115%;font-family:"Calibri","sans-serif"">mkfs.xfs
-i size=512 /dev/sdb1 and sudo </span><span style="font-size:11pt;line-height:115%;font-family:"Calibri","sans-serif""><span style="font-size:11pt;line-height:115%;font-family:"Calibri","sans-serif"">mkfs.xfs
-i size=512 /dev/sdc1</span><br></span><div><div><div>Prepare two directories for mounting the two volumes: sudo mkdir -p /export/brick1 and sudo mkdir -p /export/brick2<br></div><div>Configure /etc/fstab for mounting the volumes by adding the following lines:<br>
<p class="" style="margin-left:1in">/dev/sdb1<span style> </span>/export/brick1<span style> </span>xfs<span style>
</span>defaults<span style> </span>0<span style> </span>2</p>
<p class="" style="margin-left:1in">/dev/sdc1<span style> </span>/export/brick2<span style> </span>xfs<span style>
</span>defaults<span style> </span>0<span style> </span>2</p>
Mount the two volumes with command sudo mount –a
</div><div><div><div><br></div><div>2) install and configure gluster server<br><br>
<p class="" style="margin-left:0.5in"><span style lang="IT">sudo apt-get install glusterfs-server</span></p>
<p class="" style="margin-left:0.5in">sudo gluster volume create openstack
stripe 2 <IP address of the server>:/export/brick1 <IP address of the server>:/export/brick2<span style="font-size:11pt;line-height:115%;font-family:"Calibri","sans-serif"" lang="IT"><br></span></p>
<p class="" style="margin-left:0.5in"><span style="font-size:11pt;line-height:115%;font-family:"Calibri","sans-serif"" lang="IT">sudo gluster volume start openstack</span><br></p>-- On the gluster clients / compute nodes --<br>
</div><div><br></div><div>1) Install the gluster client with command <span style="font-size:11pt;line-height:115%;font-family:"Calibri","sans-serif"">sudo
apt-get install glusterfs-client<br><br></span></div><div><span style="font-size:11pt;line-height:115%;font-family:"Calibri","sans-serif"">2) in the /etc/fstab, configure a gluster filesystem with name </span><span style="font-size:11pt;line-height:115%;font-family:"Calibri","sans-serif"">/var/lib/nova/instances by adding the following line:<br>
<br></span><span style="font-size:11pt;line-height:115%;font-family:"Calibri","sans-serif""> <IP address of gluster server>:/openstack
/var/lib/nova/instances glusterfs defaults,_netdev 0 0</span><br></div><div><br></div><div>Note that if you have already have a <span style="font-size:11pt;line-height:115%;font-family:"Calibri","sans-serif"">/var/lib/nova/instances directory on the compute node, this fstab configuration simply 'hides' that but the contents are still there. <br>
</span></div><div><span style="font-size:11pt;line-height:115%;font-family:"Calibri","sans-serif"">This configuration is needed for forcing compute node to store instances onto the gluster shared directory.<br>
<br></span></div><div><span style="font-size:11pt;line-height:115%;font-family:"Calibri","sans-serif"">Hope it helps,<br></span></div><div><span style="font-size:11pt;line-height:115%;font-family:"Calibri","sans-serif"">Marco.<br>
</span></div><div><span style="font-size:11pt;line-height:115%;font-family:"Calibri","sans-serif""> </span><br></div></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/8/7 Guilherme Russi <span dir="ltr"><<a href="mailto:luisguilherme.cr@gmail.com" target="_blank">luisguilherme.cr@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div><div>Hello guys,<br><br></div> I've been trying to deploy live migration to my cloud using NFS but without success, I'd like to know if somebody has tried live migration with Gluster Storage, does it work? Any problem when installing it? Following the documentation from its website is easy to install?<br>
<br></div>The only thing that is left to my cloud works 100% is the live migration.<br><br></div>Thank you all.<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888">Guilherme.<br>
</font></span></div>
<br>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br></div>