Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RAID1] no device found au démarrage (résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
bonzai2024
n00b
n00b


Joined: 10 Nov 2005
Posts: 31

PostPosted: Mon Jan 09, 2006 8:00 pm    Post subject: [RAID1] no device found au démarrage (résolu) Reply with quote

Bonjour,
J'ai lu le how to et j'ai configuré un RAID1 entre 2 disques pour mon /data et tout fonctionnait bien...
J'ai commencé à copier des fichiers. J'ai ensuite monté /hda5 et /hdb5 pour vérifier que tout était ok, j'ai rebooté et puis plus rien enfin voici le message d'erreur qui s'affiche lors du démarrage:
mdadm: no devices found for /dev/md0
En cherchant un peu, j'ai réussit à retrouver ma parttion avec un mdadm --assemble /dev/md0 /dev/hda5 /dev/hdb5
Mais bon comment se fait-il que j'ai un problème au démarrage ?
Je l'ai ajouté dans le fstab mais évidemment il ne veut pas trouver /dev/md0 ...

Ceci ne fonctionne pas non plus:
lor ~ # mount /dev/md0 /data
mount: /dev/md0: can't read superblock

...

lor ~ # mdadm --assemble /dev/md0 /dev/hda5 /dev/hdb5
mdadm: /dev/md0 has been started with 2 drives.
lor ~ # mount /dev/md0 /data
lor ~ # ls -la /data
total 28
drwxr-xr-x 4 root root 4096 Jan 9 17:58 .
drwxr-xr-x 19 root root 4096 Jan 8 12:33 ..
drwxr-xr-x 3 root root 4096 Jan 9 17:58 backup
drwx------ 2 root root 16384 Jan 8 15:40 lost+found

PS: Je pense avoir compilé en dur, enfin j'ai juste ajouté l'option * pour le RAID/LVM et pour le RAID1

Bizarre non ? help :roll:


Last edited by bonzai2024 on Tue Jan 10, 2006 8:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
LostControl
l33t
l33t


Joined: 02 Mar 2004
Posts: 885
Location: La Glane, Suisse

PostPosted: Mon Jan 09, 2006 8:14 pm    Post subject: Reply with quote

Salut,

Est-ce que tu as un fichier "/etc/raidtab" ? Voici la tronche du mien pour un RAID1 :
Code:
# / (RAID 1)
raiddev         /dev/md2
raid-level      1
nr-raid-disks   2
chunk-size      32
persistent-superblock   1
device          /dev/hde3
raid-disk       0
device          /dev/hdg3
raid-disk       1

Je te déconseille de monter ensuite les partitions indépendamment. Je me souviens avoir eu des m... en faisant un peu comme toi (monter /dev/hd?? et pas /dev/md?).

Sinon il y a plein d'infos intéressantes dans "/proc/mdstat".

A+
_________________
http://www.jaqpot.net
http://www.fail2ban.org
Back to top
View user's profile Send private message
bonzai2024
n00b
n00b


Joined: 10 Nov 2005
Posts: 31

PostPosted: Mon Jan 09, 2006 8:28 pm    Post subject: Reply with quote

Héhé très fort, je ne sais pas comment j'ai fait pour oublier ce fichier...
lor ~ # ls /etc/raidtab
ls: /etc/raidtab: No such file or directory
lor ~ # cat /proc/mdstat
Personalities : [raid1]
unused devices: <none>

J'ai pas vu dans la doc, on fait comment pour le créer ?

Un truc du genre :

# / (RAID 1)
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
chunk-size 32 ???
persistent-superblock 1 ???
device /dev/hda5
raid-disk 0
device /dev/hdb5
raid-disk 1

Merci en tout cas c'est un bon début de solution ;-)
Back to top
View user's profile Send private message
bonzai2024
n00b
n00b


Joined: 10 Nov 2005
Posts: 31

PostPosted: Mon Jan 09, 2006 8:37 pm    Post subject: Reply with quote

mon fichier ne doit pas être bon car même problème... :cry:
Back to top
View user's profile Send private message
boozo
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3193

PostPosted: Mon Jan 09, 2006 8:40 pm    Post subject: Reply with quote

'alute

peut-être cet how-to issue ce thread te seront utiles si tu ne connais pas encore :wink:
_________________
" Un psychotique, c'est quelqu'un qui croit dur comme fer que 2 et 2 font 5, et qui en est pleinement satisfait.
Un névrosé, c'est quelqu'un qui sait pertinemment que 2 et 2 font 4, et ça le rend malade ! "
Back to top
View user's profile Send private message
bonzai2024
n00b
n00b


Joined: 10 Nov 2005
Posts: 31

PostPosted: Mon Jan 09, 2006 8:47 pm    Post subject: Reply with quote

wouah ca me semble pourtant correct non ? (enfin je ne suis pas sur pour mon /etc/raidtab)

lor ~ # cat /etc/raidtab
# /data (RAID 1)
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
chunk-size 32
persistent-superblock 1
device /dev/hda5
raid-disk 0
device /dev/hdb5
raid-disk 1

lor ~ # cat /proc/mdstat
Personalities : [raid1]
unused devices: <none>

lor ~ # mdadm --assemble /dev/md0 /dev/hda5 /dev/hdb5
mdadm: /dev/md0 has been started with 2 drives.

lor ~ # mdadm --detail --scan
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=0af1ae44:60f0e996:ec15cff1:754b2820

lor ~ # cat /etc/mdadm.conf
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=0af1ae44:60f0e996:ec15cff1:754b2820

lor ~ # cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 hda5[0] hdb5[1]
97656960 blocks [2/2] [UU]

unused devices: <none>
Back to top
View user's profile Send private message
marvin rouge
Veteran
Veteran


Joined: 01 Aug 2004
Posts: 1422
Location: Villa Lumierrante, Zonelibre

PostPosted: Tue Jan 10, 2006 7:42 am    Post subject: Reply with quote

Salut,

est-ce que tu peux utiliser les balises de code pour mettre en forme tes posts stp ? merci :) (ça sera plus lisible)

Pour ton Raid, il faut que ce soit mis en dur dans le noyau. Donc, un petit
Code:
grep -i raid /usr/src/linux/.config
pour vérifier que tu as y aux bonnes options.

Ton fichier /etc/raidtab a l'air correct.

Moi j'avais pleins de trucs pénibles, mais c'était à partir de md1 (aucun pb sur le md0).
T'as bien mis la ligne dans le fstab ?
Back to top
View user's profile Send private message
bonzai2024
n00b
n00b


Joined: 10 Nov 2005
Posts: 31

PostPosted: Tue Jan 10, 2006 6:57 pm    Post subject: Reply with quote

Voilà
Code:
lor ~ # grep -i raid /boot/config-2.6.14-gentoo-r5
# CONFIG_RAID_ATTRS is not set
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_MEGARAID_NEWGEN is not set

# CONFIG_MEGARAID_LEGACY is not set
# CONFIG_MEGARAID_SAS is not set
# Multi-device support (RAID and LVM)
# CONFIG_MD_RAID0 is not set
CONFIG_MD_RAID1=y
# CONFIG_MD_RAID10 is not set
# CONFIG_MD_RAID5 is not set
# CONFIG_MD_RAID6 is not set
Back to top
View user's profile Send private message
bonzai2024
n00b
n00b


Joined: 10 Nov 2005
Posts: 31

PostPosted: Tue Jan 10, 2006 7:17 pm    Post subject: Reply with quote

Supplément d'info
Code:
lor ~ # dmesg |grep md
md: raid1 personality registered as nr 3
md: md driver 0.90.2 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: bitmap version 3.39
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
md: md0 stopped.
md: raidstart(pid 9090) used deprecated START_ARRAY ioctl. This will not be supported beyond 2.6
md: autorun ...
md: considering hdb5 ...
md:  adding hdb5 ...
md:  adding hda5 ...
md: created md0
md: bind<hda5>
md: bind<hdb5>
md: running: <hdb5><hda5>
raid1: raid set md0 active with 2 out of 2 mirrors
md: ... autorun DONE.
md: raidstart(pid 9101) used deprecated START_ARRAY ioctl. This will not be supported beyond 2.6
md: could not bd_claim hda5.
md: autostart failed!
EXT3 FS on md0, internal journal
md: could not open unknown-block(9,0).
md: error, md_import_device() returned -4
Back to top
View user's profile Send private message
boozo
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3193

PostPosted: Tue Jan 10, 2006 7:36 pm    Post subject: Reply with quote

je ne sais pas si c'est important pour ton erreur mais il ne te manque pas nr-spare-disks 0 dans ton /etc/raidtab ?! :?
_________________
" Un psychotique, c'est quelqu'un qui croit dur comme fer que 2 et 2 font 5, et qui en est pleinement satisfait.
Un névrosé, c'est quelqu'un qui sait pertinemment que 2 et 2 font 4, et ça le rend malade ! "
Back to top
View user's profile Send private message
bonzai2024
n00b
n00b


Joined: 10 Nov 2005
Posts: 31

PostPosted: Tue Jan 10, 2006 7:54 pm    Post subject: Reply with quote

heu héhé personne ne m'a dit qu'il fallait installer les raidtools...
j'ai fait un emerge raidtools et bon assez comique mais maintenant tout semble fonctionner à merveille ! :?
Back to top
View user's profile Send private message
boozo
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3193

PostPosted: Tue Jan 10, 2006 7:59 pm    Post subject: Reply with quote

ben tant mieux :D voyais vraiment plus comment aider

tu nous mets un petit (résolu) stp :wink:
_________________
" Un psychotique, c'est quelqu'un qui croit dur comme fer que 2 et 2 font 5, et qui en est pleinement satisfait.
Un névrosé, c'est quelqu'un qui sait pertinemment que 2 et 2 font 4, et ça le rend malade ! "
Back to top
View user's profile Send private message
bonzai2024
n00b
n00b


Joined: 10 Nov 2005
Posts: 31

PostPosted: Tue Jan 10, 2006 8:07 pm    Post subject: Reply with quote

oui qui sait peut-être que je ne serai pas le seul à avoir ce petit problème... 8)
Merci à tous en tout cas ! :P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French 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