<div dir="ltr">Hi ,<br>&nbsp;&nbsp;&nbsp; thanks for reply. And pls see my comment inline. And&nbsp; question is still pending. has any <span class="related_definition"><bdo>more grace<span class="comment"> way</span></bdo></span> to fix this issue?? <br>
<br>Regards<br>Baggio<br><br><br><br><br><div class="gmail_quote">2008/7/23 Keith Freedman &lt;<a href="mailto:freedman@freeformit.com">freedman@freeformit.com</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I had 2 situations with pre-existing data and I solved the both 2 different ways.<br>
<br>
1), I followed the instructions in the link provided, however, I was running xfs on the underlying filesystem and so the command to add attributes is different.<br>
in this case, it&#39;s attr instead of setfattr to set the extended attribute. &nbsp;Also, I *think* the actual attribute name is different.</blockquote><div>&nbsp;&nbsp; <br><span style="color: rgb(0, 0, 153);">&nbsp;&nbsp; The extension attr names are hard-code , so it should not change according to underlying fs.</span><br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
so, what I recommend is to create one file through gluster, view it&#39;s extended attributes through the base filesystem then apply those to the remaining files.<br>
<br>
2) This is the less friendly but more surefire solution:<br>
make the gluster source point a sub directory in the source filesystem.<br>
then &quot;move&quot; the files into the gluster filesystem.<br>
This is less handy for &quot;live&quot; data, but it does insure the existing data is properly &quot;glustered&quot;</blockquote><div>&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(0, 0, 153);">This way can make data right, but too many extra cost has been involved. In our plan, hundreds of TB should be stored in this fs , This loop may cost several days . So it can not be tolerated.</span><br>
&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
here&#39;s what I did:<br>
CURRENT SOURCE: /home<br>
GLUSTER SOURCE /home/home<br>
GLUSTER MOUNT POINT /gluster/home<br>
<br>
(this may not be syntatically correct):<br>
cd /home<br>
for i in *<br>
do<br>
if [ $i != &#39;glusterhome&#39; ]<br>
 &nbsp;mv $i glusterhome<br>
 &nbsp;ln -s gluster/home/$i $i<br>
fi<br>
<br>
then unmount /gluster/home, unmount /home &nbsp; remount /home on /gluster<br>
now you have /gluster/home with your data which has the gluster attributes attached.<br>
mount glusterfs from /gluster/home &nbsp;to /home<br>
<br>
I actually used this second procedure &nbsp;to get the data onto my new AFR mirror. &nbsp;It slowed the process down since it was replicating 50GB of data while moving it form disk to disk, but I&#39;m not sure it slowed it down much. &nbsp;</blockquote>
<div><br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">it seems to really mostly just reduce disk thrashing and my copy was going at near network speed.</blockquote>
<div>&nbsp;</div><div>&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: rgb(0, 0, 153);">&nbsp;&nbsp;&nbsp; BTW, I&#39;m not very clear of it, Could you explain in detail? or list some example, test result, and so on. thx</span><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
Keith<div class="Ih2E3d"><br>
At 07:11 PM 7/22/2008, baggio liu wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
Hi guys,<br>
 &nbsp; I have configured a cluster with unify over afr. one of server in afr has some pre-existing &nbsp;data. &nbsp;And I want to make these data can be seen by client.<br>
 &nbsp; Some &nbsp;config have been done according to<br>
 &nbsp; &nbsp; &nbsp;&quot;Setting up AFR on two servers with pre-existing data&quot;<br>
<br></div>
&lt;<a href="http://gluster.org/docs/index.php/Setting_up_AFR_on_two_servers_with_pre-existing_data" target="_blank">http://gluster.org/docs/index.php/Setting_up_AFR_on_two_servers_with_pre-existing_data</a>&gt;<a href="http://gluster.org/docs/index.php/Setting_up_AFR_on_two_servers_with_pre-existing_data" target="_blank">http://gluster.org/docs/index.php/Setting_up_AFR_on_two_servers_with_pre-existing_data</a><div class="Ih2E3d">
<br>
 &nbsp; But namespace can not aware with those data.<br>
 &nbsp; After afr completing, ls at client , pre-existing &nbsp;data can not be seen. cat &nbsp;them, Input/output error can be found.<br>
<br>
<br>
 &nbsp; What should I fix them? Thank you for any help.<br>
<br>
Regards<br>
Baggio<br></div>
_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
<a href="http://zresearch.com/cgi-bin/mailman/listinfo/gluster-users" target="_blank">http://zresearch.com/cgi-bin/mailman/listinfo/gluster-users</a><br>
</blockquote>
<br>
</blockquote></div><br></div>