Administrator’s Command Line Guide

Table Of Contents
2.2. Creating and Running Acronis Storage iSCSI Targets
3. Create a directory in the Acronis Storage cluster where you will store iSCSI targets and their configuration.
For example, /vstorage/stor1/iscsi.
4. Set the ISCSI_ROOT variable in /etc/vstorage/iscsi/config to the directory from the previous step. For example:
ISCSI_ROOT=/vstorage/stor1/iscsi
You are now ready to create and run iSCSI targets in your Acronis Storage cluster.
2.2 Creating and Running Acronis Storage
iSCSI Targets
Note:
1. Each iSCSI target must be assigned at least one unique IP address from frontnet’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 and start 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 Acronis Storage
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 Acronis Storage iSCSI
Targets on page 8, then run the command vstorage-iscsi lun-grow -t <target_name> -l <lun_ID> -s <new_size>.
5