You are going to need to know the view to know that. "stmfadm list-view" is
the command to check that, and one can be added with the "stmfadm add-view"
command. The man pages for stmfadm has the precise syntaxes for these
subcommands. You will also likely need to set up the target-groups for the
iscsi targets you have created, ("stmfadm create-tg" "stmfadm
add-tg-member" and "stmfadm list-tg" as appropriate) if you haven't
already. This may seem kind of counter-intuitive, but it is a side effect
of using one abstracted system for managing all forms of targets (SAS,
iSCSI, IB,  and FC, I think, maybe others?).

Andrew Hettinger
http://Prominic.NET  ||  ahettin...@prominic.net
Tel:  866.339.3169 (toll free) -or- +1.217.356.2888 x.110 (int'l)
Fax: 866.372.3356 (toll free) -or- +1.217.356.3356            (int'l)


fat wrote on 07/05/2010 09:49:42 AM:

>
> Maybe this is obvious, but I can't figure it out:
>
> Which Logical Unit is attached to which iscsi target?
>
> # stmfadm list-lu -v
> LU Name: 600144F00800273EE2934C31D74C0001
>     Operational Status: Online
>     Provider Name     : sbd
>     Alias             : /dev/zvol/rdsk/tank/st
>     View Entry Count  : 1
>     Data File         : /dev/zvol/rdsk/tank/st
>     Meta File         : not set
>     Size              : 34359738368
>     Block Size        : 512
>     Management URL    : not set
>     Vendor ID         : SUN
>     Product ID        : COMSTAR
>     Serial Num        : not set
>     Write Protect     : Disabled
>     Writeback Cache   : Enabled
>     Access State      : Active
> LU Name: 600144F00800273EE2934C31F1040002
>     Operational Status: Online
>     Provider Name     : sbd
>     Alias             : /dev/zvol/rdsk/tank/onegig
>     View Entry Count  : 1
>     Data File         : /dev/zvol/rdsk/tank/onegig
>     Meta File         : not set
>     Size              : 1073741824
>     Block Size        : 512
>     Management URL    : not set
>     Vendor ID         : SUN
>     Product ID        : COMSTAR
>     Serial Num        : not set
>     Write Protect     : Disabled
>     Writeback Cache   : Enabled
>     Access State      : Active
> LU Name: 600144F00800273EE2934C31F1090003
>     Operational Status: Online
>     Provider Name     : sbd
>     Alias             : /dev/zvol/rdsk/tank/twogig
>     View Entry Count  : 0
>     Data File         : /dev/zvol/rdsk/tank/twogig
>     Meta File         : not set
>     Size              : 2147483648
>     Block Size        : 512
>     Management URL    : not set
>     Vendor ID         : SUN
>     Product ID        : COMSTAR
>     Serial Num        : not set
>     Write Protect     : Disabled
>     Writeback Cache   : Enabled
>     Access State      : Active
> # itadm list-target -v
> TARGET NAME                                                  STATE
SESSIONS
> iqn.1986-03.com.sun:02:05af5c13-a1a9-6e57-e71d-d318e4719ac8  online 0

>         alias:                  -
>         auth:                   none (defaults)
>         targetchapuser:         -
>         targetchapsecret:       unset
>         tpg-tags:               default
> iqn.1986-03.com.sun:02:17dc7aa2-1d77-cc9d-b3e0-f7052838a7ad  online 0

>         alias:                  -
>         auth:                   none (defaults)
>         targetchapuser:         -
>         targetchapsecret:       unset
>         tpg-tags:               default
> iqn.1986-03.com.sun:02:045a54b5-0143-4c50-c907-e40284228dd8  online 0

>         alias:                  -
>         auth:                   none (defaults)
>         targetchapuser:         -
>         targetchapsecret:       unset
>         tpg-tags:               default
> iqn.1986-03.com.sun:02:acca0994-fff7-ed6a-a4e2-e7e762d4a1ae  online 0

>         alias:                  -
>         auth:                   none (defaults)
>         targetchapuser:         -
>         targetchapsecret:       unset
>         tpg-tags:               default
> iqn.1986-03.com.sun:02:df479de4-9264-ed43-88ed-fc83fc49d1d5  online 0

>         alias:                  -
>         auth:                   none (defaults)
>         targetchapuser:         -
>         targetchapsecret:       unset
>         tpg-tags:               default
> iqn.1986-03.com.sun:02:95d52a9c-d2df-470f-b5ba-98e034af4e26  online 0

>         alias:                  -
>         auth:                   none (defaults)
>         targetchapuser:         -
>         targetchapsecret:       unset
>         tpg-tags:               default
> --
> This message posted from opensolaris.org
> _______________________________________________
> storage-discuss mailing list
> storage-discuss@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/storage-discuss
_______________________________________________
storage-discuss mailing list
storage-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/storage-discuss

Reply via email to