A start job is running for dev-mapper-centos\x2droot.device

General support questions
rohan7
Posts: 15
Joined: 2019/11/13 11:45:34

A start job is running for dev-mapper-centos\x2droot.device

Post by rohan7 » 2019/11/13 12:08:05

So I just restarted my server and it does not boot into CentOS any more. When I press esc I see the below message,
Image

I tried to edit the boot options using

Code: Select all

systemd.unit=rescue.target
during GRUB boot screen but the machine does not boot into rescue mode. I tried other kernel versions from the GRUB boot screen but I get the same error as above. However, I can only get into the emergency mode (not rescue mode) using 6th options from below,

Image

Below is the boot options from GRUB boot screen and I cannot see

Code: Select all

systemd.unit=rescue.target
anymore when reboot (physically) the server.

Image

How do I fix this issue please?
Attachments
IMG_1825.jpg
IMG_1825.jpg (67.82 KiB) Viewed 17868 times
IMG_1824 (1).jpg
IMG_1824 (1).jpg (75.73 KiB) Viewed 17872 times
IMG_1820 (1).JPG
IMG_1820 (1).JPG (90.38 KiB) Viewed 17872 times
Last edited by rohan7 on 2019/11/13 12:17:13, edited 1 time in total.

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: A start job is running for dev-mapper-centos\x2droot.device

Post by TrevorH » 2019/11/13 12:15:42

So you can boot the rescue kernel ok?

Given the age of the rest of the kernels in your list it is apparent that you do not run yum update often enough. The 3.10.0-514 series of kernels belongs to CentOS 7.3 which came out in Nov 2016 - over 3 years ago.

I would recommend that you boot the rescue kernel and run yum update ASAP to not only get up to date with the missing 3 years of security patches but also to install a new kernel which will in turn build a new initramfs file tailored for the current hardware configuration of your machine. Then you can reboot into the new kernel and have a system that is at least up to date!
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

rohan7
Posts: 15
Joined: 2019/11/13 11:45:34

Re: A start job is running for dev-mapper-centos\x2droot.device

Post by rohan7 » 2019/11/13 12:31:23

Using the rescue kernel, the system gets booted into emergency mode rather than rescue mode and I cannot run yum update and yum cannot be found.

Please see screenshot below of the emergency mode,
Image
Attachments
IMG_1827.jpg
IMG_1827.jpg (75.8 KiB) Viewed 17867 times

rohan7
Posts: 15
Joined: 2019/11/13 11:45:34

Re: A start job is running for dev-mapper-centos\x2droot.device

Post by rohan7 » 2019/11/13 13:11:37

Is there any hope in getting the server up and running? Anything I can do to fix this please?

tunk
Posts: 1206
Joined: 2017/02/22 15:08:17

Re: A start job is running for dev-mapper-centos\x2droot.device

Post by tunk » 2019/11/13 13:21:29

Does fdisk -l and blkid show anything?

rohan7
Posts: 15
Joined: 2019/11/13 11:45:34

Re: A start job is running for dev-mapper-centos\x2droot.device

Post by rohan7 » 2019/11/13 13:30:56

Code: Select all

dracut:/# fdisk
sh: fdisk: command not found

Code: Select all

dracut:/# blkid
/dev/sda: TYPE="isw_raid_member"
/dev/sdb: TYPE="isw_raid_member"

rohan7
Posts: 15
Joined: 2019/11/13 11:45:34

Re: A start job is running for dev-mapper-centos\x2droot.device

Post by rohan7 » 2019/11/13 13:50:42

Within the emergency mode, I cannot see fstab within etc. I am not sure but is this normal?
Image
Attachments
IMG_1828.jpg
IMG_1828.jpg (37.57 KiB) Viewed 17848 times

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: A start job is running for dev-mapper-centos\x2droot.device

Post by TrevorH » 2019/11/13 13:57:22

/dev/sda: TYPE="isw_raid_member"
/dev/sdb: TYPE="isw_raid_member"
Oh, FakeRAID :(
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

rohan7
Posts: 15
Joined: 2019/11/13 11:45:34

Re: A start job is running for dev-mapper-centos\x2droot.device

Post by rohan7 » 2019/11/13 14:01:53

uhm, sorry Trevor, not sure what that means. Is the issue related to RAID?

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: A start job is running for dev-mapper-centos\x2droot.device

Post by TrevorH » 2019/11/13 14:16:25

What it means for me is that FakeRAID is rubbish and breaks at random times with exactly this sort of error. Last time I saw something like this, someone had had to rebuild the array and as part of that it helpfully renamed the array name that was buried in /etc/fstab and thus despite it being exactly the same RAID array, only rebuilt by replacing *one* disk, it renamed the entire array and made it look like a completely different one.

Sorry, but I don't know enough about FakeRAID to help you more. If this was my system I would back up all data, disable FakeRAID, remove the FakeRAID metadata from all the disks and then set up the entire system from scratch again using Linux software RAID instead then restore your data.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply