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.

Introduction to targetcli

Introduction to targetcli

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

Start my 1-month free trial

Introduction to targetcli

- [Instructor] We installed the targetcli package in a previous video on rhhost1. To use it, be sure rhhost1 is booted up and you're logged in as user1. In a terminal type, sudo space targetcli, and hit enter. The targetcli command is an interactive tool for managing our iSCSI targets. It provides a hierarchical representation of our iSCSI targets, LUNs, backstores, portals, and access control lists. It has many sub commands, which are specific to the path and the hierarchy. Type help to see the sub commands for our current path. Some of the commands are similar to Linux commands, such as cd, ls, pwd, and exit. Type ls to get a view of the current hierarchy. Since we have not configured anything, there isn't much to see yet. To show how the help command works and how it changes for path, let's change to the iSCSI directory. Type in cd space slash, I, S, C, S, I, and hit enter. Now type in help. We can now see our sub commands have changed and the output includes create and delete sub…

Contents