Comments on Setting Up An iSCSI Environment On Linux

Setting Up An iSCSI Environment On Linux Nowadays, the iSCSI technology is quite popular in the storage world. This article shows an iSCSI demo environment which consists of one Debian Linux host and one Netapp Filer.We try to show the most important features of this protocol.

9 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By:

"If you want to use sdb after the next reboot, you should change the following entry:
node.conn[0].startup = manual to automatic
in the /etc/iscsi/nodes/<iscsi target name>/<ip address> file. After you change it the iSCSI daemon will login to this target."

For those who try this Howto on a OpenSUSE 10.2 server:

I also needed to add a "sleep 30" instruction   to function iscsi_login_all_nodes() in order to successfully log in to the target.
this function can be found in the /etc/init.d/open-iscsi script and, after this addition should look like:

iscsi_login_all_nodes()
{
    sleep 30
    $ISCSIADM -m node 2> /dev/null | while read line; do
        set ${line}
        TARGET=$(echo $line | cut -d" " -f2)
        PORTAL=$(echo $line | cut -d"," -f1)
        STARTUP=`$ISCSIADM -m node --targetname $TARGET -p $PORTAL | grep "node.conn\[0\].startup" | cut -d' ' -f3`
        NODE=`$ISCSIADM -m node --targetname $TARGET -p $PORTAL | grep "node.name" | cut -d' ' -f3`
        if [ $STARTUP = "automatic" ] ; then
            echo -n "Logging into $NODE: "
            $ISCSIADM -m node --targetname $TARGET -p $PORTAL -l
            rc_status -v
        fi
    done
}
 

By: Anonymous

There is a formatting error on this page. Under section/part 4, the example command has the last part of the command outside of the box. Obvious to anyone who knows what is going on, but maybe not for noobs.

By: Anonymous

Max you should have 12,5MB/s its from 100Mbps network (very optimistic transfer). Why you have 15MB/s?  :)

Good article.

By: John Lockard

Automounting at boot should work, but how to implement depends on which flavor and what version of iscsi implementation you're working with.

One variety uses a /etc/fstab.iscsi file, with the format of the file being identical to /etc/fstab

Another variety used /etc/fstab, but for options, rather than "default" you used "_netdev", or "default,_netdev"

By: John Lockard

In Step 4 (Setting up the iSCSI Linux demo environment), Section 

iscsiadm -m discovery -t st -p ip:port -I iface1 -P 1

Under the step labelled "4. Lets go back to our initator host. Now everything is prepared to access the 4GB lun. The following command makes the disk accessible from the Linux host."

There's a typo and the command is broken in two (half out of the "here's what you type" box). Is should read, in total:

debian:~#  iscsiadm -m node -T iqn.1992-08.com.netapp:sn.84211978 -p 192.168.2.222:3260 --login

By: Anonymous

AIX does not support MPIO with iSCSI.

By: doctorcooler

There are some really good products like Accessoire étui Iphone 5s at 

efox-shop, I bought one last week, the service is excellent! You can 
find them here: http://www.myefox.fr/popular/accessoire-etui-iphone-

5s.html

By: hophopper

Hi, 

     Using Centos nodes & Openfiler. Getting a couple of disks for "quorum" disk and "shared disk" i.e a total of 4 disks on 1 node each...maybe the 2 interfaces(eth0 and eth1) which I am using on the virtual-box is giving this o/p !!!!. On the 2 clients, quorum disk shows up as sdb on node1 and the quorum disk is sdc on node2. Similarly shared-disk is sdc on node1 and sdb on node2. I have tried rediscovering the targets(logout,delete,discover & relogin) and reloading the iscsi service to correct this with no luck. Is there any way to fix it.

By: Ezra Taylor

Great articel sir.  I'm purchasing a snyology device in the next few weeks.  I'm planning on having a Solaris 11 and Linux test lab