From Stephan
On iOmega ix4 200d
- Go to settings, iSCSI and 'Enable', leave discovery-option enabled.
- Go to shared storage and 'Add', there select iSCSI instead of shared folder
- Give a name to the new drive
- Define the size of the new drive
- Disable secutiry
- On the next page the iSCSI drive name is displayed. Copy it to clipboard (something like 'iqn.1992-04.com.emc:storage.in-nas.iscsi1')
On Ubuntu 11.04
Create link to disk
- Install iSCSI client software: open-iscsi and open-iscsi-utils
- Edit the config-file (
gedit /etc/iscsi/iscsid.conf) where settings resemble these:
node.startup = automatic
node.session.auth.username = MY-ISCSI-USER
node.session.auth.password = MY-ISCSI-PASSWORD
discovery.sendtargets.auth.username = MY-ISCSI-USER
discovery.sendtargets.auth.password = MY-ISCSI-PASSWORD
node.session.timeo.replacement_timeout = 120
node.conn[0].timeo.login_timeout = 15
node.conn[0].timeo.logout_timeout = 15
node.conn[0].timeo.noop_out_interval = 10
node.conn[0].timeo.noop_out_timeout = 15
node.session.iscsi.InitialR2T = No
node.session.iscsi.ImmediateData = Yes
node.session.iscsi.FirstBurstLength = 262144
node.session.iscsi.MaxBurstLength = 16776192
node.conn[0].iscsi.MaxRecvDataSegmentLength = 65536
(source)
- start client software:
/etc/init.d/open-iscsi restart
- Login to the device: ip-address is that of the ix4, targetname is the name copied in previous section.
iscsiadm --mode node --targetname iqn.1992-04.com.emc:storage.in-nas.iscsi1 --portal ip-address:3260 --login
- Device is added and can be seen with fdisk -l, system will mention that there is no partition table (if it is a newly created iSCSI drive on the ix4)
Format disk
- with root, do fdisk /dev/sdx where x is the device name (sdb, ...)
- Add a new partition with option 'n'
- Exit with option 'w to write the partition table to disk
- now format the disk sdx''q,where q is the partiion id (1, ...):
- In nautilus you see a new disk with the name uuid (you can add parameter '-L' and add a label i.o. this UUID to recognize the disk in Nautilus). Click on it to mount it.
Login/logout
iscsiadm --mode node --targetname iqn.1992-04.com.emc:storage.in-nas.iscsi1 --portal 10.7.1.87:3260 --login
iscsiadm --mode node --targetname iqn.1992-04.com.emc:storage.in-nas.iscsi1 --portal 10.7.1.87:3260 --logout