From owner-freebsd-questions@FreeBSD.ORG Fri May 14 20:36:52 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 C739A16A4CE for ; Fri, 14 May 2004 20:36:52 -0700 (PDT) Received: from ozlabs.org (ozlabs.org [203.10.76.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7FBFA43D39 for ; Fri, 14 May 2004 20:36:51 -0700 (PDT) (envelope-from grog@lemis.com) Received: from blackwater.lemis.com (blackwater.lemis.com [192.109.197.80]) by ozlabs.org (Postfix) with ESMTP id 88E962BD7B for ; Sat, 15 May 2004 13:36:49 +1000 (EST) Received: by blackwater.lemis.com (Postfix, from userid 1004) id 9B1DA51200; Sat, 15 May 2004 13:06:47 +0930 (CST) Date: Sat, 15 May 2004 13:06:47 +0930 From: Greg 'groggy' Lehey To: Doug Poland Message-ID: <20040515033647.GV74538@wantadilla.lemis.com> References: <200405150122.i4F1MblG013038@galilee.polands.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EyuBRJR0MsVMWKTf" Content-Disposition: inline In-Reply-To: <200405150122.i4F1MblG013038@galilee.polands.org> User-Agent: Mutt/1.4.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 cc: questions@freebsd.org Subject: Re: Vinum striped volume has corrupt plex, please help 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, 15 May 2004 03:36:53 -0000 --EyuBRJR0MsVMWKTf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Friday, 14 May 2004 at 20:22:37 -0500, Doug Poland wrote: > Hello, > > I've been running a striped vinum configuration on 7 2.1GB SCSI drives > for almost three years. I recently returned from a vacation to find my > vinum fileserver had crashed. The logs indicated some type of problem > with my Adaptec 2940AU host adapter. The 2940 seems be working now but > now I'm having a problem with my vinum volume. > > The error messages I'm seeing are... > > vinum: dataraid.p0.s1 is stale by force > vinum: dataraid.p0 is corrupt > > I've spent no small amount of time searching the web google, and > newsgroups. From what I've found I think I should be able to run a > vinum create and the volume will re-build. But before I do that, I was > hoping to get confirmation that my procedure would work. No, that's a bad idea. > In accordance with the instructions found at > http://www.vinumvm.org/vinum/how-to-debug.html, I'm including the > requested information as follows: Thank you! > Problem: Corrupt plex > > 1 plexes: > P dataraid.p0 S State: corrupt Subdisks: 7 Size: 13 GB > > 7 subdisks: > S dataraid.p0.s0 State: up PO: 0 B Size: 1920 MB > S dataraid.p0.s1 State: stale PO: 256 kB Size: 1920 MB > S dataraid.p0.s2 State: up PO: 512 kB Size: 1920 MB > S dataraid.p0.s3 State: up PO: 768 kB Size: 1920 MB > S dataraid.p0.s4 State: up PO: 1024 kB Size: 1920 MB > S dataraid.p0.s5 State: up PO: 1280 kB Size: 1920 MB > S dataraid.p0.s6 State: up PO: 1536 kB Size: 1920 MB OK, here your second subdisk has gone stale, meaning that updates have been missed. There's every reason to believe that the data is inconsistent, but possibly it's nothing that an fsck couldn't gloss over. In this case, use "setstate": # vinum setstate up dataraid.p0.s1 dataraid.p0 Then do your fsck--if you want to be cautious, fsck -n in case something goes seriously wrong--and confirm that you can still access the file system on the volume. If that's OK, do a # vinum saveconfig Until you do the saveconfig, the changes you made with setstate are only in memory, and unless something else saves the state, they will be gone on reboot. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html Note: I discard all HTML mail unseen. Finger grog@FreeBSD.org for PGP public key. See complete headers for address and phone numbers. --EyuBRJR0MsVMWKTf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQFApZBPIubykFB6QiMRAgTvAJwJKv6ij0l6B+hYXknrQbHkOc9ZIACeKtTd 7IqWCNT8cdlHjCiMPvdEhRs= =l1Xl -----END PGP SIGNATURE----- --EyuBRJR0MsVMWKTf--