Bruno Gade
2009-Aug-16  10:40 UTC
[zfs-discuss] strange zpool error "bad config type 16 for stats"
I have messed up the zpool on my fileserver.
It has 3 1TB disks in a z1 config.
root at metallica:~# uname -a
SunOS metallica 5.11 snv_111b i86pc i386 i86pc Solaris
root at metallica:~# zpool import -f
  pool: rzpool
    id: 12681757329416170242
 state: FAULTED
status: One or more devices contains corrupted data.
action: The pool cannot be imported due to damaged devices or data.
   see: http://www.sun.com/msg/ZFS-8000-5E
config:
        rzpool      FAULTED  corrupted data
          raidz1    DEGRADED
            c7d0s1  FAULTED  corrupted data
            c7d1s1  ONLINE
            c8d0s1  ONLINE
root at metallica:~# zdb -p /mnt -e rzpool
    version=14
    name=''rzpool''
    state=0
    txg=0
    pool_guid=12681757329416170242
    hostid=4447284
    hostname=''libzpool''
    vdev_tree
        type=''root''
        id=0
        guid=12681757329416170242
bad config type 16 for stats
        children[0]
                type=''raidz''
                id=0
                guid=16080596779047081945
                nparity=1
                metaslab_array=23
                metaslab_shift=34
                ashift=9
                asize=2934534832128
                is_log=0
bad config type 16 for stats
                children[0]
                        type=''disk''
                        id=0
                        guid=3515092960794277744
                        path=''/dev/dsk/c7d0s1''
                        devid=''id1,cmdk at
ASAMSUNG_HD103UJ=S13PJ9AQB16353/b''
                        phys_path=''/pci at 0,0/pci-ide at 11/ide at
0/cmdk at 0,0:b''
                        whole_disk=0
                        DTL=37
bad config type 16 for stats
                children[1]
                        type=''disk''
                        id=1
                        guid=2332105117201928997
                        path=''/dev/dsk/c7d1s1''
                        devid=''id1,cmdk at
ASAMSUNG_HD103UJ=S13PJ90QB40727/b''
                        phys_path=''/pci at 0,0/pci-ide at 11/ide at
0/cmdk at 1,0:b''
                        whole_disk=0
                        DTL=36
bad config type 16 for stats
                children[2]
                        type=''disk''
                        id=2
                        guid=13931150792773514278
                        path=''/dev/dsk/c8d0s1''
                        devid=''id1,cmdk at
ASAMSUNG_HD103UJ=S13PJ90QB39853/b''
                        phys_path=''/pci at 0,0/pci-ide at 11/ide at
1/cmdk at 0,0:b''
                        whole_disk=0
                        DTL=35
bad config type 16 for stats
zdb: can''t open rzpool: No such file or directory
Not really sure where to go from here. From what I can read on this forum there
may still be a way to rescue the zpool by using a previous uberblock. Is this a
valid approach for this kind of error? And will zdb be able to do this
automatically with the use of dd and such?
I have not been able to find any solutions on the "bad config type 16 for
stats" error.
Any help and pointers is welcome.
Thanks
Bruno
-- 
This message posted from opensolaris.org