Erreur au boot depuis mise en place du RAID1 ?

Bonjour à tous,

Alors pour vous expliquer le contexte, j’ai une config que je monte en serveur.

Il est composé de sda1 avec l’OS, sdb1 un disque dur de sauvegardes, sdc1 et sdc2 un disque avec 2 partitions…

Jusque là je n’avais pas eu de soucis, tout tournais bien.

J’ai ajouté des disques de 2To pour le stockage, et j’ai suivi un tuto pour les mettre en RAID1, et depuis que j’ai redémarré la machine, j’ai des erreurs au boot. Je n’ai plus accès au réseau, etc…

Je ne sais pas trop quelques informations je peux vous donner pour que vous puissiez m’aider ?

Merci d’avance.

Nicolas.

EDIT : Voila ce que j’ai en démarrant
http://imageshack.us/photo/my-images/528/imag0037d.jpg

Ce qui me fait un peu peur quand je fais un “blkid” il est écrit /dev/sdb : TYPE=“isw_raid_member” (idem pour sdc) me serais-je trompé lors de la création de mon RAID ?

Comment savoir que /dev/sdb1 ne s’est pas transformé en /dev/sda1 ?
Regarde le partitionnement de chaque disque pour les reconnaître.
La photo montre que les périphériques sont référencés selon le rang du disque.
(/dev/sdb1=deuxième disque,première partition)

Mieux vaut référencer les montages par leurs UUIDs dans /etc/fstab, /boot/grub/grub.cfg, /etc/mdadm/mdadm.conf …
À la différence des dénominations /dev/sd[abc]
(sda premier disque, sdb deuxième disque,sdc troisième disque …)
, un UUID n’a cure du rang du disque.

S’il n’y a pas confusion de disque, la photo montre surtout que /dev/sdb1 aurait besoin d’un fsck.

Démarre un live-cd et lance fsck pour vérifier et réparer les partitions, en particulier la racine de l’installation.
fsck doit s’appliquer sur des partitions qui ne sont pas montées.

fsck /dev/sdb1

fsck /dev/md0 …

Je veux bien essayer avec les UUID, mais comment les retrouve t on ?

Et comment vérifier le partitionment de chaque disque ?

je fais un “blkid” j’obtiens ça… Je ne vois pas les UUID pour sdb1, sdc1 et sdc2… bizarre non ?

Voir : http://imageshack.us/photo/my-images/87/imag0038u.jpg/

Salut,

est parfois plus causant :slightly_smiling:

avec ça je retrouve uniquement sda1, sda5, sda6

ce qui correspond donc a mon disque dur où est l’OS (/, /home/, swap)…

J’ai regardé (cfdisk), mon sdb a toujours bien 1 partition, et mes sdc a toujours ses 2 partitions…

et dans le fstab j’ai un /dev/sda1 /media/usb0, est ce que cela est normal ?

ls -l /dev/disk/by-uuid

+1
et de grâce, pas de photos, colle-nous du texte s’il te plait.

ls -l /dev/disk/by-uuid

ca me retrouve uniquement sda1, sda5, sda6…

Et pour les photos, je n’ai pas trop le choix… la machine n’est plus retrouvée sur le réseau… je ne peux rien copier coller à distance :confused: je ne sais pas trop comment faire :frowning:

sd[ABCDE] + /dev/md*

Nous voulons aussi voir lesRAIDs détectés sous /dev/md*. ( /proc/mdstat)

/dev/sda

RAID, “isw”
/dev/sdb
/dev/sdc

RAID avec UUID identique
/dev/sdd
/dev/sde1

Je compte cinq disques alors que j’en comptais six sur ton premier message.
Où est passé le sixième ? Un RAID matériel est-il à l’oeuvre ?

Compte tes disques et identifie les individuellement.

fdisk -l

ou

parted /dev/sdb print

parted /dev/sdc print

Si tu n’y vois toujours pas clair, débranche les disques pour les isoler.

Alors dans la logique j’ai 5 disques physiquement :

  1. l’OS ou il doit y avoir /, /home, et swap
  2. un disque avec un partition
  3. 2 partitions
  4. 1er disque du raid
  5. 2ieme disque du raid

Je vous donne ici le résultat d’un ls -l dans /dev

total 0 lrwxrwxrwx 1 root root 9 Oct 6 13:53 MAKEDEV -> /bin/true crw-rw---- 1 root video 10, 175 Oct 6 13:53 agpgart drwxr-xr-x 2 root root 460 Oct 6 13:53 block drwxr-xr-x 2 root root 140 Oct 6 13:53 bsg drwxr-xr-x 3 root root 60 Oct 6 13:53 bus drwxr-xr-x 2 root root 2720 Oct 6 13:53 char crw------- 1 root root 5, 1 Oct 6 14:05 console lrwxrwxrwx 1 root root 11 Oct 6 13:53 core -> /proc/kcore crw------- 1 root root 10, 62 Oct 6 13:53 cpu_dma_latency drwxr-xr-x 5 root root 100 Oct 6 13:53 disk drwxr-xr-x 2 root root 60 Oct 6 13:53 dri lrwxrwxrwx 1 root root 13 Oct 6 13:53 fd -> /proc/self/fd brw-rw---- 1 root floppy 2, 0 Oct 6 13:53 fd0 crw-rw-rw- 1 root root 1, 7 Oct 6 13:53 full crw------- 1 root root 252, 0 Oct 6 13:53 fw0 crw------- 1 root root 10, 228 Oct 6 13:53 hpet prw------- 1 root root 0 Oct 6 13:53 initctl drwxr-xr-x 3 root root 220 Oct 6 13:53 input crw------- 1 root root 1, 11 Oct 6 13:53 kmsg brw-rw---- 1 root disk 7, 0 Oct 6 13:53 loop0 brw-rw---- 1 root disk 7, 1 Oct 6 13:53 loop1 brw-rw---- 1 root disk 7, 2 Oct 6 13:53 loop2 brw-rw---- 1 root disk 7, 3 Oct 6 13:53 loop3 brw-rw---- 1 root disk 7, 4 Oct 6 13:53 loop4 brw-rw---- 1 root disk 7, 5 Oct 6 13:53 loop5 brw-rw---- 1 root disk 7, 6 Oct 6 13:53 loop6 brw-rw---- 1 root disk 7, 7 Oct 6 13:53 loop7 crw------- 1 root root 10, 227 Oct 6 13:53 mcelog drwxr-xr-x 2 root root 60 Oct 6 13:53 md brw-rw---- 1 root disk 9, 127 Oct 6 13:53 md127 crw-r----- 1 root kmem 1, 1 Oct 6 13:53 mem drwxr-xr-x 2 root root 60 Oct 6 13:53 net crw------- 1 root root 10, 61 Oct 6 13:53 network_latency crw------- 1 root root 10, 60 Oct 6 13:53 network_throughput crw-rw-rw- 1 root root 1, 3 Oct 6 13:53 null crw-r----- 1 root kmem 1, 4 Oct 6 13:53 port crw------- 1 root root 108, 0 Oct 6 13:53 ppp crw------- 1 root root 10, 1 Oct 6 13:53 psaux crw-rw-rw- 1 root root 5, 2 Oct 6 13:53 ptmx drwxr-xr-x 2 root root 0 Oct 6 13:53 pts crw-rw-rw- 1 root root 1, 8 Oct 6 13:53 random lrwxrwxrwx 1 root root 4 Oct 6 13:53 root -> sda1 lrwxrwxrwx 1 root root 4 Oct 6 13:53 rtc -> rtc0 crw------- 1 root root 254, 0 Oct 6 13:53 rtc0 brw-rw---- 1 root disk 8, 0 Oct 6 13:53 sda brw-rw---- 1 root disk 8, 1 Oct 6 13:53 sda1 brw-rw---- 1 root disk 8, 2 Oct 6 13:53 sda2 brw-rw---- 1 root disk 8, 5 Oct 6 13:53 sda5 brw-rw---- 1 root disk 8, 6 Oct 6 13:53 sda6 brw-rw---- 1 root disk 8, 16 Oct 6 13:53 sdb brw-rw---- 1 root disk 8, 32 Oct 6 13:53 sdc brw-rw---- 1 root disk 8, 48 Oct 6 13:53 sdd brw-rw---- 1 root disk 8, 49 Oct 6 13:53 sdd1 brw-rw---- 1 root disk 8, 64 Oct 6 13:53 sde brw-rw---- 1 root disk 8, 65 Oct 6 13:53 sde1 drwxrwxrwt 2 root root 40 Oct 6 13:53 shm crw------- 1 root root 10, 231 Oct 6 13:53 snapshot drwxr-xr-x 3 root root 220 Oct 6 13:53 snd lrwxrwxrwx 1 root root 24 Oct 6 13:53 sndstat -> /proc/asound/oss/sndstat lrwxrwxrwx 1 root root 15 Oct 6 13:53 stderr -> /proc/self/fd/2 lrwxrwxrwx 1 root root 15 Oct 6 13:53 stdin -> /proc/self/fd/0 lrwxrwxrwx 1 root root 15 Oct 6 13:53 stdout -> /proc/self/fd/1 crw-rw-rw- 1 root root 5, 0 Oct 6 13:53 tty crw------- 1 root root 4, 0 Oct 6 13:53 tty0 crw------- 1 root root 4, 1 Oct 6 13:53 tty1 crw------- 1 root root 4, 10 Oct 6 13:53 tty10 crw------- 1 root root 4, 11 Oct 6 13:53 tty11 crw------- 1 root root 4, 12 Oct 6 13:53 tty12 crw------- 1 root root 4, 13 Oct 6 13:53 tty13 crw------- 1 root root 4, 14 Oct 6 13:53 tty14 crw------- 1 root root 4, 15 Oct 6 13:53 tty15 crw------- 1 root root 4, 16 Oct 6 13:53 tty16 crw------- 1 root root 4, 17 Oct 6 13:53 tty17 crw------- 1 root root 4, 18 Oct 6 13:53 tty18 crw------- 1 root root 4, 19 Oct 6 13:53 tty19 crw------- 1 root root 4, 2 Oct 6 13:53 tty2 crw------- 1 root root 4, 20 Oct 6 13:53 tty20 crw------- 1 root root 4, 21 Oct 6 13:53 tty21 crw------- 1 root root 4, 22 Oct 6 13:53 tty22 crw------- 1 root root 4, 23 Oct 6 13:53 tty23 crw------- 1 root root 4, 24 Oct 6 13:53 tty24 crw------- 1 root root 4, 25 Oct 6 13:53 tty25 crw------- 1 root root 4, 26 Oct 6 13:53 tty26 crw------- 1 root root 4, 27 Oct 6 13:53 tty27 crw------- 1 root root 4, 28 Oct 6 13:53 tty28 crw------- 1 root root 4, 29 Oct 6 13:53 tty29 crw------- 1 root root 4, 3 Oct 6 13:53 tty3 crw------- 1 root root 4, 30 Oct 6 13:53 tty30 crw------- 1 root root 4, 31 Oct 6 13:53 tty31 crw------- 1 root root 4, 32 Oct 6 13:53 tty32 crw------- 1 root root 4, 33 Oct 6 13:53 tty33 crw------- 1 root root 4, 34 Oct 6 13:53 tty34 crw------- 1 root root 4, 35 Oct 6 13:53 tty35 crw------- 1 root root 4, 36 Oct 6 13:53 tty36 crw------- 1 root root 4, 37 Oct 6 13:53 tty37 crw------- 1 root root 4, 38 Oct 6 13:53 tty38 crw------- 1 root root 4, 39 Oct 6 13:53 tty39 crw------- 1 root root 4, 4 Oct 6 13:53 tty4 crw------- 1 root root 4, 40 Oct 6 13:53 tty40 crw------- 1 root root 4, 41 Oct 6 13:53 tty41 crw------- 1 root root 4, 42 Oct 6 13:53 tty42 crw------- 1 root root 4, 43 Oct 6 13:53 tty43 crw------- 1 root root 4, 44 Oct 6 13:53 tty44 crw------- 1 root root 4, 45 Oct 6 13:53 tty45 crw------- 1 root root 4, 46 Oct 6 13:53 tty46 crw------- 1 root root 4, 47 Oct 6 13:53 tty47 crw------- 1 root root 4, 48 Oct 6 13:53 tty48 crw------- 1 root root 4, 49 Oct 6 13:53 tty49 crw------- 1 root root 4, 5 Oct 6 13:53 tty5 crw------- 1 root root 4, 50 Oct 6 13:53 tty50 crw------- 1 root root 4, 51 Oct 6 13:53 tty51 crw------- 1 root root 4, 52 Oct 6 13:53 tty52 crw------- 1 root root 4, 53 Oct 6 13:53 tty53 crw------- 1 root root 4, 54 Oct 6 13:53 tty54 crw------- 1 root root 4, 55 Oct 6 13:53 tty55 crw------- 1 root root 4, 56 Oct 6 13:53 tty56 crw------- 1 root root 4, 57 Oct 6 13:53 tty57 crw------- 1 root root 4, 58 Oct 6 13:53 tty58 crw------- 1 root root 4, 59 Oct 6 13:53 tty59 crw------- 1 root root 4, 6 Oct 6 13:53 tty6 crw------- 1 root root 4, 60 Oct 6 13:53 tty60 crw------- 1 root root 4, 61 Oct 6 13:53 tty61 crw------- 1 root root 4, 62 Oct 6 13:53 tty62 crw------- 1 root root 4, 63 Oct 6 13:53 tty63 crw------- 1 root root 4, 7 Oct 6 13:53 tty7 crw------- 1 root root 4, 8 Oct 6 13:53 tty8 crw------- 1 root root 4, 9 Oct 6 13:53 tty9 crw-rw---- 1 root dialout 4, 64 Oct 6 13:53 ttyS0 crw-rw---- 1 root dialout 4, 65 Oct 6 13:53 ttyS1 crw-rw---- 1 root dialout 4, 66 Oct 6 13:53 ttyS2 crw-rw---- 1 root dialout 4, 67 Oct 6 13:53 ttyS3 crw-rw-rw- 1 root root 1, 9 Oct 6 13:53 urandom crw------- 1 root root 7, 0 Oct 6 13:53 vcs crw------- 1 root root 7, 1 Oct 6 13:53 vcs1 crw------- 1 root root 7, 2 Oct 6 13:53 vcs2 crw------- 1 root root 7, 3 Oct 6 13:53 vcs3 crw------- 1 root root 7, 4 Oct 6 13:53 vcs4 crw------- 1 root root 7, 5 Oct 6 13:53 vcs5 crw------- 1 root root 7, 6 Oct 6 13:53 vcs6 crw------- 1 root root 7, 128 Oct 6 13:53 vcsa crw------- 1 root root 7, 129 Oct 6 13:53 vcsa1 crw------- 1 root root 7, 130 Oct 6 13:53 vcsa2 crw------- 1 root root 7, 131 Oct 6 13:53 vcsa3 crw------- 1 root root 7, 132 Oct 6 13:53 vcsa4 crw------- 1 root root 7, 133 Oct 6 13:53 vcsa5 crw------- 1 root root 7, 134 Oct 6 13:53 vcsa6 crw------- 1 root root 10, 63 Oct 6 13:53 vga_arbiter crw-rw-rw- 1 root root 1, 5 Oct 6 13:53 zero

Puis le contenu du fichier fstab :

[code]# /etc/fstab: static file system information.

Use ‘blkid’ to print the universally unique identifier for a

device; this may be used with UUID= as a more robust way to name devices

that works even if disks are added and removed. See fstab(5).

proc /proc proc defaults 0 0

/ was on /dev/sdb1 during installation

UUID=b5b1c88d-8620-4151-b348-1987964d1baa / ext3 errors=remount-ro 0 1

/home was on /dev/sdb6 during installation

UUID=e25c00de-1fd8-4662-bd1a-acafcdc0439a /home ext3 defaults 0 2

swap was on /dev/sdb5 during installation

UUID=bead9f7b-1e28-48ed-92a1-7df707842fe6 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
/dev/sda1 /media/usb0 auto rw,user,noauto 0 0
#/dev/sdb1 /sauvegarde ext4 defaults 0 2
#/dev/sdc1 /developpement ext4 defaults 0 2
#/dev/sdc2 /temporaire ext4 defaults 0 2

RAID 1 donnees

UUID=b4303e44-6948-4744-059c-8bb72b685187 /donnees ext4 defaults 0 2
[/code]

Puis fdisk - l :

Disk /dev/sda: 320.1 GB, 320071851520 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000755c7

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1216     9764864   83  Linux
/dev/sda2            1216       38914   302802945    5  Extended
/dev/sda5            1216        2201     7909376   82  Linux swap / Solaris
/dev/sda6            2201       38914   294892544   83  Linux

Disk /dev/sdb: 250.1 GB, 250058268160 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000c3945

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       30401   244196001   83  Linux

Disk /dev/sdc: 320.1 GB, 320071851520 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x04e04675

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1       12766   102542863+  83  Linux
/dev/sdc2           12767       38913   210025777+  83  Linux

Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x33cba93c

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1      243201  1953512001   fd  Linux raid autodetect
Partition 1 does not start on physical sector boundary.

Disk /dev/sde: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x4508b65f

   Device Boot      Start         End      Blocks   Id  System
/dev/sde1               1      243201  1953512001   fd  Linux raid autodetect
Partition 1 does not start on physical sector boundary.

Et enfin cat /proc/partitions :

[code]major minor #blocks name

8 16 244197527 sdb
8 0 312570167 sda
8 1 9764864 sda1
8 2 1 sda2
8 5 7909376 sda5
8 6 294892544 sda6
8 32 312570167 sdc
8 48 1953514584 sdd
8 49 1953512001 sdd1
8 64 1953514584 sde
8 65 1953512001 sde1
8 80 499712 sdf
8 81 499653 sdf1
[/code]

Je sais pas trop si ça peut aider ?

Non je n’ai pas de raid materiel…

/ was on /dev/sdb1 during installation

UUID=b5b1c88d-8620-4151-b348-1987964d1baa / ext3 errors=remount-ro 0 1
/dev/sda1 sur la photo

/home was on /dev/sdb6 during installation

UUID=e25c00de-1fd8-4662-bd1a-acafcdc0439a /home ext3 defaults 0 2 1
/dev/sda6 sur la photo

swap was on /dev/sdb5 during installation

UUID=bead9f7b-1e28-48ed-92a1-7df707842fe6 none swap sw 0 0
/dev/sda5 sur la photo

UUID=b4303e44-6948-4744-059c-8bb72b685187 /donnees ext4 defaults 0 2
/de/sdd1 ET /dev/sde1

/dev/sdb et /dev/sdc “isw raid member”.
Je suppose que tu as accidentellement englobé /dev/sdb dans le nouveau RAID et effacé son ancien contenu.
Vérifie que parted détecte quelque chose à travers /dev/md0 et /dev/md127
L’un devrait correspondre à l’ancien RAID "UUID=b4303e44-6948-4744-059c-8bb72b685187 /donnees"
et l’autre au RAID nouvellement crée.
Lorsque tu appelles
$ df -hT
le point de montage /donnees devrait faire apparaître l’un des /dev/md*.

fsck /dev/md*

Essayer de monter /dev/md127 ou /dev/md0.

mkdir /raid ; mkdir /raid/0

mount /dev/md0 /raid/0

ou

mkdir /raid

mkdir /raid/127

mount /dev/md127 /raid/127

$ df -h
Lister le contenu de /raid/*.

Autre point à éclaircir : selon la photo les deux membres du RAID /dev/sde1 et /dev/sdd1 ont un UUID identique qui se confond avec celui du RAID ( UUID=b4303e44-6948-4744-059c-8bb72b685187 /donnees),
pas très pratique pour les distinguer.
Ça ressemble au fruit d’une opération de sauvegarde/sabotage à la

dd if=/dev/sdd of=/dev/sde …

J’ai une question un peu bête…

Je n’avais actuellement absolument rien sur le RAID, ni sur les deux autres disque (oui je commençait juste à monter mon serveur)…

Ca ne serait pas plus simple de tout refaire et du garder uniquement mon disque OS ou j’avais installé pas mal de choses que j’avais besoin ?

$ df -hT
le point de montage /donnees devrait faire apparaître l’un des /dev/md*.

==> Non, je n’ai pas /donnees, j’ai
/dev/sda1 … /
tmpfs … /lib/init/rw
udev … /dev
tmpfs … /dev/shm

Pour les deux mount il me dit "mount : you must specify the filesystem type

Et en effet les deux UUID semblent les même, je ne sais pas pourquoi…

Bon au final, je vais tout refaire… Sauf que… il me trouve un raid 1 et un raid 0 dans la gestion des partitions…

Il y vraiment eu un truc bizarre :confused: