Raid 1 - DegradedArray event on /dev/md/0

Bonjour,

Un beau matin, ma machine (Debian Jessie) qui a 2 disques en Raid 1, démarre en mode dégradé … voià le résultat d’un :

[root@serveur stef]# cat /proc/mdstat 
Personalities : [raid1] 
md4 : active raid1 sda7[0] sdb7[1]
      435613504 blocks super 1.2 [2/2] [UU]
      
md3 : active raid1 sda6[0] sdb6[1]
      97589120 blocks super 1.2 [2/2] [UU]
      
md2 : active raid1 sda5[0] sdb5[1]
      390492992 blocks super 1.2 [2/2] [UU]
      
md1 : active raid1 sda2[0] sdb2[1]
      3904448 blocks super 1.2 [2/2] [UU]
      
md0 : active raid1 sdb1[1]
      48794496 blocks super 1.2 [2/1] [_U]
      
unused devices: <none>

Seul ma partition sda1 (c’est ma racine) est touchée. Mais le problème est que je ne réussis pas à reconstruire le raid ni même à faire quoi que ce soit sur sda1 car j’ai toujours des messages d’erreurs … voila le florilège de ce que j’obtiens.

[root@serveur stef]# mdadm --examine /dev/sda1
mdadm: No md superblock detected on /dev/sda1.
[root@serveur stef]# mdadm -E  /dev/sda1
mdadm: No md superblock detected on /dev/sda1.
[root@serveur stef]# mdadm /dev/md0 -r /dev/sda1
mdadm: hot remove failed for /dev/sda1: No such device or address
[root@serveur stef]# mdadm  /dev/md0 -f /dev/sda1
mdadm: set device faulty failed for /dev/sda1:  No such device
[root@serveur stef]# mdadm --assemble --force /dev/md0 /dev/sda1
mdadm: no recogniseable superblock on /dev/sda1
mdadm: /dev/sda1 has no superblock - assembly aborted

Est-ce que quelqu’un sait comment je dois m’y prendre pour avoir un sda1 de nouveau fonctionnel ? Merci d’avance.

Bonjour,
il semblerait que ton disque soit défaillant.
Tu peux toujours esayer ça:
en.wikipedia.org/wiki/Mdadm#Reco … superblock
ou ça:
raid.wiki.kernel.org/index.php/RAID_Recovery

[quote=“piratebab”]Bonjour,
il semblerait que ton disque soit défaillant.
Tu peux toujours esayer ça:
en.wikipedia.org/wiki/Mdadm#Reco … superblock
ou ça:
raid.wiki.kernel.org/index.php/RAID_Recovery[/quote]

N’y aurait-il pas un problème sur le disque ? pas de souci d’inodes défectueuses ou autre choses indiquant justement l’approche de multiple problème futur (fin de vie du disque probable dans ce cas).

Si le montage est encore possible de la dite partition un clone du disque peut sans doute permettre de changer le disque rapidement.

Comment ca se fait que ton /dev/sda1/ est sortie du /dev/md0 ?

Si t’essaye de l’ajouter avec un mdadm --add /dev/md0 /dev/sda1
Parceque de ce que je me souviens , si t’as une partition qui est HS dans une array ca mets pas plutot :

[quote]md0 : active raid1 sdb1[1] b[/b][/quote] ???

Sinon, faudrait peut etre test ton disque dur avec un test smart ? (sur le /dev/sda) pour vérifier qu’il soit encore en état

Bonjour,

La partition ne se monte malheureusement pas :

[root@serveur stef]# mount /dev/sda1 /mnt/disk/ mount : mauvais type de système de fichiers, option erronée, superbloc erroné sur /dev/sda1, page de code ou aide manquante, ou autre erreur

Pour le test smart :

[code][root@serveur stef]# smartctl -a /dev/sda
smartctl 5.43 2012-06-05 r3561 [i686-linux-3.10-2-686-pae] (local build)
Copyright © 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Device Model: WDC WD10EZRX-00A8LB0
Serial Number: WD-WMC1U7900114
LU WWN Device Id: 5 0014ee 658510c78
Firmware Version: 01.01A01
User Capacity: 1 000 204 886 016 bytes [1,00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: 8
ATA Standard is: Exact ATA specification draft version not indicated
Local Time is: Tue Aug 27 12:05:23 2013 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status: (0x82) Offline data collection activity
was completed without error.
Auto Offline Data Collection: Enabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: (12180) seconds.
Offline data collection
capabilities: (0x7b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 139) minutes.
Conveyance self-test routine
recommended polling time: ( 5) minutes.
SCT capabilities: (0x30b5) SCT Status supported.
SCT Feature Control supported.
SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x002f 155 154 051 Pre-fail Always - 61504
3 Spin_Up_Time 0x0027 139 134 021 Pre-fail Always - 4033
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 253
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
7 Seek_Error_Rate 0x002e 200 200 000 Old_age Always - 0
9 Power_On_Hours 0x0032 096 096 000 Old_age Always - 2947
10 Spin_Retry_Count 0x0032 100 100 000 Old_age Always - 0
11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 253
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 25
193 Load_Cycle_Count 0x0032 134 134 000 Old_age Always - 200100
194 Temperature_Celsius 0x0022 114 109 000 Old_age Always - 29
196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0030 200 200 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0008 200 200 000 Old_age Offline - 0

SMART Error Log Version: 1
ATA Error Count: 61136 (device log contains only the most recent five errors)
CR = Command Register [HEX]
FR = Features Register [HEX]
SC = Sector Count Register [HEX]
SN = Sector Number Register [HEX]
CL = Cylinder Low Register [HEX]
CH = Cylinder High Register [HEX]
DH = Device/Head Register [HEX]
DC = Device Command Register [HEX]
ER = Error register [HEX]
ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It “wraps” after 49.710 days.

Error 61136 occurred at disk power-on lifetime: 2947 hours (122 days + 19 hours)
When the command that caused the error occurred, the device was active or idle.

After command completion occurred, registers were:
ER ST SC SN CL CH DH


40 51 08 09 08 00 e0 Error: UNC 8 sectors at LBA = 0x00000809 = 2057

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name


c8 00 08 08 08 00 e0 08 02:18:21.799 READ DMA
ec 00 00 00 00 00 a0 08 02:18:21.776 IDENTIFY DEVICE
ef 03 46 00 00 00 a0 08 02:18:21.776 SET FEATURES [Set transfer mode]

Error 61135 occurred at disk power-on lifetime: 2947 hours (122 days + 19 hours)
When the command that caused the error occurred, the device was active or idle.

After command completion occurred, registers were:
ER ST SC SN CL CH DH


40 51 08 09 08 00 e0 Error: UNC 8 sectors at LBA = 0x00000809 = 2057

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name


c8 00 08 08 08 00 e0 08 02:18:21.761 READ DMA
c8 00 08 20 08 00 e0 08 02:18:21.761 READ DMA
c8 00 08 00 0a 00 e0 08 02:18:21.761 READ DMA
c8 00 08 f8 0b 00 e0 08 02:18:21.760 READ DMA
c8 00 08 f0 0b 00 e0 08 02:18:21.760 READ DMA

Error 61134 occurred at disk power-on lifetime: 2947 hours (122 days + 19 hours)
When the command that caused the error occurred, the device was active or idle.

After command completion occurred, registers were:
ER ST SC SN CL CH DH


40 51 08 09 08 00 e0 Error: UNC 8 sectors at LBA = 0x00000809 = 2057

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name


c8 00 08 08 08 00 e0 08 02:18:21.699 READ DMA
ec 00 00 00 00 00 a0 08 02:18:21.676 IDENTIFY DEVICE
ef 03 46 00 00 00 a0 08 02:18:21.676 SET FEATURES [Set transfer mode]

Error 61133 occurred at disk power-on lifetime: 2947 hours (122 days + 19 hours)
When the command that caused the error occurred, the device was active or idle.

After command completion occurred, registers were:
ER ST SC SN CL CH DH


40 51 08 09 08 00 e0 Error: UNC 8 sectors at LBA = 0x00000809 = 2057

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name


c8 00 08 08 08 00 e0 08 02:18:21.653 READ DMA
c8 00 08 78 08 00 e0 08 02:18:21.653 READ DMA
c8 00 08 38 08 00 e0 08 02:18:21.653 READ DMA
c8 00 08 18 08 00 e0 08 02:18:21.647 READ DMA

Error 61132 occurred at disk power-on lifetime: 2947 hours (122 days + 19 hours)
When the command that caused the error occurred, the device was active or idle.

After command completion occurred, registers were:
ER ST SC SN CL CH DH


40 51 08 09 08 00 e0 Error: UNC 8 sectors at LBA = 0x00000809 = 2057

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name


c8 00 08 08 08 00 e0 08 02:18:21.599 READ DMA
ec 00 00 00 00 00 a0 08 02:18:21.576 IDENTIFY DEVICE
ef 03 46 00 00 00 a0 08 02:18:21.576 SET FEATURES [Set transfer mode]

SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]

SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.[/code]

Merci de votre aide

Euh système de fichier ?

Et si tu fais un fdisk /dev/sda1
et ensuite tu définis bien le type de la partition à “fd” (linux raid auto detect) , de tête il faut faire “t” pour changer le type de fichier et “fd” pour le passer en linux raid auto detect, pour lister les types faut taper “L”.

Et réessaye de faire un add derrière ?

Je lis le test smart je m’édites après.

Aie, ma partoche a vraiment un souci :

fdisk /dev/sda1 fdisk: impossible de lire /dev/sda1: Ioctl() inappropré pour un périphérique

Je laisse quelqu’un de plus expérimente confirmer l’état du disque. Mais il a l’air OK je cite

En premier tu peux essayé de démonter ta partition /dev/sda , et de la monté avec le bon système de fichiers quelque chose du genre (si c’était du ntfs) :

Ce que tu peux essayé, c’est de faire un fdisk sur ton /dev/sda , ensuite de supprimer la partition 1 , et de la recrée.
Ensuite tu mets le type en Raid autodetect, et tu l’ajoute à ton array MDADM.
C’est peut être pas LA solution hein, mais je donne des pistes :smiley:.

Merci de tous tes conseils. En premier lieu j’ai essayé de monter ma partition (ext4 … pas de ntfs chez moi :wink: ) mais ça n’a pas marché.
J’ai donc viré et reformaté ma partition /dev/sda1 et fait un mdadm /dev/md0 --add /dev/sda1 … et la miracle ça a fonctionné … le raid est entrain de se recontruire tranquillemement :slightly_smiling:

Merci encore

Si tu avais suivi les liens que je t’ai donné en 2eme post, tu aurais gagné du temps …