<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Ashish,</p>
<p>Thanks for the information.<br>
</p>
<p>Weird, I did another test and it works fine now. Maybe I did
something wrong the first time...</p>
<p>I will try it a couple more times to see if I can reproduce..<br>
</p>
<p>Regards, Jorick<br>
</p>
<br>
<div class="moz-cite-prefix">On 12/12/2017 03:00 AM, Ashish Pandey
wrote:<br>
</div>
<blockquote
cite="mid:233607176.36378033.1513044021261.JavaMail.zimbra@redhat.com"
type="cite">
<div style="font-family: times new roman, new york, times, serif;
font-size: 12pt; color: #000000">
<div>Hi <span color="000000"><span lang="NL">Jorick,</span></span><br>
</div>
<div><span color="000000"><span lang="NL"><br>
</span></span></div>
<div><span color="000000"><span lang="NL">1 - Why would I even
need to specify the "<code class="bash hljs">HOSTNAME:BRICKPATH</code>"
twice? I just want to replace the disk and get it back
into the volume.<br>
</span></span></div>
<div><span color="000000"><span lang="NL"><br>
</span></span></div>
<div><span color="000000"><span lang="NL">Reset brick command
can be used in different scenarios. One more case could be
where you just want to change the host name to IP address
of that node of bricks.<br>
</span></span></div>
<div><span color="000000"><span lang="NL">In this case also you
will follow the same steps but just have to provide IP
address<br>
</span></span></div>
<div><span color="000000"><span lang="NL"><br>
</span></span></div>
<div><span color="000000"><span lang="NL">gluster volume
reset-brick glustervol
gluster1:/gluster/brick1/glusterbrick1 <strong><em>"gluster1
IP address"</em></strong>:/gluster/brick1/glusterbrick1
commit force</span></span></div>
<div><span color="000000"><span lang="NL"><br>
</span></span></div>
<div><span color="000000"><span lang="NL">Now as we have this
command for different cases, to keep uniformity of the
command, we chose to provide brick path twice.</span></span></div>
<div><span color="000000"><span lang="NL"><br>
</span></span></div>
<div><span color="000000"><span lang="NL">Coming to your case, I
think you followed all the steps correctly and it should
be successful.<br>
</span></span></div>
<div><span color="000000"><span lang="NL">Please provide guster
volume status of the volume and also try to use "commit
force" and only "commit" and let us know the result. </span></span></div>
<div><span color="000000"><span lang="NL">You may have to raise
a bug if it does not work so be prepared to provide
glusterd logs in /var/log/glusterfs/<br>
</span></span></div>
<div><span color="000000"><span lang="NL"><br>
</span></span></div>
<div><span color="000000"><span lang="NL">--<br>
</span></span></div>
<div><span color="000000"><span lang="NL">Ashish<br>
</span></span></div>
<div><span style="color: #604c78;" data-mce-style="color:
#604c78;"><span color="000000"><span lang="NL"> <br>
</span></span></span></div>
<div><br>
</div>
<hr id="zwchr">
<div
style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"
data-mce-style="color: #000; font-weight: normal; font-style:
normal; text-decoration: none; font-family:
Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Jorick
Astrego" <a class="moz-txt-link-rfc2396E" href="mailto:jorick@netbulae.eu"><jorick@netbulae.eu></a><br>
<b>To: </b><a class="moz-txt-link-abbreviated" href="mailto:gluster-users@gluster.org">gluster-users@gluster.org</a><br>
<b>Sent: </b>Monday, December 11, 2017 7:32:53 PM<br>
<b>Subject: </b>[Gluster-users] reset-brick command questions<br>
<div><br>
</div>
<p>Hi,</p>
<p>I'm trying to use the reset-brick command, but it's not
completely clear to me<br>
</p>
<blockquote>
<h3 id="introducing-reset-brick-command">Introducing
reset-brick command</h3>
<p><em>Notes for users:</em> The reset-brick command
provides support to reformat/replace the disk(s)
represented by a brick within a volume. This is helpful
when a disk goes bad etc</p>
</blockquote>
<p>That's what I need, the use case is a disk goes bad on a
disperse gluster node and we want to replace it with a new
disk<br>
</p>
<blockquote>
<p>Start reset process -</p>
<pre><code class="bash hljs">gluster volume reset-brick VOLNAME HOSTNAME:BRICKPATH start
</code></pre>
</blockquote>
<p>This works, I can see in gluster volume status the brick is
not there anymore<br>
</p>
<blockquote>
<p>The above command kills the respective brick process. Now
the brick can be reformatted.</p>
<p>To restart the brick after modifying configuration -</p>
<pre><code class="bash hljs">gluster volume reset-brick VOLNAME HOSTNAME:BRICKPATH HOSTNAME:BRICKPATH commit
</code></pre>
</blockquote>
<blockquote>
<p>If the brick was killed to replace the brick with same
brick path, restart with following command -</p>
<pre><code class="bash hljs">gluster volume reset-brick VOLNAME HOSTNAME:BRICKPATH HOSTNAME:BRICKPATH commit force
</code></pre>
</blockquote>
<p>This fails, I unmounted the gluster path, formatted a fresh
disk, mounted it on the old mount point and created the
brick subdir on it.</p>
<blockquote>
<p>gluster volume reset-brick glustervol
gluster1:/gluster/brick1/glusterbrick1
gluster1:/gluster/brick1/glusterbrick1 commit force<br>
</p>
<p>volume reset-brick: failed: Source brick must be stopped.
Please use gluster volume reset-brick <volname>
<dst-brick> start.</p>
</blockquote>
<p>Why would I even need to specify the "<code class="bash
hljs">HOSTNAME:BRICKPATH</code>" twice? I just want to
replace the disk and get it back into the volume.<br>
</p>
<blockquote>
<p><br>
</p>
</blockquote>
<br>
<br>
<br>
<div><br>
</div>
<span style="color:#604c78;" data-mce-style="color: #604c78;"><span
style="color:#604c78;" data-mce-style="color: #604c78;"><span
data-mce-style="color: #000000;" style="color: #000000;"><span
style="mso-fareast-language:en-gb;"
data-mce-style="mso-fareast-language: en-gb;"
lang="NL">Met vriendelijke groet, With kind regards,<br>
</span></span></span></span>
<div><br>
</div>
<span style="color:#604c78;" data-mce-style="color: #604c78;"><span
data-mce-style="color: #000000;" style="color: #000000;"><span
style="mso-fareast-language:en-gb;"
data-mce-style="mso-fareast-language: en-gb;" lang="NL">Jorick
Astrego<br>
</span></span></span><b style="color:#604c78"
data-mce-style="color: #604c78;"><br>
Netbulae Virtualization Experts </b><br>
<hr style="border:none;border-top:1px solid #ccc;"
data-mce-style="border: none; border-top: 1px solid #ccc;">
<table style="width: 522px" data-mce-style="width: 522px;"
class="mceItemTable">
<tbody>
<tr>
<td style="width: 130px;font-size: 10px"
data-mce-style="width: 130px; font-size: 10px;">Tel:
053 20 30 270</td>
<td style="width: 130px;font-size: 10px"
data-mce-style="width: 130px; font-size: 10px;"><a class="moz-txt-link-abbreviated" href="mailto:info@netbulae.eu">info@netbulae.eu</a></td>
<td style="width: 130px;font-size: 10px"
data-mce-style="width: 130px; font-size: 10px;">Staalsteden
4-3A</td>
<td style="width: 130px;font-size: 10px"
data-mce-style="width: 130px; font-size: 10px;">KvK
08198180</td>
</tr>
<tr>
<td style="width: 130px;font-size: 10px"
data-mce-style="width: 130px; font-size: 10px;">Fax:
053 20 30 271</td>
<td style="width: 130px;font-size: 10px"
data-mce-style="width: 130px; font-size: 10px;"><a class="moz-txt-link-abbreviated" href="http://www.netbulae.eu">www.netbulae.eu</a></td>
<td style="width: 130px;font-size: 10px"
data-mce-style="width: 130px; font-size: 10px;">7547
TA Enschede</td>
<td style="width: 130px;font-size: 10px"
data-mce-style="width: 130px; font-size: 10px;">BTW
NL821234584B01</td>
</tr>
</tbody>
</table>
<br>
<hr style="border:none;border-top:1px solid #ccc;"
data-mce-style="border: none; border-top: 1px solid #ccc;"><br>
<br>
_______________________________________________<br>
Gluster-users mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.gluster.org/mailman/listinfo/gluster-users">http://lists.gluster.org/mailman/listinfo/gluster-users</a></div>
<div><br>
</div>
</div>
</blockquote>
<br>
<BR />
<BR />
<b style="color:#604c78"></b><br><br><span style="color:#604c78;"><font color="000000"><span style="mso-fareast-language:en-gb;" lang="NL">Met vriendelijke groet, With kind regards,<br><br>Jorick Astrego<br></span></font></span><b style="color:#604c78"><br>Netbulae Virtualization Experts </b><br><hr style="border:none;border-top:1px solid #ccc;"><table style="width: 522px"><tbody><tr><td style="width: 130px;font-size: 10px">Tel: 053 20 30 270</td> <td style="width: 130px;font-size: 10px">info@netbulae.eu</td> <td style="width: 130px;font-size: 10px">Staalsteden 4-3A</td> <td style="width: 130px;font-size: 10px">KvK 08198180</td></tr><tr> <td style="width: 130px;font-size: 10px">Fax: 053 20 30 271</td> <td style="width: 130px;font-size: 10px">www.netbulae.eu</td> <td style="width: 130px;font-size: 10px">7547 TA Enschede</td> <td style="width: 130px;font-size: 10px">BTW NL821234584B01</td></tr></tbody></table><br><hr style="border:none;border-top:1px solid #ccc;"><BR />
</body>
</html>