From owner-freebsd-current@FreeBSD.ORG Tue Jul 24 15:37:19 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D59F16A41A for ; Tue, 24 Jul 2007 15:37:19 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id 63C3113C46C for ; Tue, 24 Jul 2007 15:37:18 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id DECE3487FB; Tue, 24 Jul 2007 17:37:16 +0200 (CEST) Received: from localhost (154.81.datacomsa.pl [195.34.81.154]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 4521245685; Tue, 24 Jul 2007 17:37:11 +0200 (CEST) Date: Tue, 24 Jul 2007 17:36:39 +0200 From: Pawel Jakub Dawidek To: Sverre Svenningsen Message-ID: <20070724153639.GB12473@garage.freebsd.pl> References: <20070719102302.R1534@rust.salford.ac.uk> <20070719135510.GE1194@garage.freebsd.pl> <20070719181313.G4923@rust.salford.ac.uk> <20070721065204.GA2044@garage.freebsd.pl> <1736829882.20070723231753@online.no> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pvezYHf7grwyp3Bc" Content-Disposition: inline In-Reply-To: <1736829882.20070723231753@online.no> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-current@freebsd.org Subject: Re: (ZFS) zpool replace weirdness X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jul 2007 15:37:19 -0000 --pvezYHf7grwyp3Bc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 23, 2007 at 11:17:53PM +0200, Sverre Svenningsen wrote: > I've been playing around with zfs for a bit, and ran into a problem > where i corrupted an entire drive (on purpose) by way of dd > if=3D/dev/urandom of=3D/dev/ad12 .. as expected, the zpool noticed: >=20 > su-2.05b# zpool status > pool: array1 > state: ONLINE > status: One or more devices could not be used because the label is missin= g or > invalid. Sufficient replicas exist for the pool to continue > functioning in a degraded state. > action: Replace the device using 'zpool replace'. > see: http://www.sun.com/msg/ZFS-8000-4J > scrub: resilver completed with 0 errors on Mon Jul 23 23:05:53 2007 > config: >=20 > NAME STATE READ WRITE CKSUM > array1 ONLINE 0 0 0 > raidz1 ONLINE 0 0 0 > ad10 ONLINE 0 0 0 > ad12 UNAVAIL 0 0 0 corrupted data > ad14 ONLINE 0 0 0 > ad16 ONLINE 0 0 0 > raidz1 ONLINE 0 0 0 > ad18 ONLINE 0 0 0 > ad20 ONLINE 0 0 0 > ad22 ONLINE 0 0 0 > ad24 ONLINE 0 0 0 >=20 > errors: No known data errors >=20 >=20 > now i want to resilver that disk, but the problem is this: >=20 > su-2.05b# zpool replace -f array1 ad12 > invalid vdev specification > the following errors must be manually repaired: > ad12 is in use (r1w1e1) >=20 > but nothing is using that disk as far as i can tell! has anyone > successfully done this? It just works here, but the version I'm using is not yet committed, maybe there was a fix in OpenSolaris. You could try removing /boot/zfs/zpool.cache. > would it be better to use slices instead of whole disks for zfs on > freebsd? i want to get some experience with this so that i know > what not to do when a disk breaks for real :) Whole disks are fine. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --pvezYHf7grwyp3Bc Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFGphyHForvXbEpPzQRAlN3AJ4+JrDTEK0eSSpgoJ9W9Y4B+wrMzQCgwqBA O7JWXu8dqM456kKLRVhaX1k= =uMH+ -----END PGP SIGNATURE----- --pvezYHf7grwyp3Bc--