Storage
From space diagnosis and mounting, through preparing a new disk, to logical volumes and data recovery.
11 stages8 labs~7 hours medium
The track has not been started. The first stage is «Out of space — which resource?», ~1 hour.
Module 1
Disks and filesystems
Whether blocks or inodes ran out, what consumes the space, how to mount filesystems and fix fstab.
3 stages · ~2 hours
-
Stage 1 of 11
1 · Out of space — which resource?Out of space — which resource?
8 steps · 2 labs · ~1 hour 8 steps · 2 labs · ~1 hour- The report was not written exercises 0 of 1 on a machine 5 min
- 2 Space and file records on a machine 8 min
- 3 Size, blocks and the inode of one file on a machine 5 min
- 4 Who consumes the resource on a machine 6 min
- 5 When deletion does not free the space theory 5 min
- 6 Root partition is full lab 15 min
- 7 Find the actual space consumer lab 20 min
- 8 Summary summary 1 min
-
Stage 2 of 11
2 · Mounting and fstabMounting and fstab
7 steps · 1 lab · ~50 min 7 steps · 1 lab · ~50 min- The night report is gone exercises 0 of 1 on a machine 4 min
- 2 A directory and a mounted volume theory 5 min
- 3 An fstab entry on a machine 7 min
- 4 Checking the table and mounting on a machine 6 min
- 5 When the service has already written to the directory on a machine 7 min
- 6 /data is empty after a reboot lab 20 min
- 7 Summary summary 1 min
-
3 · Module test 10 questions · pass mark 70%
Module 2
A new disk
Why an attached disk is missing from df and will not mount, how to partition it with GPT, create a labelled ext4 and mount the partition by UUID with nofail.
2 stages · ~1 hour
-
Stage 4 of 11
4 · Partition, filesystem, mountPartition, filesystem, mount
7 steps · 1 lab · ~55 min 7 steps · 1 lab · ~55 min- The disk is there, but it will not mount exercises 0 of 1 on a machine 5 min
- 2 The partition table on a machine 9 min
- 3 The filesystem and its label on a machine 5 min
- 4 An fstab entry with nofail theory 5 min
- 5 A second partition on a disk in use on a machine 4 min
- 6 Move the data to a new disk lab 25 min
- 7 Summary summary 2 min
-
5 · Module test 6 questions · pass mark 70%
Module 3
Logical volumes
LVM layers and the free space of a group, growing a volume together with ext4 without data loss, and snapshots to roll back a whole volume or one file.
3 stages · ~2 hours
-
Stage 6 of 11
6 · Logical volumes and growing a filesystemLogical volumes and growing a filesystem
7 steps · 1 lab · ~55 min 7 steps · 1 lab · ~55 min- The volume is full, yet there is room exercises 0 of 1 on a machine 4 min
- 2 Device, group, volume on a machine 7 min
- 3 Extents and the final size theory 5 min
- 4 The volume and the filesystem grow separately on a machine 5 min
- 5 When only the volume grew on a machine 7 min
- 6 Grow the data volume lab 25 min
- 7 Summary summary 2 min
-
Stage 7 of 11
7 · LVM snapshots and rollbackLVM snapshots and rollback
7 steps · 1 lab · ~55 min 7 steps · 1 lab · ~55 min- The snapshot is smaller than the volume exercises 0 of 1 on a machine 5 min
- 2 A snapshot keeps only what changed theory 5 min
- 3 The snapshot's space on a machine 6 min
- 4 Rolling back the whole volume on a machine 5 min
- 5 When the whole volume must not roll back on a machine 7 min
- 6 Return a volume to a consistent snapshot lab 25 min
- 7 Summary summary 2 min
-
8 · Module test 10 questions · pass mark 70%
Module 4
Backups
What goes into a tar archive and how to check a restore, how rsync picks files, where --delete acts and how a mirror differs from a history of backups.
3 stages · ~2 hours
-
Stage 9 of 11
9 · The archive exists — now check the restoreThe archive exists — now check the restore
7 steps · 1 lab · ~50 min 7 steps · 1 lab · ~50 min- Checking the nightly copy exercises 0 of 1 on a machine 5 min
- 2 What goes into the archive theory 6 min
- 3 The listing before unpacking on a machine 5 min
- 4 Where a file lands theory 7 min
- 5 Comparing with the archive on a machine 5 min
- 6 Restore an app from a tar archive lab 20 min
- 7 Summary summary 2 min
-
Stage 10 of 11
10 · Rsync — mirrors, comparison and deletion boundariesRsync — mirrors, comparison and deletion boundaries
8 steps · 1 lab · ~55 min 8 steps · 1 lab · ~55 min- A sync without errors exercises 0 of 1 on a machine 4 min
- 2 How rsync picks files theory 5 min
- 3 The plan before the run on a machine 6 min
- 4 Removing extras from the copy theory 5 min
- 5 Fix the copy on a machine 4 min
- 6 Mirrors and backup history theory 4 min
- 7 Bring a directory mirror up to date (rsync) lab 25 min
- 8 Summary summary 2 min
-
11 · Module test 10 questions · pass mark 70%
-
-
Final test 18 questions · pass mark 80%