Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Nov 2009 00:49:37 +0100
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        Stefan Bethke <stb@lassitu.de>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: whats best pracfive for ZFS on a whole disc these days ?
Message-ID:  <4AFF4211.3040206@gsoft.com.au>
In-Reply-To: <4AFF40B1.3040705@gsoft.com.au>
References:  <E1N2NcA-0004c4-CE@dilbert.ticketswitch.com> <200910271902.19618.doconnor@gsoft.com.au> <20091027104316.dsp7kikkoogo80gw@www.goldsword.com> <200910281112.06300.doconnor@gsoft.com.au> <493EE416-62CE-4EA4-81A7-8F802789D5DD@lassitu.de> <4AFF40B1.3040705@gsoft.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
Daniel O'Connor wrote:
> Stefan Bethke wrote:
>> Am 28.10.2009 um 01:41 schrieb Daniel O'Connor:
>>
>>> On Wed, 28 Oct 2009, jfarmer@goldsword.com wrote:
>>>> Check the archives for stable@ and fs@.  I believe that there was a  
>>>> thread not that long ago detailing exactly how to do that.  IIRC,  
>>>> while it took a bit of work, it wasn't difficult.
>>> Hmm do you have any idea what the subject was? I'm having trouble 
>>> finding it :(
>>
>> If you still need it, it was "ZFS pool corrupted on upgrade of 
>> -current (probably sata  renaming)" on -current back in July.  You 
>> probably need to read the full thread, and there are some caveats, but 
>> it's sometimes possible to glabel each device/partion, and zpool 
>> replace the original device/partition with the labelled one online.
> 
> It's here..
> http://lists.freebsd.org/pipermail/freebsd-current/2009-July/009440.html
> 
> Quote...
>  > On Wed Jul 15 at 16:22, Freddie Cash <fjwcash at gmail.com> wrote:
>  > 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.
> 
> I'll try it when I get home and see how it goes.

It would be nice if the man page mentioned this case though, currently 
the "zpool replace" entry covers the case where the new disk has the 
same device node.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
   -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AFF4211.3040206>