<html><head></head><body>Reposting to gluster-users as this is not development related. <br><br><div class="gmail_quote">On November 11, 2016 6:32:49 AM PST, Pranith Kumar Karampuri &lt;pkarampu@redhat.com&gt; wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr"><br /><div class="gmail_extra"><br /><div class="gmail_quote">On Fri, Nov 11, 2016 at 8:01 PM, Pranith Kumar Karampuri <span dir="ltr">&lt;<a href="mailto:pkarampu@redhat.com" target="_blank">pkarampu@redhat.com</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"><br /><div class="gmail_extra"><br /><div class="gmail_quote"><span class="">On Fri, Nov 11, 2016 at 6:24 PM, Saravanakumar Arumugam <span dir="ltr">&lt;<a href="mailto:sarumuga@redhat.com" target="_blank">sarumuga@redhat.com</a>&gt;</span> wrote:<br /><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><br />
<br />
On 11/11/2016 06:03 PM, Sander Eikelenboom wrote:<br />
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
L.S.,<br />
<br />
I was wondering if it would be possible to turn an existing filesystem with data<br />
(ext4 with files en dirs) into a GlusterFS brick ?<br />
</blockquote></span>
It is not possible, at least I am not aware about any such solution yet.<span><br />
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br />
I can&#39;t find much info about it except the following remark at [1] which seems<br />
to indicate it is not possible yet:<br />
<br />
        Data import tool<br />
<br />
        Create a tool which will allow importing already existing data in the brick<br />
        directories into the gluster volume.<br />
        This is most likely going to be a special rebalance process.<br />
<br />
So that would mean i would always have to:<br />
- first create an GlusterFS brick on an empty filesystem<br />
- after that copy all the data into the mounted GlusterFS brick<br />
- never ever copy something into the filesystem (or manipulate it otherwise)<br />
  used as a GlusterFS brick directly (without going through a GlusterFS client mount)<br />
<br />
because there is no checking / healing between GlusterFS&#39;s view on the data and the data in the<br />
underlying brick filesystem ?<br />
<br />
Is this a correct view ?<br />
<br />
</blockquote></span>
you are right !<br />
Once the data is copied into Gluster, it internally creates meta-data about data(file/dir).<br />
Unless you copy it via Gluster mount point, it is NOT possible to create such meta-data.<br /></blockquote><div><br /></div></span><div>No, it is possible. You just need to be a bit creative.<br /><br /></div><div>Could you let me know how many such bricks you have which you want to convert to glusterfs. It seems like you want replication as well. So if you give me all this information. With your help may be we can at least come up with a document on how this can be done.<br /></div></div></div></div></blockquote><div><br /></div><div>Once the import is complete, whatever you are saying about not touching the brick directly and doing everything from the mount point holds. But we can definitely convert an existing ext4 directory structure into a volume.<br /> <br /></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div></div><span
class=""><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br />
Thanks,<br />
Saravana<div class="m_6332858734664342639HOEnZb"><div class="m_6332858734664342639h5"><br />
<br />
______________________________<wbr />_________________<br />
Gluster-devel mailing list<br />
<a href="mailto:Gluster-devel@gluster.org" target="_blank">Gluster-devel@gluster.org</a><br />
<a href="http://www.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">http://www.gluster.org/mailman<wbr />/listinfo/gluster-devel</a><br />
</div></div></blockquote></span></div><span class="HOEnZb"><font color="#888888"><br /><br clear="all" /><br />-- <br /></font><div class="m_6332858734664342639gmail_signature" data-smartmail="gmail_signature"><font color="#888888"></font><div dir="ltr"><font color="#888888">Pranith<br /></font></div></div>
</span></div></div>
</blockquote></div><br /><br clear="all" /></div></div></blockquote></div><br>
-- <br>
Sent from my Android device with K-9 Mail. Please excuse my brevity.</body></html>