On Fri, Oct 2, 2009 at 2:36 PM, Victor Latushkin
<victor.latush...@sun.com> wrote:
> Osvald Ivarsson wrote:
>>
>> On Thu, Oct 1, 2009 at 7:40 PM, Victor Latushkin
>> <victor.latush...@sun.com> wrote:
>>>
>>> On 01.10.09 17:54, Osvald Ivarsson wrote:
>>>>
>>>> I'm running OpenSolaris build svn_101b. I have 3 SATA disks connected to
>>>> my motherboard. The raid, a raidz, which is called "rescamp", has worked
>>>> good before until a power failure yesterday. I'm now unable to import
>>>> the
>>>> pool. I can't export the raid, since it isn't imported.
>>>>
>>>> # zpool import rescamp
>>>> cannot import 'rescamp': invalid vdev configuration
>>>>
>>>> # zpool import
>>>>  pool: rescamp
>>>>   id: 12297694211509104163
>>>>  state: UNAVAIL
>>>> action: The pool cannot be imported due to damaged devices or data.
>>>> config:
>>>>
>>>>       rescamp     UNAVAIL  insufficient replicas
>>>>         raidz1    UNAVAIL  corrupted data
>>>>           c15d0   ONLINE
>>>>           c14d0   ONLINE
>>>>           c14d1   ONLINE
>>>>
>>>> I've tried using zdb -l on all three disks, but in all cases it failes
>>>> to
>>>> unpack the labels.
>>>>
>>>> # zdb -l /dev/dsk/c14d0
>>>> --------------------------------------------
>>>> 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
>>>>
>>>> If I run # zdb -l /dev/dsk/c14d0s0 I do find 4 labels, but c14d0, c14d1
>>>> and c15d0 is what I created the raid with. I do find labels this way for
>>>> all
>>>> three disks. Is this to any help?
>>>>
>>>> # zdb -l /dev/dsk/c14d1s0
>>>> --------------------------------------------
>>>> LABEL 0
>>>> --------------------------------------------
>>>>   version=13
>>>>   name='rescamp'
>>>>   state=0
>>>>   txg=218097573
>>>>   pool_guid=12297694211509104163
>>>>   hostid=4925114
>>>>   hostname='slaskvald'
>>>>   top_guid=9479723326726871122
>>>>   guid=17774184411399278071
>>>>   vdev_tree
>>>>       type='raidz'
>>>>       id=0
>>>>       guid=9479723326726871122
>>>>       nparity=1
>>>>       metaslab_array=23
>>>>       metaslab_shift=34
>>>>       ashift=9
>>>>       asize=3000574672896
>>>>       is_log=0
>>>>       children[0]
>>>>               type='disk'
>>>>               id=0
>>>>               guid=9020535344824299914
>>>>               path='/dev/dsk/c15d0s0'
>>>>               devid='id1,c...@ast31000333as=____________9te0dglf/a'
>>>>               phys_path='/p...@0,0/pci-...@11/i...@1/c...@0,0:a'
>>>>               whole_disk=1
>>>>               DTL=102
>>>>       children[1]
>>>>               type='disk'
>>>>               id=1
>>>>               guid=14384361563876398475
>>>>               path='/dev/dsk/c14d0s0'
>>>>               devid='id1,c...@asamsung_hd103uj=s13pjdws690618/a'
>>>>               phys_path='/p...@0,0/pci-...@11/i...@0/c...@0,0:a'
>>>>               whole_disk=1
>>>>               DTL=216
>>>>       children[2]
>>>>               type='disk'
>>>>               id=2
>>>>               guid=17774184411399278071
>>>>               path='/dev/dsk/c14d1s0'
>>>>               devid='id1,c...@ast31000333as=____________9te0de8w/a'
>>>>               phys_path='/p...@0,0/pci-...@11/i...@0/c...@1,0:a'
>>>>               whole_disk=1
>>>>               DTL=100
>>>> --------------------------------------------
>>>> LABEL 1
>>>> --------------------------------------------
>>>>   version=13
>>>>   name='rescamp'
>>>>   state=0
>>>>   txg=218097573
>>>>   pool_guid=12297694211509104163
>>>>   hostid=4925114
>>>>   hostname='slaskvald'
>>>>   top_guid=9479723326726871122
>>>>   guid=17774184411399278071
>>>>   vdev_tree
>>>>       type='raidz'
>>>>       id=0
>>>>       guid=9479723326726871122
>>>>       nparity=1
>>>>       metaslab_array=23
>>>>       metaslab_shift=34
>>>>       ashift=9
>>>>       asize=3000574672896
>>>>       is_log=0
>>>>       children[0]
>>>>               type='disk'
>>>>               id=0
>>>>               guid=9020535344824299914
>>>>               path='/dev/dsk/c15d0s0'
>>>>               devid='id1,c...@ast31000333as=____________9te0dglf/a'
>>>>               phys_path='/p...@0,0/pci-...@11/i...@1/c...@0,0:a'
>>>>               whole_disk=1
>>>>               DTL=102
>>>>       children[1]
>>>>               type='disk'
>>>>               id=1
>>>>               guid=14384361563876398475
>>>>               path='/dev/dsk/c14d0s0'
>>>>               devid='id1,c...@asamsung_hd103uj=s13pjdws690618/a'
>>>>               phys_path='/p...@0,0/pci-...@11/i...@0/c...@0,0:a'
>>>>               whole_disk=1
>>>>               DTL=216
>>>>       children[2]
>>>>               type='disk'
>>>>               id=2
>>>>               guid=17774184411399278071
>>>>               path='/dev/dsk/c14d1s0'
>>>>               devid='id1,c...@ast31000333as=____________9te0de8w/a'
>>>>               phys_path='/p...@0,0/pci-...@11/i...@0/c...@1,0:a'
>>>>               whole_disk=1
>>>>               DTL=100
>>>> --------------------------------------------
>>>> LABEL 2
>>>> --------------------------------------------
>>>>   version=13
>>>>   name='rescamp'
>>>>   state=0
>>>>   txg=218097573
>>>>   pool_guid=12297694211509104163
>>>>   hostid=4925114
>>>>   hostname='slaskvald'
>>>>   top_guid=9479723326726871122
>>>>   guid=17774184411399278071
>>>>   vdev_tree
>>>>       type='raidz'
>>>>       id=0
>>>>       guid=9479723326726871122
>>>>       nparity=1
>>>>       metaslab_array=23
>>>>       metaslab_shift=34
>>>>       ashift=9
>>>>       asize=3000574672896
>>>>       is_log=0
>>>>       children[0]
>>>>               type='disk'
>>>>               id=0
>>>>               guid=9020535344824299914
>>>>               path='/dev/dsk/c15d0s0'
>>>>               devid='id1,c...@ast31000333as=____________9te0dglf/a'
>>>>               phys_path='/p...@0,0/pci-...@11/i...@1/c...@0,0:a'
>>>>               whole_disk=1
>>>>               DTL=102
>>>>       children[1]
>>>>               type='disk'
>>>>               id=1
>>>>               guid=14384361563876398475
>>>>               path='/dev/dsk/c14d0s0'
>>>>               devid='id1,c...@asamsung_hd103uj=s13pjdws690618/a'
>>>>               phys_path='/p...@0,0/pci-...@11/i...@0/c...@0,0:a'
>>>>               whole_disk=1
>>>>               DTL=216
>>>>       children[2]
>>>>               type='disk'
>>>>               id=2
>>>>               guid=17774184411399278071
>>>>               path='/dev/dsk/c14d1s0'
>>>>               devid='id1,c...@ast31000333as=____________9te0de8w/a'
>>>>               phys_path='/p...@0,0/pci-...@11/i...@0/c...@1,0:a'
>>>>               whole_disk=1
>>>>               DTL=100
>>>> --------------------------------------------
>>>> LABEL 3
>>>> --------------------------------------------
>>>>   version=13
>>>>   name='rescamp'
>>>>   state=0
>>>>   txg=218097573
>>>>   pool_guid=12297694211509104163
>>>>   hostid=4925114
>>>>   hostname='slaskvald'
>>>>   top_guid=9479723326726871122
>>>>   guid=17774184411399278071
>>>>   vdev_tree
>>>>       type='raidz'
>>>>       id=0
>>>>       guid=9479723326726871122
>>>>       nparity=1
>>>>       metaslab_array=23
>>>>       metaslab_shift=34
>>>>       ashift=9
>>>>       asize=3000574672896
>>>>       is_log=0
>>>>       children[0]
>>>>               type='disk'
>>>>               id=0
>>>>               guid=9020535344824299914
>>>>               path='/dev/dsk/c15d0s0'
>>>>               devid='id1,c...@ast31000333as=____________9te0dglf/a'
>>>>               phys_path='/p...@0,0/pci-...@11/i...@1/c...@0,0:a'
>>>>               whole_disk=1
>>>>               DTL=102
>>>>       children[1]
>>>>               type='disk'
>>>>               id=1
>>>>               guid=14384361563876398475
>>>>               path='/dev/dsk/c14d0s0'
>>>>               devid='id1,c...@asamsung_hd103uj=s13pjdws690618/a'
>>>>               phys_path='/p...@0,0/pci-...@11/i...@0/c...@0,0:a'
>>>>               whole_disk=1
>>>>               DTL=216
>>>>       children[2]
>>>>               type='disk'
>>>>               id=2
>>>>               guid=17774184411399278071
>>>>               path='/dev/dsk/c14d1s0'
>>>>               devid='id1,c...@ast31000333as=____________9te0de8w/a'
>>>>               phys_path='/p...@0,0/pci-...@11/i...@0/c...@1,0:a'
>>>>               whole_disk=1
>>>>               DTL=100
>>>>
>>>> Any idea what to do?
>>>
>>> Please have a look at this message
>>>
>>> http://www.opensolaris.org/jive/message.jspa?messageID=420146#420146
>>>
>>> victor
>>>
>>
>> prtvtoc gives the following:
>>
>> # prtvtoc /dev/rdsk/c14d0s0
>> * /dev/rdsk/c14d0s0 partition map
>> *
>> * Dimensions:
>> *     512 bytes/sector
>> * 1953520128 sectors
>> * 1953520061 accessible sectors
>> *
>> * Flags:
>> *   1: unmountable
>> *  10: read-only
>> *
>> * Unallocated space:
>> *       First     Sector    Last
>> *       Sector     Count    Sector
>> *          34       222       255
>> *
>> *                          First     Sector    Last
>> * Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
>>       0      4    00        256 1953503455 1953503710
>>       8     11    00  1953503711     16384 1953520094
>
> Can you post prtvtoc output for other two disks?
>
> victor
>
>>
>>
>> I've read the thread, and in it there's an advice to either:
>>
>> 1. Restore original labeling on the c7d0 disk
>>
>> 2. Remove (physically or logically) disk c7d0
>>
>> And well, I'd have to remove all three disks if I used the second
>> advice, since they all have missing labels on c14d0 identically. Which
>> leaves me with restoring the original labeling. How do I do this? What
>> actually prevents zfs from importing my pool?
>>
>> Thank you!
>> /Osvald Ivarsson
>
>

Here is the output:

# prtvtoc /dev/dsk/c14d1
* /dev/dsk/c14d1 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       222       255
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      4    00        256 1953508495 1953508750
       8     11    00  1953508751     16384 1953525134

# prtvtoc /dev/dsk/c15d0
* /dev/dsk/c15d0 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       222       255
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      4    00        256 1953508495 1953508750
       8     11    00  1953508751     16384 1953525134

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

Reply via email to