安装过程看上篇文章
vim /etc/tgt/targets.conf
<target iqn.2015-05-20.baidu:disk> //iqn名称
backing-store /dev/sdb1 # Becomes LUN 1 添加磁盘
backing-store /dev/sdb2 # Becomes LUN 2
initiator-address 192.168.100.1 创建ACL,允许哪些主机访问
</target>
转载于:https://blog.51cto.com/ccdxdb/1707062