From owner-freebsd-current@FreeBSD.ORG Mon Jul 23 22:19:42 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 65B9816A41A for ; Mon, 23 Jul 2007 22:19:42 +0000 (UTC) (envelope-from ss.alert@online.no) Received: from mail44.e.nsc.no (mail44.e.nsc.no [193.213.115.44]) by mx1.freebsd.org (Postfix) with ESMTP id 0AE2213C46A for ; Mon, 23 Jul 2007 22:19:41 +0000 (UTC) (envelope-from ss.alert@online.no) Received: from PARALLELS (ti0034a340-0045.bb.online.no [88.90.0.45]) by mail44.nsc.no (8.13.8/8.13.5) with ESMTP id l6NLHruC013178 for ; Mon, 23 Jul 2007 23:17:53 +0200 (MEST) Date: Mon, 23 Jul 2007 23:17:53 +0200 From: Sverre Svenningsen X-Mailer: The Bat! (v3.99.3) Professional Organization: - X-Priority: 3 (Normal) Message-ID: <1736829882.20070723231753@online.no> To: freebsd-current@freebsd.org In-Reply-To: <20070721065204.GA2044@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: (ZFS) zpool replace weirdness X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Sverre Svenningsen List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jul 2007 22:19:42 -0000 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=/dev/urandom of=/dev/ad12 .. as expected, the zpool noticed: su-2.05b# zpool status pool: array1 state: ONLINE status: One or more devices could not be used because the label is missing 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: 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 errors: No known data errors now i want to resilver that disk, but the problem is this: su-2.05b# zpool replace -f array1 ad12 invalid vdev specification the following errors must be manually repaired: ad12 is in use (r1w1e1) but nothing is using that disk as far as i can tell! has anyone successfully done this? 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 :) -- Best regards, Sverre S mailto:ss.alert@online.no