From owner-freebsd-current@FreeBSD.ORG Wed Jul 15 16:22:19 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 743C5106564A for ; Wed, 15 Jul 2009 16:22:19 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-yx0-f181.google.com (mail-yx0-f181.google.com [209.85.210.181]) by mx1.freebsd.org (Postfix) with ESMTP id 26A738FC12 for ; Wed, 15 Jul 2009 16:22:19 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: by yxe11 with SMTP id 11so6619143yxe.3 for ; Wed, 15 Jul 2009 09:22:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=dK5ijzYHi5o8ef7KYhbiK1V/iKSw7fNCu3cTrjQahn0=; b=r8oiqFSP0yqzKu5+EUTQMcIKgcwXr3NvaLuxcojz6k7xnHhi4HXuYhn0WnVU7l+bCk WiiI5T5WJCXHznWAT3zcJT+H/unIfMOyFJy4y0+Z4diPZqavwnPilLCY1xIKiu6MZXps 1O3mHhEfqGqQvAkau7A5Za2m0rr4iLnj4PCvU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=bE+Zo6KWj7hgTOfZ25bFcDhkStwkn6lWdKwGx8RTi5WzKAXTdHk3nphkZggMqX0Fsx DZ0LpYU0iMx2gqVvI2ijCCCwgK8yxb9TkqIyN06FDYhQzcIxjQe2mrd0EpmwoSMT4RN/ a24SME+GxueOk+RAJ8mS14I0J+AoFflU76hBA= MIME-Version: 1.0 Received: by 10.150.122.9 with SMTP id u9mr12810214ybc.127.1247674938587; Wed, 15 Jul 2009 09:22:18 -0700 (PDT) In-Reply-To: References: Date: Wed, 15 Jul 2009 09:22:18 -0700 Message-ID: From: Freddie Cash To: Randy Bush Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-current@freebsd.org 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 16:22:19 -0000 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. -- Freddie Cash fjwcash@gmail.com