CentOS 8.x device not found troubleshooting

From Notes_Wiki

Home > CentOS > CentOS 8.x > System Administration > Filesystem management > CentOS 8.x device not found troubleshooting

On a Linux machine with software RAID and LVM on top of RAID 5 partition, the system was not booting properly with error such as below in the logs:

Dec 16 19:54:53 rekallcm1 systemd[1]: dev-disk-by\x2duuid-11e78c99\x2d4cf7\x2d49c6\x2d9e16\x2d1c1356fb2692.device: Job dev-disk-by\x2duuid-11e78c99\x2d4cf7\x2d49c6\x2d9e16\x2d1c1356fb2692.device/start timed out.
Dec 16 19:54:53 rekallcm1 systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-11e78c99\x2d4cf7\x2d49c6\x2d9e16\x2d1c1356fb2692.device.

When prompted for Ctrl+D for root password for maintenance using following seemed to solve problem:

vgchange -a y
mount -a
init 5

Thus, for the non-working device found using:

blkid | grep <id>

such as:

/dev/mapper/centos_rekallcm1-mnt_data1: UUID="11e78c99-4cf7-49c6-9e16-1c1356fb2692" BLOCK_SIZE="4096" TYPE="ext4"


Edited /etc/default/grub and modified GRUB_CMDLINE_LINUX line from:

GRUB_CMDLINE_LINUX="resume=/dev/mapper/centos_rekallcm1-swap00 rd.md.uuid=6301eba7:ae9d59e0:f9c4fa8e:54c4431d rd.md.uuid=9dce6d00:0ee68c15:94083e6c:228a7b31 rd.lvm.lv=centos_rekallcm1/swap00 rhgb quiet"

to

GRUB_CMDLINE_LINUX="resume=/dev/mapper/centos_rekallcm1-swap00 rd.md.uuid=6301eba7:ae9d59e0:f9c4fa8e:54c4431d rd.md.uuid=9dce6d00:0ee68c15:94083e6c:228a7b31 rd.lvm.lv=centos_rekallcm1/swap00 rd.lvm.lv=centos_rekallcm1/mnt_data1 rhgb quiet"

Then regenerated grub config using:

grub2-mkconfig > /boot/efi/EFI/centos/grub.cfg

In your case find appropriate path for grub.cfg in your system in /boot or /etc.

Then reboot seems to have solved the problem.


Refer:



Home > CentOS > CentOS 8.x > System Administration > Filesystem management > CentOS 8.x device not found troubleshooting