Tonight I came at it again. This time with my favorite FOSS disk imaging tool, Clonezilla!. The wonderful team behind it didn't skimp out and included the open-iscsi packages.
Download and burn a copy of the latest Ubuntu version of Clonezilla.
Boot from the Clonezilla live CDROM. Select all of the regional configuration options you require.
Stop when you get the the ncurses prompt to begin using Clonezilla or use the console. Press
Get some networking configured otherwise you aren't going to be able to connect to the LUN.
sudo dhclient eth0
Now edit the iscsid.conf file.
sudo vi /etc/iscsi/iscsid.conf
Look for the node.startup property and set it to automatic.
Now start the open-iscsi daemon.
sudo /etc/init.d/open-iscsi start
Use the following command to query the iSCSI target for LUNs.
iscsiadm -m discovery -t sendtargets -p IP_OF_YOUR_TARGET
Here's an example of what mine looked like:
user@karmic:~$ sudo iscsiadm -m discovery -t st -p localhost 192.168.50.10:3260,1 iqn.2007-10.local.server-1:storage.lun0
Now I can connect using the following:
iscsiadm -m node -T iqn.2007-10.local.server-1:storage.lun0 -p 192.168.50.10:3260 -l
Now check the /var/log/messages for the newly created virtual SCSI device.
Now you can switch back to console #1 and continue with Clonezilla wizard. Select local disk to local disk when prompted for which mode to use.