This procedure assumes that you are logged in to the local system that contains the iSCSI targets.
Become superuser.
Identify the backing store directory.
For example:
target# iscsitadm modify admin -d /export/sandbox |
Create an iSCSI target.
For example:
target# iscsitadm create target --size 2g sandbox |
Display information about the iSCSI target.
For example:
target# iscsitadm list target -v sandbox |
Set up your iSCSI initiator to discover and use this target.
For more information, see How to Configure iSCSI Target Discovery.