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

2025-10-29 05:06:52

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存储服务器

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢