ISCSI配置:

  1. fdisk /dev/vdb, n,p,+1G,w,partprobe

  2. yum install -y targetcli(文本target配置工具)

  3. 客户端安装: yum install -y iscsi* iscsi-initiator

  4. targetcli; targetcli;再进入一遍

  5. systemctl restart target.service

    systemctl enable target

  6. 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 保存在此所有配置

  7. firewall-cmd --permanent --add-port=3260

    firewall-cmd --reload

    firewall-cmd --permanent --list-all

  8. man targetcli 搜EXAMPLE