To be able to work with AWS VTL, you need to deploy a Transporter and manually mount VTL targets. Follow the steps below to do so:
- Log in to your AWS account and create an AWS Storage Gateway. By default, you will receive 1 media changer and 10 drives.
- Deploy a Transporter on a Linux VM, located in the same region and VPC as the VTL instance. If using Ubuntu, install Linux generic kernel and make it bootable (for more information, refer to https://www.digitalocean.com/docs/droplets/how-to/kernel/use-non-default).
- Mount the VTL media changer and drives as ISCSI targets by running a separate command for every target (NOT automatic target login). Use the gateway IP address for the discovery.
- Run the following command to see if you have any mounted targets:
root@ip-172-31-10-209:/opt/nakivo/transporter/scripts# iscsiadm -m session
Result:
iscsiadm: No active sessions. - Run the following command to discover all possible targets using the VTL's IP address:
root@ip-172-31-10-209:/opt/nakivo/transporter/scripts# iscsiadm -m discovery -t st -p 10.30.100.173
Result shows the contents of a VTL:
10.30.100.173:3260,1 iqn.1997-05.com.amazon:sgw-6dcd2804-tapedrive-10
10.30.100.173:3260,1 iqn.1997-05.com.amazon:sgw-6dcd2804-mediachanger
10.30.100.173:3260,1 iqn.1997-05.com.amazon:sgw-6dcd2804-tapedrive-08
10.30.100.173:3260,1 iqn.1997-05.com.amazon:sgw-6dcd2804-tapedrive-09
10.30.100.173:3260,1 iqn.1997-05.com.amazon:sgw-6dcd2804-tapedrive-06
10.30.100.173:3260,1 iqn.1997-05.com.amazon:sgw-6dcd2804-tapedrive-07
10.30.100.173:3260,1 iqn.1997-05.com.amazon:sgw-6dcd2804-tapedrive-04
10.30.100.173:3260,1 iqn.1997-05.com.amazon:sgw-6dcd2804-tapedrive-05
10.30.100.173:3260,1 iqn.1997-05.com.amazon:sgw-6dcd2804-tapedrive-02
10.30.100.173:3260,1 iqn.1997-05.com.amazon:sgw-6dcd2804-tapedrive-03
10.30.100.173:3260,1 iqn.1997-05.com.amazon:sgw-6dcd2804-tapedrive-01 - Run the following commands for every target using its iqn to mount the targets in order:
root@ip-172-31-10-209:/opt/nakivo/transporter/scripts# iscsiadm --mode node --targetname iqn.1997-05.com.amazon:sgw-6dcd2804-mediachanger --portal 10.30.100.173 --login
Logging in to [iface: default, target: iqn.1997-05.com.amazon:sgw-6dcd2804-mediachanger, portal: 10.30.100.173,3260] (multiple)
Login to [iface: default, target: iqn.1997-05.com.amazon:sgw-6dcd2804-mediachanger, portal: 10.30.100.173,3260] successful.
root@ip-172-31-10-209:/opt/nakivo/transporter/scripts# iscsiadm --mode node --targetname iqn.1997-05.com.amazon:sgw-6dcd2804-tapedrive-01 --portal 10.30.100.173 --login
Logging in to [iface: default, target: iqn.1997-05.com.amazon:sgw-6dcd2804-tapedrive-01, portal: 10.30.100.173,3260] (multiple)
Login to [iface: default, target: iqn.1997-05.com.amazon:sgw-6dcd2804-tapedrive-01, portal: 172.31.4.196,3260] successful.
root@ip-172-31-10-209:/opt/nakivo/transporter/scripts# iscsiadm --mode node --targetname iqn.1997-05.com.amazon:sgw-6dcd2804-tapedrive-02 --portal 10.30.100.173 --login
Logging in to [iface: default, target: iqn.1997-05.com.amazon:sgw-6dcd2804-tapedrive-02, portal: 10.30.100.173,3260] (multiple)
Login to [iface: default, target: iqn.1997-05.com.amazon:sgw-6dcd2804-tapedrive-02, portal: 10.30.100.173,3260] successful. - Run the following command to see if your media changer and all drives were mounted in order:
root@ip-172-31-10-209:/opt/nakivo/transporter/scripts# iscsiadm -m session
Result shows the targets in order starting with media changer:
tcp: [1] 172.31.4.196:3260,1 iqn.1997-05.com.amazon:sgw-6dcd2804-mediachanger (non-flash)
tcp: [10] 172.31.4.196:3260,1 iqn.1997-05.com.amazon:sgw-6dcd2804-tapedrive-09 (non-flash)
tcp: [11] 172.31.4.196:3260,1 iqn.1997-05.com.amazon:sgw-6dcd2804-tapedrive-10 (non-flash)
tcp: [2] 172.31.4.196:3260,1 iqn.1997-05.com.amazon:sgw-6dcd2804-tapedrive-01 (non-flash)
tcp: [3] 172.31.4.196:3260,1 iqn.1997-05.com.amazon:sgw-6dcd2804-tapedrive-02 (non-flash)
tcp: [4] 172.31.4.196:3260,1 iqn.1997-05.com.amazon:sgw-6dcd2804-tapedrive-03 (non-flash)
tcp: [5] 172.31.4.196:3260,1 iqn.1997-05.com.amazon:sgw-6dcd2804-tapedrive-04 (non-flash)
tcp: [6] 172.31.4.196:3260,1 iqn.1997-05.com.amazon:sgw-6dcd2804-tapedrive-05 (non-flash)
tcp: [7] 172.31.4.196:3260,1 iqn.1997-05.com.amazon:sgw-6dcd2804-tapedrive-06 (non-flash)
tcp: [8] 172.31.4.196:3260,1 iqn.1997-05.com.amazon:sgw-6dcd2804-tapedrive-07 (non-flash)
tcp: [9] 172.31.4.196:3260,1 iqn.1997-05.com.amazon:sgw-6dcd2804-tapedrive-08 (non-flash) - Run the following command to verify that your operating system sees the mounted media changer and drives:
root@ip-172-31-10-209:/opt/nakivo/transporter/scripts# lsscsi -g
Result:
2:0:0:0] mediumx AWS Gateway-VTL 0100 - /dev/sg0
[3:0:0:0] tape IBM ULT3580-TD5 0103 - /dev/sg1
[4:0:0:0] tape IBM ULT3580-TD5 0103 - /dev/sg2
[5:0:0:0] tape IBM ULT3580-TD5 0103 - /dev/sg3
[6:0:0:0] tape IBM ULT3580-TD5 0103 - /dev/sg4
[7:0:0:0] tape IBM ULT3580-TD5 0103 - /dev/sg5
[8:0:0:0] tape IBM ULT3580-TD5 0103 - /dev/sg6
[9:0:0:0] tape IBM ULT3580-TD5 0103 - /dev/sg7
[10:0:0:0] tape IBM ULT3580-TD5 0103 - /dev/sg8
[11:0:0:0] tape IBM ULT3580-TD5 0103 - /dev/sg9
[12:0:0:0] tape IBM ULT3580-TD5 0103 - /dev/sg10 - Run the following command to see the drives and slots of the device along with tape cartridges locations:
root@ip-172-31-10-209:/opt/nakivo/transporter/scripts# mtx -f /dev/sg0 status | more
Result ("Storage Element 1:Full :VolumeTag=SYAU815626" shows the tape cartridges)
Storage Changer /dev/sg0:10 Drives, 3200 Slots ( 1600 Import/Export )
Data Transfer Element 0:Empty
Data Transfer Element 1:Empty
Data Transfer Element 2:Empty
Data Transfer Element 3:Empty
Data Transfer Element 4:Empty
Data Transfer Element 5:Empty
Data Transfer Element 6:Empty
Data Transfer Element 7:Empty
Data Transfer Element 8:Empty
Data Transfer Element 9:Empty
Storage Element 1:Full :VolumeTag=SYAU815626
Storage Element 2:Full :VolumeTag=ABCD906237
Storage Element 3:Empty:VolumeTag=
Storage Element 4:Empty:VolumeTag=
Storage Element 5:Empty:VolumeTag=
Storage Element 6:Empty:VolumeTag=
Storage Element 7:Empty:VolumeTag=
Storage Element 8:Empty:VolumeTag=
Storage Element 9:Empty:VolumeTag=
Storage Element 10:Empty:VolumeTag=