.. _Creating iSCSI Targets: Creating iSCSI Targets ---------------------- .. include:: /includes/exporting-data-via-iscsi-part2.inc 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 :ref:`Stopping iSCSI Targets`, then run the command ``vstorage-iscsi set -t -a ``. #. If you need to increase the size of a LUN, stop the target as described in :ref:`Stopping iSCSI Targets`, then run the command ``vstorage-iscsi lun-grow -t -l -s ``. 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 :ref:`Listing iSCSI Targets`. iSCSI initiators can now access the target ``iqn.2014-04.com.vstorage:test1`` via the portal 192.168.10.100. .. _Performance Tips: Performance Tips ~~~~~~~~~~~~~~~~ .. include:: /includes/exporting-data-via-iscsi-part3.inc