Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jul 2009 21:07:57 -0300 (BRT)
From:      "Nenhum_de_Nos" <matheus@eternamente.info>
To:        freebsd-current@freebsd.org
Subject:   Re: ZFS pool corrupted on upgrade of -current (probably sata   renaming)
Message-ID:  <88c9d55ce088bdbd079185bb6abac971.squirrel@cygnus.homeunix.com>
In-Reply-To: <b269bc570907221141r5c251ab9w17d5253904740984@mail.gmail.com>
References:  <alpine.BSF.2.00.0907132009040.2027@teapot.cbhnet> <alpine.BSF.2.00.0907142318520.2686@teapot.cbhnet> <b269bc570907141550u6854bc8eh6ea73fe9bd3e788a@mail.gmail.com> <m21voi1ufz.wl%randy@psg.com> <b269bc570907150922l3ded8a76id12ea72801abb3c7@mail.gmail.com> <ccf532286abd59ce4c3bc64cc26353ab.squirrel@cygnus.homeunix.com> <b269bc570907221141r5c251ab9w17d5253904740984@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Wed, July 22, 2009 15:41, Freddie Cash wrote:
> On Wed, Jul 22, 2009 at 6:12 AM, Nenhum_de_Nos
> <matheus@eternamente.info>wrote:
>
>>
>> On Wed, July 15, 2009 13:22, Freddie Cash wrote:
>> > On Tue, Jul 14, 2009 at 8:44 PM, Randy Bush <randy@psg.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?88c9d55ce088bdbd079185bb6abac971.squirrel>