Skip to contentSkip to conversation

Scrub errors unable to fixup (regular) error

DISCUSSION Hendrik Friedel 2 participants 3 messages Apr 2, 2023 – Apr 3, 2023 Btrfs file system

lore
Share & tools
lore
#0 lore raw

Hello,

after a scrub, I had these errors:

[Sa Apr  1 23:23:28 2023] BTRFS info (device sda3): scrub: started on devid 1
[Sa Apr  1 23:23:35 2023] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 0, flush 0, corrupt 63, gen 0
[Sa Apr  1 23:23:35 2023] BTRFS error (device sda3): unable to fixup (regular) error at logical 2244718592 on dev /dev/sda3
[Sa Apr  1 23:23:35 2023] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 0, flush 0, corrupt 64, gen 0
[Sa Apr  1 23:23:35 2023] BTRFS error (device sda3): unable to fixup (regular) error at logical 2260582400 on dev /dev/sda3
[Sa Apr  1 23:23:35 2023] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 0, flush 0, corrupt 65, gen 0
[Sa Apr  1 23:23:35 2023] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 0, flush 0, corrupt 66, gen 0
[Sa Apr  1 23:23:35 2023] BTRFS error (device sda3): unable to fixup (regular) error at logical 2260054016 on dev /dev/sda3
[Sa Apr  1 23:23:35 2023] BTRFS error (device sda3): unable to fixup (regular) error at logical 2259877888 on dev /dev/sda3
[Sa Apr  1 23:23:35 2023] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 0, flush 0, corrupt 67, gen 0
[Sa Apr  1 23:23:35 2023] BTRFS error (device sda3): unable to fixup (regular) error at logical 2259935232 on dev /dev/sda3
[Sa Apr  1 23:23:35 2023] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 0, flush 0, corrupt 68, gen 0
[Sa Apr  1 23:23:35 2023] BTRFS error (device sda3): unable to fixup (regular) error at logical 2264600576 on dev /dev/sda3
root@homeserver:~# btrfs scrub status /dev/sda3
UUID:             c1534c07-d669-4f55-ae50-b87669ecb259
Scrub started:    Sat Apr  1 23:24:01 2023
Status:           finished
Duration:         0:09:03
Total to scrub:   146.79GiB
Rate:             241.40MiB/s
Error summary:    csum=239
  Corrected:      0
  Uncorrectable:  239
  Unverified:     0
root@homeserver:~# btrfs fi show /dev/sda3
Label: none  uuid: c1534c07-d669-4f55-ae50-b87669ecb259
        Total devices 1 FS bytes used 146.79GiB
        devid    1 size 198.45GiB used 198.45GiB path /dev/sda3

Smartctl tells me:
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   100   100   000    Pre-fail  Always 

- 2
5 Reallocate_NAND_Blk_Cnt 0x0032 100 100 010 Old_age Always
- 2
9 Power_On_Hours 0x0032 100 100 000 Old_age Always
- 4930
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always
- 1864
171 Program_Fail_Count 0x0032 100 100 000 Old_age Always
- 0
172 Erase_Fail_Count 0x0032 100 100 000 Old_age Always
- 0
173 Ave_Block-Erase_Count 0x0032 049 049 000 Old_age Always
- 769
174 Unexpect_Power_Loss_Ct 0x0032 100 100 000 Old_age Always
- 22
183 SATA_Interfac_Downshift 0x0032 100 100 000 Old_age Always
- 0
184 Error_Correction_Count 0x0032 100 100 000 Old_age Always
- 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always
- 0
194 Temperature_Celsius 0x0022 068 051 000 Old_age Always
- 32 (Min/Max 9/49)
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always
- 2
197 Current_Pending_ECC_Cnt 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   100   100   000    Old_age   Always 
      -       0
202 Percent_Lifetime_Remain 0x0030   049   049   001    Old_age   Offline      -       51
206 Write_Error_Rate        0x000e   100   100   000    Old_age   Always 

- 0
246 Total_LBAs_Written 0x0032 100 100 000 Old_age Always
- 146837983747
247 Host_Program_Page_Count 0x0032 100 100 000 Old_age Always
- 4592609183
248 FTL_Program_Page_Count 0x0032 100 100 000 Old_age Always
- 4948954393
180 Unused_Reserve_NAND_Blk 0x0033 000 000 000 Pre-fail Always
- 2050
210 Success_RAIN_Recov_Cnt 0x0032 100 100 000 Old_age Always
- 0

What would you recommend wrt. the health of the drive (ssd) and to fix these errors?

Best regards,
Hendrik

#1 lore raw
Quoted 101 lines · Hendrik Friedel

Hello,

after a scrub, I had these errors:
[Sa Apr 1 23:23:28 2023] BTRFS info (device sda3): scrub: started on devid 1
[Sa Apr 1 23:23:35 2023] BTRFS error (device sda3): bdev /dev/sda3
errs: wr 0, rd 0, flush 0, corrupt 63, gen 0
[Sa Apr 1 23:23:35 2023] BTRFS error (device sda3): unable to fixup (regular) error at logical 2244718592 on dev /dev/sda3
[Sa Apr 1 23:23:35 2023] BTRFS error (device sda3): bdev /dev/sda3
errs: wr 0, rd 0, flush 0, corrupt 64, gen 0
[Sa Apr 1 23:23:35 2023] BTRFS error (device sda3): unable to fixup (regular) error at logical 2260582400 on dev /dev/sda3
[Sa Apr 1 23:23:35 2023] BTRFS error (device sda3): bdev /dev/sda3
errs: wr 0, rd 0, flush 0, corrupt 65, gen 0
[Sa Apr 1 23:23:35 2023] BTRFS error (device sda3): bdev /dev/sda3
errs: wr 0, rd 0, flush 0, corrupt 66, gen 0
[Sa Apr 1 23:23:35 2023] BTRFS error (device sda3): unable to fixup (regular) error at logical 2260054016 on dev /dev/sda3
[Sa Apr 1 23:23:35 2023] BTRFS error (device sda3): unable to fixup (regular) error at logical 2259877888 on dev /dev/sda3
[Sa Apr 1 23:23:35 2023] BTRFS error (device sda3): bdev /dev/sda3
errs: wr 0, rd 0, flush 0, corrupt 67, gen 0
[Sa Apr 1 23:23:35 2023] BTRFS error (device sda3): unable to fixup (regular) error at logical 2259935232 on dev /dev/sda3
[Sa Apr 1 23:23:35 2023] BTRFS error (device sda3): bdev /dev/sda3
errs: wr 0, rd 0, flush 0, corrupt 68, gen 0
[Sa Apr 1 23:23:35 2023] BTRFS error (device sda3): unable to fixup (regular) error at logical 2264600576 on dev /dev/sda3

root@homeserver:~# btrfs scrub status /dev/sda3
UUID:             c1534c07-d669-4f55-ae50-b87669ecb259
Scrub started:    Sat Apr  1 23:24:01 2023
Status:           finished
Duration:         0:09:03
Total to scrub:   146.79GiB
Rate:             241.40MiB/s
Error summary:    csum=239
   Corrected:      0
   Uncorrectable:  239
   Unverified:     0
root@homeserver:~# btrfs fi show /dev/sda3
Label: none  uuid: c1534c07-d669-4f55-ae50-b87669ecb259
         Total devices 1 FS bytes used 146.79GiB
         devid    1 size 198.45GiB used 198.45GiB path /dev/sda3

Smartctl tells me:
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 100 100 000 Pre-fail Always
- 2
5 Reallocate_NAND_Blk_Cnt 0x0032 100 100 010 Old_age Always
- 2
9 Power_On_Hours 0x0032 100 100 000 Old_age Always
- 4930
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always
- 1864
171 Program_Fail_Count 0x0032 100 100 000 Old_age Always
- 0
172 Erase_Fail_Count 0x0032 100 100 000 Old_age Always
- 0
173 Ave_Block-Erase_Count 0x0032 049 049 000 Old_age Always
- 769
174 Unexpect_Power_Loss_Ct 0x0032 100 100 000 Old_age Always
- 22
183 SATA_Interfac_Downshift 0x0032 100 100 000 Old_age Always
- 0
184 Error_Correction_Count 0x0032 100 100 000 Old_age Always
- 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always
- 0
194 Temperature_Celsius 0x0022 068 051 000 Old_age Always
- 32 (Min/Max 9/49)
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always
- 2
197 Current_Pending_ECC_Cnt 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 100 100 000 Old_age Always
- 0
202 Percent_Lifetime_Remain 0x0030 049 049 001 Old_age
Offline - 51
206 Write_Error_Rate 0x000e 100 100 000 Old_age Always
- 0
246 Total_LBAs_Written 0x0032 100 100 000 Old_age Always
- 146837983747
247 Host_Program_Page_Count 0x0032 100 100 000 Old_age Always
- 4592609183
248 FTL_Program_Page_Count 0x0032 100 100 000 Old_age Always
- 4948954393
180 Unused_Reserve_NAND_Blk 0x0033 000 000 000 Pre-fail Always
- 2050
210 Success_RAIN_Recov_Cnt 0x0032 100 100 000 Old_age Always
- 0

Quoted 3 lines

What would you recommend wrt. the health of the drive (ssd) and to fix these errors?

Scrub errors can only be corrected if the filesystem has redundancy. You have a single device which in the past defaulted to dup for metadata and single for data. If errors are in the data part, then the only way to fix it is to delete files containing these blocks.

Scrub error means data written to stable storage is bad. It is unlikely caused by SSD error, could be software bug, could be faulty RAM.

#2 lore raw

Hello,

thanks. I understand
Can you tell me, how I identify the affected files?

Best regards,
Hendrik

------ Originalnachricht ------
Von "Andrei Borzenkov" <[email protected]>
An "Hendrik Friedel" <[email protected]>
Cc "[email protected]" <[email protected]> Datum 03.04.2023 08:41:58
Betreff Re: Scrub errors unable to fixup (regular) error

Quoted 114 lines · Hendrik Friedel
Quoted 101 lines

Hello,

after a scrub, I had these errors:
[Sa Apr 1 23:23:28 2023] BTRFS info (device sda3): scrub: started on devid 1
[Sa Apr 1 23:23:35 2023] BTRFS error (device sda3): bdev /dev/sda3
errs: wr 0, rd 0, flush 0, corrupt 63, gen 0
[Sa Apr 1 23:23:35 2023] BTRFS error (device sda3): unable to fixup (regular) error at logical 2244718592 on dev /dev/sda3
[Sa Apr 1 23:23:35 2023] BTRFS error (device sda3): bdev /dev/sda3
errs: wr 0, rd 0, flush 0, corrupt 64, gen 0
[Sa Apr 1 23:23:35 2023] BTRFS error (device sda3): unable to fixup (regular) error at logical 2260582400 on dev /dev/sda3
[Sa Apr 1 23:23:35 2023] BTRFS error (device sda3): bdev /dev/sda3
errs: wr 0, rd 0, flush 0, corrupt 65, gen 0
[Sa Apr 1 23:23:35 2023] BTRFS error (device sda3): bdev /dev/sda3
errs: wr 0, rd 0, flush 0, corrupt 66, gen 0
[Sa Apr 1 23:23:35 2023] BTRFS error (device sda3): unable to fixup (regular) error at logical 2260054016 on dev /dev/sda3
[Sa Apr 1 23:23:35 2023] BTRFS error (device sda3): unable to fixup (regular) error at logical 2259877888 on dev /dev/sda3
[Sa Apr 1 23:23:35 2023] BTRFS error (device sda3): bdev /dev/sda3
errs: wr 0, rd 0, flush 0, corrupt 67, gen 0
[Sa Apr 1 23:23:35 2023] BTRFS error (device sda3): unable to fixup (regular) error at logical 2259935232 on dev /dev/sda3
[Sa Apr 1 23:23:35 2023] BTRFS error (device sda3): bdev /dev/sda3
errs: wr 0, rd 0, flush 0, corrupt 68, gen 0
[Sa Apr 1 23:23:35 2023] BTRFS error (device sda3): unable to fixup (regular) error at logical 2264600576 on dev /dev/sda3

root@homeserver:~# btrfs scrub status /dev/sda3
UUID:             c1534c07-d669-4f55-ae50-b87669ecb259
Scrub started:    Sat Apr  1 23:24:01 2023
Status:           finished
Duration:         0:09:03
Total to scrub:   146.79GiB
Rate:             241.40MiB/s
Error summary:    csum=239
   Corrected:      0
   Uncorrectable:  239
   Unverified:     0
root@homeserver:~# btrfs fi show /dev/sda3
Label: none  uuid: c1534c07-d669-4f55-ae50-b87669ecb259
         Total devices 1 FS bytes used 146.79GiB
         devid    1 size 198.45GiB used 198.45GiB path /dev/sda3

Smartctl tells me:
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 100 100 000 Pre-fail Always
- 2
5 Reallocate_NAND_Blk_Cnt 0x0032 100 100 010 Old_age Always
- 2
9 Power_On_Hours 0x0032 100 100 000 Old_age Always
- 4930
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always
- 1864
171 Program_Fail_Count 0x0032 100 100 000 Old_age Always
- 0
172 Erase_Fail_Count 0x0032 100 100 000 Old_age Always
- 0
173 Ave_Block-Erase_Count 0x0032 049 049 000 Old_age Always
- 769
174 Unexpect_Power_Loss_Ct 0x0032 100 100 000 Old_age Always
- 22
183 SATA_Interfac_Downshift 0x0032 100 100 000 Old_age Always
- 0
184 Error_Correction_Count 0x0032 100 100 000 Old_age Always
- 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always
- 0
194 Temperature_Celsius 0x0022 068 051 000 Old_age Always
- 32 (Min/Max 9/49)
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always
- 2
197 Current_Pending_ECC_Cnt 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 100 100 000 Old_age Always
- 0
202 Percent_Lifetime_Remain 0x0030 049 049 001 Old_age
Offline - 51
206 Write_Error_Rate 0x000e 100 100 000 Old_age Always
- 0
246 Total_LBAs_Written 0x0032 100 100 000 Old_age Always
- 146837983747
247 Host_Program_Page_Count 0x0032 100 100 000 Old_age Always
- 4592609183
248 FTL_Program_Page_Count 0x0032 100 100 000 Old_age Always
- 4948954393
180 Unused_Reserve_NAND_Blk 0x0033 000 000 000 Pre-fail Always
- 2050
210 Success_RAIN_Recov_Cnt 0x0032 100 100 000 Old_age Always
- 0

Quoted 3 lines

What would you recommend wrt. the health of the drive (ssd) and to fix these errors?

Scrub errors can only be corrected if the filesystem has redundancy. You have a single device which in the past defaulted to dup for metadata and single for data. If errors are in the data part, then the only way to fix it is to delete files containing these blocks.

Scrub error means data written to stable storage is bad. It is unlikely caused by SSD error, could be software bug, could be faulty RAM.