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

Freddie Cash fjwcash at gmail.com
Wed Jul 15 22:19:31 UTC 2009


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


More information about the freebsd-current mailing list