- [Show pagesource]
- [Old revisions]
- [[unknown link type]]
- []
Table of Contents
Server
aptitude install iscsitarget ed -s /etc/default/iscsitarget <<< $',s/ISCSITARGET_ENABLE=false/ISCSITARGET_ENABLE=true/g\nw'
Install iscsitarget and open-iscsi on Debian Squeeze
This shouldn't be to difficult in Debian:
apt-get update apt-get install iscsitarget iscsitarget-source open-iscsi module-assistant
After install iscsitarget you should also build its kernel module (this step may skipped if you are using Debian Squeeze, by installing, e.g. iscsitarget-modules-2.6-amd64) for non-stable Debian kernel:
module-assistant a-i iscsitarget
After that, restart iscsitarget with following command:
/etc/init.d/iscsitarget restart
Client
iscsiadm -m discovery -t st -p 10.39.99.150 iscsiadm -m node -T iqn.2009-01.avi.wd-store1:storage.mirror1.sys1 -p 10.39.99.150 --login iscsiadm -m session fdisk /dev/sda mkfs.ext3 /dev/sda1 mount /dev/sda1 /mnt
Automaticke pripojeni po startu: node.startup = automatic do
/etc/iscsi/nodes/iqn.2009-01.avi.wd-store1\:storage.mirror1.sys1/10.39.99.150\,3260
ietadm --op new --tid=32 --params Name='iqn.2009-05.cz.panelnet:storage.tukan.vlcek' ietadm --op new --tid=32 --lun=0 --params Path=/dev/vg_cloud/lv_vlcek
Aby se automaticky pripojil i filesystem je potreba udelat tyhle zasadni veci:
pass
v/etc/fstab
musi byt0
- v
options
vfstab
musi byt_netdev
- je pry jako nejak lepsi, kdyz je ve
fstab
zarizeni zapsano jakoUUID=bordel
nez/dev/disk/by-path/…
(muj dojem je, ze by to mohlo byt jedno, ale vi buh jak ty initskripty interreaguji sudev
em)
A souvisejici: instalace debianu na iscsi root: http://www.david-web.co.uk/blog/?p=188
Pro 10Gbit sitovku
Before installing iSCSI software, we recommend the use of sysctl to tune Myri-10G TCP/IP for iSCSI on both the Initiator and the Target. These settings recommended by open-iscsi.org work well:
net.ipv4.tcp_timestamps = 0 net.ipv4.tcp_sack = 0 net.ipv4.tcp_rmem = 10000000 10000000 10000000 net.ipv4.tcp_wmem = 10000000 10000000 10000000 net.ipv4.tcp_mem = 10000000 10000000 10000000 net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_tw_reuse = 1 net.core.rmem_max = 524287 net.core.wmem_max = 524287 net.core.rmem_default = 524287 net.core.wmem_default = 524287 net.core.optmem_max = 524287 net.core.netdev_max_backlog = 300000
Takova drobna poznamka je, ze tohle je pro myrinet, jehoz 10G varianta sice je vicemene totez jako 10G ethernet, ale ne uplne (ve smyslu, ze takovyhle ladeni na ethernetu stejne nema cenu).
Building a SAN Storage Device Using iSCSI on SUSE Linux
- http://www.novell.com/coolsolutions/feature/17668.html Par1, it seems that part2 doesn't exist