<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Please note that there is huge
      improvement in terms of perfs if you choose to cherry-pick the
      libgfapi driver which has recently been implemented in Nova [1].<br>
      <br>
      That would assume you use Cinder bootable volumes instead of
      classical QCOW2 instances, but the improvement is worth it.<br>
      <br>
      -Sylvain<br>
      <br>
      <br>
        Le 20/08/2013 09:29, Marco CONSONNI a écrit :<br>
    </div>
    <blockquote
cite="mid:CAGJtj4iRbU6R+FVr6E=-knA8QVtW52eg-N43AZhG4Zb8BLwMbA@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <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
              moz-do-not-send="true"
              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 moz-do-not-send="true"
              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 moz-do-not-send="true"
              href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
            Unsubscribe : <a moz-do-not-send="true"
              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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Mailing list: <a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a>
Post to     : <a class="moz-txt-link-abbreviated" href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>
Unsubscribe : <a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>