2.2. Creating iSCSI Targets¶
Note
- Each iSCSI target must be assigned at least one unique IP address from DC network’s static pool.
- The name of each iSCSI target must be unique in the Acronis Storage cluster.
- Acronis Storage iSCSI targets support persistent reservations to allow iSCSI initiators obtain exclusive access to the specified target’s LUNs.
To create a target test1
with the size of 100 GB, the LUN of 1, and the IP address of 192.168.10.100, execute the following commands:
# vstorage-iscsi create -n test1 -a 192.168.10.100
IQN: iqn.2014-04.com.vstorage:test1
# vstorage-iscsi lun-add -t iqn.2014-04.com.vstorage:test1 -l 1 -s 100G
# vstorage-iscsi start -t iqn.2014-04.com.vstorage:test1
Note
- If you need to change target’s IP address, stop the target as described in Stopping iSCSI Targets, then run the command
vstorage-iscsi set -t <target_name> -a <new_IP_address>
. - If you need to increase the size of a LUN, stop the target as described in Stopping iSCSI Targets, then run the command
vstorage-iscsi lun-grow -t <target_name> -l <lun_ID> -s <new_size>
.
To check that the target is up, run the vstorage-iscsi list
command with the target’s name as the option. For example:
# vstorage-iscsi list -t iqn.2014-04.com.vstorage:test1
Target iqn.2014-04.com.vstorage:test1:
Portals: 192.168.10.100
Status: running
Registered: yes
Host: fefacc38a2f140ca
LUN: 1, Size: 102400M, Used: 1M, Online: Yes
For information about the command output, see Listing iSCSI Targets.
iSCSI initiators can now access the target iqn.2014-04.com.vstorage:test1
via the portal 192.168.10.100.
2.2.1. Performance Tips¶
- Spread iSCSI targets evenly across nodes in the cluster. For example, ten nodes with one iSCSI target per each will perform better than a single node with ten iSCSI targets on it.
- Fewer LUNs per more iSCSI targets will perform better than more LUNs per fewer iSCSI targets.
Jan 15, 2019