# Configuring iSCSI Discovery Control to Specific Initiators

By default, discovery for all devices by all initiators are prevented. Discovery control can be configured to allow access to specific MediaAgents (initiators) to detect the virtual devices using iSCSI.

## Before You Begin

- Setup the user credentials needed to secure iSCSI device access.

- Login to the VTL host as root.

- Open for editing the following file and keep it ready to add the necessary entries:

  /commvaultvtl/etc/iet/initiators.allow

## Procedure

1. From the navigation pane, click Virtual Libraries.

   The Configured VTLs page appears.

2. In the row for the library that you want to add access, click View.

   The details for the virtual tape library is displayed.

3. Under VTL Information, click View in the iSCSI row.

   The iSCSI Configuration page is displayed.

4. Copy the IQN and add it as an entry in initiators.allow.

   The IQN would be similar to the following example:

       iqn.2006-06.com.commvault.vtl.VTL.MyLibrary1.autoloader

5. Click the browser's back button to display the previous page.

6. Under VDrive Information, for each drive, click View in the iSCSI column.

   The iSCSI Configuration page is displayed.

7. Copy the IQN and add it as an an entry in initiators.allow.

   The IQN would be similar to the following example:

       iqn.2006-06.com.commvault.vtl.VTL.MyLibrary1.drive1

8. If necessary, repeat steps 5 to 7 to add additional drives.

9. Add the IP address associated with the initiating MediaAgent to the IQNs, for each device that was added using the above steps.

   Once completed you should have entries similar to the following example in initiators.allow:

       iqn.2006-06.com.commvault.vtl.VTL.MyLibrary1.autoloader 111.111.111.100
       iqn.2006-06.com.commvault.vtl.VTL.MyLibrary1.drive1 111.111.111.100

10. Repeat the steps for multiple devices and/or multiple initiators.

11. Save the initiators.allow file.

12. Restart the Commvault VTL 2.0 service using the following command:

        # systemctl restart commvaultvtl.service

## Result

This will allow device discovery when initiating MediaAgents point to this iSCSI portal.

×

Loading...