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

2 minutes ago, hugenbdd said:

It's also possible that a share got changed from yes to no without mover running.  Leaving them orphaned.  

 

I don't think its best to be built into the plug-in.  Probably better to use something like Midnight Commander.  

 

However, I can still be convinced to look into it for a good reason.

Also this too, that can happen.

  • 3 weeks later...
  • Replies 3.6k
  • Views 517.4k
  • 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

Apologies if this has already been covered in this thread but I was struggling with what to search for.

 

Is there a way to prioritize a share so that Mover acts on it more frequently than the default Mover settings? My situation is that I have the settings to generally not have the Mover run unless the cache is running low on disk space. But, I have Nextcloud uploads going to cache and I'd like those to get moved to the array a bit more often than all the other stuff on the cache.

Not from my plug-in.

 

If you have a lot of experience you can create your own command line and pipe the output to the mover binary.  

 

Something like below in a cron entry. (User scripts plug-in).  However... you won't have any of the supporting code around it.  i.e. to see if mover is currently running.

 

find "/mnt/cache/<YOURSHAREHERE>" -depth | /usr/local/sbin/move -d 1

 

 

 

 

21 hours ago, hugenbdd said:

Not from my plug-in.

 

If you have a lot of experience you can create your own command line and pipe the output to the mover binary.  

 

Something like below in a cron entry. (User scripts plug-in).  However... you won't have any of the supporting code around it.  i.e. to see if mover is currently running.

 

find "/mnt/cache/<YOURSHAREHERE>" -depth | /usr/local/sbin/move -d 1

 

Ah, no worries. Probably a bit outside my technical abilities at this stage. Thanks!

Edited by mudsloth

Hmm, will we need an updated plugin for 6.10? It appears to not apply the tuning settings and just uses Unraid's default mover.

Possibly.  I don't have 6.10 yet.  I'm still on 6.9.1

I'll update my dev box this week.

 

What might have happened is that 6.10 provided a new mover script.  Overwritting the plug-in's script which just points to the plug-in's new script or the original script.  You might be able to get the plug-in working by removing then re-installing the plug-in.

 

33 minutes ago, hugenbdd said:

Possibly.  I don't have 6.10 yet.  I'm still on 6.9.1

I'll update my dev box this week.

 

What might have happened is that 6.10 provided a new mover script.  Overwritting the plug-in's script which just points to the plug-in's new script or the original script.  You might be able to get the plug-in working by removing then re-installing the plug-in.

 

Ahh, I see! No luck on removing / re-adding. Didn't try a reboot between those two, however.

36 minutes ago, hugenbdd said:

What might have happened is that 6.10 provided a new mover script.  Overwritting the plug-in's script which just points to the plug-in's new script or the original script.  You might be able to get the plug-in working by removing then re-installing the plug-in.

Unraid update would have required a reboot. In fact, the new version isn't loaded until the next boot.

 

After the new version loads, the built-in mover script is in RAM just like the rest of the OS.

 

Then any installed plugins are applied.

1 hour ago, hugenbdd said:

Possibly.  I don't have 6.10 yet.  I'm still on 6.9.1

I'll update my dev box this week.

 

What might have happened is that 6.10 provided a new mover script.  Overwritting the plug-in's script which just points to the plug-in's new script or the original script.  You might be able to get the plug-in working by removing then re-installing the plug-in.

 

not sure if this helps but, I verified /usr/local/sbin/mover is the plugin and mover.old is the original. calling mover by itself doesn't work as intended but running /usr/local/emhttp/plugins/ca.mover.tuning/mover.php with the parameters I want does. not sure where the disconnect is happening.

28 minutes ago, classiccrime said:

not sure if this helps but, I verified /usr/local/sbin/mover is the plugin and mover.old is the original. calling mover by itself doesn't work as intended but running /usr/local/emhttp/plugins/ca.mover.tuning/mover.php with the parameters I want does. not sure where the disconnect is happening.

Is it the button in the scheduler page that isn't working or when it is run at it's scheduled time?

 

(Sorry, will play around with tonight/tomorrow)

50 minutes ago, classiccrime said:

not sure if this helps but, I verified /usr/local/sbin/mover is the plugin and mover.old is the original. calling mover by itself doesn't work as intended but running /usr/local/emhttp/plugins/ca.mover.tuning/mover.php with the parameters I want does. not sure where the disconnect is happening.

Forgot.. (I have to many options in the plugin....)

 

But do you have this set? (Second to last question)

Move Now button follows plug-in filters: Yes

5 minutes ago, hugenbdd said:

Forgot.. (I have to many options in the plugin....)

 

But do you have this set? (Second to last question)

Move Now button follows plug-in filters: Yes

Oh my goodness! My apologies. That was it. Is that a new-ish option?

4 minutes ago, classiccrime said:

Oh my goodness! My apologies. That was it. Is that a new-ish option?

Newer...

Previously I had a separate button, but Squid gave me direction in how to add this back in so I added it as an option.

Just now, hugenbdd said:

Newer...

Previously I had a separate button, but Squid gave me direction in how to add this back in so I added it as an option.

Understood, thank you for the help! I was running an older plugin version then updated it when I went to 6.10

  • 3 weeks later...

Ok Guys/Girls

 

i can't figure out why my mover isn't working.

i want to keep my ssd as empty as i can 

 

can you help with settings to make it move everything hourly?

and keep my ssd drive 25% full?

 

Screenshot_8.thumb.png.73e6ef386a29eb00a5848fa85a4194db.png

Screenshot_9.png

Edited by Vader666

Try setting this to 0 and not 1.

Move files that are greater than this many days old:

 

You can also run in test mode and review the files it will be selecting.  (see the log file)

20 minutes ago, hugenbdd said:

Try setting this to 0 and not 1.

Move files that are greater than this many days old:

 

You can also run in test mode and review the files it will be selecting.  (see the log file)

 OK i just changed that setting and hit start so i will see what happens

thank you 

26 minutes ago, hugenbdd said:

Try setting this to 0 and not 1.

Move files that are greater than this many days old:

 

You can also run in test mode and review the files it will be selecting.  (see the log file)

  so it gets to 60gig free space and stops moving 

 

Just now, Vader666 said:

  so it gets to 60gig free space and stops moving 

 

 

Enable logging, then check what files are left.
 

Do you have other shares using this cache drive?  (i.e. appdata)

3 minutes ago, Vader666 said:

  so it gets to 60gig free space and stops moving 

 

And you probably want to set this to no.

 

Move files off cache based on age?

4 minutes ago, hugenbdd said:

And you probably want to set this to no.

 

Move files off cache based on age?

ok i will change that 

 

also not sure how to check the logging and what files are left.  super new to all of this 

 

 

Screenshot_10.png

1 minute ago, Vader666 said:

ok i will change that 

 

also not sure how to check the logging and what files are left.  super new to all of this 

 

 

 

Mover Logging : Enabled. (Up top, schedule area)

 

You can see in your last pic the "mover started.      Mover Finished". at the bottom.  That will expand to a lot more.

 

You will need to browse the individual cache drive or use the console and issue ls commands on the cache.

https://www.tecmint.com/15-basic-ls-command-examples-in-linux/

 

also

https://www.techrepublic.com/article/linux-directory-navigation-tips-and-tricks/#:~:text=To change to your home,and then press [Enter].

9 minutes ago, hugenbdd said:

Mover Logging : Enabled. (Up top, schedule area)

 

You can see in your last pic the "mover started.      Mover Finished". at the bottom.  That will expand to a lot more.

 

You will need to browse the individual cache drive or use the console and issue ls commands on the cache.

https://www.tecmint.com/15-basic-ls-command-examples-in-linux/

 

also

https://www.techrepublic.com/article/linux-directory-navigation-tips-and-tricks/#:~:text=To change to your home,and then press [Enter].

ok cool i am trying to figure this out 

thank you 

On 3/16/2021 at 9:33 AM, hugenbdd said:

It's because I left ECHO statements in the script.  These help me catch bugs for the new release.

 

I will release a new version in the next few days that will comment out the echo statements.

 

Hello! Has this happened again? I'm getting emails when the daily cron job runs that say "Mover not Needed." I don't get one every day, I guess only when the mover is not needed.😃

 

Thanks

 

Hey there! I have this plugin installed and set to run the mover at 60% cache utilization with a run frequency of every 3 hours. However, my cache keeps getting over 60% and failing to move. If I run the mover manually it works fine so I changed the 'move now button follows plugin fliters’ option to ‘yes’ and ran it again. Here’s my output:

 

Sep 27 19:05:59 unRaid root: mvlogger: *********************************MOVER START*******************************
Sep 27 19:05:59 unRaid root: mvlogger: Age supplied
Sep 27 19:05:59 unRaid root: mvlogger: Size supplied
Sep 27 19:05:59 unRaid root: mvlogger: Sparness supplied
Sep 27 19:05:59 unRaid root: mvlogger: No Skipfiles Argument Supplied
Sep 27 19:05:59 unRaid root: mvlogger: No Skipfiles Argument Supplied
Sep 27 19:05:59 unRaid root: mvlogger: No Before Script Argument Supplied
Sep 27 19:05:59 unRaid root: mvlogger: No After Script Argument Supplied
Sep 27 19:05:59 unRaid root: mvlogger: CTIME Argument: no
Sep 27 19:05:59 unRaid root: mvlogger: CACHE THRESH to Move all Cache-Yes shares to array: 65
Sep 27 19:05:59 unRaid root: mvlogger: No Test Mode Argument Supplied
Sep 27 19:05:59 unRaid root: mvlogger: No Ignore Hidden Files Argument Supplied
Sep 27 19:05:59 unRaid root: mover: started
Sep 27 19:05:59 unRaid root: mvlogger: No Script to Run.
Sep 27 19:05:59 unRaid root: mvlogger: CACHETHRESH: 65
Sep 27 19:05:59 unRaid root: mvlogger: Checking to see if we should all files from share.
Sep 27 19:05:59 unRaid root: mvlogger: Move All Cache Threshold: 65
Sep 27 19:05:59 unRaid root: mvlogger: /mnt/cache PCT USED: 85
Sep 27 19:05:59 unRaid root: mvlogger: Pool /mnt/cache is above 'move all' percentage, moving all cache-yes shares to array
Sep 27 19:05:59 unRaid root: mvlogger: Not in Test mode
Sep 27 19:05:59 unRaid root: find: unknown predicate `-depth+= | /usr/local/sbin/move -d 1'
Sep 27 19:05:59 unRaid root: mvlogger: Complete Mover Command: find /mnt/cache/media -depth
Sep 27 19:05:59 unRaid root: mvlogger: Done checking Move All from Share
Sep 27 19:05:59 unRaid root: mvlogger: Share Name Only: Media
Sep 27 19:05:59 unRaid root: mvlogger: Cache Pool Name: cache 
Sep 27 19:05:59 unRaid root: mvlogger: cache Threshold Pct: 
Sep 27 19:05:59 unRaid root: mvlogger: OVERALL Threshold: 60
Sep 27 19:05:59 unRaid root: mvlogger: Share Path: /mnt/cache/Media
Sep 27 19:05:59 unRaid root: mvlogger: Pool Pct Used: 85 %
Sep 27 19:05:59 unRaid root: mvlogger: DFTPCT LIMIT USED FOR SETTING: 60
Sep 27 19:05:59 unRaid root: mvlogger: Threshold Used: 60
Sep 27 19:05:59 unRaid root: mvlogger: Adding Age
Sep 27 19:05:59 unRaid root: mvlogger: Age 1
Sep 27 19:05:59 unRaid root: mvlogger: Skipfiletypes string: find "/mnt/cache/Media" -depth -mtime +1
Sep 27 19:05:59 unRaid root: mvlogger: Not in Test mode
Sep 27 19:05:59 unRaid root: mvlogger: Complete Mover Command: find "/mnt/cache/Media" -depth -mtime +1
Sep 27 19:05:59 unRaid root: find: '/mnt/cache/Media': No such file or directory
Sep 27 19:05:59 unRaid root: mover: finished
Sep 27 19:05:59 unRaid root: mvlogger: No After Script to Run.

 

and some settings for reference:
 

image.thumb.png.a2db75cabd438a95cb065274c001873a.png

 

Any thoughts on what might be happening?

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.