- Lab
- A Cloud Guru
204 - Configuring iSCSI Targets and Initiators
This hands-on lab describes using an iSCSI initiator and targets to mount devices. >**Note:** The hands-on lab videos mention the LPI Certificate Level 2 Exam 1, but this lab can be taken as a stand-alone lab.
Path Info
Table of Contents
-
Challenge
Install the iSCSI Software
Install the
scsi-target-utils
package. -
Challenge
Select an Available Disk for Use
Use the
fdisk -l
command and examine which disks can be used.Note: There are muliple 21.5GB disks, but you only need to take note of one of them.
-
Challenge
Configure the Target Server to Share the Chosen Device
-
Configure the server:
- Edit the
targets.conf
and define the target. - Start the service.
- Enable service for start on system boot.
- Edit the
-
Verify that the device share is available for use.
Note: There is only one server for this hands-on lab, so the server supplied is both target and client.
-
-
Challenge
Install and Configure the iSCSI Initiator (Client)
- Configure the client initiator.
Note: This is the same server due to only one server being supplied for this hands-on lab).
- Use the
iscsiadm
command to discover the resource you can use on the target system. - Restart the iscsi service.
- Use the
/etc/init.d/iscsi status
command to obtain information about the block storage device.
- Configure the client initiator.
-
Challenge
Partition and Format the New Block Device
- Partition the new block device.
- Format it as ext4.
-
Challenge
Mount the New Block Device
Mount the new remote block device onto the filesystem.
-
Challenge
Configure the System to Mount on Boot
Add the device onto the local filesystem via additions to the
/etc/fstab
file.
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.