Connect MSA2112i to XEN Initiator

mbahmani@xen:~$ sudo aptitude install open-iscsi

sudo aptitude install open-iscsi

mbahmani@xen:~$ sudo cat /etc/iscsi/initiatorname.iscsi
## DO NOT EDIT OR REMOVE THIS FILE!
## If you remove this file, the iSCSI daemon will not start.
## If you change the InitiatorName, existing access control lists
## may reject this initiator. The InitiatorName must be unique
## for each iSCSI initiator. Do NOT duplicate iSCSI InitiatorNames.
#InitiatorName=iqn.1993-08.org.debian:01:d7fbfd82e9e
InitiatorName=iqn.2010-03-mbahmani.debian.gbgnetwork.net

mbahmani@xen:~$ sudo cat /etc/iscsi/iscsid.conf
isns.address = 172.20.21.115
isns.port = 3205
node.startup = automatic
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 = 5
node.conn[0].timeo.noop_out_timeout = 5
node.session.err_timeo.abort_timeout = 15
node.session.err_timeo.lu_reset_timeout = 20
node.session.initial_login_retry_max = 8
node.session.cmds_max = 128
node.session.queue_depth = 32
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 = 131072
discovery.sendtargets.iscsi.MaxRecvDataSegmentLength = 32768
node.session.iscsi.FastAbort = Yes

mbahmani@xen:~$ sudo /etc/init.d/open-iscsi restart
Disconnecting iSCSI targets:.
Stopping iSCSI initiator service:.
Starting iSCSI initiator service: iscsid.
Setting up iSCSI targets:
iscsiadm: No records found!
.
Mounting network filesystems:.
mbahmani@xen:~$

mbahmani@xen:~$ sudo cat /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

#ethtool -K eth0 tx off
#ethtool -s eth0 speed 1000 duplex full
#ethtool -K eth0 tso off
#ethtool -K eth1 tx off
#ethtool -s eth1 speed 1000 duplex full
#ethtool -K eth1 tso off

#
echo 'hwcap 0 nosegneg' > /etc/ld.so.conf.d/libc6-xen.conf && ldconfig
#ifconfig xenbr10 172.20.21.82 netmask 255.255.255.128 up
#route add default gw 172.20.21.1 dev xenbr10


xm mem-set 0 4000
ntpdate -s dc1
mount /dev/VGVMlocal/updatedebimg /home/updatedebimg

iscsiadm -m discovery -t st -p 192.168.200.5
iscsiadm -m node --targetname "iqn.1986-03.com.hp:storage.msa2312i.0938da0e3f" --portal "192.168.200.5:3260" --login



exit 0
mbahmani@xen:~$