• Ansible on RHEL 10: Partitions, LVM and Swap with the Storage Role
The third lab in the Ansible series: one playbook gives server1 and server2 an XFS partition on /backup, a volume group with a logical volume on /data and swap on LVM, all mounted by UUID in /etc/fstab. Growing the volume is a one-line change. Includes a partition name that made a new partition on every run, a swap resize the role skipped without a word, and safe mode refusing to format a disk that still had data on it.
• Adding Persistent Swap on an LVM Logical Volume
Extra swap carved out of the vg_data volume group from the LVM lab: a new logical volume, mkswap, swapon, a priority higher than the existing swap, an /etc/fstab entry tested with swapon -a (mount -a ignores swap), and growing it later - including why lvextend -r refuses swap and a mkswap that has to be rerun.
• Setting Up LVM on a New Disk, From Scratch
A new disk, built into usable storage through all three LVM layers (PV -> VG -> LV), formatted, mounted persistently via /etc/fstab, and - the part that's the actual point of LVM - extended later with a second disk, with the original data confirmed intact afterward.
• LVM Cheat Sheet
Logical Volume Management: physical volumes, volume groups, and logical volumes - creating each layer, extending a logical volume (the classic RHCSA task), growing the volume group first when needed, using the space after an existing disk was enlarged, and the much riskier, XFS-incompatible process of shrinking one.
• Linux Disk & Filesystem Check
Check disk usage, partitions and mounted filesystems with df, du, lsblk, mount, fdisk and blkid, plus swap usage - which processes eat the most swap, and how to control it.