This walkthrough describes the setup of the linux ISCSI initiator and target. All commands must be executed as root:
Setup of the iSCSI initiator
1. Take a look at already registered LUNs:
2. Find LUNs at a given IP:
3. Connect and login (without authentification):
4. See if session runs:
5. Format with a filesystem and mount it:
6. Work with the mounted disk
7. Unmount and clean up
iSCSI Enterprise Target Setup
Setting up an iSCSI enterprise target under Ubuntu follows the following workflows (taken from here):
1. Install the packages:
2. Enable the target:
3. Create Sparseimage:
4. Define iSCSI LUN
5. Enable the iSCSI LUN
6. Start the target