Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
is RAID uncompatible with root=LABEL ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
doublehp
Guru
Guru


Joined: 11 Apr 2005
Posts: 473
Location: FRANCE

PostPosted: Wed Jan 13, 2010 7:34 pm    Post subject: is RAID uncompatible with root=LABEL ? Reply with quote

I have set up the same kernel two different ways in grub.conf:
- root=/dev/md5 odmraid
- root=LABEL=Gentoo odmraid

The first one worrks fine. The second one ends up with "can not mount root".

In busybox, i see that /dev/md* are missing, /proc/mdstat looks like empty
Code:
cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath] [faulty]

and mdadm -E /dev/sda3 returns nothing. Kernel loads personalities, and discovers drives and partitions, but does not automatically assemble arrays. But passing root=/dev/md3 magically solves it ...

Does the problem lay in the kernel that does not auto-assemble, or in busybox/initrd that does not ask to assemble ? All my drives are in kernel. No module.

If I make a pure monolythic kernel, with no initrd at all, I would expect the kernel to auto-assemble; maybe that's just a dream ?
- not a dream => kernel's problem
- a dream => problem in initrd

(and YES I sware the name of label is ok; i never hand copy, always do copy-paste with the mouse from or to fstab; and my fstab works fine )
_________________
DEMAINE Benoît-Pierre (aka DoubleHP ) http://www.demaine.info/
>o_/ Coin coin coin \_o<
to contact me (MSN,ICQ, JABBER, Skype ... ) http://benoit.demaine.info/contact.png
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9892
Location: almost Mile High in the USA

PostPosted: Wed Jan 13, 2010 7:39 pm    Post subject: Reply with quote

The root=LABEL (I think root=UUID) methods only work with an initrd that understands these labels, as far as I know.
The only other issue is that if you don't have all the modules just right, coupled with ordering of module loading in the initrd, it will fail.

I haven't used genkernel yet, are you using that?
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
doublehp
Guru
Guru


Joined: 11 Apr 2005
Posts: 473
Location: FRANCE

PostPosted: Wed Jan 13, 2010 9:07 pm    Post subject: Reply with quote

I was using initrd (with all required options and features in genkernel to generate initrd & RAID). What should be required for labels ?

I can publish my config ... if you think you can read it ... or maybe tell me which keywords I should filter to avoid pasting 3k lines ?

I usually use genkernel, but it seems uncompatible with sys-kernel/xen-sources so I will have to stop using it.
_________________
DEMAINE Benoît-Pierre (aka DoubleHP ) http://www.demaine.info/
>o_/ Coin coin coin \_o<
to contact me (MSN,ICQ, JABBER, Skype ... ) http://benoit.demaine.info/contact.png
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9892
Location: almost Mile High in the USA

PostPosted: Wed Jan 13, 2010 9:33 pm    Post subject: Reply with quote

When it fails do you see in the log that it actually assembled the RAID or did the initrd cause the assembly to fail?

As far as I know it should be irrelevant whether initrd is used, both methods - if you use the same kernel - should autodetect and assemble the RAID. Just that you can't mount by label without the initrd. As far as I know, the 'mount' in the initrd needs to be able to support labels (not sure if busybox mount does, I suppose it should)...

I don't use initrd/genkernel...using straight /dev/md1 for my root partition now so I'm stepping on unchartered territory...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
doublehp
Guru
Guru


Joined: 11 Apr 2005
Posts: 473
Location: FRANCE

PostPosted: Wed Jan 13, 2010 10:15 pm    Post subject: Reply with quote

loads personalities, detects drives ... the "can't moint root". No other failure.

raw kernel without initrd) works with root=/dev/md3 . Still don't work with root=LABEL=Gentoo

in some cases, root=/dev/md5 does not work. I just think that usig LABELs is some times more secure.
_________________
DEMAINE Benoît-Pierre (aka DoubleHP ) http://www.demaine.info/
>o_/ Coin coin coin \_o<
to contact me (MSN,ICQ, JABBER, Skype ... ) http://benoit.demaine.info/contact.png
Back to top
View user's profile Send private message
meyerm
Veteran
Veteran


Joined: 27 Jun 2002
Posts: 1311
Location: Munich / Germany

PostPosted: Tue Feb 16, 2010 3:11 pm    Post subject: Reply with quote

When you use genkernel --disklabel is your friend.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum