Red_Hat
EX300(23Q) · Question #17
Configure SCSI storage. Create a new 1GB target on your serverX.example.com. The block device name should be data block The server should export an iscsi disk called lqn.2014-10.com.example:serverX…
yum install -y targetcli systemctl start target systemctl enable target firewall-cmd --permanent --add-port=3260/tcp firewall-cmd --reload #targetcli backstores/block/create data_block /dev/sdb1 iscsi/ create iqn.2014-10.com.example:serverX cd…
Configure iSCSI Target
Question
Configure SCSI storage.
- Create a new 1GB target on your serverX.example.com.
- The block device name should be data block
- The server should export an iscsi disk called lqn.2014-10.com.example:serverX.
- This target should only be allowed to desktopX
Explanation
yum install -y targetcli
systemctl start target systemctl enable target firewall-cmd --permanent --add-port=3260/tcp firewall-cmd --reload
#targetcli
backstores/block/create data_block /dev/sdb1 iscsi/ create iqn.2014-10.com.example:serverX cd iscsi/iqn.2014-10.com.example:serverX/tpg1/ acls create iqn.2014-10.com.example:desktopX luns create /backstores/block/data_block portals Server_IP(172.25.x.11) 3260 exit
Topics
#iSCSI target#targetcli#LIO block device#ACL initiator restriction
Community Discussion
No community discussion yet for this question.