#安装驱动
cd ChelsioUwire-3.9.0.0
make iser_install
#卸载模块
rmmod csiostor cxgb4i cxgbit iw_cxgb4 chcr cxgb4vf cxgb4 libcxgbi libcxgb
rmmod iw_cxgb4
#加载iwarp驱动
modprobe iw_cxgb4 mpa_rev=2
modprobe rdma_ucm
#开启iwarp端口
iwpmd
#加载模块
target端: modprobe ib_isert
initiator端:modprobe ib_iser
#配置iscsi
target端:
targetcli /iscsi/iqn.2003-01.org.target/tpg1/portals/182.168.2.49:3260 enable_iser boolean=True
initiator端:
iscsid
vim /etc/iscsi/initiatorname.iscsi ,修改InitiatorName=iqn.2003-01.org.client01
iscsiadm -m discovery -t st -p 182.168.2.49:3260
iscsiadm -m node -p 182.168.2.49:3260 -T iqn.2003-01.org.target --op update -n node.transport_name -v iser
iscsiadm -m node -p 182.168.2.49:3260 -T iqn.2003-01.org.target -l
#卸载iSER
target端:rmmod ib_isert
initiator端:rmmod ib_iser
target端&&initiator端:rmmod iw_cxgb4