Configuring the iSCSI targets
To display the iSCSI targets
- To display the iSCSI targets, enter the following:
Storage> iscsi target list
To display the iSCSI target details
- To display the iSCSI target details, enter the following:
Storage> iscsi target listdetail target
where target is the name of the node you want to display the details for.
This list also shows targets discovered at discovery-address, not only manually added targets.
To add an iSCSI target
- To add an iSCSI target, enter the following:
Storage> iscsi target add target-name portal-address
target-name
Name of the iSCSI target at which SCSI LUNs are available. target-name should conform to the naming rules defined in RFC3721.
portal-address
The location where the target is accessible.
You can specify either an IPv4 address or an IPv6 address.
To delete an iSCSI target
- To delete an iSCSI target, enter the following:
Storage> iscsi target del target-name {discovery-address|portal-address}target-name
Name of the iSCSI target at which SCSI LUNs are available. target-name should conform to the naming rules defined in RFC3721.
discovery-address
Target address at which an initiator can request a list of targets using a SendTargets text request as specified in iSCSI protocol of RFC3720. If no port is specified with the discovery address, default port 3260 is used.
portal-address
The location where the target is accessible.
To login to an iSCSI target
- To log in to an iSCSI target, enter the following:
Storage> iscsi target login target-name {discovery-address | portal-address}target-name
Name of the iSCSI target at which SCSI LUNs are available. target-name should conform to the naming rules defined in RFC3721.
discovery-address
Target address at which an initiator can request a list of targets using a SendTargets text request as specified in iSCSI protocol of RFC3720. If no port is specified with the discovery address, default port 3260 is used.
portal-address
The location where the target is accessible.
To logout from an iSCSI target
- To logout from an iSCSI target, enter the following:
Storage> iscsi target logout target-name {discovery-address | portal-address}target-name
Name of the iSCSI target at which SCSI LUNs are available. target-name should conform to the naming rules defined in RFC3721.
discovery-address
Target address at which an initiator can request a list of targets using a SendTargets text request as specified in iSCSI protocol of RFC3720. If no port is specified with the discovery address, default port 3260 is used.
portal-address
The location where the target is accessible.
To rescan targets for new LUNs
- To rescan a target for a new LUN, enter the following:
Storage> iscsi target rescan target-name
where target-name is the name of the iSCSI target that you want to rescan.
You can use the Storage> iscsi target rescan command for both static targets and discovered targets.