204 - Configuring iSCSI Targets and Initiators

1 hour
  • 7 Learning Objectives

About this Hands-on Lab

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.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Install the iSCSI Software

Install the scsi-target-utils package.

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.

Configure the Target Server to Share the Chosen Device
  1. Configure the server:

    • Edit the targets.conf and define the target.
    • Start the service.
    • Enable service for start on system boot.
  2. 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.

Install and Configure the iSCSI Initiator (Client)
  1. Configure the client initiator.

    Note: This is the same server due to only one server being supplied for this hands-on lab).

  2. Use the iscsiadm command to discover the resource you can use on the target system.
  3. Restart the iscsi service.
  4. Use the /etc/init.d/iscsi status command to obtain information about the block storage device.
Partition and Format the New Block Device
  1. Partition the new block device.
  2. Format it as ext4.
Mount the New Block Device

Mount the new remote block device onto the filesystem.

Configure the System to Mount on Boot

Add the device onto the local filesystem via additions to the /etc/fstab file.

Additional Resources

In this hands-on lab, you will be presented with a single server containing three 21.5GB devices. You will be completing the tasks outlined below:

  1. Use one device to make available as a target iSCSI block device.
  2. Configure the target server.
  3. Configure the initiator (client).
  4. Partition and format the device once attached.
  5. Mount and copy files to the new local block device.
  6. Add it to boot parameters with appropriate network awareness.

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.

What are Hands-on Labs

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.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?