Hi David<div>Thanks for clearing it up</div><div>With regards to the "self-heal":</div><div><span style="font-family:'Courier New';font-size:12px;line-height:14px">find /mnt/gfstest -noleaf -print0 | xargs --null stat >/dev/null</span></div>
<div><span style="font-family:'Courier New';font-size:12px;line-height:14px"><br></span></div><div><span style="font-family:'Courier New';font-size:12px;line-height:14px"><br></span></div><div><span style="font-family:'Courier New';font-size:12px;line-height:14px">a) I do this on the server(1|2|client|doesnt-matter) ? IF server1 is the one with the latest copy of data</span></div>
<div><span style="font-family:'Courier New';font-size:12px;line-height:14px"><br></span></div><div><span style="font-family:'Courier New';font-size:12px;line-height:14px">b) Would the self-heal i've been reading about in 3.3 not take care of this over time ?</span></div>
<div><span style="font-family:'Courier New';font-size:12px;line-height:14px"><br></span></div><div><span style="font-family:'Courier New';font-size:12px;line-height:14px">c) If server1:/data has the latest copy of the date compared to server2:/data (so if there are any question regarding which data to replicate/replace/use gluster MUST use data from server1 (until it's fully sync again))</span></div>
<div><span style="font-family:'Courier New';font-size:12px;line-height:14px">Does it matter what order i use the servers at the create stage (keep in mind i want to force all data to be from server1:/data")</span></div>
<div><span style="font-family:'Courier New';font-size:12px;line-height:14px"><br></span></div><div><span style="font-family:'Courier New';font-size:12px;line-height:14px">"gluster volume create testvol replica 2 server1:/data"server2:data"</span></div>
<div><span style="font-family:'Courier New';font-size:12px;line-height:14px"><br></span></div><div><span style="font-family:'Courier New';font-size:12px;line-height:14px"><br></span></div><div><span style="font-family:'Courier New';font-size:12px;line-height:14px">Best Regards</span></div>
<div><span style="font-family:'Courier New';font-size:12px;line-height:14px">Jacques</span></div><div><span style="font-family:'Courier New';font-size:12px;line-height:14px"><br></span></div><div><font face="Courier New"><span style="font-size:14px;line-height:14px"><br>
</span></font></div><div><div class="gmail_quote">On Mon, Jun 4, 2012 at 12:21 PM, David Coulson <span dir="ltr"><<a href="mailto:david@davidcoulson.net" target="_blank">david@davidcoulson.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div class="im">
<br>
<br>
On 6/4/12 4:05 AM, Jacques du Rand wrote:
<blockquote type="cite">HI Guys
<div>This all applies to Gluster3.3</div>
<div><br>
<div>I love gluster but I'm having
some difficulties understanding some things.</div>
<div><br>
</div>
<div>1.Replication(with existing data):</div>
<div>Two servers in simple single brick replication. ie 1 volume
(testvol)</div>
<div>-server1:/data/ && server2:/data/ </div>
<div>-server1 has a few millions files in the /data dir</div>
<div>-server2 has a no files in /data dir</div>
<div><br>
</div>
<div>So after i created the testvol and started the volume</div>
<div>QUESTION (1): Do i need to mount each volume on the
servers like so ? If yes why ?</div>
<div>---> on server1: mount -t gluster 127.0.0.1:/testvol
/mnt/gfstest</div>
<div>---> on server2: mount -t gluster 127.0.0.1:/testvol
/mnt/gfstest</div>
</div>
</blockquote></div>
Only if you want to access the files within the volume on the two
servers which have the bricks on them.<div class="im"><br>
<blockquote type="cite">
<div>
<div><br>
</div>
<div>CLIENT:</div>
<div>Then I mount the client:</div>
<div>mount server-1-ip:/testvol /mnt/gfstest </div>
<div><br>
</div>
<div>Question(2) :</div>
<div>I only see files from server2 ???</div>
</div>
</blockquote></div>
Probably hit and miss what you see, since your bricks are not
consistent.<div class="im"><br>
<blockquote type="cite">
<div>
<div><br>
</div>
<div>
Question (3)</div>
<div>Whenever I'm writing/updating/working with the files on the
SERVER i should ALWAYS do it via the (local mount
)/mnt/gfstest. I should never work with files directly in the
bricks /data ??</div>
</div>
</blockquote></div>
Correct - Gluster can't keep track of writes if you don't do it
through the glusterfs mount point.<div class="im"><br>
<blockquote type="cite">
<div>
<div>
<br>
</div>
<div>Question (4.1)</div>
<div>-Whats the best-practise to sync existing "data" ?</div>
</div>
</blockquote></div>
You will need to force a manual self-heal and see if that copies all
the data over to the other brick.<br>
<br>
<pre style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;padding:0px;line-height:14px;text-transform:none;font-size:12px;margin:0px;font-family:'Courier New';word-spacing:0px">
find /mnt/gfstest -noleaf -print0 | xargs --null stat >/dev/null</pre><div class="im">
<br>
<blockquote type="cite">
<div>
<div><br>
</div>
<div>Question (4.2)</div>
<div>-Is it safe to create a brick in a directory that already
has files in it ?</div>
</div>
</blockquote>
<br></div>
As long as you force a self-heal on it before you use it.<br>
<blockquote type="cite">
<div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
<div><br>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Gluster-users mailing list
<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a>
<a href="http://gluster.org/cgi-bin/mailman/listinfo/gluster-users" target="_blank">http://gluster.org/cgi-bin/mailman/listinfo/gluster-users</a>
</pre>
</blockquote>
</div>
</blockquote></div><br></div>