Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Connecting your volumes to your client

Focus mode
Connecting your volumes to your client - AWS Storage Gateway

You use the iSCSI initiator in your client to connect to your volumes. At the end of the following procedure, the volumes become available as local devices on your client.

Important

With Storage Gateway, you can connect multiple hosts to the same volume if the hosts coordinate access by using Windows Server Failover Clustering (WSFC). You can't connect multiple hosts to the same volume without using WSFC, for example by sharing a nonclustered NTFS/ext4 file system.

Connecting to a Microsoft Windows client

The following procedure shows a summary of the steps that you follow to connect to a Windows client. For more information, see Connecting iSCSI Initiators.

To connect to a Windows client
  1. Start iscsicpl.exe.

  2. In the iSCSI Initiator Properties dialog box, choose the Discovery tab, and then choose Discovery Portal.

  3. In the Discover Target Portal dialog box, type the IP address of your iSCSI target for IP address or DNS name.

  4. Connect the new target portal to the storage volume target on the gateway.

  5. Choose the target, and then choose Connect.

  6. In the Targets tab, make sure that the target status has the value Connected, indicating the target is connected, and then choose OK.

Connecting to a Red Hat Enterprise Linux client

The following procedure shows a summary of the steps that you follow to connect to a Red Hat Enterprise Linux (RHEL) client. For more information, see Connecting iSCSI Initiators.

To connect a Linux client to iSCSI targets
  1. Install the iscsi-initiator-utils RPM package.

    You can use the following command to install the package.

    sudo yum install iscsi-initiator-utils
  2. Make sure that the iSCSI daemon is running.

    For RHEL 5 or 6, use the following command.

    sudo /etc/init.d/iscsi status

    For RHEL 7, 8, or 9, use the following command.

    sudo service iscsid status
  3. Discover the volume or VTL device targets defined for a gateway. Use the following discovery command.

    sudo /sbin/iscsiadm --mode discovery --type sendtargets --portal [GATEWAY_IP]:3260

    The output of the discovery command should look like the following example output.

    For Volume Gateways: [GATEWAY_IP]:3260, 1 iqn.1997-05.com.amazon:myvolume

    For Tape Gateways: iqn.1997-05.com.amazon:[GATEWAY_IP]-tapedrive-01

  4. Connect to a target.

    Make sure to specify the correct [GATEWAY_IP] and IQN in the connect command.

    Use the following command.

    sudo /sbin/iscsiadm --mode node --targetname iqn.1997-05.com.amazon:[ISCSI_TARGET_NAME] --portal [GATEWAY_IP]:3260,1 --login
  5. Verify that the volume is attached to the client machine (the initiator). To do so, use the following command.

    ls -l /dev/disk/by-path

    The output of the command should look like the following example output.

    lrwxrwxrwx. 1 root root 9 Apr 16 19:31 ip-[GATEWAY_IP]:3260-iscsi-iqn.1997-05.com.amazon:myvolume-lun-0 -> ../../sda

    We highly recommend that after you set up your initiator you customize your iSCSI settings as discussed in Customizing Your Linux iSCSI Settings.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.