Lab 06 — Stratis Pools and Snapshots
Target: rhcsa-node2 (has /dev/sdb and /dev/sdc raw) · Time: 25 minutes · Reboot required: yes
Scenario
Stratis is the modern RHEL storage stack — pool/filesystem/snapshot model on top of XFS+devicemapper. Build a pool, two filesystems, take a snapshot, and persist mounts.
Tasks
- Install `stratisd` and `stratis-cli`. Enable + start `stratisd`.
- Create a Stratis pool named **pool_lab** using /dev/sdb.
- **Add** /dev/sdc as additional capacity to pool_lab (pool grows).
- Create filesystem **fs_app** in pool_lab. Mount persistently at `/srv/app` using the Stratis UUID (NOT /dev/stratis/... — use `UUID=...` in fstab with `x-systemd.requires=stratisd.service`).
- Create filesystem **fs_data** in pool_lab. Mount persistently at `/srv/data` (same fstab pattern).
- Write a file `/srv/app/marker.txt` with content "before-snapshot".
- Take a snapshot of fs_app called **fs_app_snap1**.
- Overwrite `/srv/app/marker.txt` with "after-snapshot". The snapshot must still hold "before-snapshot".
- Mount the snapshot read-only at `/mnt/snap1` (not persistent — manual mount is fine for the grade).
Reboot. Re-run grader.
Grading
~/labs/lab06-storage-stratis/grader.sh