Administrator’s Command Line Guide

Table Of Contents
2.2. Creating iSCSI Targets
ISCSI_ROOT=/vstorage/stor1/iscsi
You are now ready to create iSCSI targets in your Acronis Storage cluster.
2.2 Creating iSCSI Targets
Note:
1. Each iSCSI target must be assigned at least one unique IP address from DC network’s static pool.
2. The name of each iSCSI target must be unique in the Acronis Storage cluster.
3. 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:
1. If you need to change target’s IP address, stop the target as described in Stopping iSCSI Targets on
page 8, then run the command vstorage-iscsi set -t <target_name> -a <new_IP_address>.
2. If you need to increase the size of a LUN, stop the target as described in Stopping iSCSI Targets on
page 8, 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
5