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 logical unit number

Create logical unit number

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

Start my 1-month free trial

Create logical unit number

- [Instructor] Now we need to create a LUN for the FILEIO backstore in our target. Be sure that you are logged into your rhhost1 VM and have a terminal open. Run targetcli by typing in sudo targetcli. We need to go to the root, so type in cd /. Verify that we have the backstore from a previous video in this chapter as well as the target by typing in ls. If you have both, you can continue on. Now we have to change into the target directory. You can use Tab completion in targetcli, which can be very handy when dealing with long paths. Type in cd /iscsi/iqn, and then hit your Tab key. Now add in tpg and hit your Tab key again. In my case the entire line would read /iscsi/iqn.2018-04.com.localnet:filedisk1/tpg1, and hit Enter. If your target name was different, be sure to enter the correct one here. Now that we're in our target portal group directory, we can create our LUN for our FILEIO backstore. Type in luns/ create /backstores, and then hit your Tab key and it should fill out the rest…

Contents