<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
On 6/4/12 4:05 AM, Jacques du Rand wrote:
<blockquote
cite="mid:CA+-VnXA78ELR2PNF5Qq4DSrH2FXaasE2+Nr05DYRkU4dVnjbFg@mail.gmail.com"
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>
Only if you want to access the files within the volume on the two
servers which have the bricks on them.<br>
<blockquote
cite="mid:CA+-VnXA78ELR2PNF5Qq4DSrH2FXaasE2+Nr05DYRkU4dVnjbFg@mail.gmail.com"
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>
Probably hit and miss what you see, since your bricks are not
consistent.<br>
<blockquote
cite="mid:CA+-VnXA78ELR2PNF5Qq4DSrH2FXaasE2+Nr05DYRkU4dVnjbFg@mail.gmail.com"
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>
Correct - Gluster can't keep track of writes if you don't do it
through the glusterfs mount point.<br>
<blockquote
cite="mid:CA+-VnXA78ELR2PNF5Qq4DSrH2FXaasE2+Nr05DYRkU4dVnjbFg@mail.gmail.com"
type="cite">
<div>
<div>
<br>
</div>
<div>Question (4.1)</div>
<div>-Whats the best-practise to sync existing "data" ?</div>
</div>
</blockquote>
You will need to force a manual self-heal and see if that copies all
the data over to the other brick.<br>
<br>
<meta charset="utf-8">
<pre style="margin: 0px; padding: 0px; font-size: 12px; line-height: 14px; font-family: 'Courier New'; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">find /mnt/gfstest -noleaf -print0 | xargs --null stat >/dev/null</pre>
<br>
<blockquote
cite="mid:CA+-VnXA78ELR2PNF5Qq4DSrH2FXaasE2+Nr05DYRkU4dVnjbFg@mail.gmail.com"
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>
As long as you force a self-heal on it before you use it.<br>
<blockquote
cite="mid:CA+-VnXA78ELR2PNF5Qq4DSrH2FXaasE2+Nr05DYRkU4dVnjbFg@mail.gmail.com"
type="cite">
<div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
<div><br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Gluster-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a>
<a class="moz-txt-link-freetext" href="http://gluster.org/cgi-bin/mailman/listinfo/gluster-users">http://gluster.org/cgi-bin/mailman/listinfo/gluster-users</a>
</pre>
</blockquote>
</body>
</html>