用redhat7系统配置Iscsi targets存储服务器

时间:2026-02-14 12:16:11

1、 准备用于共享的分区或LVM,用fdisk /dev/sdb,进行分区,最后按w保存

用redhat7系统配置Iscsi targets存储服务器

用redhat7系统配置Iscsi targets存储服务器

2、查看分区是否成功,安装服务、配置共享。

用redhat7系统配置Iscsi targets存储服务器

用redhat7系统配置Iscsi targets存储服务器

3、配置防火墙规则,并使其端口通过永久生效

用redhat7系统配置Iscsi targets存储服务器

4、输入targetcli命令 配置服务端,如下图操作:

用redhat7系统配置Iscsi targets存储服务器

用redhat7系统配置Iscsi targets存储服务器

用redhat7系统配置Iscsi targets存储服务器

用redhat7系统配置Iscsi targets存储服务器

1、用yum命令安装, 安装客户端软件包

用redhat7系统配置Iscsi targets存储服务器

2、设置授权客户端的iqn,编辑/etc/iscsi/initiatorname.iscsi要和服务端acls配置一直,如下图所示

用redhat7系统配置Iscsi targets存储服务器

用redhat7系统配置Iscsi targets存储服务器

用redhat7系统配置Iscsi targets存储服务器

3、重启iscsid和 发现discovery

用redhat7系统配置Iscsi targets存储服务器

4、登录所有发现的iqn,将其分区和格式化,这样块设备就可以使用啦。

用redhat7系统配置Iscsi targets存储服务器

用redhat7系统配置Iscsi targets存储服务器

© 2026 海能知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com