Bruce,

There reboot persistence of iSCSI Targets created by the  
shareiscsi=on attribute is not stored in the persistence directory  
maintained by iSCSI, but is instead maintained by ZFS itself. When  
the zpool is exported at system shutdown time, the association of the  
target port group goes away, since the iSCSI Target goes away.

If you wish to retain the TPGT assignments across reboots you will  
have to configure the zvols via iscsitadm.

Jim

> Bruce McAlister wrote:
>> I'll let you
>> know how I get on. Thanks again :)
>
> Hi,
>
> OK, I'm still having the same issue here across reboots. What I  
> tried was:
>
> [EMAIL PROTECTED]:/ # zpool export data01
> [EMAIL PROTECTED]:/ # zpool export data02
> [EMAIL PROTECTED]:/ # mkdir -p /etc/iscsi/target
> [EMAIL PROTECTED]:/ # iscsitadm modify admin -d /etc/iscsi/target
> [EMAIL PROTECTED]:/ # iscsttadm show admin
>
> iscsitadm:
>     Base Directory: /etc/iscsi/target
>     CHAP Name: Not set
>     RADIUS Access: Not set
>     RADIUS Server: Not set
>     iSNS Access: Not set
>     iSNS Server: Not set
>     Fast Write ACK: Not set
>
> [EMAIL PROTECTED]:/ # zpool import data01
> [EMAIL PROTECTED]:/ # zpool import data02
> [EMAIL PROTECTED]:/ # iscsitadm list target -v data01/data01-000
>
> Target: data01/data01-000
>     iSCSI Name: iqn.1986-03.com.sun:02:923ef885-639d-4272- 
> c4eb-960c8534ed1c
>     Alias: data01/data01-000
>     Connections: 0
>     ACL list:
>     TPGT list:
>     LUN information:
>         LUN: 0
>             GUID: 0x0
>             VID: SUN
>             PID: SOLARIS
>             Type: disk
>             Size:   20G
>             Backing store: /dev/zvol/rdsk/data01/data01-000
>             Status: online
>
> [EMAIL PROTECTED]:/ # iscsitadm list tpgt -v
>
> TPGT: 1
>     IP Address: 192.168.10.50
> TPGT: 2
>     IP Address: 192.168.10.51
>
> [EMAIL PROTECTED]:/ # iscsitadm modify target -p 1 data01/data01-000
> [EMAIL PROTECTED]:/ # iscsitadm modify target -p 2 data01/data01-000
> [EMAIL PROTECTED]:/ # iscsitadm list target -v data01/data01-000
>
> Target: data01/data01-000
>     iSCSI Name: iqn.1986-03.com.sun:02:923ef885-639d-4272- 
> c4eb-960c8534ed1c
>     Alias: data01/data01-000
>     Connections: 0
>     ACL list:
>     TPGT list:
>         TPGT: 1
>         TPGT: 2
>     LUN information:
>         LUN: 0
>             GUID: 0x0
>             VID: SUN
>             PID: SOLARIS
>             Type: disk
>             Size:   20G
>             Backing store: /dev/zvol/rdsk/data01/data01-000
>             Status: online
>
> [EMAIL PROTECTED]:/ # sync
> [EMAIL PROTECTED]:/ # sync
> [EMAIL PROTECTED]:/ # reboot
> [EMAIL PROTECTED]:/ # iscsitadm list target -v data01/data01-000
>
> Target: data01/data01-000
>     iSCSI Name: iqn.1986-03.com.sun:02:923ef885-639d-4272- 
> c4eb-960c8534ed1c
>     Alias: data01/data01-000
>     Connections: 0
>     ACL list:
>     TPGT list:
>     LUN information:
>         LUN: 0
>             GUID: 0x0
>             VID: SUN
>             PID: SOLARIS
>             Type: disk
>             Size:   20G
>             Backing store: /dev/zvol/rdsk/data01/data01-000
>             Status: online
>
> As you can see the target has not kept the TPGT assignments across the
> reboot :(
>
> Do you think that this may have something to do with the fact that I
> created these iscsi luns using the "shareiscsi=on" zfs parameter as
> apposed to the "iscsitadm create target" command?
>
> Any suggestions, comments, pointers would be appreciated.
>
> Thanks
> Bruce
>
> _______________________________________________
> storage-discuss mailing list
> storage-discuss@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/storage-discuss

Jim Dunham
Solaris, Storage Software Group

Sun Microsystems, Inc.
1617 Southwood Drive
Nashua, NH 03063
Email: [EMAIL PROTECTED]
http://blogs.sun.com/avs



_______________________________________________
storage-discuss mailing list
storage-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/storage-discuss

Reply via email to