From owner-freebsd-current@FreeBSD.ORG Wed Jul 15 09:05:09 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 C925F1065695 for ; Wed, 15 Jul 2009 09:05:09 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from megatron.madpilot.net (megatron.madpilot.net [88.149.173.206]) by mx1.freebsd.org (Postfix) with ESMTP id 783228FC2E for ; Wed, 15 Jul 2009 09:05:09 +0000 (UTC) (envelope-from mad@madpilot.net) Received: by megatron.madpilot.net (Postfix, from userid 1000) id 538BB130C41; Wed, 15 Jul 2009 10:48:01 +0200 (CEST) Date: Wed, 15 Jul 2009 10:48:01 +0200 From: Guido Falsi To: Randy Bush Message-ID: <20090715084801.GA75654@megatron.madpilot.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 7.2-STABLE User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-current@freebsd.org, Freddie Cash 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, 15 Jul 2009 09:05:10 -0000 On Wed, Jul 15, 2009 at 12:44:32PM +0900, 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? Don't know if this can be safely done on a large set, with a normal PC using a simple zpool mirror I'm hacking this doing: # zpool status tank pool: tank state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 mirror ONLINE 0 0 0 ad0p2 ONLINE 0 0 0 ad8p2 ONLINE 0 0 0 errors: No known data errors # zpool detach tank ad0p2 # glabel label disk01 /dev/ad0p2 # zpool attach tank ad8p2 label/disk01 # zpool status tank pool: tank state: ONLINE status: One or more devices is currently being resilvered. The pool will continue to function, possibly in a degraded state. action: Wait for the resilver to complete. scrub: resilver in progress for 0h6m, 17.06% done, 0h29m to go config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 mirror ONLINE 0 0 0 ad8p2 ONLINE 0 0 0 60.7M resilvered label/disk01 ONLINE 0 0 0 10.4G resilvered errors: No known data errors After the resilver I'll just go ahead with the other disk. It's working flawlessly for now. with a simple 2 disk setup this is quite easy, it can get tricky with complex designs(f.e. zraid2, hot spares, cache and log devices and so on...). If you have a complex design better make a detailed plan, before shooting your own foot. -- Guido Falsi