Josh-Daniel S. Davis (joshdavis) wrote,
Josh-Daniel S. Davis

iSCSI setup info

Debian iSCSI Target Config

Install and compile iSCSI target module
apt-get install iscsitarget iscsitarget-source wget
m-a prepare
m-a update
m-a a-i iscsitarget

Configure the daemon
* FileIO caches in-memory and is good if you have random I/O and/or lots of RAM
* BlockIO skips Linux cache and is good if you have HW raid with battery backed cache
* NullIO is for dummy devices
vi /etc/iet/ietd.conf

Start the daemon
invoke-rc.d iscsitarget restart

List initiators
cat /proc/net/iet/session 

Dynamic add target 1 for initiator test1
ietadm --op new --tid=1 --params

Dynamic add LUN 2 to target 1
ietadm --op new --tid=1 --lun=2 --params Path=/dev/datavg/datalv,Type=fileio

Create a user for "discovery"
ietadm --op new  --user --params=IncomingUser=adm1n,Password=passw0rd

Create a user for target #2
ietadm --op new --tid=2 --user --params=IncomingUser=adm1n,Password=passw0rd


MS iSCSI Initiator

Install the driver from

Open up firewall with
netsh advfirewall firewall>set rule "iSCSI Service (TCP-Out)" new enable=yes

Configure Your Storage with
* General -> Secret - Set your chap secret here
* Discovery -> Target Portal -> Add - Put the IP of your IETD server
* Wait 30 seconds
* Targets -> Refresh
* Your Target should show up in the list
* Log in and choose to always reconnect
* Go to Control Panel -> Admin Tools -> Computer Manager -> Disk Manager
* Init the disk and create a drive letter for it, or whatever you plan to do.


Realtek 8169 Drivers on Current Debian

Realtek 8169 on 2.6.3x kernels to prevent hanging at 100mbit or flapping
aptitude install build-essential linux-headers-`uname -r`
cd /usr/src
wget ftp://WebUser:Ds8MtJ3@
tar -xjvf r816*
cd r8*
rmmod r8168
rmmod r8169
make all
mv /lib/modules/`uname -r`/kernel/drivers/net/r8169.ko \
   /lib/modules/`uname -r`/kernel/drivers/net/r8169.bak
mv /lib/modules/`uname -r`/kernel/drivers/net/r8168.ko \
   /lib/modules/`uname -r`/kernel/drivers/net/r8168.bak
cp src/*.ko /lib/modules/`uname -r`/kernel/drivers/net
depmod -a
modprobe r8169

If you're using r8168, do this
echo "blacklist r8169" >> /etc/modprobe.d/blacklist.conf
echo "r8168" >> /etc/initramfs-tools/modules
update-initramfs -v -u -k `uname -r`

Tags: computer, ns1
  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 1 comment