From nobody@FreeBSD.org  Wed Jul  1 13:46:39 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E36761065680
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  1 Jul 2009 13:46:39 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id D17B28FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  1 Jul 2009 13:46:39 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n61DkdjZ075474
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 1 Jul 2009 13:46:39 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n61Dkd9o075472;
	Wed, 1 Jul 2009 13:46:39 GMT
	(envelope-from nobody)
Message-Id: <200907011346.n61Dkd9o075472@www.freebsd.org>
Date: Wed, 1 Jul 2009 13:46:39 GMT
From: "Stas Su&#537;cov" <stas@net.utcluj.ro>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Exported ZFS pools can't be imported into (Open)Solaris
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         136218
>Category:       kern
>Synopsis:       [zfs] Exported ZFS pools can't be imported into (Open)Solaris
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pjd
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 01 13:50:02 UTC 2009
>Closed-Date:    Mon Sep 14 12:44:24 UTC 2009
>Last-Modified:  Mon Sep 14 12:44:24 UTC 2009
>Originator:     Stas Su&#537;cov
>Release:        7.2 to 8-current
>Organization:
UTCN
>Environment:
>Description:
# zpool import -f
  pool: tank
    id: 2794438138141825953
 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:

        tank          UNAVAIL  insufficient replicas
          raidz1      UNAVAIL  corrupted data
            c0t1d0p0  ONLINE
            c0t2d0s8  UNAVAIL  corrupted data
            c0t3d0s2  ONLINE
# zpool import -f tank
cannot import 'tank': no such pool or dataset
# zdb -l /dev/dsk/c0t2d0s8
--------------------------------------------
LABEL 0
--------------------------------------------
    version=13
    name='tank'
    state=1
    txg=2563123
    pool_guid=2794438138141825953
    hostname=''
    top_guid=15872320949015295970
    guid=6991675266341970117
    vdev_tree
        type='raidz'
        id=0
        guid=15872320949015295970
        nparity=1
        metaslab_array=14
        metaslab_shift=34
        ashift=9
        asize=3000599838720
        is_log=0
        children[0]
                type='disk'
                id=0
                guid=7503403694738120161
                path='/dev/da0'
                whole_disk=0
                DTL=142
        children[1]
                type='disk'
                id=1
                guid=6991675266341970117
                path='/dev/da1'
                whole_disk=0
                DTL=139
        children[2]
                type='disk'
                id=2
                guid=12393268613817866398
                path='/dev/da2'
                whole_disk=0
                DTL=141
--------------------------------------------
LABEL 1
--------------------------------------------
    version=13
    name='tank'
    state=1
    txg=2563123
    pool_guid=2794438138141825953
    hostname=''
    top_guid=15872320949015295970
    guid=6991675266341970117
    vdev_tree
        type='raidz'
        id=0
        guid=15872320949015295970
        nparity=1
        metaslab_array=14
        metaslab_shift=34
        ashift=9
        asize=3000599838720
        is_log=0
        children[0]
                type='disk'
                id=0
                guid=7503403694738120161
                path='/dev/da0'
                whole_disk=0
                DTL=142
        children[1]
                type='disk'
                id=1
                guid=6991675266341970117
                path='/dev/da1'
                whole_disk=0
                DTL=139
        children[2]
                type='disk'
                id=2
                guid=12393268613817866398
                path='/dev/da2'
                whole_disk=0
                DTL=141
--------------------------------------------
LABEL 2
--------------------------------------------
failed to unpack label 2
--------------------------------------------
LABEL 3
--------------------------------------------
failed to unpack label 3
>How-To-Repeat:
Pool `tank` was created in FreeBSD 7.2-R.
After it I booted into FreeBSD 8-current and imported and upgraded the pool to V.13.

After I installed Nexenta CP2 (formerly OpenSolaris Nevada build 20081207) which uses ZFS V.14. The full description (inside Nexenta) is above.
>Fix:


>Release-Note:
>Audit-Trail:

From: Stas SUSHKOV <stas@net.utcluj.ro>
To: bug-followup@FreeBSD.org, stas@net.utcluj.ro
Cc: Cristi Magherusan <cristi.magherusan@net.utcluj.ro>, pjd@freebsd.org
Subject: Re: amd64/136218: Exported ZFS pools can't be imported into
 (Open)Solaris
Date: Thu, 02 Jul 2009 00:41:49 +0300

 Finally I was able to import the poll on OpenSolaris 2009.06 (snv_111b)
 with ZFS v.14.
 
 I had to remove all slices from /dev/rdsk and than retry zpool import.
 This helped me:
 # mkdir /tmp/bad_devs
 # cd /tmp/bad_devs
 # for i in /dev/rdsk/c7t[0123456789]d0s*; do mv $i ./; done
 # zpool import -f tank
 # zpool upgrade -V 14 tank
 # zpool export tank
 
 Thanks.
 
 -- 
 () Campania Panglicii în ASCII
 /\ http://stas.nerd.ro/ascii/
 
Responsible-Changed-From-To: freebsd-amd64->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Jul 2 10:41:22 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=136218 
State-Changed-From-To: open->closed 
State-Changed-By: pjd 
State-Changed-When: pon 14 wrz 2009 12:42:24 UTC 
State-Changed-Why:  
Problem solved by the author. 


Responsible-Changed-From-To: freebsd-fs->pjd 
Responsible-Changed-By: pjd 
Responsible-Changed-When: pon 14 wrz 2009 12:42:24 UTC 
Responsible-Changed-Why:  
I'll take that one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=136218 
>Unformatted:
