On 28.09.09 18:09, Paul Archer wrote:
8:30am, Paul Archer wrote:

And the hits just keep coming...
The resilver finished last night, so rebooted the box as I had just upgraded to the latest Dev build. Not only did the upgrade fail (love that instant rollback!), but now the zpool won't come online:

r...@shebop:~# zpool import
 pool: datapool
   id: 3410059226836265661
state: UNAVAIL
status: The pool is formatted using an older on-disk version.
action: The pool cannot be imported due to damaged devices or data.
config:

       datapool     UNAVAIL  insufficient replicas
         raidz1     UNAVAIL  corrupted data
           c7d0     ONLINE
           c8d0s0   ONLINE
           c9d0s0   ONLINE
           c11d0s0  ONLINE
           c10d0s0  ONLINE


I've tried renaming /etc/zfs/zpool.cache and rebooting, but no joy.
Is it OK to scream and tear my hair out now?


A little more research came up with this:

r...@shebop:~# zdb -l /dev/dsk/c7d0
--------------------------------------------
LABEL 0
--------------------------------------------
failed to unpack label 0
--------------------------------------------
LABEL 1
--------------------------------------------
failed to unpack label 1
--------------------------------------------
LABEL 2
--------------------------------------------
failed to unpack label 2
--------------------------------------------
LABEL 3
--------------------------------------------
failed to unpack label 3


While 'zdb -l /dev/dsk/c7d0s0' shows normal labels. So the new question is: how do I tell ZFS to use c7d0s0 instead of c7d0? I can't do a 'zpool replace' because the zpool isn't online.

ZFS actually uses c7d0s0 and not c7d0 - it shortens output to c7d0 in case it controls entire disk. As before upgrade it looked like this:

        NAME        STATE     READ WRITE CKSUM
        datapool    ONLINE       0     0     0
          raidz1    ONLINE       0     0     0
            c2d0s0  ONLINE       0     0     0
            c3d0s0  ONLINE       0     0     0
            c4d0s0  ONLINE       0     0     0
            c6d0s0  ONLINE       0     0     0
            c5d0s0  ONLINE       0     0     0

I guess something happened to the labeling of disk c7d0 (used to be c2d0) before, during or after upgrade.

It would be nice to show what zdb -l shows for this disk and some other disk too. output of 'prtvtoc /dev/rdsk/cXdYs0' can be helpful too.

victor
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to