Swap partition is not enabled after recovering Red Hat Enterprise Linux (RHEL).

Article: 100042614
Last Published: 2021-09-03
Ratings: 0 0
Product(s): System Recovery

 

Problem

Swap partition is not enabled after recovering Red Hat Enterprise Linux (RHEL).

Error Message

When running "swapon -s" on the recovered system, swap partition is not displayed like Figure 1.

Figure 1 - "swapon -s"

Image

Cause

UUID for swap partition is newly assigned after recovering. You need to update /etc/fstab with the new UUID.

Solution

Workaround:
1. Run "lsblk -f" and confirm UUID for swap partition. (See Figure 2)

Figure 2 - "lsblk -f"

Image


2. Update /etc/fstab with UUID in Figure 2. (See Figure 3)

Figure 3 - "vi /etc/fstab"

Image

4. Save /etc/fstab and reboot.

Applies to

Red Hat Enterprise Linux 6.x or later
Swap is associated with UUID in /etc/fstab
 

Was this content helpful?