AWS Storage Gateway
User Guide (API Version 2013-06-30)

Using Your Tape Gateway

Following, you can find instructions about how to use your tape gateway.

Connect Your VTL Devices

Following, you can find instructions about how to connect you VTL devices to your Windows or Red Hat Enterprise Linux client. For instructions on accessing the iSCSI VTL devices from Linux, see Connecting to a Windows Client.

Connecting to a Windows Client

To connect your VTL devices in a Windows client

  1. Run iscsicpl.exe


    You must have administrator rights on the client computer to run the iSCSI initiator.

  2. Start the Microsoft iSCSI initiator service.

  3. In the iSCSI Initiator Properties dialog box, choose the Discovery tab, and then choose the Discover Portal button.

  4. Provide the IP address of your tape gateway for IP address or DNS name

  5. Choose the Targets tab, and then choose Refresh. All ten tape drives and the medium changer appear in the Discovered targets box. The status for the targets is Inactive.

  6. Select the first device and connect it. You connect the devices one at a time.

  7. Connect all of targets.

  8. On a Windows client, the driver provider for the tape drive must be Microsoft. Use the following procedure to verify the driver provider, and update the driver and provider if necessary.

    1. On your Windows client, start Device Manager.

    2. Expand Tape drives, choose the context (right-click) menu for a tape drive, and choose Properties.

    3. In the Driver tab of the Device Properties dialog box, verify Driver Provider is Microsoft.

    4. If Driver Provider is not Microsoft, set the value as follows:

      1. Choose Update Driver.

      2. In the Update Driver Software dialog box, choose Browse my computer for driver software.

      3. In the Update Driver Software dialog box, choose Let me pick from a list of device drivers on my computer.

      4. Select LTO Tape drive and choose Next.

    5. Choose Close to close the Update Driver Software window, and verify that the Driver Provider value is now set to Microsoft.

    6. Repeat steps 9.2 through 9.5 to update all the tape drives.

Connecting to a Linux Client

To connect a Linux client to VTL devices

  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. Ensure that the iSCSI daemon is running.

    For RHEL 5 or 6, use the following command.

    sudo /etc/init.d/iscsi status

    For RHEL 7, 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 will look like the following example output.

    For volume gateways: [GATEWAY_IP]:3260, 1

    For tape gateways:[GATEWAY_IP]-tapedrive-01

  4. Connect to a target.

    Note that you need to specify the correct [GATEWAY_IP] and IQN in the connect command.

    Use the following command.

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

    ls -l /dev/disk/by-path

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

    lrwxrwxrwx. 1 root root 9 Apr 16 19:31 ip-[GATEWAY_IP] -> ../../sda

    After setting up your initiator, we highly recommend that you customize your iSCSI settings as discussed in Customizing Your Linux iSCSI Settings.