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

Get Started
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.

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-6.2.0.293-50.el8.x86_64.rpm -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.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!
Thanks for reaching out!

You’ll hear from us shortly. In the meantime, why not check out what our customers have to say about ACG?