首页 > 代码库 > CentOS安装ISCSI服务和运行

CentOS安装ISCSI服务和运行

一:安装服务器:

[root@localhost CD]# rpm -ivh scsi-target-utils-1.0.24-10.el6.x86_64.rpm 

warning: scsi-target-utils-1.0.24-10.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY

error: Failed dependencies:

libibverbs.so.1()(64bit) is needed by scsi-target-utils-1.0.24-10.el6.x86_64

libibverbs.so.1(IBVERBS_1.0)(64bit) is needed by scsi-target-utils-1.0.24-10.el6.x86_64

libibverbs.so.1(IBVERBS_1.1)(64bit) is needed by scsi-target-utils-1.0.24-10.el6.x86_64

librdmacm.so.1()(64bit) is needed by scsi-target-utils-1.0.24-10.el6.x86_64

librdmacm.so.1(RDMACM_1.0)(64bit) is needed by scsi-target-utils-1.0.24-10.el6.x86_64

perl(Config::General) is needed by scsi-target-utils-1.0.24-10.el6.x86_64

sg3_utils is needed by scsi-target-utils-1.0.24-10.el6.x86_64

解决方案:

[root@localhost Packages]# rpm -ivh libibverbs-1.1.7-1.el6.x86_64.rpm 

[root@localhost Packages]# rpm -ivh perl-Config-General-2.52-1.el6.noarch.rpm

[root@localhost Packages]# rpm -ivh sg3_utils-1.28-5.el6.x86_64.rpm 




二:客户端

默认情况下安装有iscsi-initiator-utils-6.2.0.873-10.el6.x86_64,但是默认不启动服务。