Re: ZFS pool corrupted on upgrade of -current (probably sata renaming)

From: Freddie Cash <fjwcash_at_gmail.com>
Date: Wed, 15 Jul 2009 15:19:30 -0700
On Wed, Jul 15, 2009 at 3:15 PM, Randy Bush <randy_at_psg.com> wrote:

> >   * label all the drives using glabel, while they're still attached to
> the
> > pool
>
> having a bit of a problem with that one
>
> # zpool status
>  pool: tank
>  state: ONLINE
>  scrub: resilver completed after 0h3m with 0 errors on Wed Jul 15 14:13:49
> 2009
> 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
>            ad7s1         ONLINE       0     0     0  71.5M resilvered
>            label/disk02  ONLINE       0     0     0  1.82G resilvered
>
> errors: No known data errors
> # glabel label disk03 /dev/ad7s1
> glabel: Can't store metadata on /dev/ad7s1: Operation not permitted.
> # sysctl kern.geom.debugflags=17
> kern.geom.debugflags: 0 -> 17
> # glabel label disk03 /dev/ad7s1
> glabel: Can't store metadata on /dev/ad7s1: Operation not permitted.
>
> randy
>

Hrm, you might need to do this from single-user mode, without the ZFS
filesystems mounted, or the drives in use.  Or from a LiveFS CD, if /usr is
a ZFS filesystem.

On our ZFS hosts, / and /usr are on UFS (gmirror).

-- 
Freddie Cash
fjwcash_at_gmail.com
Received on Wed Jul 15 2009 - 20:19:31 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:52 UTC