linux服务器怎么修改iqn,linux配置ISCSI服务器的方法

一.在linux下安装启动iscsi target

1.安装启动iscsi服务

[root@wjb10000 ~]# yum -y install targetcli.noarch

2.建立一个目录设置为iscsi设备

[root@wjb10000 ~]# mkdir /iscsi_disks

3.设置target

[root@wjb10000 ~]# targetcli

warning: could not load preferences file /root/.targetcli/prefs.bin.

targetcli shell version 2.1.fb41

copyright 2011-2013 by datera, inc and others.

for help on commands, type 'help'.

/> cd backstores/fileio

/backstores/fileio> create disk01 /iscsi_disks/disk01.img 20g

created fileio disk01 with size 21474836480

/backstores/fileio> cd /iscsi

/iscsi> create iqn.2016-06.wjb.com:storage.target0

created target iqn.2016-06.wjb.com:storage.target0.

created tpg 1.

global pref auto_add_default_portal=true

created default portal listening on all ips (0.0.0.0), port 3260.

/iscsi> cd iqn.2016-06.wjb.com:storage.target0/tpg1/portals/

/iscsi/iqn.20.../tpg1/portals> create 192.168.1.50

using default ip port 3260

could not create networkportal in configfs

/iscsi/iqn.20.../tpg1/portals> delete 0.0.0.0 3260

deleted network portal 0.0.0.0:3260

/iscsi/iqn.20.../tpg1/portals> create 192.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值