Josh-D. S. Davis

Xaminmo / Omnimax / Max Omni / Mad Scientist / Midnight Shadow / Radiation Master

Previous Entry Share Next Entry
iSCSI setup info
Josh 201604 KWP

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: ,

  • 1
Ok, so, the rtl8169 stuff is total bollocks.
I tried sources from a couple of different places and I just get kernel panic on boot.

Rescue from
linux init=/bin/bash
mount -oremount,rw /
mdadm --assemble --scan
mdadm --manage -w /dev/md0
mdadm --manage -w /dev/md1
mdadm --manage -w /dev/md2
pvscan --ignorelockingfailure
vgscan --ignorelockingfailure
vgchange -ay --ignorelockingfailure rootvg
mount -a
cd /lib/modules/`uname -r`/kernel/drivers/net/
rm r816?.ko
mv r8169.bak r8169.ko
depmod -a
update-initramfs -v -u -k `uname -r`

Anyway, it looks like the realtek drivers come and go from stability, which is NOT OKAY!

Edited at 2010-12-19 11:45 pm (UTC)

  • 1

Log in

No account? Create an account