Managing the iSCSI targets
To create an iSCSI target
- To create an iSCSI target, enter the following:
Target> iscsi target create target-name
target-name
Name of the iSCSI target at which SCSI LUNs are available. target-name should conform to the naming rules defined in RFC3721.
To destroy an iSCSI target
- To destroy an iSCSI target, enter the following:
Target> iscsi target destroy target-name
To list all iSCSI targets
- To list all iSCSI targets, enter the following:
Target> iscsi target list
To list the specific iSCSI target
- To list the specific iSCSI target, enter the following:
Target> iscsi target list target-name
To check the status of a specific iSCSI target
- To check the status of a specific iSCSI target, enter the following:
Target> iscsi target status target-name
To add multiple portal addresses to an iSCSI target
- To add multiple portal addresses to an iSCSI target, enter the following:
Target> iscsi target portal add target-name portal-ip
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-ip
The virtual IP through which the target is accessible. You can specify multiple portal addresses that you want to add.
To delete multiple portal addresses from an iSCSI target
- To delete multiple portal addresses from an iSCSI target, enter the following:
Target> iscsi target portal del target-name portal-ip
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-ip
The virtual IP through which the target is accessible. You can specify multiple portal addresses that you want to delete.
To map a file system with a specified iSCSI target
- To map a file system with a specified iSCSI target, enter the following:
Target> iscsi target store add fs-name target-name
fs-name
Name of the file system which is to be mapped to an iSCSI target. LUNs are created as files on this file system.
target-name
Name of the iSCSI target at which SCSI LUNs are available. target-name should conform to the naming rules defined in RFC3721.
To remove the file system from a specified iSCSI target
- To remove the file system from a specified iSCSI target, enter the following:
Target> iscsi target store delete fs-name target-name
fs-name
Name of the file system which is to be removed from an iSCSI target.
target-name
Name of the iSCSI target at which SCSI LUNs are available. target-name should conform to the naming rules defined in RFC3721.