<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
  <meta name="Generator" content="Zarafa WebAccess v7.1.9-44333">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>RE: [Gluster-users] Expand distributed replicated volume</title>
  <style type="text/css">
      body
      {
        font-family: Arial, Verdana, Sans-Serif ! important;
        font-size: 12px;
        padding: 5px 5px 5px 5px;
        margin: 0px;
        border-style: none;
        background-color: #ffffff;
      }

      p, ul, li
      {
        margin-top: 0px;
        margin-bottom: 0px;
      }
  </style>
</head>
<body>
<p>Hi all,</p><p>&nbsp;</p><p>Does someone have already meet this ?</p><p>&nbsp;</p><p>Best regards,</p><p>Hugues<br />&nbsp;</p><blockquote style="border-left: 2px solid #325FBA; padding-left: 5px;margin-left:5px;">-----Message initial-----<br /><strong>De:</strong>        Hugues Lepesant &lt;hugues@lepesant.com&gt;<br /><strong>Envoy&eacute;:</strong>        mar. 29-04-2014 11:51<br /><strong>Sujet:</strong>        [Gluster-users] Expand distributed replicated volume<br /><strong>&Agrave;:</strong>        gluster-users@gluster.org; <br /><style type="text/css">body { font-family: monospace; }</style>               <style type="text/css">       .bodyclass       {         font-family: Arial, Verdana, Sans-Serif ! important;         font-size: 12px;         padding: 5px 5px 5px 5px;         margin: 0px;         border-style: none;         background-color: #ffffff;       }        p, ul, li       {         margin-top: 0px;         margin-bottom: 0px;       }   </style>  <div><p>Hi all,</p><p>&nbsp;</p><p>I want to create a distributed replicated volume.<br />And I want to be able to expand this volume.</p><p><br />To test this, I have 6 nodes each have a 10G disk to share.<br /><br />First I create the initial volume.<br /><br /># gluster volume create testvol replica 2 transport tcp node-01:/export/sdb1/brick node-02:/export/sdb1/brick node-03:/export/sdb1/brick node-04:/export/sdb1/brick<br /><br />On the client, I mount the volume :<br /><br /># mount -t glusterfs node-01:/testvol /storage-pool<br /># df -h /storage-pool/<br />Filesystem&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Size&nbsp; Used Avail Use% Mounted on<br />node-01:/testvol&nbsp;&nbsp; 20G&nbsp; 3.9G&nbsp;&nbsp; 17G&nbsp; 20% /storage-pool<br /><br />The volume size is 20G, what I expect.<br /><br />Now I want to expand this volume, adding brick.<br /><br />To do so, I do on node-01:<br /># gluster volume add-brick testvol node-05:/export/sdb1/brick node-06:/export/sdb1/brick<br /># gluster volume rebalance testvol start<br /># gluster volume rebalance testvol status<br /># gluster volume info testvol<br /><br />Volume Name: testvol<br />Type: Distributed-Replicate<br />Volume ID: cd24ec0f-3503-4d67-9032-1db1d0987f9c<br />Status: Started<br />Number of Bricks: 3 x 2 = 6<br />Transport-type: tcp<br />Bricks:<br />Brick1: node-01:/export/sdb1/brick<br />Brick2: node-02:/export/sdb1/brick<br />Brick3: node-03:/export/sdb1/brick<br />Brick4: node-04:/export/sdb1/brick<br />Brick5: node-05:/export/sdb1/brick<br />Brick6: node-06:/export/sdb1/brick<br /><br />The back on client :<br /><br /># df -h /storage-pool/<br />Filesystem&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Size&nbsp; Used Avail Use% Mounted on<br />node-01:/testvol&nbsp;&nbsp; 20G&nbsp; 2.9G&nbsp;&nbsp; 18G&nbsp; 15% /storage-pool<br /><br />Even If I umount/mount the volume, It&#39;s always 20G.<br />Should it not display a size of 30GB ?<br />Like if I create a distributed volume and the add-brick with replicate option<br /><br /># gluster volume create testvol transport tcp node-01:/export/sdb1/brick node-02:/export/sdb1/brick node-03:/export/sdb1/brick<br /># gluster volume start testvol<br /># gluster volume add-brick testvol replica 2 node-04:/export/sdb1/brick node-05:/export/sdb1/brick node-06:/export/sdb1/brick<br /># gluster volume info testvol<br /><br />Volume Name: testvol<br />Type: Distributed-Replicate<br />Volume ID: 31159749-85fb-4006-8240-25b74a7eb537<br />Status: Started<br />Number of Bricks: 3 x 2 = 6<br />Transport-type: tcp<br />Bricks:<br />Brick1: node-01:/export/sdb1/brick<br />Brick2: node-04:/export/sdb1/brick<br />Brick3: node-02:/export/sdb1/brick<br />Brick4: node-05:/export/sdb1/brick<br />Brick5: node-03:/export/sdb1/brick<br />Brick6: node-06:/export/sdb1/brick<br /><br />On client : <br /># df -h /storage-pool/<br />Filesystem&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Size&nbsp; Used Avail Use% Mounted on<br />node-01:/testvol&nbsp;&nbsp; 30G&nbsp;&nbsp; 97M&nbsp;&nbsp; 30G&nbsp;&nbsp; 1% /storage-pool<br /><br />I&#39;m using glusterfs-server 3.5.0 on Ubuntu 14.04 Trusty.<br /><br />Any help is welcome.<br />Best regards,<br />Hugues</p></div> <pre>
_______________________________________________
 Gluster-users mailing list
 Gluster-users@gluster.org
 http://supercolony.gluster.org/mailman/listinfo/gluster-users</pre>  </blockquote>
</body>
</html>