由於我安裝了Redhat Linux AS4版本的系統,目前的開源版本還不支持。 查詢了一下Redhat的發行記錄,在Redhat Linux AS4 初始版本中不包括iscsi部分:
紅帽企業 Linux 4 的初始發行版本不包括對 iSCSI 軟件 initiator 或 target 的支持。對 iSCSI 的支持正處於測試階段,測試的結果將決定對 iSCSI 的支持是否會被包括在以後的 紅帽企業 Linux 4 升級產品中。
然後在Redhat Linux AS4 Update2中包含了關於iSCSI的支持,通過初始安裝或手工安裝以下組件可以加載iscsi組件: iscsi-initiator-utils-4.0.3.0-2
在Redhat Linux AS4 Update2上安裝很簡單,內核版本為2.6.9-22:
Last login: Wed Oct 26 14:23:21 2005 from 172.16.34.9 [root@test2 ~]# uname -a Linux test2.hurray.com.cn 2.6.9-22.EL #1 Mon Sep 19 18:20:28 EDT 2005 i686 i686 i386 GNU/Linux [root@test2 opt]# rpm -iUv iscsi-initiator-utils-4.0.3.0-2.i386.rpm warning: iscsi-initiator-utils-4.0.3.0-2.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e Preparing packages for installation... iscsi-initiator-utils-4.0.3.0-2
在Redhat Linux AS4 初始發行版本(內核版本為2.6.9-11)上安裝,會遇到點問題,需要sysfsutils-1.2.0-1.i386.rpm的支持,這個rpm包可以從網上下載,搜索rpm包rpm.pbone.net是個很好的站點。 1.在內核2.6.9-11上安裝的提示
[root@test1 opt]# uname -a Linux test1.hurray.com.cn 2.6.9-11.ELsmp #1 SMP Fri May 20 18:26:27 EDT 2005 i686 i686 i386 GNU/Linux
[root@test1 software]# rpm -iUv iscsi-initiator-utils-4.0.3.0-2.i386.rpm warning: iscsi-initiator-utils-4.0.3.0-2.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e error: Failed dependencies: libsysfs.so.1 is needed by iscsi-initiator-utils-4.0.3.0-2.i386 Suggested resolutions: sysfsutils-1.2.0-1.i386.rpm
2.下載安裝sysfsutils
[root@test1 software]# wget ftp://distro.ibiblio.org/pub/lin ... s/caoslinux/centos/ 4.0/os/i386/CentOS/RPMS/sysfsutils-1.2.0-1.i386.rpm --20:25:38-- ftp://distro.ibiblio.org/pub/lin ... s/caoslinux/centos/ 4.0/os/i386/CentOS/RPMS/sysfsutils-1.2.0-1.i386.rpm => `sysfsutils-1.2.0-1.i386.rpm' Resolving distro.ibiblio.org... 152.2.210.109 Connecting to distro.ibiblio.org[152.2.210.109]:21... connected. Logging in as anonymous ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD /pub/linux/distributions/caoslinux/centos/4.0/os/i386/CentOS/RPMS. done. ==> PASV ... done. ==> RETR sysfsutils-1.2.0-1.i386.rpm ... done. Length: 57,197 (unauthoritative)
100%[============================================================>] 57,197 23.30K/s
20:25:46 (23.27 KB/s) - `sysfsutils-1.2.0-1.i386.rpm' saved [57,197]
3.安裝iscsi-initiator-utils-4.0.3.0-2
[root@test1 software]# rpm -iUvh sysfsutils-1.2.0-1.i386.rpm warning: sysfsutils-1.2.0-1.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821 Preparing... ########################################### [100%] 1:sysfsutils ########################################### [100%] [root@test1 software]# ls iscsi-initiator-utils-4.0.3.0-2.i386.rpm linux-iscsi-3.6.0.3 linux-iscsi-3.6.0.3.tar sysfsutils-1.2.0-1.i386.rpm [root@test1 software]# uname -a Linux test1.hurray.com.cn 2.6.9-11.ELsmp #1 SMP Fri May 20 18:26:27 EDT 2005 i686 i686 i386 GNU/Linux [root@test1 software]# rpm -iUv iscsi-initiator-utils-4.0.3.0-2.i386.rpm warning: iscsi-initiator-utils-4.0.3.0-2.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e Preparing packages for installation... iscsi-initiator-utils-4.0.3.0-2 修改 /etc/iscsi.conf DiscoveryAddress=