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.

[Plugin] Mover Tuning

Featured Replies

ca.mover.tuning.png

CA Mover Tuning

 

 

 

A simple little plugin (mainly created for my own purposes) that will let you fine tune the operation of the mover script

  • On scheduled runs of mover, only actually move file(s) if the the cache drive is getting full (selectable threshold)
  • On scheduled runs of mover, optionally don't move if a parity check / rebuild is already in progress
  • Ability to completely disable the scheduled runs of mover if so desired (Not sure if there's much demand for this)
  • Manually executed runs of mover ("Move Now" button) can either follow the rules for schedules, or always move all files

 

After installation (any guesses as to how to install the plugin?), the default settings are set so that there is no difference as to how unRaid normally handles things.

 

You'll find it's settings within Settings - Scheduler

 

Edited by Squid

  • Replies 3.5k
  • Views 486k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • hugenbdd
    hugenbdd

    New Version 07-03-2023   HUGE thanks/Shout-out to @Swarles for the help with updating code fixes and adding a great new feature.  You can now have some customization per share.  It's great t

  • How to ignore a SINGLE file 1.) Find the path of the file you wish to ignore.     ls -ltr /mnt/cache/Download/complete/test.txt         root@Tower:/# ls -ltr /mnt/cache/Download/complete/test

  • Hi all, I made a new version of the plugin. This fork replaces @hugenbdd's plugin which is not maintained anymore and will land in community applications if your feedbacks are positive.  

Posted Images

Nice Job Squid. I really like your plugins and I like how this is/was a User.Plugin morphed into an actual Plugin that makes it really easy to click a few buttons and be done with it, but at the same time we can simply disable the mover without having to hack some code to change the cron. 

 

Here's a little screen shot with the Help menu enabled so others can check it out. :)

 

 

Capture.JPG

 

 

Thanks for this - I've been using your script for a while successfully, but this is much cleaner

Edited by DZMM

Thanks, if possible, I'd like what is possible with the schedule and script combo.

 

Move nightly everything, but once an hour (or whatever schedule), move files if it's hit a threshold. For when you are copying larger amounts and it would get too full to wait for the nightly move (for example). Unless I interpret it wrong, the plugin threshold option will not ever move if there is usage below the threshold.

 

Cheers!

  • Author
19 hours ago, GoChris said:

Thanks, if possible, I'd like what is possible with the schedule and script combo.

 

Move nightly everything, but once an hour (or whatever schedule), move files if it's hit a threshold. For when you are copying larger amounts and it would get too full to wait for the nightly move (for example). Unless I interpret it wrong, the plugin threshold option will not ever move if there is usage below the threshold.

 

Cheers!

ok.  I've left the forced move as a pure cron entry as,

  1. It's a ton less work, which is a big plus from my point of view :D
  2. If you're very astute, you can set "disable mover schedule", but also enable the forced schedule to allow you the utmost in scheduling flexibility that unRaid won't normally allow you.  (If you're running this plugin, then its flexibility you want, right?)

At the same time, I removed the option for Move Now follows the rules, as it didn't really make much sense in retrospect.

image.thumb.png.f779115d6b7aa18e755d3e47275f6416.png

Edited by Squid

Just want to be sure I'm understanding correctly. 

 

Currently using the user script to run mover at a percentage in addition to the scheduler running mover daily.

 

To use the tuning plugin for this I need to-

Disable mover schedule in mover settings.

Disable the user script.

Set a percentage in mover tuning.

Set a force mover cron schedule in mover tuning.

 

Do I have this right?

  • Author
2 minutes ago, wgstarks said:

Disable mover schedule in mover settings.

Disable the user script.

Set a percentage in mover tuning.

Set a force mover cron schedule in mover tuning.

Nope

 

You would leave mover running on whatever schedule you want (say every hour).  The rules for when to move are evaluated at that schedule.

 

If you want to force all the files to move (say once a day) regardless of the rules, then you enable force and set a schedule for it.

 

Regardless of any rules, hitting Move Now on Array Operations will always move the files.

 

A Forced schedule only makes sense if its less frequent than the regular mover schedule.

 

You would also get rid of the user script.

1 minute ago, Squid said:

Nope

 

You would leave mover running on whatever schedule you want (say every hour).  The rules for when to move are evaluated at that schedule.

 

If you want to force all the files to move (say once a day) regardless of the rules, then you enable force and set a schedule for it.

 

Regardless of any rules, hitting Move Now on Array Operations will always move the files.

 

A Forced schedule only makes sense if its less frequent than the regular mover schedule.

 

You would also get rid of the user script.

Outstanding. Thanks.

This is great, thanks so much!

Excellent. More I can get rid of the user script

Nice. I noticed that the new mover in 6.5.0 is different than it was and in how it worked. There were some annoyances such as 1) It doesn't report when it's done and 2) it thinks it's done when things are moved to the ram, but it may still take a long time to write those bits to the array especially if one has a large amount or ram.

 

Would this plugin help with either of those?

 

Thanks

  • Author
8 minutes ago, aptalca said:

Nice. I noticed that the new mover in 6.5.0 is different than it was and in how it worked. There were some annoyances such as 1) It doesn't report when it's done and 2) it thinks it's done when things are moved to the ram, but it may still take a long time to write those bits to the array especially if one has a large amount or ram.

 

Would this plugin help with either of those?

 

Thanks

No and no.  (Although you can turn on my own logging which will state when its going to skip running mover and when it does start it.  No logging on when its done though.

  • 3 weeks later...

hi can someone tell me if my setting are correct, I want the mover to start when cache is at 80%

 

Thanks

1453790531_Screenshot2018-05-0609_35_34.thumb.png.4b3a0132ddb703d8c229700aa21276a4.png

  • Author

That'll work.  Every hour it checks.  If the cache drive is 80%+ full, it'll move.   You don't have a force move cron set, so mover will only ever execute when the drive is at that threshhold

 

BTW, you should disable Mover logging.  No real purpose to it (MoverShedule settings, not Mover Tuning Settings)

1 hour ago, Squid said:

That'll work.  Every hour it checks.  If the cache drive is 80%+ full, it'll move.   You don't have a force move cron set, so mover will only ever execute when the drive is at that threshhold

 

BTW, you should disable Mover logging.  No real purpose to it (MoverShedule settings, not Mover Tuning Settings)

 

Great thanks for that!

 

 

I've set the threshold to 70% but I have the idea it's not moving files when that threshold is reached. It's the only option I enabled. Bug, user error?

Edited by MvL

  • Author
14 minutes ago, MvL said:

Bug, user error?

Enable log when not moving, and you'll see what's happening

Thanks! I'll do.

btw where is this log located? I know you can access the system log via the tools tab...

  • Author
6 hours ago, MvL said:

btw where is this log located? I know you can access the system log via the tools tab...

Its logged in the syslog

Okay. 

 

Can I check of this plugin is running? I can't find any comment's in the log. So I suspect it's not running..

Hmmm, I checked again and I found this:

 

466198236_ScreenShot2018-05-12at17_18_49.thumb.png.73a0bee94436269e40c836de255d46a0.png

 

How often is the plugin checking if the drive threshold is reached?

  • Author
Hmmm, I checked again and I found this:
 
466198236_ScreenShot2018-05-12at17_18_49.thumb.png.73a0bee94436269e40c836de255d46a0.png
 
How often is the plugin checking if the drive threshold is reached?
On the schedule you've set in mover settinga

Ah, so I have to set "Force move of all files on a schedule" to yes and set a time?

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.