From owner-freebsd-current@FreeBSD.ORG Thu Jul 23 00:08:04 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 5E9D01065677 for ; Thu, 23 Jul 2009 00:08:04 +0000 (UTC) (envelope-from matheusber@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.27]) by mx1.freebsd.org (Postfix) with ESMTP id 06F4F8FC1F for ; Thu, 23 Jul 2009 00:08:03 +0000 (UTC) (envelope-from matheusber@gmail.com) Received: by qw-out-2122.google.com with SMTP id 3so307548qwe.7 for ; Wed, 22 Jul 2009 17:08:03 -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=7QeGClP0tBBn4kmlTulZXWY5eq0+cC0AduRWh1Vaf08=; b=bMIsLRxZcTy9sDRBnM4bRjNBYXdoPkRu5cZcnOy0h/hmq9VRB5QUU3MhUENLZY2k/4 QQW+N1xBrrTnWrVMLH7G4Qzeo1tTBepqCW23OSF0mCz1XTOdBcEDbCL4rKTtaQyTq4F0 4/TX7j6YCIUhF6Xz0JZO23zO/aXGO/EBO0w3k= 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=IeOAn/cb/xyNsC3PonUJzIatY6GdLHjI6t7AWd2zbeKUX+TLCjyEeDDXY5VfMQO7Hi tqUzhv6IN1lauJ1MgZa2eahsNQXrYx1vuwc52TmAVworpoz1FzSFVHtwh5BFfDaeBSRs 7u8gOVtoU+3oO4N9t+lmSt/K/19PQryx87d8E= Received: by 10.224.2.65 with SMTP id 1mr1367982qai.344.1248307683405; Wed, 22 Jul 2009 17:08:03 -0700 (PDT) Received: from cygnus.homeunix.com ([189.71.108.65]) by mx.google.com with ESMTPS id 7sm1361323qwb.0.2009.07.22.17.08.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 22 Jul 2009 17:08:02 -0700 (PDT) Sender: Nenhum_de_Nos Received: by cygnus.homeunix.com (Postfix, from userid 80) id 01A55B80C2; Wed, 22 Jul 2009 21:07:57 -0300 (BRT) Received: from 189.59.75.37 (proxying for 10.12.1.221, 10.12.1.7) (SquirrelMail authenticated user matheus) by cygnus.homeunix.com with HTTP; Wed, 22 Jul 2009 21:07:57 -0300 (BRT) Message-ID: <88c9d55ce088bdbd079185bb6abac971.squirrel@cygnus.homeunix.com> In-Reply-To: References: Date: Wed, 22 Jul 2009 21:07:57 -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: Thu, 23 Jul 2009 00:08:04 -0000 On Wed, July 22, 2009 15:41, Freddie Cash wrote: > On Wed, Jul 22, 2009 at 6:12 AM, Nenhum_de_Nos > wrote: > >> >> 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 >> > > Reread what you quoted. :) Note how there's no "detach" step. :) Just > label and replace. ok, my bad :) I used the wrong mail to quote and get into the thread. bellow this message, I think I saw someone saying not to do this. use the detach. I'll try anyway. not much sensitive data here... thanks, matheus -- 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