- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud

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.

Lab 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.
About the author
Real skill practice before real-world application
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.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.