Linux主机的配置所有步骤参考【GitHub】中的RHEL Client和RHEL Server日志文件
实验环境实验环境 | IP地址 | 备注 |
---|---|---|
RHEL Server 7.0 | 192.168.43.128 | 10G磁盘,3G分配给Linux客户端,3G分配给Windows客户端 |
RHEL Client 7.4 | 192.168.43.129 | 作为Linux客户端,从服务端获取3G存储空间,挂载使用 |
Windows XP | 192.168.43.130 | 作为Windows客户端,从服务端获取3G存储空间,挂载使用,需要安装Microsoft iSCSI Initiator |
配置过程不做详细说明
Windows XP连通性测试
ls
o- / .................................................................................... [...]
o- backstores ......................................................................... [...]
| o- block ............................................................. [Storage Objects: 0]
| o- fileio ............................................................ [Storage Objects: 0]
| o- pscsi ............................................................. [Storage Objects: 0]
| o- ramdisk ........................................................... [Storage Objects: 0]
o- iscsi ....................................................................... [Targets: 0]
o- loopback .................................................................... [Targets: 0]
/> cd /backstores/block
/backstores/block> create iscsi_store1 /dev/sdb1 //将分区加入存储块
Created block storage object iscsi_store1 using /dev/sdb1.
/backstores/block> cd /iscsi
/iscsi> create iqn.2020-04.bad.com:server1 //新建磁盘
Created target iqn.2020-04.bad.com:server1.
Created TPG 1.
/iscsi> cd iqn.2020-04.bad.com:server1/tpg1/acls
/iscsi/iqn.20...er1/tpg1/acls> create iqn.2020-04.bad.com:bad //配置ACL标识
Created Node ACL for iqn.2020-04.bad.com:bad
/iscsi/iqn.20...er1/tpg1/acls> cd ..
/iscsi/iqn.20...:server1/tpg1> cd luns
/iscsi/iqn.20...er1/tpg1/luns> create /backstores/block/iscsi_store1
Created LUN 0.
Created LUN 0->0 mapping in node ACL iqn.2020-04.bad.com:bad
/iscsi/iqn.20...er1/tpg1/luns> cd ..
/iscsi/iqn.20...:server1/tpg1> cd portals
/iscsi/iqn.20.../tpg1/portals> create 192.168.43.128 3260 //配置服务端口
Using default IP port 3260
Created network portal 192.168.43.128:3260.
# 同样方法添加第二块网络硬盘
配置完成后如下
原创文章 50获赞 27访问量 5494
关注
私信
展开阅读全文
作者:坏坏-5