It takes a long time when booting after recovering Linux system from System Recovery Disk (SRD).

Article: 100051317
Last Published: 2021-09-07
Ratings: 0 1
Product(s): System Recovery

Problem

It takes a long time when booting after recovering Linux system from System Recovery Disk (SRD).

Error Message

There are 90 second wait times on boot. (See Figure 1)

Figure 1

[   TIME   ] Timed out waiting for device dev-disk-by\x2duuid-4fb0b374\x2d343d\x2d408b\x2daaab\x2d889902885bca.device.
[DEPEND] Dependency failed for Resume from hibernation using device /dev/disk/by-uuid/4fb0b374-343d-408b-aaab-889902885bca.

Notes:
4fb0b374\x2d343d\x2d408b\x2daaab\x2d889902885bca and 4fb0b374-343d-408b-aaab-889902885bca are different each system.

Cause

This issue may occur when the swap partition does not exist on LVM but it exists on the independent partition (like /dev/sda3). When newly creating the swap partition while recovering the system from SRD, UUID for the swap partition is newly generated.
When the new and old UUIDs for swap partition are inconsistent, it takes a long time when booting from the recovered system.

Solution

1. Run "lsblk -f" and confirm the current UUID for the swap partition.

[root@localhost ~]# lsblk -f

NAME          FSTYPE      LABEL UUID                                   MOUNTPOINT
sda                                                                    
├─sda1        vfat              F0D5-7242                              /boot/efi
├─sda2        xfs               87f42fe2-8654-4b40-9662-3d5e2c8b5200   /boot
├─sda3        swap              5ab3a0a2-16ce-42f5-966d-0e52b4a951ec   [SWAP]
└─sda4        LVM2_member       FpcqfH-jSwX-5XO9-O1aQ-2Irz-dpuo-9R4Qxl 
  └─rhel-root xfs               14c12651-52b1-48b3-820c-cd866d2e6e22   /
sr0           iso9660     CDROM 2021-09-01-01-09-44-00                 /run/media/ueda/CDROM

2. Open a file /etc/default/grub by an Editor, and find "resume=UUID=", and replace the old UUID with the current UUID that is confirmed in Step 1. 

</etc/default/grub before replacing the UUID>
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto resume=UUID=4fb0b374-343d-408b-aaab-889902885bca rd.lvm.lv=rhel/root rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true

</etc/default/grub after replacing the UUID>
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto resume=UUID=5ab3a0a2-16ce-42f5-966d-0e52b4a951ec rd.lvm.lv=rhel/root rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true

3. Run "grub2-mkconfig -o /boot/grub2/grub.cfg" 

4. Reboot.

Was this content helpful?