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

book

Article ID: 100042614

calendar_today

Updated On:

Description

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

Image

Applies to

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

Cause

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

Resolution

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.

Issue/Introduction

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