August 8th, 2003. Post install instructions You can simulate an iSCSI session by running both the Initiator and the iSCSI Target emulator on the same machine. 1. Stop the Initiator: /etc/init.d/unh_iscsi stop 2. Execute: /opt/unh/iscsi/src/cmd/ini-local What should appear on the screen is something similar to: Aug 8 15:02:53 kernel: unh_iscsi_initiator: UNH iSCSI Initiator device registered, major number: 253, device : 0xfd00 Aug 8 15:02:53 wb11 kernel: SCSI device sdb: 3710937 512-byte hdwr sectors (1900 MB) Where the disk device "sdb" is the next available SCSI device that was added to the system by the SCSI subsystem. Examine /var/log/messages if the results are different. 3. The disk device created in step 2 has it's storage allocation as a file that resides at /tmp/scsi_disk_file_0_1 . The device represents a iSCSI target. Any operation can be performed on the newly created iSCSI device : fdisk /dev/sdb < create a partition> mkfs /dev/sdb1 mount /dev/sdb1 /mnt touch /mnt/myfile ls -l /mnt umount /mnt/ 4. You can examine the negotiated parameters of the session by viewing the /proc/scsi/iscsi_initiator/0 file. 5. See also: iscsi_manage(8) and iscsi_config(8) . (Note: examine ini-local. You can also run the Target emulator on another machine if you alter the script ).