Problème de récupération de mes données après sinitre
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
question

Problème de récupération de mes données après sinitre

Par
SimpliceA
Créé le 2023-02-20 12:36:09 (edited on 2024-09-04 13:51:11) dans Public Cloud OVHcloud

**Problème de récupération de mes données après sinistre**

Bonjour Chers Tous,
Je dispose d'un serveur dédié avec 3 disques (**sda**, **sdb** et **sdc**) montés en RAID 5. Les partitions en RAID sont **md2**, **md3** et **md5** .
Il se passe que le disque **sda** est défectueux. Aussi, le serveur est en ce moment en mode RESCUE.
Avant le remplacement de ce disque défectueux, je tente de faire sauvegarde une sauvegarde de mes données mais malheureusement je ne retrouve pas mes données sur les partitions **md2**, **md3** et **md5** tous dans le **/dev**

Je ne retrouve pas non plus ma Base de Données dans toutes l'arborescence.

Prière m'assister pour la récupération de mes Données SVP.

Cordialement.

**PS** : Ci-dessous le résultat de la commande **parted -l** en mode rescue.

root@rescue:~# parted -l
Model: ATA HGST HUS726020AL (scsi)
Disk /dev/sda: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 20.5kB 1049kB 1029kB bios_grub-sda bios_grub
2 2097kB 316MB 314MB ext4 primary raid
3 316MB 420GB 419GB ext4 primary raid
4 420GB 451GB 31.5GB linux-swap(v1) primary
5 451GB 608GB 157GB ext4 logical raid
6 608GB 2000GB 1392GB ext4 logical raid


Model: ATA HGST HUS726020AL (scsi)
Disk /dev/sdb: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 20.5kB 1049kB 1029kB bios_grub-sdb bios_grub
2 2097kB 316MB 314MB ext4 primary raid
3 316MB 420GB 419GB ext4 primary raid
4 420GB 451GB 31.5GB linux-swap(v1) primary
5 451GB 608GB 157GB logical raid
6 608GB 2000GB 1392GB logical raid


Model: ATA HGST HUS726020AL (scsi)
Disk /dev/sdc: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 20.5kB 1049kB 1029kB bios_grub-sdc bios_grub
2 2097kB 316MB 314MB ext4 primary raid
3 316MB 420GB 419GB ext4 primary raid
4 420GB 451GB 31.5GB linux-swap(v1) primary
5 451GB 608GB 157GB ext4 logical raid
6 608GB 2000GB 1392GB ext4 logical raid


Model: Linux Software RAID Array (md)
Disk /dev/md2: 313MB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:

Number Start End Size File system Flags
1 0.00B 313MB 313MB ext4


Model: Linux Software RAID Array (md)
Disk /dev/md5: 315GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:

Number Start End Size File system Flags
1 0.00B 315GB 315GB ext4


Model: Linux Software RAID Array (md)
Disk /dev/md3: 419GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:

Number Start End Size File system Flags
1 0.00B 419GB 419GB ext4


6 réponses ( Latest reply on 2023-02-20 15:51:28 Par
fritz2cat officiel (d'avant la migration)
)

Bonjour @SimpliceA

Aviez-vous pensé à faire des sauvegardes sur un PC, un disque USB chez vous ?

Bonjour Gaston,

Malheureusement, je n'ai aucune sauvegarde locale en ma possession.

Comment puis-je procéder pour faire une sauvegarde en mode rescue ?


Prière m'assister pour la récupération de mes Données SVP.


La récupération n'est jamais garantie. Raid-5 devrait survivre au crash de un disque, mais pas deux disques. Dans ce cas tout est détruit et vous devez repartir sur un backup externe.


Or si votre serveur est en rescue, c'est qu'il ne boote plus ?

Que donne la commande: lsblk ?
Que donne la commande smartctl -a /dev/sda (et puis sdb et sdc)
Que donne la commande: cat /proc/mdstat ?

Il y'a **un seul disque** qui est défectueux.

root@rescue:~# **lsblk**
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 0 1.8T 0 disk
├─sdb4 8:20 0 29.3G 0 part
├─sdb2 8:18 0 299M 0 part
│ └─md2 9:2 0 299M 0 raid1
├─sdb5 8:21 0 146.5G 0 part
│ └─md5 9:5 0 293G 0 raid5 /mnt
├─sdb3 8:19 0 390.6G 0 part
│ └─md3 9:3 0 390.6G 0 raid1
├─sdb1 8:17 0 1004.5K 0 part
└─sdb6 8:22 0 1.3T 0 part
sdc 8:32 0 1.8T 0 disk
├─sdc2 8:34 0 299M 0 part
│ └─md2 9:2 0 299M 0 raid1
├─sdc5 8:37 0 146.5G 0 part
│ └─md5 9:5 0 293G 0 raid5 /mnt
├─sdc3 8:35 0 390.6G 0 part
│ └─md3 9:3 0 390.6G 0 raid1
├─sdc1 8:33 0 1004.5K 0 part
├─sdc6 8:38 0 1.3T 0 part
└─sdc4 8:36 0 29.3G 0 part
sda 8:0 0 1.8T 0 disk
├─sda4 8:4 0 29.3G 0 part
├─sda2 8:2 0 299M 0 part
├─sda5 8:5 0 146.5G 0 part
├─sda3 8:3 0 390.6G 0 part
├─sda1 8:1 0 1004.5K 0 part
└─sda6 8:6 0 1.3T 0 part

root@rescue:~# **smartctl -a /dev/sda**
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-5.15.55-mod-std] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model: HGST HUS726020ALA610
Serial Number: N4G3AS2Y
LU WWN Device Id: 5 000cca 245c18572
Firmware Version: A5GNT920
User Capacity: 2,000,398,934,016 bytes [2.00 TB]
Sector Size: 512 bytes logical/physical
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: ACS-2, ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Mon Feb 20 15:29:19 2023 CET
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: ( 113) seconds.
Offline data collection
capabilities: (0x5b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
No 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: ( 288) minutes.
SCT capabilities: (0x003d) SCT Status supported.
SCT Error Recovery Control 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 0x000b 100 100 016 Pre-fail Always - 0
2 Throughput_Performance 0x0005 136 136 054 Pre-fail Offline - 108
3 Spin_Up_Time 0x0007 154 154 024 Pre-fail Always - 190 (Average 199)
4 Start_Stop_Count 0x0012 100 100 000 Old_age Always - 71
5 Reallocated_Sector_Ct 0x0033 100 100 005 Pre-fail Always - 0
7 Seek_Error_Rate 0x000b 100 100 067 Pre-fail Always - 0
8 Seek_Time_Performance 0x0005 128 128 020 Pre-fail Offline - 18
9 Power_On_Hours 0x0012 092 092 000 Old_age Always - 58701
10 Spin_Retry_Count 0x0013 100 100 060 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 71
192 Power-Off_Retract_Count 0x0032 098 098 000 Old_age Always - 3145
193 Load_Cycle_Count 0x0012 098 098 000 Old_age Always - 3145
194 Temperature_Celsius 0x0002 153 153 000 Old_age Always - 39 (Min/Max 18/55)
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 0
197 Current_Pending_Sector 0x0022 100 100 000 Old_age Always - 532
198 Offline_Uncorrectable 0x0008 098 098 000 Old_age Offline - 2267
199 UDMA_CRC_Error_Count 0x000a 200 200 000 Old_age Always - 0

SMART Error Log Version: 1
ATA Error Count: 105 (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 105 occurred at disk power-on lifetime: 16907 hours (704 days + 11 hours)
When the command that caused the error occurred, the device was doing SMART Offline or Self-test.

After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 43 00 00 00 00 00 Error: UNC at LBA = 0x00000000 = 0

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
60 08 c0 68 c7 df 40 08 36d+23:35:16.836 READ FPDMA QUEUED
60 08 e8 90 c7 df 40 08 36d+23:35:14.079 READ FPDMA QUEUED
60 08 e0 88 c7 df 40 08 36d+23:35:14.079 READ FPDMA QUEUED
60 08 d8 80 c7 df 40 08 36d+23:35:14.079 READ FPDMA QUEUED
60 08 d0 78 c7 df 40 08 36d+23:35:14.079 READ FPDMA QUEUED

Error 104 occurred at disk power-on lifetime: 16907 hours (704 days + 11 hours)
When the command that caused the error occurred, the device was doing SMART Offline or Self-test.

After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 43 00 00 00 00 00 Error: UNC at LBA = 0x00000000 = 0

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
60 08 f0 60 c7 df 40 08 36d+23:35:13.936 READ FPDMA QUEUED
60 08 78 a0 c7 df 40 08 36d+23:35:11.180 READ FPDMA QUEUED
60 08 70 a8 c7 df 40 08 36d+23:35:11.180 READ FPDMA QUEUED
60 08 68 b0 c7 df 40 08 36d+23:35:11.180 READ FPDMA QUEUED
60 08 60 b8 c7 df 40 08 36d+23:35:11.180 READ FPDMA QUEUED

Error 103 occurred at disk power-on lifetime: 16907 hours (704 days + 11 hours)
When the command that caused the error occurred, the device was doing SMART Offline or Self-test.

After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 43 00 00 00 00 00 Error: UNC at LBA = 0x00000000 = 0

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
60 08 b0 58 c7 df 40 08 36d+23:35:11.027 READ FPDMA QUEUED
60 08 78 18 c8 df 40 08 36d+23:35:07.974 READ FPDMA QUEUED
60 08 70 10 c8 df 40 08 36d+23:35:07.974 READ FPDMA QUEUED
60 08 68 08 c8 df 40 08 36d+23:35:07.974 READ FPDMA QUEUED
60 08 60 00 c8 df 40 08 36d+23:35:07.974 READ FPDMA QUEUED

Error 102 occurred at disk power-on lifetime: 16907 hours (704 days + 11 hours)
When the command that caused the error occurred, the device was doing SMART Offline or Self-test.

After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 43 00 00 00 00 00 Error: UNC at LBA = 0x00000000 = 0

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
60 08 f0 00 c1 df 40 08 36d+23:35:07.019 READ FPDMA QUEUED
60 08 18 28 c3 df 40 08 36d+23:35:04.227 READ FPDMA QUEUED
60 08 18 20 c3 df 40 08 36d+23:35:04.227 READ FPDMA QUEUED
60 08 18 18 c3 df 40 08 36d+23:35:04.227 READ FPDMA QUEUED
60 08 18 10 c3 df 40 08 36d+23:35:04.227 READ FPDMA QUEUED

Error 101 occurred at disk power-on lifetime: 16907 hours (704 days + 11 hours)
When the command that caused the error occurred, the device was doing SMART Offline or Self-test.

After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 43 00 00 00 00 00 Error: UNC at LBA = 0x00000000 = 0

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
60 08 48 f8 c0 df 40 08 36d+23:35:04.061 READ FPDMA QUEUED
60 08 40 e8 c1 df 40 08 36d+23:35:01.257 READ FPDMA QUEUED
60 08 38 e0 c1 df 40 08 36d+23:35:00.998 READ FPDMA QUEUED
60 08 30 d8 c1 df 40 08 36d+23:35:00.998 READ FPDMA QUEUED
60 08 28 d0 c1 df 40 08 36d+23:35:00.998 READ FPDMA QUEUED

SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
**#** 1 Short offline Completed without error 00% 11280 -
**#** 2 Short offline Completed without error 00% 11278 -
**#** 3 Short offline Completed without error 00% 11278 -
**#** 4 Short offline Completed without error 00% 9806 -
**#** 5 Short offline Completed without error 00% 9805 -
**#** 6 Short offline Completed without error 00% 9804 -
**#** 7 Short offline Completed without error 00% 9803 -
**#** 8 Short offline Completed without error 00% 6377 -
**#** 9 Short offline Completed without error 00% 6376 -
**#**10 Short offline Completed without error 00% 6376 -
**#**11 Short offline Completed without error 00% 6278 -
**#**12 Short offline Completed without error 00% 6276 -
**#**13 Short offline Completed without error 00% 6276 -
**#**14 Short offline Completed without error 00% 903 -
**#**15 Short offline Completed without error 00% 901 -
**#**16 Short offline Completed without error 00% 901 -
**#**17 Short offline Completed without error 00% 75 -
**#**18 Short offline Completed without error 00% 67 -
**#**19 Short offline Completed without error 00% 67 -
**#**20 Short offline Completed without error 00% 1 -

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.

root@rescue:~# **smartctl -a /dev/sdb**
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-5.15.55-mod-std] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model: HGST HUS726020ALA610
Serial Number: N4G3B1GY
LU WWN Device Id: 5 000cca 245c18695
Firmware Version: A5GNT920
User Capacity: 2,000,398,934,016 bytes [2.00 TB]
Sector Size: 512 bytes logical/physical
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: ACS-2, ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Mon Feb 20 15:39:20 2023 CET
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: ( 113) seconds.
Offline data collection
capabilities: (0x5b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
No 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: ( 288) minutes.
SCT capabilities: (0x003d) SCT Status supported.
SCT Error Recovery Control 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 0x000b 100 100 016 Pre-fail Always - 0
2 Throughput_Performance 0x0005 136 136 054 Pre-fail Offline - 108
3 Spin_Up_Time 0x0007 162 162 024 Pre-fail Always - 180 (Average 189)
4 Start_Stop_Count 0x0012 100 100 000 Old_age Always - 71
5 Reallocated_Sector_Ct 0x0033 100 100 005 Pre-fail Always - 0
7 Seek_Error_Rate 0x000b 100 100 067 Pre-fail Always - 0
8 Seek_Time_Performance 0x0005 128 128 020 Pre-fail Offline - 18
9 Power_On_Hours 0x0012 092 092 000 Old_age Always - 58771
10 Spin_Retry_Count 0x0013 100 100 060 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 71
192 Power-Off_Retract_Count 0x0032 099 099 000 Old_age Always - 2209
193 Load_Cycle_Count 0x0012 099 099 000 Old_age Always - 2209
194 Temperature_Celsius 0x0002 139 139 000 Old_age Always - 43 (Min/Max 18/57)
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 0
197 Current_Pending_Sector 0x0022 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0008 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x000a 200 200 000 Old_age Always - 0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
**#** 1 Short offline Completed without error 00% 11280 -
**#** 2 Short offline Completed without error 00% 11278 -
**#** 3 Short offline Completed without error 00% 11278 -
**#** 4 Short offline Completed without error 00% 9807 -
**#** 5 Short offline Completed without error 00% 9805 -
**#** 6 Short offline Completed without error 00% 9805 -
**#** 7 Short offline Completed without error 00% 9803 -
**#** 8 Short offline Completed without error 00% 6377 -
**#** 9 Short offline Completed without error 00% 6376 -
**#**10 Short offline Completed without error 00% 6376 -
**#**11 Short offline Completed without error 00% 6278 -
**#**12 Short offline Completed without error 00% 6276 -
**#**13 Short offline Completed without error 00% 6276 -
**#**14 Short offline Completed without error 00% 903 -
**#**15 Short offline Completed without error 00% 901 -
**#**16 Short offline Completed without error 00% 901 -
**#**17 Short offline Completed without error 00% 75 -
**#**18 Short offline Completed without error 00% 67 -
**#**19 Short offline Completed without error 00% 67 -
**#**20 Short offline Completed without error 00% 1 -

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.

root@rescue:~# **smartctl -a /dev/sdc**
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-5.15.55-mod-std] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, wwwsmartmontoolsorg

=== START OF INFORMATION SECTION ===
Device Model: HGST HUS726020ALA610
Serial Number: K5GPLN1A
LU WWN Device Id: 5 000cca 25ec9d1ca
Firmware Version: A5GNT920
User Capacity: 2,000,398,934,016 bytes [2.00 TB]
Sector Size: 512 bytes logical/physical
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: ACS-2, ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Mon Feb 20 15:47:42 2023 CET
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: ( 113) seconds.
Offline data collection
capabilities: (0x5b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
No 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: ( 288) minutes.
SCT capabilities: (0x003d) SCT Status supported.
SCT Error Recovery Control 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 0x000b 100 100 016 Pre-fail Always - 0
2 Throughput_Performance 0x0005 137 137 054 Pre-fail Offline - 104
3 Spin_Up_Time 0x0007 160 160 024 Pre-fail Always - 179 (Average 195)
4 Start_Stop_Count 0x0012 100 100 000 Old_age Always - 47
5 Reallocated_Sector_Ct 0x0033 100 100 005 Pre-fail Always - 0
7 Seek_Error_Rate 0x000b 100 100 067 Pre-fail Always - 0
8 Seek_Time_Performance 0x0005 128 128 020 Pre-fail Offline - 18
9 Power_On_Hours 0x0012 093 093 000 Old_age Always - 52398
10 Spin_Retry_Count 0x0013 100 100 060 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 47
192 Power-Off_Retract_Count 0x0032 099 099 000 Old_age Always - 1915
193 Load_Cycle_Count 0x0012 099 099 000 Old_age Always - 1915
194 Temperature_Celsius 0x0002 150 150 000 Old_age Always - 40 (Min/Max 24/56)
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 0
197 Current_Pending_Sector 0x0022 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0008 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x000a 200 200 000 Old_age Always - 0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
**#** 1 Short offline Completed without error 00% 4904 -
**#** 2 Short offline Completed without error 00% 4902 -
**#** 3 Short offline Completed without error 00% 4902 -
**#** 4 Short offline Completed without error 00% 3431 -
**#** 5 Short offline Completed without error 00% 3429 -
**#** 6 Short offline Completed without error 00% 3429 -
**#** 7 Short offline Completed without error 00% 3427 -
**#** 8 Short offline Completed without error 00% 1 -
**#** 9 Short offline Completed without error 00% 0 -
**#**10 Short offline Completed without error 00% 0 -

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.

root@rescue:~# **cat /proc/mdstat**
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath] [faulty]
md2 : active raid1 sdb2[1] sdc2[2]
306112 blocks [3/2] [_UU]

md3 : active raid1 sdb3[1] sdc3[2]
409598912 blocks [3/2] [_UU]
bitmap: 4/4 pages [16KB], 65536KB chunk

md5 : active raid5 sdb5[1] sdc5[2]
307194880 blocks level 5, 512k chunk, algorithm 2 [3/2] [_UU]
bitmap: 2/2 pages [8KB], 65536KB chunk

unused devices:

root@rescue:~# **smartctl -a /dev/sda**
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-5.15.55-mod-std] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, wwwsmartmontoolsorg

=== START OF INFORMATION SECTION ===
Device Model: HGST HUS726020ALA610
Serial Number: N4G3AS2Y
LU WWN Device Id: 5 000cca 245c18572
Firmware Version: A5GNT920
User Capacity: 2,000,398,934,016 bytes [2.00 TB]
Sector Size: 512 bytes logical/physical
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: ACS-2, ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Mon Feb 20 15:29:19 2023 CET
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: ( 113) seconds.
Offline data collection
capabilities: (0x5b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
No 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: ( 288) minutes.
SCT capabilities: (0x003d) SCT Status supported.
SCT Error Recovery Control 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 0x000b 100 100 016 Pre-fail Always - 0
2 Throughput_Performance 0x0005 136 136 054 Pre-fail Offline - 108
3 Spin_Up_Time 0x0007 154 154 024 Pre-fail Always - 190 (Average 199)
4 Start_Stop_Count 0x0012 100 100 000 Old_age Always - 71
5 Reallocated_Sector_Ct 0x0033 100 100 005 Pre-fail Always - 0
7 Seek_Error_Rate 0x000b 100 100 067 Pre-fail Always - 0
8 Seek_Time_Performance 0x0005 128 128 020 Pre-fail Offline - 18
9 Power_On_Hours 0x0012 092 092 000 Old_age Always - 58701
10 Spin_Retry_Count 0x0013 100 100 060 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 71
192 Power-Off_Retract_Count 0x0032 098 098 000 Old_age Always - 3145
193 Load_Cycle_Count 0x0012 098 098 000 Old_age Always - 3145
194 Temperature_Celsius 0x0002 153 153 000 Old_age Always - 39 (Min/Max 18/55)
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 0
197 Current_Pending_Sector 0x0022 100 100 000 Old_age Always - 532
198 Offline_Uncorrectable 0x0008 098 098 000 Old_age Offline - 2267
199 UDMA_CRC_Error_Count 0x000a 200 200 000 Old_age Always - 0

SMART Error Log Version: 1
ATA Error Count: 105 (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 105 occurred at disk power-on lifetime: 16907 hours (704 days + 11 hours)
When the command that caused the error occurred, the device was doing SMART Offline or Self-test.

After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 43 00 00 00 00 00 Error: UNC at LBA = 0x00000000 = 0

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
60 08 c0 68 c7 df 40 08 36d+23:35:16.836 READ FPDMA QUEUED
60 08 e8 90 c7 df 40 08 36d+23:35:14.079 READ FPDMA QUEUED
60 08 e0 88 c7 df 40 08 36d+23:35:14.079 READ FPDMA QUEUED
60 08 d8 80 c7 df 40 08 36d+23:35:14.079 READ FPDMA QUEUED
60 08 d0 78 c7 df 40 08 36d+23:35:14.079 READ FPDMA QUEUED

Error 104 occurred at disk power-on lifetime: 16907 hours (704 days + 11 hours)
When the command that caused the error occurred, the device was doing SMART Offline or Self-test.

After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 43 00 00 00 00 00 Error: UNC at LBA = 0x00000000 = 0

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
60 08 f0 60 c7 df 40 08 36d+23:35:13.936 READ FPDMA QUEUED
60 08 78 a0 c7 df 40 08 36d+23:35:11.180 READ FPDMA QUEUED
60 08 70 a8 c7 df 40 08 36d+23:35:11.180 READ FPDMA QUEUED
60 08 68 b0 c7 df 40 08 36d+23:35:11.180 READ FPDMA QUEUED
60 08 60 b8 c7 df 40 08 36d+23:35:11.180 READ FPDMA QUEUED

Error 103 occurred at disk power-on lifetime: 16907 hours (704 days + 11 hours)
When the command that caused the error occurred, the device was doing SMART Offline or Self-test.

After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 43 00 00 00 00 00 Error: UNC at LBA = 0x00000000 = 0

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
60 08 b0 58 c7 df 40 08 36d+23:35:11.027 READ FPDMA QUEUED
60 08 78 18 c8 df 40 08 36d+23:35:07.974 READ FPDMA QUEUED
60 08 70 10 c8 df 40 08 36d+23:35:07.974 READ FPDMA QUEUED
60 08 68 08 c8 df 40 08 36d+23:35:07.974 READ FPDMA QUEUED
60 08 60 00 c8 df 40 08 36d+23:35:07.974 READ FPDMA QUEUED

Error 102 occurred at disk power-on lifetime: 16907 hours (704 days + 11 hours)
When the command that caused the error occurred, the device was doing SMART Offline or Self-test.

After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 43 00 00 00 00 00 Error: UNC at LBA = 0x00000000 = 0

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
60 08 f0 00 c1 df 40 08 36d+23:35:07.019 READ FPDMA QUEUED
60 08 18 28 c3 df 40 08 36d+23:35:04.227 READ FPDMA QUEUED
60 08 18 20 c3 df 40 08 36d+23:35:04.227 READ FPDMA QUEUED
60 08 18 18 c3 df 40 08 36d+23:35:04.227 READ FPDMA QUEUED
60 08 18 10 c3 df 40 08 36d+23:35:04.227 READ FPDMA QUEUED

Error 101 occurred at disk power-on lifetime: 16907 hours (704 days + 11 hours)
When the command that caused the error occurred, the device was doing SMART Offline or Self-test.

After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 43 00 00 00 00 00 Error: UNC at LBA = 0x00000000 = 0

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
60 08 48 f8 c0 df 40 08 36d+23:35:04.061 READ FPDMA QUEUED
60 08 40 e8 c1 df 40 08 36d+23:35:01.257 READ FPDMA QUEUED
60 08 38 e0 c1 df 40 08 36d+23:35:00.998 READ FPDMA QUEUED
60 08 30 d8 c1 df 40 08 36d+23:35:00.998 READ FPDMA QUEUED
60 08 28 d0 c1 df 40 08 36d+23:35:00.998 READ FPDMA QUEUED

SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
**#** 1 Short offline Completed without error 00% 11280 -
**#** 2 Short offline Completed without error 00% 11278 -
**#** 3 Short offline Completed without error 00% 11278 -
**#** 4 Short offline Completed without error 00% 9806 -
**#** 5 Short offline Completed without error 00% 9805 -
**#** 6 Short offline Completed without error 00% 9804 -
**#** 7 Short offline Completed without error 00% 9803 -
**#** 8 Short offline Completed without error 00% 6377 -
**#** 9 Short offline Completed without error 00% 6376 -
**#**10 Short offline Completed without error 00% 6376 -
**#**11 Short offline Completed without error 00% 6278 -
**#**12 Short offline Completed without error 00% 6276 -
**#**13 Short offline Completed without error 00% 6276 -
**#**14 Short offline Completed without error 00% 903 -
**#**15 Short offline Completed without error 00% 901 -
**#**16 Short offline Completed without error 00% 901 -
**#**17 Short offline Completed without error 00% 75 -
**#**18 Short offline Completed without error 00% 67 -
**#**19 Short offline Completed without error 00% 67 -
**#**20 Short offline Completed without error 00% 1 -

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.

root@rescue:~# **smartctl -a /dev/sdb**
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-5.15.55-mod-std] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, wwwsmartmontoolsorg

=== START OF INFORMATION SECTION ===
Device Model: HGST HUS726020ALA610
Serial Number: N4G3B1GY
LU WWN Device Id: 5 000cca 245c18695
Firmware Version: A5GNT920
User Capacity: 2,000,398,934,016 bytes [2.00 TB]
Sector Size: 512 bytes logical/physical
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: ACS-2, ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Mon Feb 20 15:39:20 2023 CET
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: ( 113) seconds.
Offline data collection
capabilities: (0x5b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
No 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: ( 288) minutes.
SCT capabilities: (0x003d) SCT Status supported.
SCT Error Recovery Control 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 0x000b 100 100 016 Pre-fail Always - 0
2 Throughput_Performance 0x0005 136 136 054 Pre-fail Offline - 108
3 Spin_Up_Time 0x0007 162 162 024 Pre-fail Always - 180 (Average 189)
4 Start_Stop_Count 0x0012 100 100 000 Old_age Always - 71
5 Reallocated_Sector_Ct 0x0033 100 100 005 Pre-fail Always - 0
7 Seek_Error_Rate 0x000b 100 100 067 Pre-fail Always - 0
8 Seek_Time_Performance 0x0005 128 128 020 Pre-fail Offline - 18
9 Power_On_Hours 0x0012 092 092 000 Old_age Always - 58771
10 Spin_Retry_Count 0x0013 100 100 060 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 71
192 Power-Off_Retract_Count 0x0032 099 099 000 Old_age Always - 2209
193 Load_Cycle_Count 0x0012 099 099 000 Old_age Always - 2209
194 Temperature_Celsius 0x0002 139 139 000 Old_age Always - 43 (Min/Max 18/57)
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 0
197 Current_Pending_Sector 0x0022 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0008 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x000a 200 200 000 Old_age Always - 0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
**#** 1 Short offline Completed without error 00% 11280 -
**#** 2 Short offline Completed without error 00% 11278 -
**#** 3 Short offline Completed without error 00% 11278 -
**#** 4 Short offline Completed without error 00% 9807 -
**#** 5 Short offline Completed without error 00% 9805 -
**#** 6 Short offline Completed without error 00% 9805 -
**#** 7 Short offline Completed without error 00% 9803 -
**#** 8 Short offline Completed without error 00% 6377 -
**#** 9 Short offline Completed without error 00% 6376 -
**#**10 Short offline Completed without error 00% 6376 -
**#**11 Short offline Completed without error 00% 6278 -
**#**12 Short offline Completed without error 00% 6276 -
**#**13 Short offline Completed without error 00% 6276 -
**#**14 Short offline Completed without error 00% 903 -
**#**15 Short offline Completed without error 00% 901 -
**#**16 Short offline Completed without error 00% 901 -
**#**17 Short offline Completed without error 00% 75 -
**#**18 Short offline Completed without error 00% 67 -
**#**19 Short offline Completed without error 00% 67 -
**#**20 Short offline Completed without error 00% 1 -

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.


/dev/sda
Device Model: HGST HUS726020ALA610
Serial Number: N4G3AS2Y
197 Current_Pending_Sector 0x0022 100 100 000 Old_age Always - 532
198 Offline_Uncorrectable 0x0008 098 098 000 Old_age Offline - 2267

ça, ça pue.


/dev/sdb
Device Model: HGST HUS726020ALA610
Serial Number: N4G3B1GY

OK pour celui-ci


/dev/sdc
Device Model: HGST HUS726020ALA610
Serial Number: K5GPLN1A

OK pour celui-ci

Votre /dev/sda est donc crashé.
A ce stade, il n'a pas encore été remplacé, c'est correct ?

Vous avez le n° de série du disque défectueux dans la commande smartctl.
Pour signaler le crash disque, vous le communiquerez à OVH pour vous assurer qu'ils remplacent le bon disque.


N4G3AS2Y


Effectivement, le disque n'a pas encore été remplacé

Il faut faire remplacer votre disque maintenant.
OVH est très efficace au niveau du bare metal.

Après il faudra rebuilder, votre partition bootable est en raid-1 (miroir) sur les 3 disques, on devra peut-être se battre avec grub, ou pas... voyez sur le forum, dans les conversations les plus récentes qui parlent de grub.

Le temps que votre disque soit remplacé, et de re-vérifier que les sda, sdb et sdc ont conservé leur lettre, et étudier les commandes sgdisk pour recopier la partition table, mdadm pour reconstruire votre raid.

Attention, toute erreur se paie cash et peut amener à la perte irrémédiable de tous vos disques.


smartctl


OVH me demande d'effectuer une sauvegarde de mes données avant qu'il ne procède au remplacement du disque.
Comment procéder ?


OVH me demande d'effectuer une sauvegarde de mes données


Faites donc, vous êtes en mode dégradé.
C'est vous le locataire de la machine et qui devez avoir pris toutes vos dispositions (relisez votre contrat si vous avez un doute)

N'aurais-tu pas la procédure pour effectuer la sauvegarde dans une telle condition ?


N'aurais-tu pas la procédure pour effectuer la sauvegarde


C'est avant qu'il aurait fallu y penser.
Je n'ai aucune idée du volume à copier, ni des autres supports à ta disposition.

Je comprends la position d'OVH (tout comme n'importe quel hébergeur) qui n'endosse pas la responsabilité en cas de perte de données lors d'une intervention.

Avoir un serveur sans plan de récupération c'est une faute professionnelle grave, et de telles situations nuisent à la réputation de notre profession.

Je n'interviendrai donc plus dans cette conversation, sauf éventuellement des questions techniques précises mais qui trouvent de toute façon réponse un peu partout sur internet.