RHCE7.0学习笔记之ISCSI配置
ISCSI配置:
fdisk /dev/vdb, n,p,+1G,w,partprobe
yum install -y targetcli(文本target配置工具)
客户端安装: yum install -y iscsi* iscsi-initiator
targetcli; targetcli;再进入一遍
systemctl restart target.service
systemctl enable target
targetcli; help; ls
cd /backstores/block; create san1 /dev/vdb1
/iscsi create iqn.2014-11.com.tianyun:server0
cd /iscsi/iqn.2014.../tpg1/
acls/ create iqn-2014...:desktop0
luns/ create /backstores/block/san1
portals/ create 172.25.0.11 3260
cd /; ls
saveconfig; help; xclearconfig X
/etc/target0/saveconfig-json 保存在此所有配置
firewall-cmd --permanent --add-port=3260
firewall-cmd --reload
firewall-cmd --permanent --list-all
man targetcli 搜EXAMPLE