Configuring multisession on the Solaris operating system

Solaris hosts support multiple iSCSI targets to the system.

Note: Before you configure the Solaris host for multisession for the first time, you must change the load-balance setting in the /kernel/drv/scsi_vhci.conf file to none.
To configure multisession on a Solaris host, complete these steps:
  1. Discover the targets by issuing the iscsiadm add discovery address Target Portal:3260 command.
    For IPv6 discovery, issue the iscsiadm add discovery address Target Portal/64 command.
  2. Configure the target parameter for a multiple session by issuing the iscsiadm modify target-param --configured-sessions 4 iSCSI Target IQN Name command.
  3. Remove the discovery address of the iSCSI target by issuing the iscsiadm remove discovery-address Target IPs command.
  4. Add the iSCSI target IPs back into the Solaris host by repeating the procedure in 1.
    This procedure establishes a session between the iSCSI initiator and the target.

    Adding different portals of an iSCSI target as a Solaris host causes that number of sessions to be established between that host and the target.

To remove the session, you must remove all target portals of a particular target from the initiator by issuing the iscsiadm remove discovery-address Target-Portal:3260 command.