服务器
yum install targetcli.noarch #安装服务
systemctl enable target.service #设置开机自启
systemctl start target.service #开启服务
[root@localhost ~]# targetcli #执行工具
targetcli shell version 2.1.fb46
Copyright 2011-2013 by Datera, Inc and others.
For help on commands, type 'help'.
/> ls
o- / ............................................................................. [...]
o- backstores .................................................................. [...]
| o- block ...................................................... [Storage Objects: 0]
| o- fileio ..................................................... [Storage Objects: 0]
| o- pscsi ...................................................... [Storage Objects: 0]
| o- ramdisk .......................................