<div dir="ltr"><div><br>Thank you Daniel for you more comments.<br><br>Now I can remove the damaged zfs brick after rebooting the system. But then what can I do to rejoin a new brick? I can&#39;t run gluster volume replace-brick because the old brick is gone. I can&#39;t even remove the old brick because the gluster&#39;s replicate count is 2. So what is the right procedure to replace a failed brick for replicate gluster volume? <br>
<br></div>Liang<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 10, 2013 at 11:57 AM, Daniel Taylor <span dir="ltr">&lt;<a href="mailto:dtaylor@vocalabs.com" target="_blank">dtaylor@vocalabs.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I&#39;m not familiar with zfs in particular, but it should have given you a message saying why it won&#39;t unmount.<br>

<br>
In the worst case you can indeed remove the mount point from /etc/fstab and reboot. A hard reboot may be necessary in a case like this.<div class="im"><br>
<br>
On 01/10/2013 10:43 AM, Liang Ma wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
Yes, I stopped the glusterfs service on the damaged system but zfs still won&#39;t allow me to umount the filesystem. Maybe I should try to shutdown the entire system.<br>
<br>
<br></div><div class="im">
On Wed, Jan 9, 2013 at 10:28 AM, Daniel Taylor &lt;<a href="mailto:dtaylor@vocalabs.com" target="_blank">dtaylor@vocalabs.com</a> &lt;mailto:<a href="mailto:dtaylor@vocalabs.com" target="_blank">dtaylor@vocalabs.com</a>&gt;&gt; wrote:<br>

<br>
<br>
    On 01/09/2013 08:31 AM, Liang Ma wrote:<br>
<br>
<br>
        Hi Daniel,<br>
<br>
        Ok, if gluster can&#39;t self-heal from this situation, I hope at<br>
        least I can manually restore the volume by using the good<br>
        brick available. So would you please tell me how can I &quot;simply<br>
        rebuild the filesystem and let gluster attempt to restore it<br>
        from a *clean* filesystem&quot;?<br>
<br>
<br>
    Trimmed for space.<br>
<br>
    You could do as Tom Pfaff suggests, but given the odds of data<br>
    corruption carrying forward I&#39;d do the following:<br>
    Shut down gluster on the damaged system.<br>
    Unmount the damaged filesystem.<br>
    Reformat the damaged filesystem as new (throwing away any<br>
    potential corruption that might not get caught on rebuild)<br>
    Mount the new filesystem at the original mount point<br>
    Restart gluster<br>
<br>
    In the event of corruption due to hardware failure you&#39;d be doing<br>
    this on replacement hardware.<br>
    The key is you have to have a functional filesystem for gluster to<br>
    work with.<br>
<br>
<br>
    --     Daniel Taylor             VP Operations       Vocal Laboratories, Inc<br></div>
    <a href="mailto:dtaylor@vocalabs.com" target="_blank">dtaylor@vocalabs.com</a> &lt;mailto:<a href="mailto:dtaylor@vocalabs.com" target="_blank">dtaylor@vocalabs.com</a>&gt; <a href="tel:612-235-5711" value="+16122355711" target="_blank">612-235-5711</a><br>

    &lt;tel:<a href="tel:612-235-5711" value="+16122355711" target="_blank">612-235-5711</a>&gt;<br>
<br>
    ______________________________<u></u>_________________<br>
    Gluster-users mailing list<br>
    <a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a> &lt;mailto:<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.<u></u>org</a>&gt;<br>
    <a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.<u></u>org/mailman/listinfo/gluster-<u></u>users</a><br>
<br>
<br>
</blockquote><div class="HOEnZb"><div class="h5">
<br>
-- <br>
Daniel Taylor             VP Operations       Vocal Laboratories, Inc<br>
<a href="mailto:dtaylor@vocalabs.com" target="_blank">dtaylor@vocalabs.com</a>                                     <a href="tel:612-235-5711" value="+16122355711" target="_blank">612-235-5711</a><br>
<br>
______________________________<u></u>_________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
<a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.<u></u>org/mailman/listinfo/gluster-<u></u>users</a><br>
</div></div></blockquote></div><br></div>