Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev, raid und RC_DEVICE_TARBALL
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
M@rio
n00b
n00b


Joined: 01 Dec 2004
Posts: 27
Location: Graz

PostPosted: Wed May 18, 2005 4:36 pm    Post subject: udev, raid und RC_DEVICE_TARBALL Reply with quote

Es gibt hier zwar schon einige Threads die Probleme mit udev und Softraid betreffen, aber irgendwie beantwortet keiner mein Problem.

Folgende Ausgangssituation: 3 Soft Raids
* md0 = Raid1
* md1 = Raid5
* md2 = Raid0

udev laut Howto installiert. RAID 0,1,5 sind fix (nicht als Modul) im Kernel 2.6.11-gentoo-r6. Gebootet wird mit "gentoo=nodevfs"

Sobald RC_DEVICE_TARBALL="no" gesetzt wird, werden beim booten für md0 und md1 die Devicenodes korrekt angelegt, nur für md2 nicht. Was bei checkfs dann natürlich zum Abbruch führt.

Jetzt ist die Frage: Warum? Und gibt es einen Weg das "sauber" (ohne den DEVICE_TARBALL zu lösen)? Eventuell mit einer eignen udev Rule?
Back to top
View user's profile Send private message
Marlo
Veteran
Veteran


Joined: 26 Jul 2003
Posts: 1591

PostPosted: Wed May 18, 2005 6:04 pm    Post subject: Reply with quote

Hi M@rio,
das kommt jetzt auf Vielerlei an.
Raidtools oder mdam?
Welches Howto genau und warum eigentlich ohne "gentoo=nodevfs" .
Wie sieht deine mdadm.conf bzw. deine raidtab aus?
Wieviele Laufwerke?
Hast du die Initialitation des md2 ev. unterbrochen? Noch mal versucht?
Aber poste erstmal, was sagt cat /proc/mdstat ?

Gruß
Ma
_________________
------------------------------------------------------------------
http://radio.garden/
Back to top
View user's profile Send private message
M@rio
n00b
n00b


Joined: 01 Dec 2004
Posts: 27
Location: Graz

PostPosted: Wed May 18, 2005 7:12 pm    Post subject: Reply with quote

Marlboro wrote:
Raidtools oder mdam?

mdadm. Aber das ist IMO nicht das Problem. Da alle Partitionen "Linux raid autodetect" sind. Aber wenn die Devicenode fehlt *kann* das Raid nicht gestartet werden. Die sollten aber soweit ich udev verstehe über KERNEL="md[0-9]*", NAME="md/%n", SYMLINK="%k", GROUP="disk" in /etc/udev/rules.d/50-udev.rules automatisch angelegt werden.

Quote:
Welches Howto genau

http://www.gentoo.org/doc/de/udev-guide.xml

Quote:
warum eigentlich ohne "gentoo=nodevfs" .

Weils devfs noch im Kernel ist, aber nicht benutzt werden soll.

Quote:
Aber poste erstmal, was sagt cat /proc/mdstat ?

Hier mit devfs oder mit udev und RC_DEVICE_TARBALL="yes":

cat /proc/mdstat
Personalities : [raid0] [raid1] [raid5]
md2 : active raid0 hdb2[0] hda2[2] hdc2[2]
1517760 blocks 64k chunks

md1 : active raid5 hdc3[1] hdb3[0] hda3[2]
240187648 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]

md0 : active raid1 hdb1[1] hda1[0]
24000 blocks [2/2] [UU]

Sobald aber udev aktiv und RC_DEVICE_TARBALL="no" ist fehlt md2, weil das Raid ohne /dev/md2 -> md/2 nicht gestartet werden kann.
Back to top
View user's profile Send private message
Marlo
Veteran
Veteran


Joined: 26 Jul 2003
Posts: 1591

PostPosted: Thu May 19, 2005 6:25 am    Post subject: Reply with quote

Was sagt

mknod /dev/md2 b 9 2 ?
_________________
------------------------------------------------------------------
http://radio.garden/
Back to top
View user's profile Send private message
M@rio
n00b
n00b


Joined: 01 Dec 2004
Posts: 27
Location: Graz

PostPosted: Thu May 19, 2005 8:04 am    Post subject: Reply with quote

Marlboro wrote:
Was sagt mknod /dev/md2 b 9 2 ?
Funktioniert an sich problemlos. Aber nur bis zum nächsten reboot, dann ist die Node wieder weg.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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