Administrator’s Command Line Guide
Table Of Contents
- Introduction
- Accessing Storage Clusters via iSCSI
- Accessing Storage Clusters via S3 Protocol
- Monitoring Storage Cluster
- Managing Storage Cluster Security
- Maximizing Storage Cluster Performance
Chapter 2. Accessing Storage Clusters via iSCSI
# vstorage-iscsi register -t iqn.2014-04.com.vstorage:test1
2.5 Stopping iSCSI Targets
To stop an iSCSI target to which no initiators are connected, use the vstorage-iscsi stop command. For
example, for the target iqn.2014-04.com.vstorage:test1:
# vstorage-iscsi stop -t iqn.2014-04.com.vstorage:test1
If one or more iSCSI initiators are still connected to the target, you will be informed as follows:
# vstorage-iscsi stop -t iqn.2014-04.com.vstorage:test1
initiators still connected
Initiator: iqn.1994-05.com.redhat:c678b9f6f0 (192.168.30.100)
Unable stop target iqn.2014-04.com.vstorage:test1
In this case, disconnect the iSCSI initiator according to the product manual and run the vstorage-iscsi stop
command again.
To forcibly stop a target to which one or more initiators are still connected, add the -f option to the
command above. For example:
# vstorage-iscsi stop -t iqn.2014-04.com.vstorage:test1 -f
Breaking the iSCSI connection in such a way may result in I/O errors on the iSCSI initiator’s side.
2.6 Deleting iSCSI Targets
You can delete iSCSI targets with the vstorage-iscsi delete command. Deleting an iSCSI target, you will also
delete all the LUNs within it.
To delete an iSCSI target, do the following:
1. Make sure the target is stopped (for more details, see Stopping iSCSI Targets on page 8).
2. Run the vstorage-iscsi delete command with the target name as the option. For example:
# vstorage-iscsi delete -t iqn.2014-04.com.vstorage:test1
To delete a stopped iSCSI target registered on a different host, add the --force option to the vstorage-iscsi
delete command. For example:
8










