Link to home
Start Free TrialLog in
Avatar of Chris McGinnis
Chris McGinnisFlag for United States of America

asked on

Ubuntu boot up - software RAID not assembled, LV not found

We have a really old physical Ubuntu server that no longer boots up into the OS.  The errors on boot up are:

"Volume group "volgrp01" not found"
"mount: could not find filesystem '/dev/root'"

which eventually result in a Kernel panic.

The system uses software RAID 1 with 2 physical disks
/dev/md0 uses sda2 and sdb2


The array md0 contains logical volumes for /root, /home, /opt, /tmp

The md0 array doesn’t appear to be assembled/started on boot (I think this is the main issue)

I can boot up to a Linux Live CD and assemble the md0 array and everything looks fine.  It previously was degraded and reported sdb2 as missing….but I was able to add it back to the array and let it rebuild

/boot isn’t on the software RAID, but is on /dev/sda1 and /dev/sdb1
 
I’m not really sure how to get the md0 RAID array to be assembled/started on boot, but I think if I can get that figured out it will fix the server.  I’m not sure if the problem is with something like Grub or initramfs?  My Linux skills are a little rusty - any help would be appreciated.
Avatar of ArneLovius
ArneLovius
Flag of United Kingdom of Great Britain and Northern Ireland image

If /boot exists on both sda1 and sdb1, it would indicate that at some point in time /boot was mirrored.

If /sdb2 was reported as missing, I would presume that it was actually sdb that was missing, and the miroring between sdb1 and sdb2 was also impacted.

Does /etc/fstab exist on both sda1 and sdb1 ?
If /etc/fstab exist on both sda1 and sdb1 are the files the same ?
Avatar of dfke
dfke

Hi,

read up here as it might put you on the right track.

Cheers
mdadm 0.9 can be auto-assembled by the kernel.
later version need to be assembled using mdadm (from an initramfs f.e.).
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.