So I'm going to try to outline the problem as thoroughly as possible and 
hopefully someone can help.

I have a b134 box that has a zpool on it which I created a block device on and 
set to export via iscsi. That block device was imported onto FreeNAS (ZFS v6, 
V0.7.1 5771) and setup as a simple stripe. Now I want to migrate from *BSD 
based freenas to another b134 box. I setup the initiator on the the b134 box 
and can see the target:

lbari...@alpha:~# iscsiadm list target -S
Target: iqn.1986-03.com.sun:02:086cf3d8-5e35-612f-c778-db39ffa7cccf
        Alias: -
        TPGT: 1
        ISID: 4000002a0000
        Connections: 1
        LUN: 0
             Vendor:  SUN     
             Product: COMSTAR         
             OS Device Name: /dev/rdsk/c6t600144F01800050000004C1D12070001d0s2


______________


lbari...@alpha:~# iscsiadm list target -v
Target: iqn.1986-03.com.sun:02:086cf3d8-5e35-612f-c778-db39ffa7cccf
        Alias: -
        TPGT: 1
        ISID: 4000002a0000
        Connections: 1
                CID: 0
                  IP address (Local): 192.168.2.21:49276
                  IP address (Peer): 192.168.2.12:3260
                  Discovery Method: SendTargets 
                  Login Parameters (Negotiated):
                        Data Sequence In Order: yes
                        Data PDU In Order: yes
                        Default Time To Retain: 20
                        Default Time To Wait: 2
                        Error Recovery Level: 0
                        First Burst Length: 65536
                        Immediate Data: yes
                        Initial Ready To Transfer (R2T): yes
                        Max Burst Length: 262144
                        Max Outstanding R2T: 1
                        Max Receive Data Segment Length: 32768
                        Max Connections: 1
                        Header Digest: NONE
                        Data Digest: NONE

The problem is when I try to import it in opensol I get the following:

lbari...@alpha:~# zpool import
  pool: iscsi
    id: 3764978642237279050
 state: UNAVAIL
status: The pool was last accessed by another system.
action: The pool cannot be imported due to damaged devices or data.
   see: http://www.sun.com/msg/ZFS-8000-EY
config:

        iscsi                                      UNAVAIL  insufficient 
replicas
          c6t600144F01800050000004C1D12070001d0p0  UNAVAIL  cannot open


_____
lbari...@alpha:~# zpool import -f iscsi
cannot import 'iscsi': invalid vdev configuration

In case this is useful, output from zdb for labels:
lbari...@alpha:~# zdb -l /dev/rdsk/c6t600144F01800050000004C1D12070001d0p0 
--------------------------------------------
LABEL 0
--------------------------------------------
    version: 6
    name: 'iscsi'
    state: 0
    txg: 12626435
    pool_guid: 3764978642237279050
    hostid: 2046694327
    hostname: 'freenas.local'
    top_guid: 13220149227215223439
    guid: 13220149227215223439
    vdev_tree:
        type: 'disk'
        id: 0
        guid: 13220149227215223439
        path: '/dev/da1'
        whole_disk: 0
        metaslab_array: 14
        metaslab_shift: 31
        ashift: 9
        asize: 22762248208384
--------------------------------------------
LABEL 1
--------------------------------------------
    version: 6
    name: 'iscsi'
    state: 0
    txg: 12626435
    pool_guid: 3764978642237279050
    hostid: 2046694327
    hostname: 'freenas.local'
    top_guid: 13220149227215223439
    guid: 13220149227215223439
    vdev_tree:
        type: 'disk'
        id: 0
        guid: 13220149227215223439
        path: '/dev/da1'
        whole_disk: 0
        metaslab_array: 14
        metaslab_shift: 31
        ashift: 9
        asize: 22762248208384
--------------------------------------------
LABEL 2
--------------------------------------------
failed to read label 2
--------------------------------------------
LABEL 3
--------------------------------------------
failed to read label 3



Although I can still access this data on the FreeNAS box, I made sure v6 could 
be updated by v22 of ZFS via a few VM's and this works without a problem. Short 
of getting another large amount of space and copying the data over on a new 
share, I'm not really sure what to do to get this pool to integrate with the 
b134 osol initiator, any help would be great. Thanks!
-- 
This message posted from opensolaris.org
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to