Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[SOLVED] kernel: BTRFS error: bdev /dev/sdi1 errs: wr 0, rd 62020, flush 0, corrupt 0, gen 0

Featured Replies

Aug 2 21:29:56 cybertron kernel: BTRFS error (device sdi1): bdev /dev/sdi1 errs: wr 0, rd 62020, flush 0, corrupt 0, gen 0

 

Hey Unraid team - can you tell me what this is about? New samsung ssd 1tb drive.  Ran a btrfs scrub, no errors. Smart also not reporting any issues.

 

 

 

Edited by repomanz

  • Community Expert

Syslog rotated so can't see start of the problem, see here to reset errors and to monitor for more in the future.

  • Author
3 hours ago, johnnie.black said:

Syslog rotated so can't see start of the problem, see here to reset errors and to monitor for more in the future.

output of this btrfs dev stats /mnt/cache

root@cybertron:~# btrfs dev stats /mnt/cache
[/dev/sdg1].write_io_errs    0
[/dev/sdg1].read_io_errs     0
[/dev/sdg1].flush_io_errs    0
[/dev/sdg1].corruption_errs  0
[/dev/sdg1].generation_errs  0

I can't find it again but when was reading could be a kernel bug for read ahead?

 

  • Community Expert

Current cache is sdg, you need to adjust the mount point, what was sdi being used for? It's not on current diags, suggesting that it might have dropped or been removed since.

  • Author
4 minutes ago, johnnie.black said:

Current cache is sdg, you need to adjust the mount point, what was sdi being used for? It's not on current diags, suggesting that it might have dropped or been removed since.

ok - i'm guessing I did something wrong then.   I had an ssd (formerly sdg - sandisk) that crashed. 

 

1) shutdown system

2) removed bad ssd

3) added new ssd

4) brought up system

5) stopped array

6) changed cache to the new samsung ssd

 

Did I do something wrong here?

Edited by repomanz

  • Community Expert

Something is wrong but like mentioned can't see the beginning of the problem, reboot and post new diags if there are still errors.

  • Author
2 hours ago, johnnie.black said:

Something is wrong but like mentioned can't see the beginning of the problem, reboot and post new diags if there are still errors.

guess i needed a step 7.  reboot.  Don't see the errors in my logs anymore.  attaching diags.

 

Edited by repomanz

  • Community Expert
37 minutes ago, repomanz said:

guess i needed a step 7.  reboot.

It shouldn't be needed if everything was done correctly, but as long as everything's good now...

  • Author
7 minutes ago, johnnie.black said:

It shouldn't be needed if everything was done correctly, but as long as everything's good now...

my steps above are correct, right? 

Also what does this mean?  Total to scrub is bad or just a metric? Ran brtfs scrub previously; came back with no errors.

 

image.png.c2eae45d2ea48c3d8a0b06bc288f0888.png

Edited by repomanz

  • Community Expert
21 minutes ago, repomanz said:

my steps above are correct, right? 

Look OK if it was a a replacement without copying data from the old device.

 

22 minutes ago, repomanz said:

Total to scrub is bad or just a metric?

That refers to the used size, not device capacity.

  • Author
2 minutes ago, johnnie.black said:

Look OK if it was a a replacement without copying data from the old device.

 

That's correct.  My previous SSD started reporting reported uncorrected errors, within 6 hours the drive was completely dead.    Do you have any tips on how to properly backup the VM lib and docker img files (basically containers and vm information)?  I'm already using the plugin that backs up appdata (which i restored from).

 

  • Community Expert

No need to backup the docker image, I believe that CA appdata backup already has the option to backup libvirt.

  • Author

totally missed that previously. Updated now :)

think we're all good here.

  • JorgeB changed the title to [SOLVED] kernel: BTRFS error: bdev /dev/sdi1 errs: wr 0, rd 62020, flush 0, corrupt 0, gen 0
  • 4 years later...

I'm having the issue in a similar matter, the disk is passing tests and i've changed the cable, is the disk failing and so should i just RMA it back (lessthan two years old) is there seomehting somewhere else that could be causeing the issue. thanks for help in advance.

I'm running 7.0.0.

server-syslog-20250604-1312.zip

  • Community Expert

You didn't give diagnostics but an incomplete syslog, so the initial point isn't shown. But usually it's filesystem corruption rather than an issue with the drive itself, btrfs corruption is usually due to RAM problems so running a memtest would be a good idea.

  • Community Expert

Please post the full diags, but based on the syslog, one of the pool devices (/dev/sde) dropped offline.

sorry diagnotics here

I'ce correctly de attached and then re-atttached the drive - including full parity write back tot he disk, it goes for a few weeks then just drops off.

I've changed the cable in the system.

This is the thrid time it has done this.

server-diagnostics-20250604-1951.zip

Edited by Belcraig
new details

  • Community Expert

Jun 3 06:21:36 Server kernel: BTRFS error (device sdk1): error writing primary super block to device 2

Jun 3 06:21:36 Server kernel: BTRFS warning (device sdk1): lost page write due to IO error on /dev/sde1 (-5)

Jun 3 06:21:36 Server kernel: BTRFS error (device sdk1): error writing primary super block to device 2

Jun 3 06:21:36 Server kernel: BTRFS warning (device sdk1): lost page write due to IO error on /dev/sde1 (-5)

Jun 3 06:21:36 Server kernel: BTRFS error (device sdk1): error writing primary super block to device 2

Jun 3 06:21:36 Server kernel: BTRFS warning (device sdk1): lost page write due to IO error on /dev/sde1 (-5)

Jun 3 06:21:36 Server kernel: BTRFS error (device sdk1): error writing primary super block to device 2

Jun 3 06:21:36 Server kernel: sd 5:0:5:0: [sde] Synchronizing SCSI cache

Jun 3 06:21:36 Server kernel: sd 5:0:5:0: [sde] Synchronize Cache(10) failed: Result: hostbyte=0x04 driverbyte=DRIVER_OK

Jun 3 06:21:36 Server kernel: scsi 5:0:5:0: rejecting I/O to dead device

This device dropped offline, check/replace its cables then scrub the pool and post the results.

ok so i noticed that when i was changing the cable that the heat sink on the card looked loose so i have also replaced the raid card - operating in HBA mode.

Parity has rebuilt the drive and the array lloks to be fine, but in a few weeks i'm expecting the drive to go again. attached are the diagnostics.

server-diagnostics-20250609-1835.zip

  • Community Expert

Scrub the pool and post the results from the GUI.

the main array you mean its an xfs filesystem, i dont think it has scrub.. do i need to repair it

i've done the cache.

UUID:             01cc169c-ab3e-4f2b-86e3-5382b85f07e7
Scrub started:    Mon Jun  9 18:57:00 2025
Status:           finished
Duration:         0:22:49
Total to scrub:   902.78GiB
Rate:             675.26MiB/s
Error summary:    verify=444 csum=285513
  Corrected:      285957
  Uncorrectable:  0
  Unverified:     0

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.