CertGrid CertGrid
Hands-on Lab·Red Hat Certified System Administrator

Non-Destructive Swap Configuration

The objective's key word is *non-destructively*: swap is added while the machine keeps running and its existing swap keeps working. Total swap grows from 3.9 GiB to 4.4 GiB here without a reboot, and the priority column shows which area the kernel will reach for first.

Local Storage Guide 36 of 67 Intermediate

Swap needs no mount point. Its /etc/fstab line uses none for field 2 and swap for field 3. swapon -a activates everything in fstab, which is exactly what boot does - so it is the way to test a swap entry without rebooting.

Every command on this page runs on RHCSA-A01.
Server NameIP AddressOSRolesCPURAMHDD
RHCSA-A01192.168.0.31RHEL 10.0Practice node (graded) - spare /dev/sda2 Core4 GB50 GB + 15 GB

This guide includes

Use this because the objective's key word is non-destructively. This matters because swap is added while the machine keeps running - nothing is unmounted, nothing reboots, and priority decides which swap gets used first.

Before you start

  1. What swap exists now

  2. Swap on a logical volume

  3. Activating it with the machine running

  4. Making it survive a reboot

  5. Priority decides which is used first

  6. Swap on a partition instead

Official sources