Configuring a Disk Schedule Using Udev Rules

15 minutes
  • 3 Learning Objectives

About this Hands-on Lab

In this hands-on lab, you will use `udev` rules to manage and configure the disk scheduler for a disk attached to the lab system. As part of the workflow, you will identify the disk, check the default scheduler configuration, and collect the unique identifier of each disk. With this information, you will create a `udev` rule to set the disk schedule and confirm it is successfully updated.

*This course is not approved or sponsored by Red Hat.*

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Validate Any Local Storage Devices
  1. Identify any secondary storage devices on the system, looking for nvme1n1.
  2. Collect the UUID value for that storage device.
  3. Add the storage device to /etc/fstab using the UUID value.
    • The primary mount point should be /mnt/data.
  4. Check the default scheduler for the identified storage device.
Create a udev Rule to Update the Disk Scheduler
  1. Use udevadm to collect the unique identifier ID_SERIAL_SHORT for the storage device.
  2. Create the udev rule file, called 99-scheduler.rules.
  3. Update the rule file using the ID_SERIAL_SHORT value.
  4. Reload the udev rules and apply the udev rules.
Validate the Changes to the System
  1. Reboot the system.
  2. Confirm the updated disk schedule value is still place.

Additional Resources

SCENARIO:

You are a Linux System Administrator working for a software development company. The software development team is working on a new data collection and reporting system, and have reported some potential disk I/O related performance issues. Your manager has asked you the work with the development to review the server and determine what options are available.

After some investigative work, you have identified an issue with the disk scheduler configuration for the data storage drive. In order to resolve the issue and improve disk I/O performance, you will need to create a udev rule to update the scheduler to mq-deadline.

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?