由于我安装了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=