Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Google Cloud Platform icon
Labs

Working with Logical Volumes

Logical Volume Management (LVM) allows block devices such as partitions and raw disks to be grouped together to provide flexible storage on a Linux host. In this hands-on lab, we cover creating physical volumes, grouping them into a volume group, creating logical volumes from the volume group, and creating and mounting file systems on the logical volumes. We also resize logical volumes, create snapshots, and restore snapshots.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Intermediate
Last updated
Sep 09, 2025
Duration
30m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Create Two Logical Volumes Based on the Information Provided in the Instructions

    Once connected via ssh, elevate your privileges to root:

    sudo -i
    
    1. Create physical volumes out of the following partitions:
    • xvdf1
    • xvdf2
    • xvdf3
    • xvdf4
    1. Create a volume group called user_vg out of the physical volumes.
    2. Create a logical volume named dev_lv that is 200 MB.
    3. Create a logical volume named test_lv that is 64 extents.
  2. Challenge

    Create File Systems on the `dev_lv` and `test_lv` Logical Volumes
    1. Create an ext4 file system on dev_lv.
    2. Create an xfs file system on test_lv.
    3. Create two mount points: /mnt/dev and /mnt/test.
    4. Add entries for dev_lv and test_lv to /etc/fstab.
    5. Mount the dev_lv and test_lv file systems on /mnt/dev and /mnt/test respectively.
  3. Challenge

    Resize the `graphics_lv` and `docs_lv` Logical Volumes
    1. Increase the graphics_lv logical volume by 50 extents.
    2. Shrink the docs_lv logical volume by 100 MB.
  4. Challenge

    Perform a Snapshot of the `prod_lv` Logical Volume and Restore the `stage_snap` Snapshot to Its Origin Volume
    1. Create a snapshot of the prod_lv logical volume called prod_snap that has a size of 50 MB.
    2. Restore the stage_snap snapshot to its origin volume.
    3. Unmount /mnt/staging.
    4. Merge the stage_snap snapshot with its origin volume.
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

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.

Get started with Pluralsight