From owner-freebsd-questions@FreeBSD.ORG Sat Jun 26 04:01:23 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0ABEA16A4CE for ; Sat, 26 Jun 2004 04:01:23 +0000 (GMT) Received: from av2-1-sn3.vrr.skanova.net (av2-1-sn3.vrr.skanova.net [81.228.9.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id C2E3543D2F for ; Sat, 26 Jun 2004 04:01:22 +0000 (GMT) (envelope-from daniel_k_eriksson@telia.com) Received: by av2-1-sn3.vrr.skanova.net (Postfix, from userid 502) id DD6ED37FB0; Sat, 26 Jun 2004 06:01:05 +0200 (CEST) Received: from smtp1-2-sn3.vrr.skanova.net (smtp1-2-sn3.vrr.skanova.net [81.228.9.178]) by av2-1-sn3.vrr.skanova.net (Postfix) with ESMTP id CCC7A37E44; Sat, 26 Jun 2004 06:01:05 +0200 (CEST) Received: from gadget (h130n1fls11o822.telia.com [213.64.66.130]) by smtp1-2-sn3.vrr.skanova.net (Postfix) with ESMTP id 9511738002; Sat, 26 Jun 2004 06:01:05 +0200 (CEST) From: "Daniel Eriksson" To: "'Benjamin P. Keating'" , Date: Sat, 26 Jun 2004 06:01:10 +0200 Organization: Home Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 In-Reply-To: <1d54d54404062518474bbb3494@mail.gmail.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Importance: Normal Subject: RE: fsck'ing a Vinum RAID5 volume (and a stale drive) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jun 2004 04:01:23 -0000 Benjamin P. Keating wrote: > Is > this approach correct? does this do anything productive or just forces > the state label to change and do nothing to the drives? I don't feel > confident that it did anything and Im having a VERY hard time finding > documentation on this. Let me give you an example of a valid setstate use case: One of my servers has a LOT of discs. For some reason I suffer from interrupt storms during device probing (started after I added a second Highpoint RocketRAID 454 to the machine). These storms sometime prevent = the ata code from detecting all the discs. If this happens to be a disc that = is part of a RAID-0 array, then when vinum starts up it detects that one of = the discs have disappeared and (correctly) marks the array as crashed. There = is no "proper" way to recover from a crashed RAID-0 array - your data is normally lost forever. However, in this specific case I _know_ that = nothing has been written to the discs, so once I get the missing disc back = online I can use setstate to change the array status from crashed to up, = confident that no data has actually been lost. There are a few other use cases for setstate, but they are all (?) = outside of the normal procedures for using and maintaining RAID arrays. /Daniel Eriksson