?

Log in

No account? Create an account

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
joshdavis

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
NOTES:
* 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 
tid:1 name:iqn.foo.bar:test1
tid:2 name:iqn.foo.bar:test2

Dynamic add target 1 for initiator test1
ietadm --op new --tid=1 --params Name=iqn.foo.bar:test1

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


Ref: http://wiki.debian.org/iSCSI/iscsitarget



MS iSCSI Initiator


Install the driver from
http://www.microsoft.com/downloads/en/details.aspx?familyid=12cb3c1a-15d6-4585-b385-befd1319f825&displaylang=en

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.

Ref: http://download.microsoft.com/download/a/e/9/ae91dea1-66d9-417c-ade4-92d824b871af/uguide.doc



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@202.134.71.21/cn/nic/r8169-6.013.00.tar.bz2
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`


Ref: http://wiki.hetzner.de/index.php/Installation_of_r8168_network_driver
Ref: http://152.104.125.41/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=4&Level=5&Conn=4&DownTypeID=3&GetDown=false&Downloads=true
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`
reboot


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