Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jul 2009 21:09:34 +0700
From:      Edho P Arief <edhoprima@gmail.com>
To:        Randy Bush <randy@psg.com>
Cc:        freebsd-current@freebsd.org, Freddie Cash <fjwcash@gmail.com>, Guido Falsi <mad@madpilot.net>
Subject:   Re: ZFS pool corrupted on upgrade of -current (probably sata  renaming)
Message-ID:  <a3780c060907150709p66aa6283ud067cc7ef9602691@mail.gmail.com>
In-Reply-To: <m21voiyrbn.wl%randy@psg.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> <20090715084801.GA75654@megatron.madpilot.net> <m21voiyrbn.wl%randy@psg.com>

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

On Wed, Jul 15, 2009 at 9:05 PM, Randy Bush<randy@psg.com> wrote:
>> # 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
>                        ^ huh?
>> # 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
>
> dfw0.psg.com:/root# zpool status
>  pool: tank
>  state: ONLINE
>  scrub: none requested
> config:
>
>        NAME        STATE     READ WRITE CKSUM
>        tank        ONLINE       0     0     0
>          mirror    ONLINE       0     0     0
>            ad4s3   ONLINE       0     0     0
>            ad5s3   ONLINE       0     0     0
>          mirror    ONLINE       0     0     0
>            ad6s1   ONLINE       0     0     0
>            ad7s1   ONLINE       0     0     0
>
> errors: No known data errors
> dfw0.psg.com:/root# zpool detach tank ad6s1
> dfw0.psg.com:/root# glabel label disk02 /dev/ad6s1
> dfw0.psg.com:/root# zpool attach tank ad6s1 label/disk02
> cannot attach label/disk02 to ad6s1: no such device in pool
>

attach to ad7s1.

Anyway, I find by using entire disk there's no need to worry about
this at all. The addresses are automatically adjusted upon change. (at
least in jbod mode)

-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

help

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