Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Feb 2008 23:39:59 +0100 (CET)
From:      Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
To:        Gunther Mayer <gunther.mayer@googlemail.com>
Cc:        questions@freebsd.org
Subject:   Re: automatic fsck on gmirror failure
Message-ID:  <20080203233311.X7800@wojtek.tensor.gdynia.pl>
In-Reply-To: <47A6287C.9040902@gmail.com>
References:  <47A6287C.9040902@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
it failed while rebuilding with badly written data on the disk that was 
used, while other rebuild.

now it can't read it.

if you are sure that it doesn't pass through fsck before second reboot, do 
the following.

1) turn off gmirror

2) clear gmirror header on both providers

3) run fsck the other drive (not ad6, but the other used on mirror).

4) pray

5) after fsck will end it successfully (it should), create gmirror with 
the disk you checked

gmirror label <options> gmirror-name /dev/thedisk

6) reboot and start the system. should go well.

7) after system is running and not too much needing disk I/O, do

gmirror insert gmirror-name /dev/ad6

8) pray again, but with much less fear.

9) if gmirror will finish rebuild, all right.

if you got write errors in log, ad6 needs to be replaced.


wish it helps.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080203233311.X7800>