Working with Essential Red Hat Linux System Administration Tools - Storage (VDO)

15 minutes
  • 3 Learning Objectives

About this Hands-on Lab

This lab will present us with a scenario that will make sure we have the minimum knowledge required for successfully passing the RHCE on RHEL8. In this particular lab, we’ll be looking at Red Hat storage methods, and making sure we’ve got skills at the level expected of someone taking this exam.

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

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create the Underlying Device

To set up VDO we first need to install the software.

yum install /home/cloud_user/kmod-kvdo- -y
yum install vdo -y

Once that’s done, we need to create a Logical Volume containing the two physical disks, since vdo can’t span disks.

pvcreate /dev/nvme1n1 /dev/nvme2n1

vgcreate vdoDev /dev/nvme1n1 /dev/nvme2n1

lvcreate -n vdoLV -l 100%FREE vdoDev

Now that’s done we have a 40G device we can work with.

vdo create --name=RHCE --device=/dev/vdoDev/vdoLV --vdoLogicalSize=150G --sparseIndex=enabled

to create the VDO device.

Create a File System on the Device

Super Simple:

mkfs.xfs /dev/mapper/RHCE

Mount the Device

First we make sure the mount point exists:

mkdir /mnt/video

Then we can run

mount /dev/mapper/RHCE /mnt/video

And we’re done!

Additional Resources

We've been handed the credentials to a server and told that we have to stand it up today in order to begin the software setup. But additional disks have yet to arrive. While our boss calls the hardware vendor, we've been tasked to set the server up so that it has 150GB of storage, using a sparse deduplication method. Due to circumstances beyond our control, we have to use a local copy of the VDO kmod RPM file. It is located in /home/cloud_user. We then can run yum install vdo -y.

Once the device has been created using /dev/nvme1n1 and /dev/nvme2n1, we have to format it using XFS and mount it at /mnt/video.

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?