What does 'zpool import -d /dev' show?

On Wed, 14 Jul 2010, Tim Castle wrote:

My raidz1 (ZFSv6) had a power failure, and a disk failure. Now:

--------------------------------------------
j...@opensolaris:~# zpool import
 pool: files
   id: 3459234681059189202
state: UNAVAIL
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:

        files          UNAVAIL  insufficient replicas
          raidz1       UNAVAIL  insufficient replicas
            c8d1s8     UNAVAIL  corrupted data
            c9d0p0     ONLINE
            /dev/ad16  OFFLINE
            c9d1s8     UNAVAIL  corrupted data
            /dev/ad8   UNAVAIL  corrupted data
            c8d0p0     ONLINE
j...@opensolaris:~# zpool import files
cannot import 'files': pool may be in use from other system
use '-f' to import anyway
j...@opensolaris:~# zpool import -f files
cannot import 'files': invalid vdev configuration
--------------------------------------------

ad16 is the dead drive.
ad8 is fine but disconnected. I can only connect 4 sata drives to open solaris: 
my pci sata card isn't compatible.
I created and used the pool with FreeNAS, which gives me the same error when 
all 5 drives are connected.

So why do c8d1s8 c9d1s8 show up as slices? c9d0p0, c8d0p0, and ad8 when 
connected, show up as partitions.

zdb -l returns the same thing for all 5 drives. Labels 0 and 1 are fine. 2 and 
3 fail to unpack.

--------------------------------------------
j...@opensolaris:~# zdb -l /dev/dsk/c8d1s8
--------------------------------------------
LABEL 0
--------------------------------------------
   version=6
   name='files'
   state=0
   txg=2123835
   pool_guid=3459234681059189202
   hostid=0
   hostname='freenas.local'
   top_guid=18367164273662411813
   guid=7276810192259058351
   vdev_tree
       type='raidz'
       id=0
       guid=18367164273662411813
       nparity=1
       metaslab_array=14
       metaslab_shift=32
       ashift=9
       asize=6001199677440
       children[0]
               type='disk'
               id=0
               guid=7276810192259058351
               path='/dev/ad6'
               devid='ad:STF602MR3GHBZP'
               whole_disk=0
               DTL=1012
       children[1]
               type='disk'
               id=1
               guid=5425645052930513342
               path='/dev/ad4'
               devid='ad:STF602MR3EZ0WP'
               whole_disk=0
               DTL=1011
       children[2]
               type='disk'
               id=2
               guid=4766543340687449042
               path='/dev/ad16'
               devid='ad:GTA000PAG7PGGA'
               whole_disk=0
               DTL=1010
               offline=1
       children[3]
               type='disk'
               id=3
               guid=16172918065436695818
               path='/dev/ad18'
               devid='ad:WD-WCAU42121120'
               whole_disk=0
               DTL=1009
       children[4]
               type='disk'
               id=4
               guid=3693181954889803829
               path='/dev/ad8'
               devid='ad:STF602MR3EYWJP'
               whole_disk=0
               DTL=1008
       children[5]
               type='disk'
               id=5
               guid=5419080715831351987
               path='/dev/ad10'
               devid='ad:STF602MR3ESPYP'
               whole_disk=0
               DTL=1007
--------------------------------------------
LABEL 1
--------------------------------------------
   version=6
   name='files'
   state=0
   txg=2123835
   pool_guid=3459234681059189202
   hostid=0
   hostname='freenas.local'
   top_guid=18367164273662411813
   guid=7276810192259058351
   vdev_tree
       type='raidz'
       id=0
       guid=18367164273662411813
       nparity=1
       metaslab_array=14
       metaslab_shift=32
       ashift=9
       asize=6001199677440
       children[0]
               type='disk'
               id=0
               guid=7276810192259058351
               path='/dev/ad6'
               devid='ad:STF602MR3GHBZP'
               whole_disk=0
               DTL=1012
       children[1]
               type='disk'
               id=1
               guid=5425645052930513342
               path='/dev/ad4'
               devid='ad:STF602MR3EZ0WP'
               whole_disk=0
               DTL=1011
       children[2]
               type='disk'
               id=2
               guid=4766543340687449042
               path='/dev/ad16'
               devid='ad:GTA000PAG7PGGA'
               whole_disk=0
               DTL=1010
               offline=1
       children[3]
               type='disk'
               id=3
               guid=16172918065436695818
               path='/dev/ad18'
               devid='ad:WD-WCAU42121120'
               whole_disk=0
               DTL=1009
       children[4]
               type='disk'
               id=4
               guid=3693181954889803829
               path='/dev/ad8'
               devid='ad:STF602MR3EYWJP'
               whole_disk=0
               DTL=1008
       children[5]
               type='disk'
               id=5
               guid=5419080715831351987
               path='/dev/ad10'
               devid='ad:STF602MR3ESPYP'
               whole_disk=0
               DTL=1007
--------------------------------------------
LABEL 2
--------------------------------------------
failed to unpack label 2
--------------------------------------------
LABEL 3
--------------------------------------------
failed to unpack label 3

--------------------------------------------

prtvtoc returns different things for different drives. Three of the drives 
appear to have a normal partition table. Two drives do not, and one of these 
seems to have way to many sectors.


j...@opensolaris:~# prtvtoc /dev/rdsk/c8d1s8
* /dev/rdsk/c8d1s8 partition map
*
* Dimensions:
*     512 bytes/sector
*     126 sectors/track
*     255 tracks/cylinder
*   32130 sectors/cylinder
*   60800 cylinders
*   60798 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
* Unallocated space:
*       First     Sector    Last
*       Sector     Count    Sector
*       96390 1953343350 1953439739
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
      2      5    01          0 1953439740 1953439739
      8      1    01          0     32130     32129
      9      9    00      32130     64260     96389
j...@opensolaris:~# prtvtoc /dev/rdsk/c9d0p0
* /dev/rdsk/c9d0p0 partition map
*
* Dimensions:
*     512 bytes/sector
* 1953520128 sectors
* 5860574909 accessible sectors (((((WHATTTTTTTT)))))
*
* Flags:
*   1: unmountable
*  10: read-only
*
* Unallocated space:
*       First     Sector    Last
*       Sector     Count    Sector
*          34 5860574908 5860574941
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
j...@opensolaris:~# prtvtoc /dev/rdsk/c9d1s8
* /dev/rdsk/c9d1s8 partition map
*
* Dimensions:
*     512 bytes/sector
*     126 sectors/track
*     255 tracks/cylinder
*   32130 sectors/cylinder
*   60800 cylinders
*   60798 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
* Unallocated space:
*       First     Sector    Last
*       Sector     Count    Sector
*       96390 1953343350 1953439739
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
      2      5    01          0 1953439740 1953439739
      8      1    01          0     32130     32129
      9      9    00      32130     64260     96389
j...@opensolaris:~# prtvtoc /dev/rdsk/c8d0p0
* /dev/rdsk/c8d0p0 partition map
*
* Dimensions:
*     512 bytes/sector
*     126 sectors/track
*     255 tracks/cylinder
*   32130 sectors/cylinder
*   60800 cylinders
*   60798 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
* Unallocated space:
*       First     Sector    Last
*       Sector     Count    Sector
*       96390 1953343350 1953439739
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
      2      5    01          0 1953439740 1953439739
      8      1    01          0     32130     32129
      9      9    00      32130     64260     96389
j...@opensolaris:~#
j...@opensolaris:~# prtvtoc /dev/rdsk/c8d0p0       ((((((THIS IS AD8 CONNECTED 
ALONE))))))
* /dev/rdsk/c8d0p0 partition map
*
* Dimensions:
*     512 bytes/sector
* 1953520128 sectors
* 1953525101 accessible sectors
*
* Flags:
*   1: unmountable
*  10: read-only
*
* Unallocated space:
*       First     Sector    Last
*       Sector     Count    Sector
*          34 1953525100 1953525133
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
j...@opensolaris:~#

--------------------------------------------

OK. There it is.
Should I carefully dd label 0 and 1 to the label 2 and 3 place on each drive? 
What about the strange prtvtoc statuses?
Please help me: How can I import my pool? What should I do?

Tim
--
This message posted from opensolaris.org
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss



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

Reply via email to