Linux Storage & LVM
Partition disks, create and mount file systems, and manage flexible storage with LVM, swap and software RAID on a server.
4 objectives 6 steps about 135 min
Check what you know
The lessons are coming later. The knowledge check is ready now.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Partition a disk with GPT, create ext4 or XFS file systems, and mount them persistently by UUID in /etc/fstab or a systemd mount unit.
- Create, extend and snapshot LVM logical volumes and grow the file system online.
- Configure swap and a software RAID 1 array, and explain why neither RAID nor snapshots replace tested backups.
- Back up and restore directories with tar archives (gzip, xz or zstd compression) and rsync or scp over SSH, preserving ownership and permissions, and prove the backup by restoring it.
Lesson plan
6 steps, about 135 min · 0 of 5 lessons available so far
- From disk to mount point: partitions, file systems and fstab Concept · 20 min · coming later
- Lab: add a disk, partition it, make a file system and mount it by UUID Lab · 25 min · coming later
- LVM layers: physical volumes, volume groups and logical volumes Concept · 15 min · coming later
- Lab: extend a full logical volume online and take a snapshot Lab · 30 min · coming later
- Swap, RAID 1 and backups that restore: tar, compression and rsync Worked example · 30 min · coming later
- Check: storage scenarios on a lab VM Knowledge check · 8 questions
Practise it
On a VM with two spare virtual disks, build a RAID 1 array, put an LVM volume group on it, create /srv/data as XFS mounted by UUID, fill it, extend it online, take a snapshot before a risky change and restore a file from a zstd-compressed tar backup copied to a second host with rsync; submit the commands with lsblk and findmnt output. Restore into a clean VM and compare checksums, ownership, modes and application data consistency; restrict destructive disk commands to the designated disposable virtual disks.
References
Hard prerequisites
Unlocks
On these roadmaps
Progress and evidence for this skill are shared across all of them.