<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 11/13/2013 05:24 PM, Raphael Rabelo
wrote:<br>
</div>
<blockquote
cite="mid:CAMOH6nCHeBwG2unWx=utK48N8iVGwJyvT9UEXv_oR4iVH1hBsA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>Hi everybody,<br>
<br>
</div>
I'm Brazillian and new member in the list, and i need
a little help.<br>
<br>
</div>
Scenary: <br>
<br>
</div>
2 servers in replicated mode (server1 and server2)<br>
</div>
1 new server - server3 - that I'll replace by server2.<br>
<br>
</div>
Today i has just one volume (gv0) and 2 bricks - servergv01
and server2.<br>
</div>
<div>I want replace server2 by server3, the volume (gv0) has a
1.1T in total used space.<br>
<br>
</div>
<div>The steps that i followed was:<br>
<br>
</div>
<div>1. gluster peer probe server3<br>
</div>
<div>2. gluster volume replace-brick gv0 server2:/data
server3:/data start<br>
<br>
</div>
<div>After 2 days, the status of the migration was:<br>
<br>
Number of files migrated = 4308293 Migration Complete<br>
<br>
</div>
<div>But just was copied 821G of server2:<br>
</div>
<div>This is the second time that it occurs, the first time just
was copied 124G.<br>
<br>
</div>
<div>My gluster version is 3.3.1<br>
<br>
Can anyone help to find a solutjon, i need to remove all files
and start again ?<br>
<br>
</div>
<div>Thanks!<br>
<br>
</div>
</div>
</blockquote>
<br>
Replace brick code has some issues. Hence there are plans to retire
replace brick for cases where data migration is required (there was
a discussion in gluster-devel about it). However we can use add
brick and remove brick in a way which will work as a replacement for
replace-brick. Below are the steps.<br>
<br>
<ul>
<li>Add new brick</li>
</ul>
# gluster volume add-brick <VOLNAME>
[<replica> <COUNT>] <NEW-BRICK> ...
<ul>
<li><strong>Do not</strong><b> run rebalance</b></li>
</ul>
<ul>
<li>Remove old brick</li>
</ul>
<p> #gluster volume remove-brick <VOLNAME>
[replica <COUNT>] <BRICK> ... start</p>
<ul>
<li>#gluster volume remove-brick <VOLNAME> [replica
<COUNT>] <BRICK> ... status</li>
</ul>
<ul>
<li>Once status shows all completed,</li>
</ul>
<ul>
<li>#gluster volume remove-brick <VOLNAME> [replica
<COUNT>] <BRICK> ... commit</li>
</ul>
Thanks,<br>
Lala<br>
<blockquote
cite="mid:CAMOH6nCHeBwG2unWx=utK48N8iVGwJyvT9UEXv_oR4iVH1hBsA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>rabeloo<br>
</div>
<a moz-do-not-send="true" href="http://raphaelr.com.br"
target="_blank">http://raphaelr.com.br</a></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://supercolony.gluster.org/mailman/listinfo/gluster-users">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a></pre>
</blockquote>
<br>
</body>
</html>