Book Image

Learning RHEL Networking

By : Andrew Mallett, Adam Miller
Book Image

Learning RHEL Networking

By: Andrew Mallett, Adam Miller

Overview of this book

Table of Contents (18 chapters)
Learning RHEL Networking
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating iSCSI targets


The iSCSI objects that we see in the main list represents iSCSI targets and their properties. Firstly, we will create a simple iSCSI target with default names. We can then delete this object and see how to create our own target with the correct naming convention:

/> iscsi/ create

This will create an iSCSI target and listen on the TCP port 3260. There will not be any LUNS or backstores connected, and the IQN (iSCSI Qualified Name) will be system generated. We can always add the backstore, but most likely, we want to use our own name. So, in this case, we will delete the object. The IQN on my system was generated as iqn.2003-01.org.linux-iscsi.redhat7.x8664:sn.ce1ebea336a2, but do not forget that we can use the Tab key completion. So, we do not need to write the complete name while deleting or editing it. The following command displays this, but it may wrap when displayed or printed so that it is executed as a single line of code:

/> iscsi/ delete iqn.2003-01.org...