VM Constantly Boots into Dracut After Creating Wrong Partition

General support questions
Post Reply
marszr
Posts: 5
Joined: 2017/10/11 18:02:27

VM Constantly Boots into Dracut After Creating Wrong Partition

Post by marszr » 2017/10/11 18:25:42

Hello,
I have the same problem. Maybe sameone will be able to help me. System i booting into dracut:
dracut.png
dracut.png (29.89 KiB) Viewed 1879 times
I need to activate lvm partition manually to boot system:
activate.png
activate.png (47.76 KiB) Viewed 1879 times
After that I can exit from dracut and system is starting. Any idea what is wrong ?
I've tried manny solutions from internet such us:
- check /etc/fstab
- regenerate initramfs
- update kernel
- xfs_repair
- remove lvm partition and create it again
nothing helps :/


Some additional information about my centos:
system.png
system.png (65.44 KiB) Viewed 1879 times

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

Re: VM Constantly Boots into Dracut After Creating Wrong Partition

Post by TrevorH » 2017/10/11 18:36:20

Your /dev/sda2 is marked as a DOS partition and needs to be type 0x8e (Linux LVM).
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

marszr
Posts: 5
Joined: 2017/10/11 18:02:27

Re: VM Constantly Boots into Dracut After Creating Wrong Partition

Post by marszr » 2017/10/11 18:52:32

TrevorH wrote:Your /dev/sda2 is marked as a DOS partition and needs to be type 0x8e (Linux LVM).
Thank you for your replay. But yes and now. Because just have a look:
fdisk.png
fdisk.png (98.93 KiB) Viewed 1867 times

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

Re: VM Constantly Boots into Dracut After Creating Wrong Partition

Post by TrevorH » 2017/10/12 08:01:04

82 is not 8e.
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

marszr
Posts: 5
Joined: 2017/10/11 18:02:27

Re: VM Constantly Boots into Dracut After Creating Wrong Partition

Post by marszr » 2017/10/12 09:11:18

I made changes and it not helps :/

marszr
Posts: 5
Joined: 2017/10/11 18:02:27

Re: VM Constantly Boots into Dracut After Creating Wrong Partition

Post by marszr » 2017/11/02 14:30:04

I have found that after reboot when system is going to dracut I can do only lvm_scan end than exit and system is booting properly.
But still I have no idea what should be done to boot system normaly after each restartat without dracut

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

Re: VM Constantly Boots into Dracut After Creating Wrong Partition

Post by TrevorH » 2017/11/02 14:37:06

What's the kernel line from /boot/grub2/grub.cfg
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

marszr
Posts: 5
Joined: 2017/10/11 18:02:27

Re: VM Constantly Boots into Dracut After Creating Wrong Partition

Post by marszr » 2017/11/07 20:16:29

TrevorH wrote:What's the kernel line from /boot/grub2/grub.cfg
@TrevorH thank you for your answer, and sorry for delay.
On that server is already installed more than one kernel, but problem occurs on each. Below screen with that which is currently in use.
kernel.jpg
kernel.jpg (59.21 KiB) Viewed 1701 times
Additionally, I'm not sure why but, when I'm trying to boot system from second kernel I'm not able to use LVM commands in dracut. There is error command not found.

Post Reply