LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-12-2018, 11:56 AM   #1
thenameskam
LQ Newbie
 
Registered: Sep 2018
Posts: 7

Rep: Reputation: Disabled
Dracut Shell after kernel upgrade


Story goes,

I have a set of servers i built then i have a set of servers that were here before me.

Same release level of Centos 7
Same bios
same Config for the most part.

When i updated the kernel on a server i built, i have no issue. it boots up fine.

When i update the kernel on a server that was built before mine, i get into the Dracut shell with the below errors. if i switch back to the old kernel, it boots up fine as well.

Quote:
dracut-initqueue[565]: Warning: could not boot.
dracut-initqueue[565]: Warning: /dev/centos/root does not exist
dracut-initqueue[565]: Warning: /dev/mapper/centos-root does not exist

starting Dracut Emergency Shell...
Warning: /dev/centos/root does not exist
Warning: /dev/mapper/centos-root does not exist

generating "/run/initramfs/rdsosreport.txt"

Enetering emergency mode. Exit the shell to continue
Type "journalctl" to view system logs.
You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick or /boot after mounting them and attach it to a bug report.

dracut:/#
- ive tried rebuilding the initramfs for the new kernel, same result.
-tried running lvm vgscan and i get nothing returned besides the message stating it may take awhile to scan then it instantly moves down to the next line of "dracut:/#" while returning no results.
-ive compared the two lvm.conf files to see if there was any difference at all and i could not locate any.

anyone have any other ideas of what to try or look into?
 
Old 09-12-2018, 02:20 PM   #2
thenameskam
LQ Newbie
 
Registered: Sep 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
something else to note, when i ran the dracut -f to rebuild the initramfs i got the below error.

Quote:
Kernel version initramfs-3.10.0-862.11.6.el7.x86_64.img has no module directory /lib/modules/initramfs-3.10.0-862.11.6.el7.x86_64.img
but when i navigate to that directory i see files in there all named modules.xxx.
 
Old 09-14-2018, 06:06 AM   #3
thenameskam
LQ Newbie
 
Registered: Sep 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
bump, any suggestions or tips?
 
Old 09-17-2018, 06:17 AM   #4
thenameskam
LQ Newbie
 
Registered: Sep 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
bumpp. anything?
 
Old 09-19-2018, 12:03 AM   #5
SriRamaSan
LQ Newbie
 
Registered: Sep 2018
Posts: 11

Rep: Reputation: Disabled
check in the root folder you should have two hidden files
.diskinfo
.treeinfo

Once you have these two files yous issue must be resolved
 
Old 09-19-2018, 07:11 AM   #6
thenameskam
LQ Newbie
 
Registered: Sep 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by SriRamaSan View Post
check in the root folder you should have two hidden files
.diskinfo
.treeinfo

Once you have these two files yous issue must be resolved
i have neither of those files.
 
Old 09-19-2018, 11:18 AM   #7
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
My first thought on looking at your OP was that for whatever reasons, the system cannot find your partitions. You mention LVM, it could be that LVM has not activated your partitions or similar. You do need to rebuild the initramfs when making major system changes, like installing drivers etc.

Incorrect UUID's in /etc/fstab ?
Problem with your GRUB configuration ?
Corrupted partitions ?
Filesystem problems ?

While this isn't about CentOS installed on "bare-metal", it may give you some ideas.
 
Old 09-19-2018, 02:16 PM   #8
thenameskam
LQ Newbie
 
Registered: Sep 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jsbjsb001 View Post
My first thought on looking at your OP was that for whatever reasons, the system cannot find your partitions. You mention LVM, it could be that LVM has not activated your partitions or similar. You do need to rebuild the initramfs when making major system changes, like installing drivers etc.

Incorrect UUID's in /etc/fstab ?
Problem with your GRUB configuration ?
Corrupted partitions ?
Filesystem problems ?

While this isn't about CentOS installed on "bare-metal", it may give you some ideas.
yea, lvm scan brings nothing back in the dracut shell. blkid only bring up the 20T raid that is setup.

if fstab was incorrect, wouldnt it crash in the older kernel as well? same with corrupted partition? ive checked the grub config and nothing jumped out at me.
 
Old 09-20-2018, 07:54 AM   #9
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
After one kernel update, I had exact same issue. LVM did not see local disk.
I am running on HP hardware and at the time was at CentOS7.4
Unfortunately, system I had was critical and did not have a lot of time to troubleshoot.
So, I ended up doing a clean install and with the new install I do not have LVM for /boot and /
And, since then I ended up doing same on other nodes (clean instal with no LVM for /boot and /).
These days /boot probably does not have to be different partition, but I guess I am old school.
Sorry, this perhaps does not help you with finding solution to your problem...
 
Old 09-20-2018, 08:04 AM   #10
thenameskam
LQ Newbie
 
Registered: Sep 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dc.901 View Post
After one kernel update, I had exact same issue. LVM did not see local disk.
I am running on HP hardware and at the time was at CentOS7.4
Unfortunately, system I had was critical and did not have a lot of time to troubleshoot.
So, I ended up doing a clean install and with the new install I do not have LVM for /boot and /
And, since then I ended up doing same on other nodes (clean instal with no LVM for /boot and /).
These days /boot probably does not have to be different partition, but I guess I am old school.
Sorry, this perhaps does not help you with finding solution to your problem...
ultimately i believe this will be the resolution. But I'm adamant about wiping it and re-imaging since I created 40 servers that are almost identical and update without issue.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Fedora won't boot my self compiled kernel - stuck in dracut emergency shell thinkpadboi Linux - Software 2 04-08-2018 05:19 PM
Installation of fedora on windows 7 OS ended in dracut shell MSSReddy Linux - Laptop and Netbook 3 02-15-2016 08:37 AM
CentOS-7 Kickstart falls to a dracut emergency shell g.navink CentOS 2 03-04-2015 12:08 AM
[SOLVED] F18 kernel 3.8.2 upgrade hosed boot - dracut rescue mode only hpfeil Fedora 17 04-18-2013 02:03 PM
[SOLVED] After kernel rebuild and using dracut input devices in KDM don't work... robertjinx Slackware 3 11-15-2010 08:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration