[[PageOutline]] [[TitleIndex(TipAndDoc/network/iscsi,format=group)]] * http://manpages.ubuntu.com/manpages/lucid/man5/ietd.conf.5.html * [http://d.hatena.ne.jp/dharry/20100724/1279914243 ubuntu10.04 の IET (iSCSI Enterprise Target) を使ってみた - harry’s memorandum] * [http://gihyo.jp/admin/serial/01/ubuntu-recipe/0128 Ubuntu Weekly Recipe:第128回 UbuntuでiSCSIを使ってみよう|gihyo.jp … 技術評論社] * [http://www.howtoforge.com/using-iscsi-on-ubuntu-10.04-initiator-and-target Using iSCSI On Ubuntu 10.04 (Initiator And Target) | HowtoForge - Linux Howtos and Tutorials] * [http://lunarium.info/arc/index.php/ISCSI%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB ISCSIのインストール - LunaBiblos] * [http://ultimania.org/trac/yuna/wiki/linux/iscsi linux/iscsi – Yuna's Technical Guide] * [http://www.mazn.net/blog/2009/03/20/199.html Mazn.net » iSCSIを使ってみる@CenOS5.2 (ターゲット) + Windows XP (イニシエータ)] * [http://d.hatena.ne.jp/greenballs/20090202/1233533983 RAC on Oracle VM - iSCSIイニシエータを設定する - すこっと・たいがー!] > * udevの設定 * [http://d.hatena.ne.jp/adsaria/20100801/1280669336 Windows 7をディスクレスで使う - adsaria mood] * see also wiki:TipAndDoc/boot/PXE * [http://www.intel.com/support/network/adapter/pro100/sb/CS-028681.htm Intel® Server Adapters — Which adapters support Intel® iSCSI Remote Boot?] * via [http://okkun-lab.rd.fukuoka-u.ac.jp/wiki/?Tips%2FHardware%2FiSCSI Tips/Hardware/iSCSI - 福岡大学奥村研究室 - okkun-lab Pukiwiki!] * Intel® Gigabit CT Desktop Adapter (82574L) * [http://rayearth.heliopause.jp/pukiwiki/?Debian%2FiSCSI Debian/iSCSI - いっつのメモ帳] = iSCSI Enterprise Target = == Ubuntu 10.04 Lucid and Windows XP == === setup Ubuntu iSCSI target === * mitty@ubuntu64:~$ sudo aptitude install iscsitarget * mitty@ubuntu64:~$ sudo vim /etc/default/iscsitarget {{{ ISCSITARGET_ENABLE=true }}} * mitty@ubuntu64:~$ sudo vim /etc/ietd.conf {{{ @@ -108,3 +108,5 @@ #Wthreads 8 # Number of IO threads #QueuedCommands 32 # Number of queued commands +Target iqn.2011-03.jp.mitty.local.ubuntu64:2008r2.disk + Lun 0 Path=/dev/sdb,Type=blockio }}} === check status === * mitty@ubuntu64:~$ cat /proc/net/iet/session {{{ tid:1 name:iqn.2011-03.jp.mitty.local.ubuntu64:2008r2.disk }}} * mitty@ubuntu64:~$ cat /proc/net/iet/volume {{{ tid:1 name:iqn.2011-03.jp.mitty.local.ubuntu64:2008r2.disk lun:0 state:0 iotype:blockio iomode:wt path:/dev/sdb }}} * mitty@ubuntu64:~$ sudo netstat -nap --inet | grep iet {{{ tcp 0 0 0.0.0.0:3260 0.0.0.0:* LISTEN 791/ietd }}} === setup XP Initiator === * [http://go.microsoft.com/fwlink/?LinkId=33817 Microsoft iSCSI Software Initiator] からDL 1. Discover iSCSI target[[br]][[Image(iscsi-target-01-Discovery.png,33%)]] 1. Select target[[br]][[Image(iscsi-target-02-Targets.png,33%)]] 1. Log On to Target[[br]][[Image(iscsi-target-03-LogOn.png,33%)]] 1. Ubuntu target and XP Initiator[[br]][[Image(iscsi-target-04.png,33%)]] 1. Format iSCSI disk[[br]][[Image(iscsi-target-05-NTFS.png,33%)]] 1. Disk property[[br]][[Image(iscsi-target-06-NTFS-property.png,33%)]] === status of target === * mitty@ubuntu64:~$ cat /proc/net/iet/session {{{ tid:1 name:iqn.2011-03.jp.mitty.local.ubuntu64:2008r2.disk sid:281475899523136 initiator:iqn.1991-05.com.microsoft:xp cid:1 ip:192.168.234.136 state:active hd:none dd:none }}} * mitty@ubuntu64:~$ sudo fdisk -lu /dev/sdb {{{ Device Boot Start End Blocks Id System /dev/sdb1 63 41929649 20964793+ 7 HPFS/NTFS }}} = error = * wiki:TipAndDoc/service/sakura/ipv6 などで、非標準カーネル( linux-headers-generic-lts-backport-maverick linux-image-generic-lts-backport-maverick )を用いていると、以下のようにエラーとなる * uname -a {{{ Linux ubuntu64 2.6.35-23-generic #41~lucid1-Ubuntu SMP Thu Dec 2 22:27:43 UTC 2010 x86_64 GNU/Linux }}} * iscsitarget {{{ Version: 1.4.19+svn275-ubuntu2 }}} * /var/log/syslog {{{ Mar 19 22:20:25 ubuntu64 ietd: can't create a target 2 0 }}} * $ sudo ietadm --op new --tid=0 --lun=0 --params Path=/dev/sdb {{{ Operation not permitted. }}}