<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi,</p>
<p>I'm trying to use the reset-brick command, but it's not
completely clear to me<br>
</p>
<p>
<blockquote type="cite">
<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>
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>
<blockquote type="cite">
<p>Start reset process -</p>
<pre><code class="bash hljs">gluster volume reset-brick VOLNAME HOSTNAME:BRICKPATH start
</code></pre>
</blockquote>
This works, I can see in gluster volume status the brick is not
there anymore<br>
<blockquote type="cite">
<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 type="cite">
<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>
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 />
<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>