Veritas™ Appliance iSCSI Guide
- Overview
- Understanding the appliance configurations
- Understanding NetBackup for VMware
- Configuring iSCSI
- Troubleshooting iSCSI issues and some best practices
Discovering targets by using iSNS
This section provides instructions for discovering iSCSI targets by using the Internet storage name service (iSNS) method. Use this method if you have at least one iSNS server on your network. This method enables the iSCSI initiator to discover the targets that are registered to the iSNS server. For this method, you must supply the iSNS server address and/or port. The iSCSI initiator can then query the specified iSNS server to discover targets. The default port for an iSNS server is 3205.
You can connect to a target only after discovering it. Review the following considerations:
If you run the iSCSI > Target Discover Portal or iSCSI > Target Discover iSNS command again after the targets are connected, it overrides the existing connection settings like target credentials. If the target requires authentication, you enter the target credentials again when the existing sessions are reconnected. The existing sessions need to be reconnected if the appliance restarts. When you change the IQN for the appliance or when the iSCSI processes are restarted the existing sessions must be reconnected.
When targets are discovered by using iSNS on two iSCSI interfaces first run the Target Discover iSNS command for iscsi1 and then iscsi2. Only the recent record displays from the Target Show All command. For example the Interfaces column in the Target Show All command may not show both the interfaces (iscsi1, iscsi2) for some targets. It actually shows the interface from the most recent command (iscsi2 in this case) for some targets.
To discover iSCSI targets by using an iSNS server
Note:
An iSNS server must already be set up and available on the network before you run the following procedure.
- Open a Secure Shell (SSH) session to log on to the appliance as an administrator.
- Navigate to the Main_Menu > Settings > iSCSI menu.
- Type the command Target Discover iSNS.
- Enter the address of the iSNS server and the iSCSI Interface name that you have configured as parameters.
The iSNS address must be of the following format <IPv4 address or hostname>[:port]. The host name can be a short name or a fully qualified domain name. The default port is 3205.
Example: 192.116.50.50 or abc:3205
The iSCSI interface name can only contain numbers (0-9), letters (A-Z and a-z), colons (:), hyphens (-), underscores (_) and periods (.). It must begin with numbers (0-9), letters (A-Z and a-z) and underscores (_) only.
- Run the Target Discover iSNS <iSNS address> <Interface name> command to discover all the iSCSI targets that are registered with the iSNS server on the specific interface.
You are asked to provide a username and password. Type yes if your target requires authentication.
Note:
When CHAP authentication is enabled on a target device and targets are discovered by using iSNS, the iSCSI > Target Discover command may not prompt for target credentials.
Does your target require a username and password? (yes,no)[no]:no Showing the discovered targets... +-----+--------------------------|---------------------|----------------+ | No. | Target IQN |Target Portal Address| Interfaces | +-----+--------------------------|---------------------|----------------| | 1 | iqn.1996-03.veritas:abc | 10.121.98.22:3260 | iscsi1, iscsi2 | +-----+--------------------------|---------------------|----------------| | 2 | iqn.1996-03.veritas:xyz | 10.121.98.23:3260 | iscsi1, iscsi2 | +-----+--------------------------|---------------------|----------------+ | 3 | iqn.1996-03.veritas:host | 10.121.98.24:3260 | iscsi1, iscsi2 | ------|--------------------------|---------------------|----------------|