Logo - tutorial.programming4.us
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
 
 
Windows Server

Windows Server 2012 : File Services and Storage - Configuring iSCSI storage (part 6) - Using iSCSI Initiator - Establishing a connection

3/25/2014 4:35:33 AM

Establishing a connection

After you discover the targets available on a target portal, you can use the initiator to connect to a target so that you can provision storage from the target. For example, Figure 7 shows two targets available on HOST7. To connect to the first target in this list, do the following:

  1. Select the first target listed on the Targets tab of your initiator, and click Connect. This displays the Connect To Target dialog box, which displays the name (IQN) of the target:

    image with no caption

    Note that by default, connecting to the target will also add the connection to the list of targets on the Favorite Targets tab so that each time the initiator computer starts it will automatically attempt to restore the connection to the target.

  2. Selecting the Enable Multi-Path option on the Connect To Target dialog box allows the initiator to use MultiPath IO (MPIO), which allows the use of multiple paths to iSCSI storage for redundancy and fault tolerance.

  3. Clicking Advanced opens the Advanced Settings dialog box, which allows you to specify or configure the following:

    • The local adapter or initiator IP address

    • CRC/Checksum settings for data or the header digest

    • CHAP logon information, including whether to use RADIUS

    • IPsec settings

When you are ready to connect to the target, click OK. If the connection attempt is successful, the Status column will display Connected for the selected target. (See Figure 8.)

The initiator has established a connection with one of the targets on HOST7.
Figure 8. The initiator has established a connection with one of the targets on HOST7.

You can also use Windows PowerShell to establish a connection between an initiator and a target. As an example, start by using the Get-IscsiConnection cmdlet to display a list of active connections on the initiator computer:

PS C:\> Get-IscsiConnection

ConnectionIdentifier : fffffa80144a8020-1
InitiatorAddress : 0.0.0.0
InitiatorPortNumber : 34815
TargetAddress : 172.16.11.240
TargetPortNumber : 3260
PSComputerName :

To view information about the session for this connection, you can get the connection using the Get-IscsiConnection cmdlet and pipe the connection into the Get-IscsiSession cmdlet like this:

PS C:\> Get-IscsiConnection -ConnectionIdentifier "fffffa80144a8020-1" | `
Get-IscsiSession

AuthenticationType : NONE
InitiatorInstanceName : ROOT\ISCSIPRT\0000_0
InitiatorNodeAddress : iqn.1991-05.com.microsoft:host4.corp.fabrikam.com
InitiatorPortalAddress : 0.0.0.0
InitiatorSideIdentifier : 400001370000
IsConnected : True
IsDataDigest : False
IsDiscovered : False
IsHeaderDigest : False
IsPersistent : True
NumberOfConnections : 1
SessionIdentifier : fffffa80144a8020-4000013700000002
TargetNodeAddress : iqn.1991-05.com.microsoft:host7-fabrikam-data-target
TargetSideIdentifier : 0100
PSComputerName :

Note that the value of the TargetNodeAddress property in the preceding command output is what you would expect based on what you saw earlier in the Discovered Targets list in Figure 8.

Now let’s establish a connection to the second target shown in Figure 8. To do this, begin by using the Get-IscsiTarget cmdlet to display a list of available targets that have been discovered on the target portal:

PS C:\> Get-IscsiTarget | fl

IsConnected : False
NodeAddress : iqn.1991-05.com.microsoft:host7-fabrikam-db-target
PSComputerName :

IsConnected : True
NodeAddress : iqn.1991-05.com.microsoft:host7-fabrikam-data-target
PSComputerName :

You already established a connection with the target named fabrikam-data, so let’s try to establish a connection with target fabrikam-db instead. To do this, use the Connect-IscsiTarget cmdlet and specify the IQN of target fabrikam-db like this:

PS C:\> Connect-IscsiTarget -NodeAddress `
"iqn.1991-05.com.microsoft:host7-fabrikam-db-target"

AuthenticationType : NONE
InitiatorInstanceName : ROOT\ISCSIPRT\0000_0
InitiatorNodeAddress : iqn.1991-05.com.microsoft:host4.corp.fabrikam.com
InitiatorPortalAddress : 0.0.0.0
InitiatorSideIdentifier : 400001370000
IsConnected : True
IsDataDigest : False
IsDiscovered : False
IsHeaderDigest : False
IsPersistent : False
NumberOfConnections : 1
SessionIdentifier : fffffa80144a8020-4000013700000003
TargetNodeAddress : iqn.1991-05.com.microsoft:host7-fabrikam-db-target
TargetSideIdentifier : 0200
PSComputerName :

The IsConnected property in the preceding command output indicates that your connection attempt succeeded, but the value of the IsPersistent property indicates that your connection won’t persist across reboots. To fix this, you can use the Register-IscsiSession cmdlet with the SessionIdentifier taken from the preceding command output:

PS C:\> Register-IscsiSession -SessionIdentifier "fffffa80144a8020-4000013700000003"

If you now view the value of the IsPersistent property for this session, you can see that the session has been configured to persist across reboots:

PS C:\> Get-IscsiSession -SessionIdentifier "fffffa80144a8020-4000013700000003" | `
fl IsPersistent

IsPersistent : True
 
Other -----------------
- Sharepoint 2013 : Service Application Fundamentals (part 3) - Connecting Across Farms
- Sharepoint 2013 : Service Application Fundamentals (part 2) - The Connection Structure - Tying It Up with an Example
- Sharepoint 2013 : Service Application Fundamentals (part 1) - The Connection Structure -Service Application Groups
- Sharepoint 2013 : Understanding Service Applications - A History of Service Applications in SharePoint
- Microsoft Exchange Server 2007 : Consolidating a Windows 2000 Domain to a Windows Server 2003 Domain Using ADMT (part 5) - Migrating Computer Accounts
- Microsoft Exchange Server 2007 : Consolidating a Windows 2000 Domain to a Windows Server 2003 Domain Using ADMT (part 4) - Migrating User Accounts
- Microsoft Exchange Server 2007 : Consolidating a Windows 2000 Domain to a Windows Server 2003 Domain Using ADMT (part 3) - Migrating Groups
- Microsoft Exchange Server 2007 : Consolidating a Windows 2000 Domain to a Windows Server 2003 Domain Using ADMT (part 2) - Installing a Password Migration DLL on the Source Domain
- Microsoft Exchange Server 2007 : Consolidating a Windows 2000 Domain to a Windows Server 2003 Domain Using ADMT (part 1) - Modifying Default Domain Policy on the Target Domain
- Microsoft Exchange Server 2007 : Upgrading Separate AD Forests to a Single Forest Using Mixed-Mode Domain Redirect (part 2)
 
 
Top 10
- Microsoft Exchange Server 2013 : Working with cmdlets (part 2) - Understanding cmdlet errors, Using cmdlet aliases
- Microsoft Exchange Server 2013 : Working with cmdlets (part 1) - Using Windows PowerShell cmdlets, Using cmdlet parameters
- Microsoft Exchange Server 2013 : Using Windows PowerShell (part 2) - Running and using cmdlets, Running and using other commands and utilities
- Microsoft Exchange Server 2013 : Using Windows PowerShell (part 1) - Running and using Windows PowerShell
- Troubleshooting Stop Messages : Being Prepared for Stop Errors - Prevent System Restarts After a Stop Error
- Troubleshooting Stop Messages : Memory Dump Files (part 3) - Using Memory Dump Files to Analyze Stop Errors - WinDbg Debugger
- Troubleshooting Stop Messages : Memory Dump Files (part 2) - Using Memory Dump Files to Analyze Stop Errors - Using Problem Reports And Solutions
- Troubleshooting Stop Messages : Memory Dump Files (part 1) - Configuring Small Memory Dump Files, Configuring Kernel Memory Dump Files
- Troubleshooting Stop Messages : Stop Message Overview - Identifying the Stop Error, Finding Troubleshooting Information
- Deploying IPv6 : Planning for IPv6 Migration - Understanding ISATAP, Migrating an Intranet to IPv6
 
STARS
MOM
HEALTH
FAMILY
ADVICES
GIRLS