On Fri, Oct 2, 2009 at 2:51 PM, Victor Latushkin
<victor.latush...@sun.com> wrote:
> Osvald Ivarsson wrote:
>>
>> 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
>>>> *                          First     Sector    Last
>>>> * Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
>>>>      0      4    00        256 1953503455 1953503710
>>>>      8     11    00  1953503711     16384 1953520094
>>
>> Here is the output:
>>
>> # prtvtoc /dev/dsk/c14d1
>> * /dev/dsk/c14d1 partition map
>> *                          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
>> *                          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
>
> Looks like all your disks got relabeled at once, so yes, you need to get old
> labeling back.
>
> Can you try the following:
>
> dd if=/dev/rdsk/cXtYd0 bs=1k iseek=17 count=512 of=front.labels.cXtYd0
>
> zdb -l front.labels.cXtYd0
>
> I expect it'll show label information
>
> victor
>

Ok, I ran the command for all three disks, and in all cases it's
unable to unpack the labels...

# /usr/bin/dd if=/dev/rdsk/c14d0 bs=1k iseek=17 count=512 of=front.labels.c14d0
512+0 records in
512+0 records out

# zdb -l front.labels.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

The same goes for
# /usr/bin/dd if=/dev/rdsk/c14d0s0 bs=1k iseek=17 count=512
of=front.labels.c14d0s0

If I however remove "iseek=17" it works for c14d0s0, but still not for c14d0...

# /usr/bin/dd if=/dev/rdsk/c14d0s0 bs=1k count=512 of=front.labels.c14d0s0
512+0 records in
512+0 records out

# zdb -l front.labels.c14d0s0
--------------------------------------------
LABEL 0
--------------------------------------------
    version=13
    name='rescamp'
    state=0
    txg=218097573
    pool_guid=12297694211509104163
    hostid=4925114
    hostname='slaskvald'
    top_guid=9479723326726871122
    guid=14384361563876398475
    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

and label 1,2 and 3 is displayed too.
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to