· about 45 minutes · runs on rocky-10 · unrated
An unrated lab. It runs on your machine with no account and no network, and everything about it — the faults, the checks, the hints and the reference solution — is in the repository. An attempt on it is recorded on your profile and never moves a rating: only rated labs do. Rated and unrated labs.
The application volume, mounted at /var/lib/app, filled up overnight. Someone "fixed" it at
3 a.m. and rebooted. Now the machine does not finish booting and sits waiting at a maintenance
prompt.
You cannot SSH in yet. Attach to the console with k on this lab's
screen (detach with Ctrl-]). The root password is norboten.
Facts you have been given:
vg0 holds the application's logical volume. A second disk was added to the
machine last week "for growth" and never used./var/lib/app/data are the application's data. They must not be deleted,
moved or truncated.What is expected, and graded:
/var/lib/app mounted./var/lib/app has at least 30% free space, with all its data intact./var/lib/app is held by files that no longer exist.The machine is checked, rebooted, and checked again. A check passes only if it passes both times.
| Check | Objective |
|---|---|
| 01_boots_clean | Configure systems to mount file systems at boot by UUID or label |
| 02_app_volume_has_headroom | Extend existing logical volumes |
| 03_swap_active_after_reboot | Add new partitions, logical volumes, and swap non-destructively |
| 04_fstab_uses_uuid | Configure systems to mount file systems at boot by UUID or label |
| 05_held_space_released | Diagnose and correct file permission problems |
Where the lab's hints send you, level by level, as you ask for them (h, then l opens a journal section in the TUI).
man 5 fstabman 5 systemd.mountman 8 lvmman 8 swaponman 8 blkidman 1 lsof4 questions on the same topic, in the lab's Theory tab. They never affect the lab's grade. Three of them, to answer here:
The volume group has no free extents. Which sequence grows the LV onto a new disk /dev/vdc?
pvcreate /dev/vdc; vgextend vg0 /dev/vdc; lvextend -r -l +100%FREE vg0/applv
The disk becomes a PV, joins the VG, and the LV takes the new extents; -r grows the filesystem in the same step. Creating a VG with an existing name fails; formatting the disk mounts a separate filesystem on top of the old one.
man 8 lvextend · man 8 vgextend
Why mount by UUID rather than /dev/vdb1 in /etc/fstab?
Device names can change between boots; a UUID identifies the filesystem itself
Disk order depends on detection order and hardware changes; a filesystem's UUID travels with it. blkid shows it. LABEL= works for the same reason.
man 5 fstab · man 8 blkid
Which fstab line enables an existing swap file at boot?
/swapfile none swap defaults 0 0
Swap has no mount point (none or swap), type swap, and fsck pass 0. swapon -a activates what fstab lists without a reboot.
man 5 fstab · man 8 swapon