Tu trouves la création de ton raid dans ton bash_history ? On sait jamais que ce soit pas la même machine. Le jeu. 29 août 2024 à 14:48, <p2ssvp@gmail.com> a écrit :
Merci pour les réponses.
Je n'ai pas l'impression que les superblocs aient été enregistrés.
# mdadm --query /dev/sd[a-d] /dev/sda: is not an md array /dev/sdb: is not an md array /dev/sdc: is not an md array
# mdadm --examine /dev/sd[a-d] /dev/sda: MBR Magic : aa55 Partition[0] : 4294967295 sectors at 1 (type ee) /dev/sdb: MBR Magic : aa55 Partition[0] : 4294967295 sectors at 1 (type ee) /dev/sdc: MBR Magic : aa55 Partition[0] : 4294967295 sectors at 1 (type ee) /dev/sdd: MBR Magic : aa55 Partition[0] : 4294967295 sectors at 1 (type ee)
L'assemblage ne fonctionne pas non plus :
# mdadm --assemble /dev/md0 /dev/sd[a-d] mdadm: Cannot assemble mbr metadata on /dev/sda mdadm: /dev/sda has no superblock - assembly aborted
Je n'arrive pas à comprendre, c'est comme si le raid n'avait jamais existé. Comment est-ce possible sur un simple redémarrage ? Pourquoi les superblocs sont absents ?
Le jeu. 29 août 2024 à 14:06, Frédéric MASSOT via FRsAG <frsag@frsag.org> a écrit :
Le 29/08/2024 à 12:28, p2ssvp@gmail.com a écrit :
Bonjour,
Sur une debian 10, j'ai créé un raid sur 4 disques avec la commande suivante : mdadm --create /dev/md0 --level=10 --raid-devices=4 /dev/sd[a-d]
J'ai semble-t-il perdu mon raid après un reboot.
# cat /proc/mdstat Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] unused devices: <none>
# mdadm --detail --scan ne retourne rien
# mdadm --detail /dev/md0 mdadm: cannot open /dev/md0: No such file or directory
# mdadm --assemble /dev/md0 mdadm: /dev/md0 not identified in config file.
# cat /etc/mdadm/mdadm.conf # mdadm.conf # # !NB! Run update-initramfs -u after updating this file. # !NB! This will ensure that initramfs has an uptodate copy. # # Please refer to mdadm.conf(5) for information about this file. # # by default (built-in), scan all partitions (/proc/partitions) and all # containers for MD superblocks. alternatively, specify devices to scan, using # wildcards if desired. #DEVICE partitions containers # automatically tag new arrays as belonging to the local system HOMEHOST <system> # instruct the monitoring daemon where to send mail alerts MAILADDR root # definitions of existing MD arrays # This configuration was auto-generated on Thu, 30 Apr 2020 00:02:35 +0000 by mkconf
Qu'est ce que j'ai loupé ?
La configuration de ton RAID n'a pas été enregistrée, dans le fichier "/etc/mdadm/mdadm.conf", tu devrais avoir une ligne : ARRAY /dev/md/0 metadata=1.2 UUID=...
Utilises les options --query et/ou --examine sur tes disques pour voir si les superbloc ont bien été enregistrés. Dans ce cas tu pourras récupérer ton RAID.
Par avance merci de votre aide.
Etienne
_______________________________________________ Liste de diffusion du %(real_name)s http://www.frsag.org/
-- ============================================== | FRÉDÉRIC MASSOT | | https://www.juliana-multimedia.com | | mailto:frederic@juliana-multimedia.com | | +33.(0)2.97.54.77.94 +33.(0)6.67.19.95.69 | ===========================Debian=GNU/Linux===
_______________________________________________ Liste de diffusion du %(real_name)s http://www.frsag.org/
_______________________________________________ Liste de diffusion du %(real_name)s http://www.frsag.org/