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.

[6.12.6] Scrub schedule still active for old zfs pool name

Featured Replies

Until recently my unraid build consisted of the array and a zfs mirror pool "ssd".

I then added a second mirror pool "bravo" and renamed "ssd" to "alpha" via the GUI.

 

Last week in the syslog I noticed that there still seems to be an active scrub schedule for "ssd" that exits with status 1. I assume that means it fails run because there is no pool with that name anymore:

 

Quote

Feb 12 19:00:01 FelixServer crond[1139]: exit status 1 from user root /usr/local/emhttp/plugins/dynamix/scripts/zfs_scrub start ssd &> /dev/null

 

As there is no such pool I cant deactivate the schule via the GUI.

 

I found the following entry in /etc/cron.d/root after searching the forums where this cron job might be stored and poking around with midnight commander:
 

Quote

 

# Generated zfs scrub ssd schedule:

0 19 * * 1 /usr/local/emhttp/plugins/dynamix/scripts/zfs_scrub start ssd &> /dev/null

 

 

But even after deleting the lines in the root file the schedule still seems to run as I still got the error today, also it seems to restore those lines.

 

Is there a way to permanently disable the scrub of "ssd" without the GUI?

felixserver-diagnostics-20240212-2236.zip

Edited by mo0oh
Added Unraid version to title

Solved by trurl

  • mo0oh changed the title to [6.12.6] Scrub schedule still active for old zfs pool name
  • Community Expert
  • Solution

Check in config/plugins/dynamix on the flash drive for those cron entries. I don't use zfs but I know others are there.

  • Author

Hey,

thanks for your response.

Indeed there is a file in config/plugins/dynamix named "scrub_ssd.cron" along with the ones for my current pools.

Is it safe to just delete the file? Should that fix the issue?

  • Community Expert
1 minute ago, mo0oh said:

safe to just delete the file?

I don't use zfs, are there separate cron files for each pool?

 

I have one for my btrfs pool named cache, and it is named for that pool, but its contents also specify the scrub command to scrub that particular pool.

  • Author

Yes, there are also files named "scrub_alpha.cron" and "scrub_bravo.cron".

The file "scrub_ssd.cron" contained the exact lines that were also present in /etc/cron.d/root I was trying to remove and nothing else.

 

For now i made a flash backup and deleted the file and also the entries in /etc/cron.d/root.

Now I have to wait a week to see if it really cleared any traces of the schedule but I think that should be it.

 

Will report back if the issue still is present the next scrub interval.

For now this seems to be the solution.

 

Thank you very much!

Edited by mo0oh

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.