From owner-freebsd-current@FreeBSD.ORG Wed Jul 22 13:12:27 2009 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 B8ABB1065670 for ; Wed, 22 Jul 2009 13:12:27 +0000 (UTC) (envelope-from matheusber@gmail.com) Received: from mail-pz0-f193.google.com (mail-pz0-f193.google.com [209.85.222.193]) by mx1.freebsd.org (Postfix) with ESMTP id 7E45D8FC08 for ; Wed, 22 Jul 2009 13:12:27 +0000 (UTC) (envelope-from matheusber@gmail.com) Received: by pzk31 with SMTP id 31so208818pzk.3 for ; Wed, 22 Jul 2009 06:12:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:received :message-id:in-reply-to:references:date:subject:from:to:user-agent :mime-version:content-type:content-transfer-encoding:x-priority :importance; bh=MJfkHMK43pDeBsZ1IEQpHHYFNVehehlrfDpPhXLSCiY=; b=KuWuV/IKY0uF6KComW7GSjRs4Y7oeQPfd2GVz7/L8P3dA5BIWux45ySxYtEJzuF4pw /6Aqdqw3xpcC7s6fC9ph8hDz05voPYK9KYhcvRRoY8hn0QMfjFL8h6iVY9jPPgtKdECr MtoZWIRgCo8lXtBNgbNAmoeBlTIAdyIvqe+RU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:in-reply-to:references:date:subject:from:to :user-agent:mime-version:content-type:content-transfer-encoding :x-priority:importance; b=sfODk1W17IwOhhE5QCtP38YtItLhE5YjFq21m47XGDUQyFx86Bor5qtKLRBg7YsViG TBAqFvGGZjG7i20ZFUBLoIA20wI5j2nK2402ZV+9qZiE2u0pj9y3ij0TxgfXpg+hJy9o 0xC0gsWV1R3dmIA0+Yk2CdfMdIJMcLxF9taDE= Received: by 10.140.133.4 with SMTP id g4mr550846rvd.282.1248268346494; Wed, 22 Jul 2009 06:12:26 -0700 (PDT) Received: from cygnus.homeunix.com ([189.71.108.65]) by mx.google.com with ESMTPS id c20sm1968747rvf.51.2009.07.22.06.12.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 22 Jul 2009 06:12:25 -0700 (PDT) Sender: Nenhum_de_Nos Received: by cygnus.homeunix.com (Postfix, from userid 80) id 0B54BB80C2; Wed, 22 Jul 2009 10:12:19 -0300 (BRT) Received: from 189.93.32.46 (SquirrelMail authenticated user matheus) by cygnus.homeunix.com with HTTP; Wed, 22 Jul 2009 10:12:19 -0300 (BRT) Message-ID: In-Reply-To: References: Date: Wed, 22 Jul 2009 10:12:19 -0300 (BRT) From: "Nenhum_de_Nos" To: freebsd-current@freebsd.org User-Agent: SquirrelMail/1.4.15 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: ZFS pool corrupted on upgrade of -current (probably sata renaming) 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: Wed, 22 Jul 2009 13:12:28 -0000 On Wed, July 15, 2009 13:22, Freddie Cash wrote: > On Tue, Jul 14, 2009 at 8:44 PM, Randy Bush wrote: > >> > # glabel label disk01 /dev/ad4 >> > # glabel label disk02 /dev/ad6 >> > # glabel label disk03 /dev/ad8 >> > # zpool create pool raidz1 label/disk01 label/disk02 label/disk03 >> > >> > After that, you can shuffle the drives around in the system, and the >> pool >> > will continue to work correctly. >> >> ooooooo! i wish i had understood that when i built a large set of >> mirrored raid. >> >> any way to hack it ex post facto? >> > > Yep. It's as simple as: > > * label all the drives using glabel, while they're still attached to the > pool > * use "zpool replace pool ad4 label/disk01" to replace 1 drive > * wait for it to resilver > * use "zpool replace pool ad6 label/disk02" to replace the next drive > * repeat the resilver and replace until all the devices are replaced > > This is what I did to one of our servers. Works quite nicely. > > There's no need to detach anything. was all this supposed to work with raidz ? here it doesn't. harry# zpool status pool: zdados state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM zdados ONLINE 0 0 0 raidz1 ONLINE 0 0 0 ad8 ONLINE 0 0 0 ad10 ONLINE 0 0 0 ad12 ONLINE 0 0 0 errors: No known data errors harry# zpool detach zdados ad8 cannot detach ad8: only applicable to mirror and replacing vdevs thanks, matheus ps: using 7.2R with v13 zfs. got problems when booting current and trying to use zfs on it (dual freebsd boot). -- We will call you cygnus, The God of balance you shall be A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? http://en.wikipedia.org/wiki/Posting_style