Squid 2894 Posted April 8, 2018 Share Posted April 8, 2018 (edited) 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 April 8, 2018 by Squid 3 1 Quote Link to post
kizer 138 Posted April 10, 2018 Share Posted April 10, 2018 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. 1 Quote Link to post
DZMM 236 Posted April 13, 2018 Share Posted April 13, 2018 (edited) Thanks for this - I've been using your script for a while successfully, but this is much cleaner Edited April 13, 2018 by DZMM Quote Link to post
GoChris 4 Posted April 14, 2018 Share Posted April 14, 2018 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! Quote Link to post
Squid 2894 Posted April 14, 2018 Author Share Posted April 14, 2018 (edited) 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, It's a ton less work, which is a big plus from my point of view 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. Edited April 14, 2018 by Squid Quote Link to post
wgstarks 213 Posted April 15, 2018 Share Posted April 15, 2018 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? Quote Link to post
Squid 2894 Posted April 15, 2018 Author Share Posted April 15, 2018 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. Quote Link to post
wgstarks 213 Posted April 15, 2018 Share Posted April 15, 2018 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. Quote Link to post
GoChris 4 Posted April 16, 2018 Share Posted April 16, 2018 This is great, thanks so much! Quote Link to post
Stupifier 40 Posted April 16, 2018 Share Posted April 16, 2018 Excellent. More I can get rid of the user script Quote Link to post
aptalca 325 Posted April 16, 2018 Share Posted April 16, 2018 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 Quote Link to post
Squid 2894 Posted April 16, 2018 Author Share Posted April 16, 2018 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. Quote Link to post
Spazhead 2 Posted May 6, 2018 Share Posted May 6, 2018 hi can someone tell me if my setting are correct, I want the mover to start when cache is at 80% Thanks Quote Link to post
Squid 2894 Posted May 6, 2018 Author Share Posted May 6, 2018 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) Quote Link to post
Spazhead 2 Posted May 6, 2018 Share Posted May 6, 2018 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! Quote Link to post
MvL 5 Posted May 11, 2018 Share Posted May 11, 2018 (edited) 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 May 11, 2018 by MvL Quote Link to post
Squid 2894 Posted May 11, 2018 Author Share Posted May 11, 2018 14 minutes ago, MvL said: Bug, user error? Enable log when not moving, and you'll see what's happening Quote Link to post
MvL 5 Posted May 11, 2018 Share Posted May 11, 2018 btw where is this log located? I know you can access the system log via the tools tab... Quote Link to post
Squid 2894 Posted May 12, 2018 Author Share Posted May 12, 2018 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 Quote Link to post
MvL 5 Posted May 12, 2018 Share Posted May 12, 2018 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.. Quote Link to post
MvL 5 Posted May 12, 2018 Share Posted May 12, 2018 Hmmm, I checked again and I found this: How often is the plugin checking if the drive threshold is reached? Quote Link to post
Squid 2894 Posted May 12, 2018 Author Share Posted May 12, 2018 Hmmm, I checked again and I found this: How often is the plugin checking if the drive threshold is reached?On the schedule you've set in mover settinga Quote Link to post
MvL 5 Posted May 12, 2018 Share Posted May 12, 2018 Ah, so I have to set "Force move of all files on a schedule" to yes and set a time? Quote Link to post
317 posts in this topic Last Reply
Recommended Posts
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.