LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-17-2011, 09:25 AM   #1
shaze
LQ Newbie
 
Registered: Dec 2003
Posts: 9

Rep: Reputation: 0
Boot problem after RAID configuration


Dear all,

Please could you help with the following.


A few weeks ago, I reconfigured our server to use RAID 1, with LVM on top of that. I followed as best I could the instructions in http://linuxdevcenter.com/pub/a/linu...vm.html?page=2.

Everything worked fine until this morning, when we had to turn the server off to move it. After that it would not boot up again

Linux starts booting until I get a point where it complains about

VolGroup00 not being detected
and then
mount: could not find filestystem '/dev/root'.
Setting up other filesystems
Setting up new root fs
setuproot: moving /dev/ failed: No such file or directory
I can boot up off a LiveCD and then manually mount disks so I don't think it's any physical problem.

I am running Scientific Linux 5.4

My configuration is as follows: VolGroup00/LogGroup00 consists of
/dev/md0: /dev/sda2 + /dev/sdb2
/dev/md1: /dev/sdc1 /dev/sdd1
/dev/md2: /dev/sde1 /dev/sdf1
/dev/sda1 is a Linux partition (83) as is /dev/sdb1 (though not used). The others are all Linux Raid autodetect.

My idea is that /dev/VolgGroup/LogGroup00 should be the root and that the system should boot off /dev/sda1. I'd be quite happy to boot off LogGroup00 but this just how things ended up.

I can see anything in the grub.conf (of /dev/sda1) that contradicts this, or in the initrd. The device.map called hd0 /dev/sda (so presumably /dev/sda1 is (hd0,0)

In /etc/fstab (on LogGroup00), the fstab looks sensible -- / is /dev/VolGroup00/LogGroup00). As I type this, I realise that there isn't an entry for /boot in /etc/fstab. I'll only be able to test this tomorrow otherwise I'll experiment).

I've doen a lot of googling on this and found other people with the problem but I can't find a satisfactory solution.

Other than really not wanting to lose my data on my current disks, I am not tied to the current configuation. I'd be quite happy for my boot disk to be LogGroup00. I'd by happy to rejig /dev/sda1 and /dev/sdb1.

Any help gratefully received!

Thanks
 
Old 01-17-2011, 01:45 PM   #2
indelible
LQ Newbie
 
Registered: Aug 2008
Posts: 25

Rep: Reputation: 2
grub doesn't know anything about RAID (I don't think, anyone can feel free to correct me). The easiest solution I know of is to have a separate, small boot partition that doesn't use RAID. So you can at least boot, then mount the volumes.
 
Old 01-17-2011, 01:59 PM   #3
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
To my understanding GRUB cannot boot from LVM, hence, you need always a small boot partition where the initrd image resides. Only then initrd can load, the LVM driver becomes available and you can access the LVM partition. Same goes for the RAID driver, altough in that case the boot partition is allowed on a RAID1 set. (Not on a RAID5)

Doublecheck whether all your devices (sd*) received the same drive name as during initial configuration. When I have such problems, usually the kernel thinks differently about sd* than during installation. Which is obvious, as while installing I have often a USB plugged in.

jlinkels
 
Old 01-17-2011, 10:20 PM   #4
shaze
LQ Newbie
 
Registered: Dec 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for the replies. My boot partition is /dev/sda1, which is neither managed by LVM nor RAID. My fstab and grub.conf (and anything I can think of is consistent with this).
 
Old 01-18-2011, 01:36 PM   #5
indelible
LQ Newbie
 
Registered: Aug 2008
Posts: 25

Rep: Reputation: 2
Are you using grub-legacy or grub-2? (v1.9x is grub 2)

If you're using grub-2, you want to edit /etc/default/grub then run 'sudo update-grub' rather than editing grub.conf manually. However, this is more of an aside and I'm grasping at straws (can you tell?).

One other note that I've had issues with (though to fix it you would lose your data...) is that having the partitions set to "linux raid autodetect" can sometimes cause issues like you're seeing. It was mostly with kernels around a year ago, but it might potentially still exist. Having that and the raid super block written as a version newer than v0.9 caused intermittent problems for me. I don't use lvm, though - I use mdadm directly.

So for my raid partition, I created it like so:
sudo mdadm /dev/md0 --create --auto yes -e 0.90 -l 0 -n 2 /dev/sda4 /dev/sdb4
and my partitions are all type 0x82 (Linux)

I also only have it mounted as /home so it's not quite so critical.

Maybe this will at least point you in the direction of some helpful googling.
 
1 members found this post helpful.
Old 01-19-2011, 10:19 PM   #6
shaze
LQ Newbie
 
Registered: Dec 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Gave up

Thanks for the suggestions. In the end, after two days, and getting help, I gave up, re-installed the OS and recovered the system from backup. It all works fine, and the config seems the same. I think the problem was some subtle problem with having an older BIOS, an older kernel. Judging from things I found in the web with people who had similar problems, the solution is doctor the initrd in some way, but given the cycle of doing that, rebooting from live cd, etc is so long and labour intensive I gave up after a few tries. My primary backup failed too, but fortunatelyl I had a secondary backup and the system seems up again. I suppose the take-home lesson for part-time sys admins like me is that hard disks are cheap. Back up everything, several times. It's a lot cheaper than spending a few days with some obscure bug.
 
  


Reply

Tags
boot, lvm, raid


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
problems adding disks/ raid configuration - intel embedded hardware raid birdmanpdx Linux - Hardware 0 09-23-2010 02:17 PM
dual boot debian with vista in a 3 drive raid 0 configuration jake658879 Debian 3 04-22-2009 09:49 AM
Copying RAID configuration to another system with no RAID?? ojha_riddhish Linux - Server 4 04-10-2009 04:58 AM
Best configuration for dual boot RAID linear Maverick1182 Linux - Hardware 0 02-23-2007 07:40 AM
Hardware RAID Configuration Causes Linux Not To Boot bper Linux - Hardware 0 04-03-2006 07:53 AM

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

All times are GMT -5. The time now is 01:43 PM.

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