#26 Le 30/07/2021, à 14:20
- geole
Re : raid 5 : perte données après create... récupération possible ?
Bonjour
Exemple de testdisk sur la partition avant formatage
sudo testdisk /dev/md69 ==>
TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
TestDisk is free software, and
comes with ABSOLUTELY NO WARRANTY.
Select a media (use Arrow keys, then press Enter):
>Disk /dev/md69 - 3214 MB / 3066 MiB
>[Proceed ] [ Quit ]
Note: Disk capacity must be correctly detected for a successful recovery.
If a disk listed above has an incorrect size, check HD jumper settings and BIOS
detection, and install the latest OS patches and disk drivers.
Valider Proceed donne ==>
TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
Disk /dev/md69 - 3214 MB / 3066 MiB
Please select the partition table type, press Enter when done.
[Intel ] Intel/PC partition
[EFI GPT] EFI GPT partition map (Mac i386, some x86_64...)
[Humax ] Humax partition table
[Mac ] Apple partition map (legacy)
>[None ] Non partitioned media
[Sun ] Sun Solaris partition
[XBox ] XBox partition
[Return ] Return to disk selection
Hint: None partition table type has been detected
.
Valider None donne ==>
TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
Disk /dev/md69 - 3214 MB / 3066 MiB - CHS 784896 2 4
Partition Start End Size in sectors
> P ext4 0 0 1 784895 1 4 6279168
[ Type ] >[Superblock] [ List ] [Image Creation] [ Quit ]
Locate ext2/ext3/ext4 backup superblock
Se positionner sur List et valider donne ==>
TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
P ext4 0 0 1 784895 1 4 6279168
Directory /
>drwxr-xr-x 0 0 4096 29-Jul-2021 17:43 .
drwxr-xr-x 0 0 4096 29-Jul-2021 17:43 ..
drwx------ 0 0 16384 29-Jul-2021 17:33 lost+found
drwxr-xr-x 0 0 4096 29-Jul-2021 17:43 home
Next
Use Right to change directory, h to hide deleted files
q to quit, : to select the current file, a to select all files
C to copy the selected files, c to copy the current file
On voit que le répertoire de "test" ( home) est bien présent. Donc tout baigne.
Je vais donc formater comme tu l'as fait et voir ce qui se passe
Donc on a maintenant
TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
P ext2 0 0 1 784895 1 4 6279168
Directory /
>drwxr-xr-x 0 0 4096 30-Jul-2021 15:24 .
drwxr-xr-x 0 0 4096 30-Jul-2021 15:24 ..
drwx------ 0 0 16384 30-Jul-2021 15:24 lost+found
Next
Use Right to change directory, h to hide deleted files
q to quit, : to select the current file, a to select all files
C to copy the selected files, c to copy the current file
Sans surprise, le répertoire home a été viré
valider next ==> semble impossible
C'est classique: Testdisk est fait pour récupérer des partitions supprimées et pas encore formatées.
Dans ce contexte, je vais utiliser photorec.
sudo photorec /dev/md69 ==>
PhotoRec 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
PhotoRec is free software, and
comes with ABSOLUTELY NO WARRANTY.
Select a media (use Arrow keys, then press Enter):
>Disk /dev/md69 - 3214 MB / 3066 MiB (RO)
>[Proceed ] [ Quit ]
Note:
Disk capacity must be correctly detected for a successful recovery.
If a disk listed above has an incorrect size, check HD jumper settings and BIOS
detection, and install the latest OS patches and disk drivers.
Valider Proceed donne ===>
PhotoRec 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
Disk /dev/md69 - 3214 MB / 3066 MiB (RO)
Partition Start End Size in sectors
Unknown 0 0 1 784895 1 4 6279168 [Whole disk]
> P ext2 0 0 1 784895 1 4 6279168
>[ Search ] [Options ] [File Opt] [ Quit ]
Start file recovery
Théoriquement, je pourrais faire la séquence File opt pour ne rechercher que certains fichiers. Mais je décide de tout prendre
Valider Search donne ==>
PhotoRec 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
P ext2 0 0 1 784895 1 4 6279168
Please choose if all space needs to be analysed:
>[ Free ] Scan for file from ext2/ext3 unallocated space only
[ Whole ] Extract files from whole partition
Je décide de rechercher dans la tolité de la partition
Valider Whole donne =>
PhotoRec 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
Unknown 0 0 1 784895 1 4 6279168 [Whole disk]
To recover lost files, PhotoRec needs to know the filesystem type where the
file were stored:
[ ext2/ext3 ] ext2/ext3/ext4 filesystem
>[ Other ] FAT/NTFS/HFS+/ReiserFS/...
Je vais me positionner sur ext2/ext3
Valider ext2/ext3 donne ==>
PhotoRec 7.1, Data Recovery Utility, July 2019
Please select a destination to save the recovered files to.
Do not choose to write the files to the same partition they were stored on.
Keys: Arrow keys to select another directory
C when the destination is correct
Q to quit
Directory /home/a
>drwxr-xr-x 1000 1000 4096 30-Jul-2021 15:37 .
drwxr-xr-x 0 0 4096 5-Jun-2021 17:45 ..
drwxrwxr-x 1000 1000 4096 6-Jun-2021 22:58 16
drwxrwxr-x 1000 1000 4096 6-Jun-2021 22:58 18
drwxr-xr-x 1000 1000 4096 5-Jun-2021 18:07 Bureau
drwxr-xr-x 1000 1000 4096 5-Jun-2021 18:07 Documents
drwxr-xr-x 1000 1000 4096 5-Jun-2021 18:07 Images
drwxr-xr-x 1000 1000 4096 5-Jun-2021 18:07 Modèles
drwxr-xr-x 1000 1000 4096 5-Jun-2021 18:07 Musique
drwxr-xr-x 1000 1000 4096 5-Jun-2021 18:07 Public
drwxrwxr-x 1000 1000 4096 29-Jul-2021 17:34 RAID
drwxrwxr-x 1000 1000 4096 29-Jul-2021 17:24 RAID5
drwxr-xr-x 1000 1000 4096 5-Jun-2021 18:07 Téléchargements
drwxr-xr-x 1000 1000 4096 5-Jun-2021 18:07 Vidéos
drwxr-xr-x 0 0 4096 30-Jul-2021 15:24 lost+found
Next
Je vais récupérer cela dans mon bureau, en me positionnant sur la bonne ligne et en frappant le caractère C
Je valide et c'est parti. On voit le temps estimé, la quantité de fichiers qui se récupèrent. Voici la fin.
PhotoRec 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
Disk /dev/md69 - 3214 MB / 3066 MiB (RO)
Partition Start End Size in sectors
P ext2 0 0 1 784895 1 4 6279168
11686 files saved in /home/a/recup_dir directory.
Recovery completed.
You are welcome to donate to support and encourage further development
https://www.cgsecurity.org/wiki/Donation
[ Quit ]
Je note que cela ne s'est pas stocké dans mon bureau!
Il ne reste plus qu'a remettre des noms de fichiers!!!
Dernière modification par geole (Le 30/07/2021, à 15:20)
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#27 Le 30/07/2021, à 15:02
- kholo
Re : raid 5 : perte données après create... récupération possible ?
bonjour,
j'ai remonté le disque de 20.04...
et redémarré...
j'avais renommé le fichier mdadm.conf en .bak
le raid est reconnu au lancement en md127...
pour voir je fais un testdisk
TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
TestDisk is free software, and
comes with ABSOLUTELY NO WARRANTY.
Select a media (use Arrow keys, then press Enter):
>Disk /dev/md127 - 1499 GB / 1396 GiB
proceed...
>[None ] Non partitioned media
TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
Disk /dev/md127 - 1499 GB / 1396 GiB - CHS 366190848 2 4
Partition Start End Size in sectors
> P Unknown 0 0 1 366190847 1 4 2929526784
>[ Type ] [Image Creation] [ Quit ]
Change type, this setting will not be saved on disk
si je tente une lecture en Type ext4
pas de superblock
pour file :
TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
P ext4 0 0 1 366190847 1 4 2929526784
Can't open filesystem. Filesystem seems damaged.
>[ Quit ]
Quit this section
si je change type en Linux md 1.x RAID
TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
Disk /dev/md127 - 1499 GB / 1396 GiB - CHS 366190848 2 4
Partition Start End Size in sectors
> P Linux md 1.x RAID 0 0 1 366190847 1 4 2929526784
>[ Type ] [Image Creation] [ Quit ]
Change type, this setting will not be saved on disk
... je remet le fichier mdadm.conf, je reboot et je regarde...
Hors ligne
#28 Le 30/07/2021, à 15:08
- kholo
Re : raid 5 : perte données après create... récupération possible ?
NB : je n'ai pas fait de reformatage après mon create... à aucun moment...
la seule ligne un peu casse gueule à par mon create pourrait être
sudo fsck.ext4 /dev/md0
Hors ligne
#29 Le 30/07/2021, à 15:24
- geole
Re : raid 5 : perte données après create... récupération possible ?
Pourrais--tu faire un rapport smartctl de tes quatre disques
sudo smartctl -s on -a /dev/sda
sudo smartctl -s on -a /dev/sdb
sudo smartctl -s on -a /dev/sdc
sudo smartctl -s on -a /dev/sdd
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#30 Le 30/07/2021, à 15:39
- kholo
Re : raid 5 : perte données après create... récupération possible ?
sda
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.8.0-63-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital RE4
Device Model: WDC WD5003ABYX-18WERA0
Serial Number: WD-WMAYP4657603
LU WWN Device Id: 5 0014ee 0036a04b1
Add. Product Id: DELL(tm)
Firmware Version: 01.01S02
User Capacity: 500107862016 bytes [500 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: 7200 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS (minor revision not indicated)
SATA Version is: SATA 2.6, 3.0 Gb/s
Local Time is: Fri Jul 30 16:32:02 2021 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x84) Offline data collection activity
was suspended by an interrupting command from host.
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: ( 7860) 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: ( 84) minutes.
Conveyance self-test routine
recommended polling time: ( 5) minutes.
SCT capabilities: (0x303f) 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 0x002f 200 200 051 Pre-fail Always - 267
3 Spin_Up_Time 0x0027 142 141 021 Pre-fail Always - 3891
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 134
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 066 066 000 Old_age Always - 25510
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 - 131
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 36
193 Load_Cycle_Count 0x0032 200 200 000 Old_age Always - 97
194 Temperature_Celsius 0x0022 110 094 000 Old_age Always - 33 (Min/Max 25/33)
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 - 30
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 Extended offline Completed without error 00% 4 -
# 2 Extended offline Aborted by host 10% 3 -
# 3 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.
sdb
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.8.0-63-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.14 (AF)
Device Model: ST500DM002-1BD142
Serial Number: Z6EQCFYR
LU WWN Device Id: 5 000c50 08787872d
Firmware Version: HP74
User Capacity: 500107862016 bytes [500 GB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 7200 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Fri Jul 30 16:32:12 2021 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART 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: ( 600) 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: ( 81) minutes.
SCT capabilities: (0x103b) SCT Status supported.
SCT Error Recovery Control supported.
SCT Feature Control supported.
SCT Data Table supported.
SMART Attributes Data Structure revision number: 10
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 119 099 006 Pre-fail Always - 206631208
3 Spin_Up_Time 0x0023 100 100 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 099 099 020 Old_age Always - 1246
5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0
7 Seek_Error_Rate 0x002f 076 060 030 Pre-fail Always - 45462499
9 Power_On_Hours 0x0032 097 097 000 Old_age Always - 2934
10 Spin_Retry_Count 0x0033 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 099 099 020 Old_age Always - 1243
180 Unknown_HDD_Attribute 0x002b 100 100 000 Pre-fail Always - 550825915
183 Runtime_Bad_Block 0x0032 100 100 000 Old_age Always - 0
184 End-to-End_Error 0x0033 100 100 097 Pre-fail Always - 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
188 Command_Timeout 0x0032 100 100 000 Old_age Always - 0 0 0
189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0022 068 058 045 Old_age Always - 32 (Min/Max 23/32)
194 Temperature_Celsius 0x0022 032 042 000 Old_age Always - 32 (0 18 0 0 0)
195 Hardware_ECC_Recovered 0x003a 057 033 000 Old_age Always - 206631208
196 Reallocated_Event_Count 0x0032 100 100 036 Old_age Always - 0
197 Current_Pending_Sector 0x0032 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0030 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0032 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% 31 -
# 2 Extended offline Interrupted (host reset) 90% 2 -
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.
sdc
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.8.0-63-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital AV-GP (AF)
Device Model: WDC WD5000AUDX-73H9TY0
Serial Number: WD-WCC4JNFES0AU
LU WWN Device Id: 5 0014ee 20a991ab2
Firmware Version: 01.01A01
User Capacity: 500107862016 bytes [500 GB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5400 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-2 (minor revision not indicated)
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Fri Jul 30 16:32:22 2021 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
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: ( 5520) 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: ( 66) minutes.
Conveyance self-test routine
recommended polling time: ( 5) minutes.
SCT capabilities: (0x3035) 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 200 200 051 Pre-fail Always - 0
3 Spin_Up_Time 0x0027 140 132 021 Pre-fail Always - 3991
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 447
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
7 Seek_Error_Rate 0x002e 100 253 000 Old_age Always - 0
9 Power_On_Hours 0x0032 095 095 000 Old_age Always - 4067
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 - 435
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 26
193 Load_Cycle_Count 0x0032 200 200 000 Old_age Always - 420
194 Temperature_Celsius 0x0022 113 102 000 Old_age Always - 30
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 100 253 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0008 100 253 000 Old_age Offline - 0
SMART Error Log Version: 1
No Errors Logged
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.
sdd
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.8.0-63-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.14 (AF)
Device Model: ST500DM002-1BD142
Serial Number: W3T2T3Y6
LU WWN Device Id: 5 000c50 06e98b3b5
Firmware Version: FJK3
User Capacity: 500107862016 bytes [500 GB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 7200 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Fri Jul 30 16:32:29 2021 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART 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: ( 600) 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: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 81) minutes.
Conveyance self-test routine
recommended polling time: ( 2) minutes.
SCT capabilities: (0x303f) SCT Status supported.
SCT Error Recovery Control supported.
SCT Feature Control supported.
SCT Data Table supported.
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 118 099 006 Pre-fail Always - 188542216
3 Spin_Up_Time 0x0003 100 100 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 178
5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 087 060 030 Pre-fail Always - 502169294
9 Power_On_Hours 0x0032 065 065 000 Old_age Always - 31257
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 178
183 Runtime_Bad_Block 0x0032 100 100 000 Old_age Always - 0
184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
188 Command_Timeout 0x0032 100 100 000 Old_age Always - 0 0 0
189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0022 068 059 045 Old_age Always - 32 (Min/Max 23/33)
194 Temperature_Celsius 0x0022 032 041 000 Old_age Always - 32 (0 9 0 0 0)
195 Hardware_ECC_Recovered 0x001a 055 034 000 Old_age Always - 188542216
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 31259h+17m+25.789s
241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 4155957471
242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 308792345
SMART Error Log Version: 1
No Errors Logged
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.
Hors ligne
#31 Le 30/07/2021, à 15:50
- geole
Re : raid 5 : perte données après create... récupération possible ?
Les quatre disques sont en bon état. Je ne sais pas pourquoi le raids n'a été automatiquement redécouvert. Tu as certainement oublié de booter après avoir rebranché les disques/installer mdadm
Si le raid avait été découvert, tu n'aurais pas pu faire la création car ressources occupées...
Dernière modification par geole (Le 30/07/2021, à 16:17)
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#32 Le 30/07/2021, à 15:56
- kholo
Re : raid 5 : perte données après create... récupération possible ?
je confirme... il y a de grandes chances que je n'ai pas rebooté après l'installation de mdadm...
Hors ligne
#33 Le 30/07/2021, à 16:27
- kholo
Re : raid 5 : perte données après create... récupération possible ?
en fouillant, j'ai retrouvé un log que je m'était fait après un changement de HDD :
*****************************************
INFOS SUR LE RAID
*****************************************
Personalities : [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid1] [raid10]
md0 : active raid5 sdd[2] sdc[1] sdb[0] sda[4]
1464766464 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/4] [UUUU]
bitmap: 0/4 pages [0KB], 65536KB chunk
unused devices: <none>
*****************************************
/dev/md0:
Version : 1.2
Creation Time : Wed Mar 18 15:10:26 2020
Raid Level : raid5
Array Size : 1464766464 (1396.91 GiB 1499.92 GB)
Used Dev Size : 488255488 (465.64 GiB 499.97 GB)
Raid Devices : 4
Total Devices : 4
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Mon May 18 22:32:23 2020
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 512K
Name : ProLiant-ML110-G5:0 (local to host ProLiant-ML110-G5)
UUID : 5b6a9476:dc5457df:9e1de3d7:84ee1dd6
Events : 2851
Number Major Minor RaidDevice State
0 8 16 0 active sync /dev/sdb
1 8 32 1 active sync /dev/sdc
2 8 48 2 active sync /dev/sdd
4 8 0 3 active sync /dev/sda
*****************************************
du coup j'ai l'UUID du md0 !!!
mon fichier e entier :
mardi 19 mai 2020, 11:55:57 (UTC+0200)
*****************************************
INFORMATIONS /dev/sda
*****************************************
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-179-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital RE4
Device Model: WDC WD5003ABYX-18WERA0
Serial Number: WD-WMAYP4657603
LU WWN Device Id: 5 0014ee 0036a04b1
Add. Product Id: DELL(tm)
Firmware Version: 01.01S02
User Capacity: 500 107 862 016 bytes [500 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: 7200 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS (minor revision not indicated)
SATA Version is: SATA 2.6, 3.0 Gb/s
Local Time is: Tue May 19 11:55:57 2020 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-179-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
*****************************************
INFORMATIONS /dev/sdb
*****************************************
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-179-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.14 (AF)
Device Model: ST500DM002-1BD142
Serial Number: Z6EQCFYR
LU WWN Device Id: 5 000c50 08787872d
Firmware Version: HP74
User Capacity: 500 107 862 016 bytes [500 GB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 7200 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Tue May 19 11:55:57 2020 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-179-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
*****************************************
INFORMATIONS /dev/sdc
*****************************************
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-179-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital AV-GP (AF)
Device Model: WDC WD5000AUDX-73H9TY0
Serial Number: WD-WCC4JNFES0AU
LU WWN Device Id: 5 0014ee 20a991ab2
Firmware Version: 01.01A01
User Capacity: 500 107 862 016 bytes [500 GB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5400 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-2 (minor revision not indicated)
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Tue May 19 11:55:57 2020 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-179-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
*****************************************
INFORMATIONS /dev/sdd
*****************************************
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-179-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.14 (AF)
Device Model: ST500DM002-1BD142
Serial Number: W3T2T3Y6
LU WWN Device Id: 5 000c50 06e98b3b5
Firmware Version: FJK3
User Capacity: 500 107 862 016 bytes [500 GB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 7200 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Tue May 19 11:55:57 2020 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-179-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
*****************************************
INFORMATIONS /dev/sde
*****************************************
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-179-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.10
Device Model: ST3250820AS
Serial Number: 4QE02DEC
Firmware Version: 3.AAD
User Capacity: 250 058 268 160 bytes [250 GB]
Sector Size: 512 bytes logical/physical
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA/ATAPI-7 (minor revision not indicated)
Local Time is: Tue May 19 11:55:57 2020 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-179-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
Please note the following marginal Attributes:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
190 Airflow_Temperature_Cel 0x0022 063 045 045 Old_age Always In_the_past 37 (Min/Max 25/37)
*****************************************
*****************************************
Disque /dev/sda : 465,8 GiB, 500107862016 octets, 976773168 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Disque /dev/sdc : 465,8 GiB, 500107862016 octets, 976773168 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 4096 octets
taille d'E/S (minimale / optimale) : 4096 octets / 4096 octets
Disque /dev/sdd : 465,8 GiB, 500107862016 octets, 976773168 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 4096 octets
taille d'E/S (minimale / optimale) : 4096 octets / 4096 octets
Type d'étiquette de disque : gpt
Identifiant de disque : 17DAD5C4-A03E-43E9-AC98-5BCBBF6792AF
Disque /dev/sde : 232,9 GiB, 250058268160 octets, 488395055 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Type d'étiquette de disque : gpt
Identifiant de disque : F87DBE9C-6A5B-4F6B-893C-6BA865DE6F4A
Périphérique Début Fin Secteurs Taille Type
/dev/sde1 34 102398309 102398276 48,8G Système de fichiers Linux
/dev/sde2 102398310 118784609 16386300 7,8G Partition d'échange Linux
/dev/sde3 118784610 488392064 369607455 176,2G Système de fichiers Linux
Disque /dev/sdb : 465,8 GiB, 500107862016 octets, 976773168 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 4096 octets
taille d'E/S (minimale / optimale) : 4096 octets / 4096 octets
Disque /dev/md0 : 1,4 TiB, 1499920859136 octets, 2929532928 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 4096 octets
taille d'E/S (minimale / optimale) : 524288 octets / 1572864 octets
*****************************************
INFOS SUR LE RAID
*****************************************
Personalities : [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid1] [raid10]
md0 : active raid5 sdd[2] sdc[1] sdb[0] sda[4]
1464766464 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/4] [UUUU]
bitmap: 0/4 pages [0KB], 65536KB chunk
unused devices: <none>
*****************************************
/dev/md0:
Version : 1.2
Creation Time : Wed Mar 18 15:10:26 2020
Raid Level : raid5
Array Size : 1464766464 (1396.91 GiB 1499.92 GB)
Used Dev Size : 488255488 (465.64 GiB 499.97 GB)
Raid Devices : 4
Total Devices : 4
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Mon May 18 22:32:23 2020
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 512K
Name : ProLiant-ML110-G5:0 (local to host ProLiant-ML110-G5)
UUID : 5b6a9476:dc5457df:9e1de3d7:84ee1dd6
Events : 2851
Number Major Minor RaidDevice State
0 8 16 0 active sync /dev/sdb
1 8 32 1 active sync /dev/sdc
2 8 48 2 active sync /dev/sdd
4 8 0 3 active sync /dev/sda
*****************************************
Dernière modification par kholo (Le 30/07/2021, à 16:28)
Hors ligne
#34 Le 30/07/2021, à 16:46
- geole
Re : raid 5 : perte données après create... récupération possible ?
Number Major Minor RaidDevice State
0 8 16 0 active sync /dev/sdb
1 8 32 1 active sync /dev/sdc
2 8 48 2 active sync /dev/sdd
4 8 0 3 active sync /dev/sda
*****************************************
Peut-être tenter après avoir stoppé le raid actuel
sudo mdadm --assemble /dev/md22 --run /dev/sdb /dev/sdc /dev/sdd /dev/sda
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#35 Le 30/07/2021, à 17:21
- kholo
Re : raid 5 : perte données après create... récupération possible ?
reboot pour être sûr puis :
kholo@monde:~$ ls /dev/m
mapper/ mcelog md/ md127 mem mqueue/
kholo@monde:~$ ls /dev/md
md/ md127
kholo@monde:~$ ls /dev/md/monde\:0
/dev/md/monde:0
kholo@monde:~$
puis
kholo@monde:~$ sudo mdadm --detail --scan
ARRAY /dev/md/monde:0 metadata=1.2 name=monde:0 UUID=ddcbf221:4e72bb6d:e317e5a0:2e94376d
donc :
kholo@monde:~$ sudo mdadm --stop /dev/md0
mdadm: error opening /dev/md0: No such file or directory
kholo@monde:~$ sudo mdadm --stop /dev/md127
mdadm: stopped /dev/md127
kholo@monde:~$
puis
kholo@monde:~$ sudo mdadm --assemble /dev/md22 --run /dev/sdb /dev/sdc /dev/sdd /dev/sda
mdadm: /dev/md22 has been started with 4 drives.
kholo@monde:~$ sudo mdadm --detail --scan
ARRAY /dev/md22 metadata=1.2 name=monde:0 UUID=ddcbf221:4e72bb6d:e317e5a0:2e94376d
kholo@monde:~$ sudo mount /dev/md22 /mnt/raid1/
mount: /mnt/raid1: wrong fs type, bad option, bad superblock on /dev/md22, missing codepage or helper program, or other error.
Hors ligne
#36 Le 30/07/2021, à 17:28
- geole
Re : raid 5 : perte données après create... récupération possible ?
que donnent
journalctl --no-pager -b -g md22
sudo dmesg | tail -200
sudo mount -v /dev/md22 /mnt/raid1
Dernière modification par geole (Le 30/07/2021, à 17:34)
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#37 Le 30/07/2021, à 17:52
- kholo
Re : raid 5 : perte données après create... récupération possible ?
kholo@monde:~$ sudo mdadm --assemble /dev/md22 --run /dev/sdb /dev/sdc /dev/sdd /dev/sda
[sudo] Mot de passe de su :
mdadm: /dev/sdb is busy - skipping
mdadm: /dev/sdc is busy - skipping
mdadm: /dev/sdd is busy - skipping
mdadm: /dev/sda is busy - skipping
kholo@monde:~$ sudo mdadm --stop /dev/md127
mdadm: stopped /dev/md127
kholo@monde:~$ sudo mdadm --assemble /dev/md22 --run /dev/sdb /dev/sdc /dev/sdd /dev/sda
mdadm: /dev/md22 has been started with 4 drives.
kholo@monde:~$ sudo mount /dev/md22 /mnt/raid1/
mount: /mnt/raid1: wrong fs type, bad option, bad superblock on /dev/md22, missing codepage or helper program, or other error.
kholo@monde:~$ journalctl --no-pager -b -g md22
-- Logs begin at Thu 2021-07-29 10:19:17 CEST, end at Fri 2021-07-30 18:48:25 CEST. --
juil. 30 18:47:31 monde sudo[2123]: su : TTY=pts/0 ; PWD=/home/su ; USER=root ; COMMAND=/usr/sbin/mdadm --assemble /dev/md22 --run /dev/sdb /dev/sdc /dev/sdd /dev/sda
juil. 30 18:47:49 monde sudo[2151]: su : TTY=pts/0 ; PWD=/home/su ; USER=root ; COMMAND=/usr/sbin/mdadm --assemble /dev/md22 --run /dev/sdb /dev/sdc /dev/sdd /dev/sda
juil. 30 18:47:49 monde kernel: md: md22 stopped.
juil. 30 18:47:49 monde kernel: md/raid:md22: device sda operational as raid disk 0
juil. 30 18:47:49 monde kernel: md/raid:md22: device sdd operational as raid disk 3
juil. 30 18:47:49 monde kernel: md/raid:md22: device sdc operational as raid disk 2
juil. 30 18:47:49 monde kernel: md/raid:md22: device sdb operational as raid disk 1
juil. 30 18:47:49 monde kernel: md/raid:md22: raid level 5 active with 4 out of 4 devices, algorithm 2
juil. 30 18:47:49 monde kernel: md22: detected capacity change from 0 to 1499917713408
juil. 30 18:48:25 monde sudo[2220]: su : TTY=pts/0 ; PWD=/home/su ; USER=root ; COMMAND=/usr/bin/mount /dev/md22 /mnt/raid1/
kholo@monde:~$ sudo dmesg | tail -200
[ 1.645756] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x218cae85130, max_idle_ns: 440795262788 ns
[ 1.645757] with arguments:
[ 1.645758] /init
[ 1.645760] splash
[ 1.645760] with environment:
[ 1.645762] HOME=/
[ 1.645763] TERM=linux
[ 1.645764] BOOT_IMAGE=/boot/vmlinuz-5.8.0-63-generic
[ 1.645806] clocksource: Switched to clocksource tsc
[ 1.831306] hid: raw HID events driver (C) Jiri Kosina
[ 1.831344] ACPI Warning: SystemIO range 0x0000000000001028-0x000000000000102F conflicts with OpRegion 0x0000000000001000-0x000000000000102F (\_SB.PCI0.LPC0.PMIO) (20200528/utaddress-204)
[ 1.831354] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 1.833049] ACPI Warning: SystemIO range 0x0000000000001180-0x00000000000011AF conflicts with OpRegion 0x0000000000001180-0x00000000000011AF (\_SB.PCI0.LPC0.GPOX) (20200528/utaddress-204)
[ 1.833054] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 1.833100] lpc_ich: Resource conflict(s) found affecting gpio_ich
[ 1.867822] i801_smbus 0000:00:1f.3: enabling device (0001 -> 0003)
[ 1.868031] i801_smbus 0000:00:1f.3: SMBus using PCI interrupt
[ 1.882611] usbcore: registered new interface driver usbhid
[ 1.882612] usbhid: USB HID core driver
[ 1.883431] i2c i2c-0: 2/4 memory slots populated (from DMI)
[ 1.884133] i2c i2c-0: Successfully instantiated SPD at 0x51
[ 1.884775] i2c i2c-0: Successfully instantiated SPD at 0x53
[ 1.898696] tg3 0000:0e:00.0 eth0: Tigon3 [partno(N/A) rev a200] (PCI Express) MAC address 00:25:b3:99:83:b7
[ 1.898700] tg3 0000:0e:00.0 eth0: attached PHY is 5722/5756 (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[0])
[ 1.898702] tg3 0000:0e:00.0 eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]
[ 1.898704] tg3 0000:0e:00.0 eth0: dma_rwctrl[76180000] dma_mask[64-bit]
[ 1.919302] tg3 0000:0e:00.0 ens2: renamed from eth0
[ 1.923685] input: NOVATEK USB Keyboard as /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/0003:0461:0010.0001/input/input2
[ 1.923916] gpio_ich gpio_ich.2.auto: GPIO from 451 to 511
[ 1.963413] random: fast init done
[ 1.981219] hid-generic 0003:0461:0010.0001: input,hidraw0: USB HID v1.10 Keyboard [NOVATEK USB Keyboard] on usb-0000:00:1a.0-1/input0
[ 1.981563] input: NOVATEK USB Keyboard System Control as /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.1/0003:0461:0010.0002/input/input3
[ 2.041067] input: NOVATEK USB Keyboard Consumer Control as /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.1/0003:0461:0010.0002/input/input4
[ 2.041144] hid-generic 0003:0461:0010.0002: input,hidraw1: USB HID v1.10 Device [NOVATEK USB Keyboard] on usb-0000:00:1a.0-1/input1
[ 2.041502] input: ServerEngines SE USB Device as /devices/pci0000:00/0000:00:1d.0/usb6/6-2/6-2:1.0/0003:0000:0000.0003/input/input5
[ 2.084943] raid6: sse2x4 gen() 8830 MB/s
[ 2.101041] hid-generic 0003:0000:0000.0003: input,hidraw2: USB HID v1.11 Keyboard [ServerEngines SE USB Device] on usb-0000:00:1d.0-2/input0
[ 2.101288] input: ServerEngines SE USB Device as /devices/pci0000:00/0000:00:1d.0/usb6/6-2/6-2:1.1/0003:0000:0000.0004/input/input6
[ 2.101396] hid-generic 0003:0000:0000.0004: input,hidraw3: USB HID v1.11 Mouse [ServerEngines SE USB Device] on usb-0000:00:1d.0-2/input1
[ 2.152943] raid6: sse2x4 xor() 4388 MB/s
[ 2.220944] raid6: sse2x2 gen() 8732 MB/s
[ 2.288945] raid6: sse2x2 xor() 5511 MB/s
[ 2.356942] raid6: sse2x1 gen() 7215 MB/s
[ 2.424943] raid6: sse2x1 xor() 4367 MB/s
[ 2.424945] raid6: using algorithm sse2x4 gen() 8830 MB/s
[ 2.424946] raid6: .... xor() 4388 MB/s, rmw enabled
[ 2.424948] raid6: using ssse3x2 recovery algorithm
[ 2.424974] usb 3-2: new low-speed USB device number 3 using uhci_hcd
[ 2.426625] xor: measuring software checksum speed
[ 2.464942] prefetch64-sse: 11153.000 MB/sec
[ 2.504941] generic_sse: 8274.000 MB/sec
[ 2.504943] xor: using function: prefetch64-sse (11153.000 MB/sec)
[ 2.506542] async_tx: api initialized (async)
[ 2.518009] md/raid:md127: device sdc operational as raid disk 2
[ 2.518010] md/raid:md127: device sdd operational as raid disk 3
[ 2.518012] md/raid:md127: device sdb operational as raid disk 1
[ 2.518013] md/raid:md127: device sda operational as raid disk 0
[ 2.519636] md/raid:md127: raid level 5 active with 4 out of 4 devices, algorithm 2
[ 2.582404] md127: detected capacity change from 0 to 1499917713408
[ 2.613053] usb 3-2: New USB device found, idVendor=0461, idProduct=4d0f, bcdDevice= 2.00
[ 2.613056] usb 3-2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 2.613058] usb 3-2: Product: USB Optical Mouse
[ 2.631621] input: USB Optical Mouse as /devices/pci0000:00/0000:00:1a.0/usb3/3-2/3-2:1.0/0003:0461:4D0F.0005/input/input7
[ 2.631743] hid-generic 0003:0461:4D0F.0005: input,hidraw4: USB HID v1.11 Mouse [USB Optical Mouse] on usb-0000:00:1a.0-2/input0
[ 2.647574] random: crng init done
[ 2.760954] usb 1-3: new high-speed USB device number 4 using ehci-pci
[ 2.934500] usb 1-3: New USB device found, idVendor=148f, idProduct=5370, bcdDevice= 1.01
[ 2.934503] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.934505] usb 1-3: Product: 802.11 n WLAN
[ 2.934507] usb 1-3: Manufacturer: Ralink
[ 2.934508] usb 1-3: SerialNumber: 1.0
[ 3.489904] fbcon: Taking over console
[ 3.490000] Console: switching to colour frame buffer device 128x48
[ 3.539536] EXT4-fs (sde1): mounted filesystem with ordered data mode. Opts: (null)
[ 4.981570] systemd[1]: Inserted module 'autofs4'
[ 5.139396] systemd[1]: systemd 245.4-4ubuntu3.11 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid)
[ 5.157040] systemd[1]: Detected architecture x86-64.
[ 5.180392] systemd[1]: Set hostname to <monde>.
[ 7.999216] systemd[1]: Created slice system-modprobe.slice.
[ 7.999591] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[ 7.999901] systemd[1]: Created slice User and Session Slice.
[ 7.999989] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 8.000241] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ 8.000310] systemd[1]: Reached target User and Group Name Lookups.
[ 8.000335] systemd[1]: Reached target Remote File Systems.
[ 8.000351] systemd[1]: Reached target Slices.
[ 8.000533] systemd[1]: Listening on Syslog Socket.
[ 8.000663] systemd[1]: Listening on fsck to fsckd communication Socket.
[ 8.000739] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ 8.001018] systemd[1]: Listening on Journal Audit Socket.
[ 8.001147] systemd[1]: Listening on Journal Socket (/dev/log).
[ 8.001304] systemd[1]: Listening on Journal Socket.
[ 8.001447] systemd[1]: Listening on udev Control Socket.
[ 8.001556] systemd[1]: Listening on udev Kernel Socket.
[ 8.002976] systemd[1]: Mounting Huge Pages File System...
[ 8.004386] systemd[1]: Mounting POSIX Message Queue File System...
[ 8.005970] systemd[1]: Mounting Kernel Debug File System...
[ 8.007515] systemd[1]: Mounting Kernel Trace File System...
[ 8.009699] systemd[1]: Starting Journal Service...
[ 8.011314] systemd[1]: Starting Set the console keyboard layout...
[ 8.013105] systemd[1]: Starting Create list of static device nodes for the current kernel...
[ 8.014644] systemd[1]: Starting Load Kernel Module drm...
[ 8.051799] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[ 8.051873] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.
[ 8.166539] systemd[1]: Starting Load Kernel Modules...
[ 8.167938] systemd[1]: Starting Remount Root and Kernel File Systems...
[ 8.169633] systemd[1]: Starting udev Coldplug all Devices...
[ 8.171284] systemd[1]: Starting Uncomplicated firewall...
[ 8.173960] systemd[1]: Mounted Huge Pages File System.
[ 8.174151] systemd[1]: Mounted POSIX Message Queue File System.
[ 8.174321] systemd[1]: Mounted Kernel Debug File System.
[ 8.174492] systemd[1]: Mounted Kernel Trace File System.
[ 8.175286] systemd[1]: Finished Create list of static device nodes for the current kernel.
[ 8.328499] systemd[1]: modprobe@drm.service: Succeeded.
[ 8.329023] systemd[1]: Finished Load Kernel Module drm.
[ 8.375679] systemd[1]: Finished Uncomplicated firewall.
[ 8.417205] EXT4-fs (sde1): re-mounted. Opts: errors=remount-ro
[ 8.420409] systemd[1]: Finished Remount Root and Kernel File Systems.
[ 8.531264] systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped.
[ 8.531336] systemd[1]: Condition check resulted in Platform Persistent Storage Archival being skipped.
[ 8.532639] systemd[1]: Starting Load/Save Random Seed...
[ 8.533924] systemd[1]: Starting Create System Users...
[ 8.534110] systemd[1]: Started Journal Service.
[ 8.626944] systemd-journald[277]: Received client request to flush runtime journal.
[ 8.631119] lp: driver loaded but no devices found
[ 8.677452] ppdev: user-space parallel port driver
[ 13.347655] EDAC MC0: Giving out device to module i3200_edac controller i3200: DEV 0000:00:00.0 (POLLED)
[ 13.438101] IPMI message handler: version 39.2
[ 13.518270] ipmi device interface
[ 13.696068] ipmi_si: IPMI System Interface driver
[ 13.696096] ipmi_si dmi-ipmi-si.0: ipmi_platform: probing via SMBIOS
[ 13.696098] ipmi_platform: ipmi_si: SMBIOS: io 0xca2 regsize 1 spacing 1 irq 0
[ 13.696100] ipmi_si: Adding SMBIOS-specified kcs state machine
[ 13.696191] ipmi_si IPI0001:00: ipmi_platform: probing via ACPI
[ 13.696239] ipmi_si IPI0001:00: ipmi_platform: [io 0x0ca2-0x0ca3] regsize 1 spacing 1 irq 0
[ 13.814474] at24 0-0051: supply vcc not found, using dummy regulator
[ 13.814870] ipmi_si dmi-ipmi-si.0: Removing SMBIOS-specified kcs state machine in favor of ACPI
[ 13.814872] ipmi_si: Adding ACPI-specified kcs state machine
[ 13.814938] ipmi_si: Trying ACPI-specified kcs state machine at i/o address 0xca2, slave address 0x20, irq 0
[ 13.815111] at24 0-0051: 256 byte spd EEPROM, read-only
[ 13.815139] at24 0-0053: supply vcc not found, using dummy regulator
[ 13.815703] at24 0-0053: 256 byte spd EEPROM, read-only
[ 14.138728] ipmi_si IPI0001:00: IPMI message handler: Found new BMC (man_id: 0x00000b, prod_id: 0x2001, dev_id: 0x12)
[ 14.218325] ipmi_si IPI0001:00: IPMI kcs interface initialized
[ 14.477276] ipmi_ssif: IPMI SSIF Interface driver
[ 15.069355] coretemp coretemp.0: Using relative temperature scale!
[ 15.069377] coretemp coretemp.0: Using relative temperature scale!
[ 15.277940] intel_powerclamp: No package C-state available
[ 15.309246] intel_powerclamp: No package C-state available
[ 16.241250] checking generic (ee000000 300000) vs hw (ee000000 1000000)
[ 16.241252] fb0: switching to mgag200drmfb from VESA VGA
[ 16.241394] Console: switching to colour dummy device 80x25
[ 16.241461] mgag200 0000:0d:00.0: vgaarb: deactivate vga console
[ 16.248622] [drm] Initialized mgag200 1.0.0 20110418 for 0000:0d:00.0 on minor 0
[ 16.284763] fbcon: mgag200drmfb (fb0) is primary device
[ 16.284865] Console: switching to colour frame buffer device 170x48
[ 16.284898] mgag200 0000:0d:00.0: fb0: mgag200drmfb frame buffer device
[ 16.459066] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 16.462193] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 17.700959] usb 1-3: reset high-speed USB device number 4 using ehci-pci
[ 17.867635] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5390, rev 0502 detected
[ 17.895882] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 5370 detected
[ 17.896152] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 17.899798] usbcore: registered new interface driver rt2800usb
[ 17.979095] rt2800usb 1-3:1.0 wlx40a5ef0718af: renamed from wlan0
[ 22.989138] Adding 8193144k swap on /dev/sde2. Priority:-2 extents:1 across:8193144k FS
[ 23.833431] EXT4-fs (sde3): mounted filesystem with ordered data mode. Opts: (null)
[ 24.619946] audit: type=1400 audit(1627663518.421:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/man" pid=708 comm="apparmor_parser"
[ 24.619953] audit: type=1400 audit(1627663518.421:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="man_filter" pid=708 comm="apparmor_parser"
[ 24.619957] audit: type=1400 audit(1627663518.421:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="man_groff" pid=708 comm="apparmor_parser"
[ 24.619961] audit: type=1400 audit(1627663518.421:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="ippusbxd" pid=709 comm="apparmor_parser"
[ 24.698950] audit: type=1400 audit(1627663518.501:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="lsb_release" pid=713 comm="apparmor_parser"
[ 24.723230] audit: type=1400 audit(1627663518.525:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-xpdfimport" pid=714 comm="apparmor_parser"
[ 24.745029] audit: type=1400 audit(1627663518.549:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/tcpdump" pid=715 comm="apparmor_parser"
[ 24.751736] audit: type=1400 audit(1627663518.553:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe" pid=718 comm="apparmor_parser"
[ 24.751742] audit: type=1400 audit(1627663518.553:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe//kmod" pid=718 comm="apparmor_parser"
[ 24.788392] audit: type=1400 audit(1627663518.589:11): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-oopslash" pid=719 comm="apparmor_parser"
[ 39.726214] kauditd_printk_skb: 27 callbacks suppressed
[ 39.726216] audit: type=1400 audit(1627663533.529:39): apparmor="DENIED" operation="capable" profile="/usr/sbin/cups-browsed" pid=866 comm="cups-browsed" capability=23 capname="sys_nice"
[ 41.240236] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
[ 41.339805] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.36
[ 43.987865] wlx40a5ef0718af: authenticate with 30:24:78:2c:1e:90
[ 44.006195] wlx40a5ef0718af: send auth to 30:24:78:2c:1e:90 (try 1/3)
[ 44.007917] wlx40a5ef0718af: authenticated
[ 44.009036] wlx40a5ef0718af: associate with 30:24:78:2c:1e:90 (try 1/3)
[ 44.027040] wlx40a5ef0718af: RX AssocResp from 30:24:78:2c:1e:90 (capab=0x411 status=0 aid=3)
[ 44.034024] wlx40a5ef0718af: associated
[ 44.356655] IPv6: ADDRCONF(NETDEV_CHANGE): wlx40a5ef0718af: link becomes ready
[ 69.490336] rfkill: input handler disabled
[ 100.844119] rfkill: input handler enabled
[ 112.033306] rfkill: input handler disabled
[ 172.854654] md127: detected capacity change from 1499917713408 to 0
[ 172.854665] md: md127 stopped.
[ 176.121586] md: md22 stopped.
[ 176.138205] md/raid:md22: device sda operational as raid disk 0
[ 176.138208] md/raid:md22: device sdd operational as raid disk 3
[ 176.138209] md/raid:md22: device sdc operational as raid disk 2
[ 176.138210] md/raid:md22: device sdb operational as raid disk 1
[ 176.141014] md/raid:md22: raid level 5 active with 4 out of 4 devices, algorithm 2
[ 176.185231] md22: detected capacity change from 0 to 1499917713408
kholo@monde:~$ sudo mount -v /dev/md22 /mnt/raid1
mount: /mnt/raid1: wrong fs type, bad option, bad superblock on /dev/md22, missing codepage or helper program, or other error.
kholo@monde:~$
Hors ligne
#38 Le 30/07/2021, à 17:58
- kholo
Re : raid 5 : perte données après create... récupération possible ?
question naïve...
si mon create a écrasé les superblocs d'origine, y a t'il un moyen de restaurer un ou des backups ?
Hors ligne
#39 Le 30/07/2021, à 21:18
- kholo
Re : raid 5 : perte données après create... récupération possible ?
j'ai pu réunir 5 disques de 500 Go...
j'en trouverai bien 4 de bon je pense...
ce soir, je copie mes disques...
je fais cela avec ddrescue...
je ne pense pas pouvoir me remettre dessus ce weekend mais je verrai à faire un point pour lundi...
wait 'n see...
Hors ligne
#40 Le 31/07/2021, à 12:48
- geole
Re : raid 5 : perte données après create... récupération possible ?
Bonjour
Si ton "create" a fait des dégâts, je ne connais que la solution de restaurer la totalité de chaque disque. Mais tu n'as pas de sauvegarde faite avant l'incident.
Les traces ne donnent pas d'explication complémentaire pour le message d'erreur.
On va tenter de regarder le contenu du premier bloc raids de chaque disque.
sudo dd if=/dev/sda count=1 bs=4096 2>/dev/null | hexdump -C
sudo dd if=/dev/sdb count=1 bs=4096 2>/dev/null | hexdump -C
sudo dd if=/dev/sdc count=1 bs=4096 2>/dev/null | hexdump -C
sudo dd if=/dev/sdd count=1 bs=4096 2>/dev/null | hexdump -C
Mais je suis incompétent pour déchiffrer ce qui sera produit. Alors, si tu pouvais faire aussi la même chose sur un autre raid5 resté opérationnel, la comparaison pourrait aider.
Je pense que c'est le moment de contacter un professionnel de la réparation si tu ne te lances pas avec photorec. RMY est joignable par messagerie https://forum.ubuntu-fr.org/profile.php?id=20551 et https://forum.ubuntu-fr.org/viewtopic.php?id=447877
Dernière modification par geole (Le 31/07/2021, à 12:52)
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne