From the course: Linux System Engineer: iSCSI Storage Area Networks

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Create an iSCSI initiator

Create an iSCSI initiator

From the course: Linux System Engineer: iSCSI Storage Area Networks

Start my 1-month free trial

Create an iSCSI initiator

- [Instructor] For this video, you need to have your rhhost1 V-M booted. You should also have your rhhost2 V-M booted up, and you should be logged in with a terminal open. To set up our initiator, we need to start by editing an iSCSI config file. Type in sudo space vi space /etc/iscsi/initiatorname.iscsi and hit enter. Change the initiator name to iqn.2018-04.com.localnet:client1, which we set up in a previous video when we configured our access control list. Save and exit by pressing Escape + Colon + X + !. Since we also added a username and password on the target, we'll need to edit a second file. Type in sudo space vi space /etc/iscsi/iscsiid.conf and hit enter. In this file, we need to edit lines for authentication mode, username, and password. By default, the system runs in demo mode with authentication turned off. We want to switch it to CHAP mode so we can provide a username and password. Find the authmethod line and uncomment it. We'll also want to make sure it says CHAP. Now…

Contents