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.
Right, it worked up to that point, but looks like $CACHEPOOLNAME never gets set at line 138.
Tower root: Share Path: /mnt//Share1
PCTLIMIT=`cat /boot/config/plugins/ca.mover.tuning/ca.mover.tuning.cfg | grep "=" | rev | cut -c2-3 | rev`
Edit: I'm guessing shareCachePool option didn't exist when my share was initially created and since I only have ever used one cache drive it wasn't needed. Either way, thank you for this!
Hey, so I figured out what my issue was.
My share config file didn't have the shareCachePool parameter at all. Setting 'use cache pool' in share settings in Unraid from yes to no, then back to yes added this entry and script now works. (I only have one cache drive)
Hi, I am on 6.9.0-rc2 with plugin 2021.01.03 and receive this error with no files being moved:
Jan 12 11:06:08 Tower emhttpd: shcmd (168): /usr/local/sbin/mover |& logger &
Jan 12 11:06:08 Tower kernel: mdcmd (88): set md_write_method 1
Jan 12 11:06:08 Tower kernel:
Jan 12 11:06:08 Tower root: *********************************MOVER START*******************************
Jan 12 11:06:08 Tower root: mover: started
Jan 12 11:06:08 Tower root: Share Config: /boot/config/shares/Share1.cfg
Jan 12 11:06:08 Tower root: Pool Pct Used: 4 %
Jan 12 11:06:08 Tower root: Threshold Used: no
Jan 12 11:06:08 Tower root: "0
Jan 12 11:06:08 Tower root: 0
Jan 12 11:06:08 Tower root: "0
Jan 12 11:06:08 Tower root: no
Jan 12 11:06:08 Tower root: "1
Jan 12 11:06:08 Tower root: no
Jan 12 11:06:08 Tower root: "1
Jan 12 11:06:08 Tower root: no
Jan 12 11:06:08 Tower root: "1
Jan 12 11:06:08 Tower root: es
Jan 12 11:06:08 Tower root: xt
Jan 12 11:06:08 Tower root: no
Jan 12 11:06:08 Tower root: ="
Jan 12 11:06:08 Tower root: es
Jan 12 11:06:08 Tower root: es
Jan 12 11:06:08 Tower root: no
Jan 12 11:06:08 Tower root: no
Jan 12 11:06:08 Tower root: ="
Jan 12 11:06:08 Tower root: es
Jan 12 11:06:08 Tower root: /usr/local/emhttp/plugins/ca.mover.tuning/age_mover: line 171: [: no: integer expression expected
Jan 12 11:06:08 Tower root: Mover not Needed.
Jan 12 11:06:08 Tower root: mover: finished
Jan 12 11:06:08 Tower kernel: mdcmd (89): set md_write_method auto
Jan 12 11:06:08 Tower kernel:
NOTES:
I have based on age and size turned off, but this error only happens when using the file ignore option. Disabling it moves files from cache to array but moves files I don't want it to.
Rolling back to the plugin version before this (2020.12.27) works as intended.