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.

Log Errors - UNRAID kernel: Buffer I/O error on dev sr0, logical block

Featured Replies

I attached my log shortly after startup.  I see several errors that read: 

 

"Mar 18 17:37:04 UNRAID kernel: Buffer I/O error on dev sr0, logical block #####, async page read."

 

With various different numbers for the logical block.  I attached the log.  Any thoughts on what is causing these errors and how to fix it?

 

Thanks!

syslog.txt

  • Community Expert

That's from an optical drive, just disconnect it if not needed (it can also be from a virtual IPMI drive, you should also be able to disable it)

  • 2 weeks later...
On 3/18/2023 at 6:05 PM, Dustin said:

I attached my log shortly after startup.  I see several errors that read: 

 

"Mar 18 17:37:04 UNRAID kernel: Buffer I/O error on dev sr0, logical block #####, async page read."

 

With various different numbers for the logical block.  I attached the log.  Any thoughts on what is causing these errors and how to fix it?

 

Thanks!

syslog.txt 200.22 kB · 1 download


This is due to missing/broken UDEV rules. You can add a tweaked persistent-storage udev rule to /etc/udev/rules.d/ and reload udev to make the issue stop.

to fix this, just download the rules, copy rules to server, then in unraid root terminal go to folder where rules were placed and:

# mv 60-persistent-storage.rules /etc/udev/rules.d/
# udevadm control --reload-rules && udevadm trigger


Now this fix isn't permanent. If you want it to be permanent, you need the user scripts plugin and set the plugin to echo the contents of that file into /etc/udev/rules.d/60-persistent-rules.storage and then run the reload commands.

https://forum.makemkv.com/forum/viewtopic.php?t=25357
https://forum.manjaro.org/t/udev-persistent-persistent-storage-rules-for-dev-sr-hangs-udev/108411/2
https://github.com/systemd/systemd/pull/23127 (which was ridiculously ignored and the kernel/media blamed for udev not handling exceptions)

I actually use a docker that monitors an external Bluray drive and rips discs the moment they're inserted and it texts my phone when its done so I can move on to the next one.  My family loves movies and we're always digging in the bargain bin or buying movies when rental stores sell them off or go out of business. Then I put the media away after ripping it because my children liked to use them like Frisbees. So now they're only allowed to watch movies via the Plex server on their Roku. Optical Storage isn't dead!
 

60-persistent-storage.rules

Edited by Darksurf

  • 2 months later...
  • Author

I don't have an optical drive.   I do have a 3.5in floppy drive, which I never use.  There is also IPMI built within the motherboard that is enabled.  Since I don't have an optical drive, is it likely its caused by my floppy drive, or by IPMI?

  • 5 months later...

@Darksurf Thank you,

 

I'm a total noob, how do I "set the plugin to echo the contents of that file into /etc/udev/rules.d/60-persistent-rules.storage"
I have the user scripts plugin and your rule set.

Thank you for your time,

DL

Ok I made a new share called systemfiles, then I use cat to copy the file at server start using user scripts.

 

Hopefully this works

 

#!/bin/bash
echo Running Persistant Storage Rules
cat /mnt/user/systemfiles/60-persistent-storage.rules > /etc/udev/rules.d/60-persistent-storage.rules
udevadm control --reload-rules && udevadm trigger
echo Finished

 

  • Community Expert

Keep in mind that having this can cause issues with a future Unraid update, so any devices issues after updating try to remember disabling the script first and retesting.

  • 1 year later...
On 12/3/2023 at 6:15 PM, dirkinthedark said:

Ok I made a new share called systemfiles, then I use cat to copy the file at server start using user scripts.

 

Hopefully this works

 

#!/bin/bash
echo Running Persistant Storage Rules
cat /mnt/user/systemfiles/60-persistent-storage.rules > /etc/udev/rules.d/60-persistent-storage.rules
udevadm control --reload-rules && udevadm trigger
echo Finished

 

 

Curious if this worked for you.

I'm wondering what the symptom of this other than looking at the log.

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.