Red Hat RHCSA (EX200 on RHEL 9) — Boot Recovery, Storage (LVM/XFS/autofs) & Systemd

Performance-focused flashcards for Red Hat Certified System Administrator (RHCSA EX200 on RHEL 9) covering the 180-minute hands-on exam format, GRUB2 rd.break root password recovery, systemd targets/services/timers, journald persistence, GPT/MBR partitioning, LVM, XFS vs. ext4, Stratis, swap, and autofs NFS.

Category
Enterprise Networking, Linux & Advanced AWS Certifications — Cisco CCNA (200-301 v1.1) & CCNP ENCOR (350-401), Red Hat RHCSA (EX200) & LFCS/LPIC-1, and AWS Solutions Architect Pro (SAP-C02) & Security Specialty (SCS-C02/C03)
Level
intermediate
Languages
en → en
Cards
32
Markdown
Red Hat RHCSA (EX200 on RHEL 9) — Boot Recovery, Storage (LVM/XFS/autofs) & Systemd (.md)

Flashcards (32)

#Front (Term / Question)Back (Definition / Answer)ExampleMultiple-Choice Options
1Which `dnf` command identifies the exact RPM package that provides a missing binary or file path such as `semanage`?Run `dnf provides */semanage` (or `dnf whatprovides /usr/sbin/semanage`) to search file lists across all enabled repositories.On RHEL 9, `dnf provides */semanage` reveals that `policycoreutils-python-utils` must be installed to manage SELinux port and file contexts.
2What is the difference between `systemctl disable <unit>` and `systemctl mask <unit>` in systemd?Disabling removes boot symlinks but allows manual starts, whereas masking symlinks the unit to `/dev/null` to block all activation.If two conflicting services like `firewalld` and `iptables` exist, `systemctl mask iptables` guarantees no other service or dependency can start it.
3How does Virtual Data Optimizer (VDO) reduce block storage consumption on RHEL 9?VDO performs inline zero-block elimination, block-level deduplication, and LZ4 compression via `lvcreate --type vdo`.In RHEL 9, standalone VDO management was integrated directly into LVM (`lvmvdo`), letting admins create deduplicated logical volumes inside standard volume groups.
4What is the functional difference between sending `SIGTERM` (15), `SIGKILL` (9), and `SIGHUP` (1) to a Linux daemon with `kill`?SIGTERM (15, default) requests graceful shutdown, SIGKILL (9) forces immediate kernel termination, and SIGHUP (1) reloads configuration.Daemons cannot catch, ignore, or block `SIGKILL` (9) or `SIGSTOP` (19), so `kill -9` should only be used after `kill -15` fails to stop a hung process.
5Which `tar` compression flags correspond to `gzip`, `bzip2`, and `xz`, and how do you preserve SELinux contexts when archiving?Use `-z` for gzip (`.tar.gz`), `-j` for bzip2 (`.tar.bz2`), `-J` for xz (`.tar.xz`), and `--selinux` (or `--xattrs`) for SELinux labels.Running `tar -cJvf /root/etc-backup.tar.xz --selinux /etc` creates an xz-compressed archive of `/etc` while preserving extended SELinux security attributes.
6In `autofs`, what is the configuration difference between an Indirect Map and a Direct Map?An indirect map mounts subdirectories under a managed parent directory, whereas a direct map uses `/-` in the master map and absolute paths.Because `autofs` takes exclusive control of an indirect parent directory (like `/rhome`), Direct Maps (`/- /etc/auto.direct`) are used when mounting a single share inside an existing directory.
7How do MBR (`msdos`) and GPT (`gpt`) partition tables differ in maximum disk size and partition count?MBR supports up to 2 TiB and 4 primary partitions (or 3 primary + 1 extended), while GPT supports 128 partitions and disks up to 8 ZiB.You can create a non-interactive GPT partition in one command with `parted -s /dev/vdb mklabel gpt mkpart primary xfs 1MiB 2049MiB` followed by `udevadm settle`.
8How are LUKS-encrypted block devices formatted, opened, and configured to mount automatically at boot on RHEL 9?Format with `cryptsetup luksFormat`, open with `cryptsetup luksOpen`, map in `/etc/crypttab`, and mount in `/etc/fstab`.Network-Bound Disk Encryption (NBDE) using `clevis` and `tang` allows LUKS volumes listed in `/etc/crypttab` with `_netdev` to unlock automatically on trusted subnets.
9If a Linux server reports `No space left on device` when creating a 1 KB file even though `df -h` shows 40% free disk space, what is the cause?The filesystem has exhausted its inode table (100% `IUse%`), which you verify using `df -i`.Millions of tiny zero-byte session or mail spool files can consume every available inode in an ext4 filesystem (or hit quota limits) long before data blocks fill up.
10Where should custom or modified `systemd` unit files be placed on RHEL 9 so package updates do not overwrite them?Place custom unit files or drop-in overrides in `/etc/systemd/system/`, then run `systemctl daemon-reload` to apply changes.Vendor-supplied default units live in `/usr/lib/systemd/system/`; running `systemctl edit <service>` creates a safe drop-in override in `/etc/systemd/system/<service>.d/override.conf`.
11How do you persistently modify Linux kernel boot arguments on RHEL 9 vs. runtime `/proc/sys` kernel parameters?Edit `GRUB_CMDLINE_LINUX` in `/etc/default/grub` (`grub2-mkconfig --update-bls-cmdline`), or `/etc/sysctl.d/*.conf` (`sysctl --system`).On RHEL 9.3+, kernel boot arguments can also be updated safely across BLS entries using `grubby --update-kernel=ALL --args="net.ifnames=0"`.
12How do you create a point-in-time LVM snapshot of `/dev/vg_app/lv_data` and later merge (roll back) that snapshot?Create it with `lvcreate -s -L 500M -n lv_snap /dev/vg_app/lv_data` and roll back with `lvconvert --merge /dev/vg_app/lv_snap`.Copy-on-Write (CoW) LVM snapshots store only blocks that change after snapshot creation; if the filesystem is mounted during `--merge`, rollback completes on next activation.
13How do you safely add a new disk `/dev/vdc1` to an existing LVM Volume Group `vg_app` and migrate data off an old disk `/dev/vdb1`?Run `pvcreate /dev/vdc1`, `vgextend vg_app /dev/vdc1`, `pvmove /dev/vdb1`, and `vgreduce vg_app /dev/vdb1`.`pvmove` relocates allocated Physical Extents online without unmounting active filesystems, allowing seamless hardware replacement.
14How do you configure a custom DNF software repository on RHEL 9 when no GPG signature verification is required?Create `/etc/yum.repos.d/custom.repo` with `[id]`, `name=`, `baseurl=`, `enabled=1`, and `gpgcheck=0`.On the RHCSA exam, you almost always configure two repositories (`BaseOS` and `AppStream`) before you can install any packages like `autofs` or `container-tools`.
15How do you check the current default `systemd` boot target and permanently switch a RHEL 9 server to boot into text-only mode?Run `systemctl get-default` to inspect the target and `systemctl set-default multi-user.target` to switch permanently to text mode.To switch the running session immediately without rebooting, run `systemctl isolate multi-user.target` (or `graphical.target` for a GUI workstation).
16Why is creating `/.autorelabel` (or running `load_policy -i` and `restorecon`) mandatory when resetting the root password in `rd.break`?Modifying `/etc/shadow` while SELinux is inactive strips its `shadow_t` context (`unlabeled_t`), blocking all logins after reboot.Creating `touch /.autorelabel` in the chrooted `/sysroot` triggers a full SELinux filesystem relabel on the next boot so PAM can read `/etc/shadow`.
17Where does `systemd-journald` store logs by default on RHEL 9, and how do you make journal logs persist across system reboots?It defaults to volatile `/run/log/journal`; persist logs via `Storage=persistent` in `/etc/systemd/journald.conf` or `/var/log/journal`.Once `/var/log/journal` exists and `systemctl restart systemd-journald` is run, you can inspect previous boot crashes using `journalctl -b -1 -p err`.
18In Bash shell redirection, what is the difference between `cmd > file 2>&1` and `cmd 2>&1 > file`?`cmd > file 2>&1` sends both stdout and stderr to `file`, while `cmd 2>&1 > file` sends stderr to terminal and stdout to `file`.Bash evaluates redirections left-to-right; in modern Bash, the shorthand `cmd &> file` (or `&>>` to append) redirects both stdout (FD 1) and stderr (FD 2) cleanly.
19How do you format a 1 GiB partition `/dev/vdb2` as swap space and activate it persistently across reboots?Run `mkswap /dev/vdb2`, add `UUID=<uuid> swap swap defaults 0 0` to `/etc/fstab`, and activate it with `swapon -a`.If partitioning with `fdisk` or `gdisk`, set the partition type to Linux swap (`82` on MBR or `8200` on GPT) and verify active swap via `swapon --show` or `free -m`.
20How do XFS and ext4 filesystems differ on RHEL 9 regarding online expansion and filesystem shrinking?Both XFS and ext4 can be grown online while mounted, but XFS cannot be shrunk at all whereas ext4 can be shrunk offline.To grow a logical volume and automatically resize either XFS (`xfs_growfs`) or ext4 (`resize2fs`) in a single safe step, always use `lvextend -r -L +1G /dev/vg_app/lv_data`.
21What is Stratis storage on RHEL 9, and what `/etc/fstab` mount option is required to mount a Stratis filesystem at boot?Stratis is a volume-managing filesystem built on LVM and XFS that requires `x-systemd.requires=stratisd.service` in `/etc/fstab`.After enabling `stratisd`, run `stratis pool create pool1 /dev/vdc` and `stratis filesystem create pool1 fs1`, then mount by its UUID from `lsblk --output=UUID`.
22What is the three-step LVM command workflow to create a Logical Volume of 50 extents with 16 MiB Physical Extents?Run `pvcreate /dev/vdb1`, `vgcreate -s 16M vg_app /dev/vdb1`, and `lvcreate -l 50 -n lv_data vg_app`.In `lvcreate`, lowercase `-l` specifies size in Logical Extents (50 * 16 MiB = 800 MiB) or percentages (`-l 100%FREE`), while uppercase `-L` specifies bytes (`-L 800M`).
23How does a `systemd` timer unit trigger a background task, and what directive ensures missed jobs run after a powered-off system boots?A `.timer` unit activates a matching `.service` unit on schedule (`OnCalendar=`), and `Persistent=true` catches up missed runs at boot.After creating `/etc/systemd/system/backup.timer` and `backup.service`, enable the timer with `systemctl enable --now backup.timer` and verify via `systemctl list-timers`.
24What are the six fields of `/etc/fstab`, and which two commands must you run immediately after editing `/etc/fstab` on RHEL 9?Device/UUID, Mount Point, Fstype, Options, Dump (0), and Fsck Order (0/1/2); always test with `mount -a` and `systemctl daemon-reload`.A malformed UUID or missing mount directory in `/etc/fstab` causes RHEL 9 to drop into `emergency.target` at boot, resulting in a 0 score on that exam VM.
25How does `systemd-tmpfiles` manage temporary directories, and how do you configure it to purge files older than 7 days in `/run/appcache`?Create `/etc/tmpfiles.d/appcache.conf` with `d /run/appcache 0755 root root 7d` and apply it via `systemd-tmpfiles --create`.The `systemd-tmpfiles-clean.timer` unit periodically invokes `systemd-tmpfiles --clean` to delete files in managed directories whose timestamps exceed the configured age.
26How do Linux `nice` values map to process CPU scheduling priority, and which commands set priority at launch vs. on a running PID?Nice values range from -20 (highest priority) to +19 (lowest priority, default 0); use `nice -n` at launch and `renice -n` on running PIDs.Standard unprivileged users can only increase niceness (lower priority, 0 to +19), whereas only `root` can assign negative nice values (-20 to -1).
27What is the exact step-by-step command sequence to reset a forgotten root password on RHEL 9 using `rd.break` at the GRUB2 menu?Append `rd.break`, press Ctrl+X, run `mount -o remount,rw /sysroot`, `chroot /sysroot`, `passwd`, `touch /.autorelabel`, and `exit` twice.On newer RHEL 9 releases where `rd.break` may still prompt for root, appending `rw init=/bin/bash` to the `linux` kernel line mounts `/` read-write directly.
28How do you configure `autofs` with an indirect wildcard map so any user's remote NFS home directory mounts automatically at `/rhome/<user>`?Create `/etc/auto.master.d/rhome.autofs` with `/rhome /etc/auto.rhome`, and put `* -rw,sync nfs.example.com:/rhome/&` in `/etc/auto.rhome`.In `autofs` indirect maps, `*` matches the subdirectory key accessed under `/rhome` and `&` substitutes that exact username into the remote NFS export path.
29What are the five time fields in a standard `/etc/crontab` entry, and how do you schedule a job to run every 15 minutes on weekdays?The fields are Minute (0–59), Hour (0–23), Day of Month (1–31), Month (1–12), and Day of Week (0–7); use `*/15 * * * 1-5`.User crontabs managed via `crontab -e -u alice` omit the username column, whereas `/etc/crontab` and `/etc/cron.d/*` require the username before the command.
30How do Hard Links (`ln`) and Symbolic Links (`ln -s`) differ regarding inodes, filesystem boundaries, directories, and target deletion?Hard links share the same inode, cannot cross filesystems or link directories, and survive target deletion; symlinks point to a path.Deleting the original filename of a hard-linked file simply decrements its inode link count without freeing data blocks, whereas deleting a symlink's target leaves a broken link.
31What is the exam format, duration, passing score, and grading rule regarding reboots on the Red Hat RHCSA (EX200) exam?It is a 180-minute 100% live performance exam requiring 210/300 (70%) to pass, and all configurations must survive a system reboot.Because Red Hat grading scripts reboot your virtual machines before evaluating tasks, any runtime-only change not persisted to disk scores zero points.
32What `find` command locates all files owned by user `ira` that are larger than 5 MiB and copies them preserving attributes to `/root/found/`?Run `find / -user ira -type f -size +5M -exec cp -a {} /root/found/ \;` to match and copy the files.Using `-exec cp -a {} /target/ \;` preserves ownership, timestamps, and SELinux contexts (`-a` = archive), while `2>/dev/null` suppresses `/proc` permission errors.