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.

Any way to cancel BTRFS scrub on failed disk?

Featured Replies

During a BTRFS scrub on an Unassigned Device, the disk started having issues and eventually dropped offline, it looks like.  I guess it came back as a different device (sdv instead of sdn), but now the log is slowly filling with scrub errors relating to the original device.

 

I've tried "btrfs scrub cancel" commands for /dev/sdn, /dev/sdn1, /dev/sdv, and /dev/sdv1.  In each case, it says it's not a mounted btrfs device.  Is there anything else I can try to cancel this scrub?

 

I have another active scrub on a different disk that should finish soon.  But I suspect that the scrub on the failed disk will continue and prevent cleanly stopping the array/shutting down.  Presumably it would eventually finish, but I don't have a sense of the time that would take or whether errors would completely fill the log before doing so.

diagnostics-20230522-1902.zip

Edited by fritzdis

Solved by fritzdis

13 minutes ago, fritzdis said:

I've tried "btrfs scrub cancel" commands for /dev/sdn, /dev/sdn1, /dev/sdv, and /dev/sdv1.  In each case, it says it's not a mounted btrfs device

You need to use the mount point for btrfs, so /mnt/cache if pool, or /mnt/diskX if array drive

Edited by apandey

  • Author

It's a disk that was mounted through Unassigned Devices.  Not part of cache or any pool.

  • Community Expert
btrfs scrub cancel /mnt/disks/UD-mount_point

 

  • Author
  • Solution
7 hours ago, JorgeB said:
btrfs scrub cancel /mnt/disks/UD-mount_point

 

That didn't work either (says not running).  But I was able to stop the array after the other scrub finished.  I unmounted all the UD devices except the failed disk (which wouldn't unmount).

 

The scrub errors kept appearing, so something was still going in the background, but since the only remaining mounted disk was the failed one, I went ahead and shut down the system to remove the disk.  Booting back up, there's nothing concerning in the syslog, so nothing more to do on my system.  And this is a rare enough situation that I doubt it needs to be addressed (since the array could be stopped, which was my main concern).

diagnostics-20230523-0910.zip

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.