Hallo,
ich hatte in den letzten Wochen immer mal wieder auf einigen Rechnern Probleme im Zusammenspiel mit btrfs und externen Festplatten. System entweder Debian (Stretch) oder ubuntu 18.04.
Da von dem Fehler anfangs nur 2 externe Festplatten betroffen waren, ging ich davon aus, dass sie defekt seien. Leider sind die dort verbauten USB-Controller nicht smart-kompatibel und da auf den Platten noch Garantie ist wollte ich die Gehäuse nicht aufbrechen.
Jetzt tritt seit gestern Abend das Problem auch auf meinem Tischrechner (ubuntu 18.04) beim Hochfahren auf:
Loaded: loaded (/etc/fstab; generated) Active: failed (Result: exit-code) since Sun 2018-09-16 07:02:48 CEST; 50s ago Where: /home What: /dev/disk/by-uuid/f2c3aeb8-129e-4bb3-b389-bd8d5222c8cb Docs: man:fstab(5) man:systemd-fstab-generator(8) Process: 625 ExecMount=/bin/mount /dev/disk/by-uuid/f2c3aeb8-129e-4bb3-b389-bd8d5222c8cb /home -t btrfs -o defaults,subvol=@home (code=exited, status=32) Sep 16 07:02:47 marsi systemd[1]: Mounting /home... Sep 16 07:02:48 marsi mount[625]: mount: /home: Falscher Dateisystemtyp, ungültige Optionen, der Superblock von /dev/sdc1 ist beschädigt, fehlende Kodierungsseite oder ein anderer Fehler. Sep 16 07:02:48 marsi systemd[1]: home.mount: Mount process exited, code=exited status=32 Sep 16 07:02:48 marsi systemd[1]: home.mount: Failed with result 'exit-code'. Sep 16 07:02:48 marsi systemd[1]: Failed to mount /home.
root@marsi:/home/pb# btrfsck /dev/sdc1
gibt
warning, bad space info total_bytes 56916705280 used 57704660992 warning, bad space info total_bytes 57990447104 used 58778402816 warning, bad space info total_bytes 59064188928 used 59852144640 warning, bad space info total_bytes 60137930752 used 60925825024 warning, bad space info total_bytes 61211672576 used 61999566848 warning, bad space info total_bytes 62285414400 used 63073308672 warning, bad space info total_bytes 63359156224 used 64147050496 warning, bad space info total_bytes 64432898048 used 65220792320 warning, bad space info total_bytes 65506639872 used 66294534144 warning, bad space info total_bytes 66580381696 used 67368267776 warning, bad space info total_bytes 67654123520 used 68442009600 warning, bad space info total_bytes 68727865344 used 69515751424 warning, bad space info total_bytes 69801607168 used 70589493248 warning, bad space info total_bytes 70875348992 used 72200065024 warning, bad space info total_bytes 71949090816 used 73273806848 warning, bad space info total_bytes 73022832640 used 74347548672 warning, bad space info total_bytes 74096574464 used 75421290496 warning, bad space info total_bytes 75170316288 used 76494794752 warning, bad space info total_bytes 76244058112 used 77568536576 warning, bad space info total_bytes 77317799936 used 78642278400 warning, bad space info total_bytes 78391541760 used 79715991552 warning, bad space info total_bytes 79465283584 used 80789733376 warning, bad space info total_bytes 80539025408 used 81863475200 warning, bad space info total_bytes 81612767232 used 82937204736 warning, bad space info total_bytes 82686509056 used 84010946560 warning, bad space info total_bytes 83760250880 used 85084688384 warning, bad space info total_bytes 84833992704 used 86158430208 warning, bad space info total_bytes 85907734528 used 87232172032 warning, bad space info total_bytes 86981476352 used 88305913856 warning, bad space info total_bytes 88055218176 used 89379655680 warning, bad space info total_bytes 89128960000 used 90453397504 warning, bad space info total_bytes 90202701824 used 91527139328 warning, bad space info total_bytes 91276443648 used 92600881152 warning, bad space info total_bytes 92350185472 used 93674622976 warning, bad space info total_bytes 93423927296 used 94748364800 warning, bad space info total_bytes 94497669120 used 95822106624 warning, bad space info total_bytes 95571410944 used 96895848448 warning, bad space info total_bytes 96645152768 used 97969590272 warning, bad space info total_bytes 97718894592 used 99043332096 warning, bad space info total_bytes 98792636416 used 100117073920 warning, bad space info total_bytes 99866378240 used 101190815744 warning, bad space info total_bytes 100940120064 used 102264557568 warning, bad space info total_bytes 102013861888 used 103338299392 warning, bad space info total_bytes 103087603712 used 104412041216 warning, bad space info total_bytes 104161345536 used 105485783040 warning, bad space info total_bytes 105235087360 used 106559524864 warning, bad space info total_bytes 106308829184 used 107633266688 warning, bad space info total_bytes 107382571008 used 108707008512 warning, bad space info total_bytes 108456312832 used 109780750336 warning, bad space info total_bytes 109530054656 used 110854467584 warning, bad space info total_bytes 110603796480 used 111928209408 warning, bad space info total_bytes 111677538304 used 113001951232 warning, bad space info total_bytes 112751280128 used 114075693056 warning, bad space info total_bytes 113825021952 used 115149434880 warning, bad space info total_bytes 114898763776 used 116223176704 warning, bad space info total_bytes 115972505600 used 117296918528 warning, bad space info total_bytes 117046247424 used 118370660352 warning, bad space info total_bytes 118119989248 used 119444402176 warning, bad space info total_bytes 119193731072 used 120518144000 warning, bad space info total_bytes 120267472896 used 122389843968 warning, bad space info total_bytes 121341214720 used 123463585792 warning, bad space info total_bytes 122414956544 used 124537327616 warning, bad space info total_bytes 123488698368 used 125611061248 warning, bad space info total_bytes 124562440192 used 126684803072 warning, bad space info total_bytes 125636182016 used 127758483456 warning, bad space info total_bytes 126709923840 used 128832155648 warning, bad space info total_bytes 127783665664 used 129905864704 warning, bad space info total_bytes 128857407488 used 130979479552 warning, bad space info total_bytes 129931149312 used 132053102592 warning, bad space info total_bytes 131004891136 used 133126844416 warning, bad space info total_bytes 132078632960 used 134200586240 warning, bad space info total_bytes 133152374784 used 135274323968 warning, bad space info total_bytes 134226116608 used 136348061696 warning, bad space info total_bytes 135299858432 used 137421414400 warning, bad space info total_bytes 136373600256 used 138495094784 warning, bad space info total_bytes 137447342080 used 139567931392 warning, bad space info total_bytes 138521083904 used 140641673216 warning, bad space info total_bytes 139594825728 used 141715415040 warning, bad space info total_bytes 140668567552 used 142789156864 warning, bad space info total_bytes 141742309376 used 143862898688 warning, bad space info total_bytes 142816051200 used 144936640512 warning, bad space info total_bytes 143889793024 used 146010382336 warning, bad space info total_bytes 144963534848 used 147084124160 warning, bad space info total_bytes 146037276672 used 148157865984 warning, bad space info total_bytes 147111018496 used 149231599616 warning, bad space info total_bytes 148184760320 used 150305341440 warning, bad space info total_bytes 149258502144 used 151379046400 warning, bad space info total_bytes 150332243968 used 152452780032 warning, bad space info total_bytes 151405985792 used 153526517760 warning, bad space info total_bytes 152479727616 used 154600259584 warning, bad space info total_bytes 153553469440 used 155673993216 warning, bad space info total_bytes 154627211264 used 156747714560 warning, bad space info total_bytes 155700953088 used 157821435904 warning, bad space info total_bytes 156774694912 used 158895165440 warning, bad space info total_bytes 157848436736 used 159968870400 warning, bad space info total_bytes 158922178560 used 161042608128 warning, bad space info total_bytes 159995920384 used 162116333568 warning, bad space info total_bytes 161069662208 used 163190063104 warning, bad space info total_bytes 162143404032 used 164263796736 warning, bad space info total_bytes 163217145856 used 165337538560 warning, bad space info total_bytes 164290887680 used 166411280384 warning, bad space info total_bytes 165364629504 used 167485001728 warning, bad space info total_bytes 166438371328 used 168558698496 warning, bad space info total_bytes 167512113152 used 169632243712 warning, bad space info total_bytes 168585854976 used 170705956864 warning, bad space info total_bytes 169659596800 used 171779629056 warning, bad space info total_bytes 170733338624 used 172853301248 warning, bad space info total_bytes 171807080448 used 173927034880 warning, bad space info total_bytes 172880822272 used 175000711168 warning, bad space info total_bytes 173954564096 used 176073650176 warning, bad space info total_bytes 175028305920 used 177146327040 warning, bad space info total_bytes 176102047744 used 178219978752 warning, bad space info total_bytes 177175789568 used 179293708288 warning, bad space info total_bytes 178249531392 used 180367446016 warning, bad space info total_bytes 179323273216 used 181441187840 warning, bad space info total_bytes 180397015040 used 182514847744 warning, bad space info total_bytes 181470756864 used 183588003840 warning, bad space info total_bytes 182544498688 used 184661676032 parent transid verify failed on 572882944 wanted 20571 found 21236 parent transid verify failed on 572882944 wanted 20571 found 21236 parent transid verify failed on 572882944 wanted 20571 found 21236 parent transid verify failed on 572882944 wanted 20571 found 21236 Ignoring transid failure extent buffer leak: start 58310656 len 16384 ERROR: cannot open file system
aus. Alle versuche das Dateisystem zu reparieren (btrfscheck --repair /dev/sdc1) brachten bisher das gleiche Ergebnis.
Ein manuelles Einhägen scheitert ebenfalls mount /dev/sdc1 /mnt/test/ mount: /mnt/test/: Falscher Dateisystemtyp, ungültige Optionen, der Superblock von /dev/sdc1 ist beschädigt, fehlende Kodierungsseite oder ein anderer Fehler.
1 | root@marsi:/home/pb# btrfs filesystem show |
gibt jedoch
Label: none uuid: f2c3aeb8-129e-4bb3-b389-bd8d5222c8cb Total devices 1 FS bytes used 275.20GiB devid 1 size 2.73TiB used 368.02GiB path /dev/sdc1
aus.
Aktuell laufender Kernel ist:
Linux marsi 4.15.0-34-generic #37-Ubuntu SMP Mon Aug 27 15:21:48 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Der Fehler tritt jedoch bei
Linux marsi 4.15.0-33-generic #36-Ubuntu SMP Wed Aug 15 16:00:05 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
in Form von
[ 24.829652] BTRFS error (device sdc1): parent transid verify failed on 572882944 wanted 20571 found 21236 [ 24.833392] BTRFS error (device sdc1): parent transid verify failed on 572882944 wanted 20571 found 21236 [ 24.833420] BTRFS error (device sdc1): failed to read block groups: -5 [ 24.868275] BTRFS error (device sdc1): open_ctree failed mount: /home: Falscher Dateisystemtyp, ungültige Optionen, der Superblock von /dev/sdc1 ist beschädigt, fehlende Kodierungsseite oder ein anderer Fehler.
auch auf.
Btrfs-Version ist: btrfs-progs v4.15.1
Ebenfalls versucht habe ich noch:
1 2 3 | mount -t btrfs -o rootflags=recovery,nospace_cache,clear_cache /dev/sdc1 /mnt/test/ mount -t btrfs -o recovery,nospace_cache,nospace_cache /dev/sdc1 /mnt/test/ mount -t btrfs -o rootflags=recovery,nospace_cache /dev/sdc1 /mnt/test/ |
Das Ergebnis bei allen 3 Varianten:
mount: /mnt/test: Falscher Dateisystemtyp, ungültige Optionen, der Superblock von /dev/sdc1 ist beschädigt, fehlende Kodierungsseite oder ein anderer Fehler.
(Quelle für die Idee war: https://askubuntu.com/questions/157917/how-do-i-recover-a-btrfs-partition-that-will-not-mount)
Hintergrund/Geschichte
Das System verhielt sich beim letzten Start unauffällig und lief bisher gut. Da es jedoch die letzten 3 Wochen inaktiv war, ließ ich updates durchlaufen und startete es danach neu. Danach lief es ebenfalls noch fehlerfrei und ich fuhr es herunter (shutdown -h now). Als ich es gestern abend wieder starten wollte traten die obigen Fehler auf. Seit dem suche ich die Ursache.
Hardware
Relativ (!) ausgeschlossen habe ich als erstes einen Fehler an der Festplatte. Denn zum einen Tritt der Fehler nicht nur auf diesem System auf (also auch auf einer anderen Festplatte), zum anderen sagt smart nach durchgeführtem test (smartctl --test=long /dev/sdc)
root@marsi:/home/pb# smartctl -a /dev/sdc smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-33-generic] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Family: Western Digital Red Device Model: WDC WD30EFRX-68AX9N0 Serial Number: WD-WMC1T2630487 LU WWN Device Id: 5 0014ee 6add7933e Firmware Version: 80.00A80 User Capacity: 3.000.592.982.016 bytes [3,00 TB] Sector Sizes: 512 bytes logical, 4096 bytes physical 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: Sun Sep 16 08:42:32 2018 CEST SMART support is: Available - device has SMART capability. SMART support is: Enabled === START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED 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% 34111 - # 2 Short offline Completed without error 00% 34103 - # 3 Short offline Completed without error 00% 34103 - # 4 Extended offline Aborted by host 90% 34103 - # 5 Short offline Interrupted (host reset) 70% 33857 -
und einmal die gesamte Ausgabe
root@marsi:/home/pb# smartctl -a /dev/sdc smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-33-generic] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Family: Western Digital Red Device Model: WDC WD30EFRX-68AX9N0 Serial Number: WD-WMC1T2630487 LU WWN Device Id: 5 0014ee 6add7933e Firmware Version: 80.00A80 User Capacity: 3.000.592.982.016 bytes [3,00 TB] Sector Sizes: 512 bytes logical, 4096 bytes physical 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: Sun Sep 16 08:42:32 2018 CEST SMART support is: Available - device has SMART capability. SMART support is: Enabled === START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED General SMART Values: Offline data collection status: (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: (41280) 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: ( 414) minutes. Conveyance self-test routine recommended polling time: ( 5) minutes. SCT capabilities: (0x70bd) 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 - 93 3 Spin_Up_Time 0x0027 176 173 021 Pre-fail Always - 6166 4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 213 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 054 054 000 Old_age Always - 34115 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 - 208 192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 113 193 Load_Cycle_Count 0x0032 200 200 000 Old_age Always - 99 194 Temperature_Celsius 0x0022 109 094 000 Old_age Always - 41 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 200 200 000 Old_age Offline - 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 Extended offline Completed without error 00% 34111 - # 2 Short offline Completed without error 00% 34103 - # 3 Short offline Completed without error 00% 34103 - # 4 Extended offline Aborted by host 90% 34103 - # 5 Short offline Interrupted (host reset) 70% 33857 - 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.
Hat irgendwer eine Idee wie ich noch der Ursache des Problems auf die Spur kommen kann?
Liebe Grüße
urias
PS: Ein Backup habe ich.