Simon,

> Hi,
>
> On a iSCSI target server, how does one locally access the target  
> device made available to other initiators?

Through the "localhost" IP address of 127.0.0.1, or more specifically  
127.0.0.1:3260

Add local host to discovery address list

# iscsiadm add discovery-address 127.0.0.1

Ask local host what targets are available

# iscsiadm list discovery-address -v 127.0.0.1
Discovery Address: 127.0.0.1:3260
         Target name: iqn.1986-03.com.sun:02:8287d019-313c-ef2f-edf7- 
d5f715fb871d.c4t
                 Target address:       127.0.0.1:3260, 1
         Target name: iqn.1986-03.com.sun: 
02:e8a8325a-83b2-6e0a-96e8-83aa240793db.c5t
                 Target address:       127.0.0.1:3260, 1

Either enable send targets discovery...

# iscsiadm modify discovery --sendtargets enable

Or enable static discovery, and cut-n-paste target names

# iscsiadm modify discovery --static enable
# iscsiadm add static-config iqn.1986-03.com.sun:02:8287d019-313c-ef2f- 
edf7-d5f715fb871d.c4t,127.0.0.1:3260
# iscsiadm add static-config iqn.1986-03.com.sun: 
02:e8a8325a-83b2-6e0a-96e8-83aa240793db.c5t,127.0.0.1:3260


> Can it be be mounted just like a local storage device?

Since you mentioned the word "mounted", except for file systems like  
shared-QFS, all (or mostly all) other file Solaris filesystems are  
single accessor only. Although there is nothing preventing this,  
mounting a non-shared filesystem on multiple hosts, even if read-only  
can cause read errors, or possible system panics.

> Or Must be mounted as initiator like all other remote initiators?
>
> Simon
>
>
> This message posted from opensolaris.org
> _______________________________________________
> storage-discuss mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/storage-discuss

Jim Dunham
Storage Platform Software Group
Sun Microsystems, Inc.
wk: 781.442.4042

http://blogs.sun.com/avs
http://www.opensolaris.org/os/project/avs/
http://www.opensolaris.org/os/project/iscsitgt/
http://www.opensolaris.org/os/community/storage/

_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss

Reply via email to