Skip to content
LFCSStorageSingle Linux VMMedium

LVM volume group, two logical volumes and persistent mounts

Scenario lfcs-sto-001 · about 6 minutes · 8 points · 7 grader checks

Turn two block devices into a volume group, carve an ext4 and an XFS logical volume, and mount both persistently, one of them by UUID.

  • lvm
  • ext4
  • xfs
  • fstab
  • mount

What you will practise

  • Create physical volumes, a volume group and logical volumes
  • Create ext4 and XFS filesystems
  • Mount filesystems persistently by UUID through /etc/fstab

Start this lab

With the CLI installed and signed in, this command provisions a fresh Ubuntu 24.04 LTS virtual machine on your Mac, applies the scenario setup and prints the task below.

goldenkube start lfcs-sto-001

Task

The task text exactly as the CLI shows it. Solve it on the machine, then run goldenkube submit.

The block devices /dev/loop10 and /dev/loop11 (768 MiB each) are unused. 1. Create the volume group data from both devices. 2. Create the logical volume app (1 GiB) with an ext4 filesystem, mounted at /srv/app. Its /etc/fstab entry must refer to the filesystem by UUID. 3. Create the logical volume logs (400 MiB) with an XFS filesystem, mounted at /srv/logs through /etc/fstab. Both mounts must be active now and come back after a reboot.

Requirements and details

Certification
LFCS · Linux Foundation Certified System Administrator
Domain
Storage
Difficulty
Medium
Environment
Single Linux VM
Recommended time
6 minutes
Points
8
Grader checks
7
Operating system
Ubuntu 24.04 LTS
Minimum CLI version
0.1.0
Scenario version
1
Published

Grading runs locally: 7 state checks read your machine when you submit; the scenario passes when every check passes. Hints, the reference solution and the check definitions are available only inside the CLI, not on this page.

LFCSStorageMedium

Grow a logical volume online and share it over NFS

Extend a mounted logical volume and its filesystem without unmounting it, then export a directory read-only over NFS and mount the export persistently.

Single Linux VM · ~7 min · 8 points

  • lvm
  • lvextend
  • resize2fs
  • nfs
  • exports
  • fstab

goldenkube start lfcs-sto-002

LFCSStorageMedium

Swap file, tmpfs and a device under I/O load

Add a persistent swap file and a size-limited tmpfs, then find the block device under constant write load and stop the service causing it.

Single Linux VM · ~6 min · 8 points

  • swap
  • tmpfs
  • fstab
  • iostat
  • performance

goldenkube start lfcs-sto-003

LFCSStorageHard

Repair a damaged filesystem and mount it on demand

Recover an ext4 filesystem whose primary superblock is destroyed, then make autofs mount it read-only on first access.

Single Linux VM · ~7 min · 8 points

  • e2fsck
  • superblock
  • filesystem-repair
  • autofs
  • automount

goldenkube start lfcs-sto-004

Independent community project, not affiliated with or endorsed by CNCF or The Linux Foundation. Lab results are practice feedback, not an exam score.