If I understand your question correctly, it will happen automatically.
With the default view (i.e. without specifying a host-group or a
target-group) to stmfadm add-view, the LU is automatically mapped to
all targets. You can see in the view entry (i.e. with "stmfadm
list-view -v GUID") which LUnumber got assigned to this LU. Any
initiator that connects to this target that uses the SCSI "Report LUNs"
feature will see this LUnumber, and will further SCSI commands will see
that it is associated with this LU GUID.
In general, COMSTAR uses the "many LUs per target" model using a
different LUN for each LU. If you want to emulate a different model
such as the "one LU per target" model, then you will have to carefully
read the sections about "LUN Mapping" in the COMSTAR Admin Guide:
http://wikis.sun.com/display/OpenSolarisInfo/How+to+Make+Logical+Units+Available+for+iSCSI+and+iSER
http://wikis.sun.com/display/OpenSolarisInfo/How+to+Make+SCSI+Logical+Units+Available
Some of that discussion refers to setting up Logical Unit mapping for
Fibre Channel targets, but exactly the same principles apply for LUN
Mapping of iscsi targets.
Hope that helps,
Peter Cudhea
On 08/12/09 16:21, glidic anthony wrote:
Hi,
when i create an iscsi volume i make:
zfs create -V taille pool/nompartage
sbdadm create-lu /dev/zvol/rdsk/pool/nompartage -> GUID
stmfadm add-view GUID
itadm create-target
But if i want to make an other share how i know the itadm use my new share to
create the target?
Thanks for answer
_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss