Everything posted by hugenbdd
-
[Plugin] Mover Tuning
No, can you verify the folder was created? /tmp/Mover from the console ls -ltr /tmp/Mover
-
Possible to get Mover to ignore certain file types in a share? Only move files X days old?
Normal mover scheduled would move them, I'm not sure if there is a way to ignore whole shares. Mover Tuning was originally written when there was just one cache drive, making it much easier... Now there's lots of intricoes to figure out. Yes, that is part of Mover Tuning. meant to make it easier to empty a share from cache.
-
[Plugin] Mover Tuning
New Release (And I already found a bug which will be fixed tomorrow) ###2023.06.15 - Delete empty directories ***(Bug when no empty directories found) - Add Softlink for binary mover file change if on 6.12 RC8 in install script. (CS01-HS Found 6/13) - Add function for compatibility with RC8+ with zfs % full (a632079 - 6/3)
-
Possible to get Mover to ignore certain file types in a share? Only move files X days old?
No, settings apply to all shares. The only one that is share specific is % of disk used. I need some help with setting up gui pages for share specific settings. I would like to be able to provide this, but it is most likely a ways off. You could accomplish this by looking at the plug-in code and writing your own bash script.
-
[Plugin] Mover Tuning
Yes looks like they changed locations of it for that release.
-
[Plugin] Mover Tuning
I'm starting to work on a seperate script for this. Once I release it, I'll post a new forum thread separate from Mover Tuning. At first it will just move based on age of files (oldest first). I would expect later it will include other filters from Mover tuning.
-
[Plugin] Mover Tuning
If I wrote this, it would be an independent script and not part of the plug-in. But this could be done as a cron entry.
-
[Plugin] Mover Tuning
Looking for a few to test the changes above before I release. Just replace the age_mover file with the one attached. /usr/local/emhttp/plugins/ca.mover.tuning/age_mover age_mover
-
[Plugin] Mover Tuning
I would need to see Logs.
-
[Plugin] Mover Tuning
I'm not able to reproduce. I'm willing to do a google meeting sometime next week if you want me to look at it.
-
[Plugin] Mover Tuning
I'll have a fix in the next few days addressing. 1.) The echo statements in the hardlink section. 2.) Moving empty folders. 3.) Fix a "testing" if statement in the hardlink section of code.
-
[Plugin] Mover Tuning
I left a few echo's in there. I'll move them to the mover logs under /tmp/Mover on the next release. If you need it removed before the release, you can just comment out (#) the echo's in age_mover file.
-
[Plugin] Mover Tuning
Yes, I'm purposely skipping them for this release. I will be including them in the next release.
-
[Plugin] Mover Tuning
Can you DM the log file in /tmp/Mover/ Mover_Tuning_<DATE/TIME>.log as most entries are no longer in the syslog. I have not changed this part of the code and can't determine what's going on without more info.
-
[Plugin] Mover Tuning
2023.05.23 Fixed Hardlinks issue. If hardlinks detected in fileslit. No GUI update is available. No Soft Stop available.
-
[Plugin] Mover Tuning
TY, I will put a release out first thing in the morning.
-
[Plugin] Mover Tuning
File attached fixes the hardlinks issue but will not give status updates or soft stop. replace the file below with the attached file. Once someone is able to test I will package it up in a new release. /usr/local/emhttp/plugins/ca.mover.tuning/age_mover age_mover
-
[Plugin] Mover Tuning
I have a fix I'm testing now.
-
[Plugin] Mover Tuning
Not yet but this will enable us to write the code for that. With the original find, it just sends the full output to the binary mover. With a file list, we are able to manipulate it any way we want before we send them to the mover.
-
[Plugin] Mover Tuning
Thanks For those with hardlinks. I would suggest to pause or not move the script for a few days while I work on this. I have to recreate how the binary mover handles hardlinks. (i.e. tracking inodes and how to handle them in the filelist)
-
[Plugin] Mover Tuning
Can you DM logs from /tmp/Mover and also from syslog? I don't know why hardlinks would be any different than a normal file. It's using the same find that the old mover is, it's just that it's sending it to a filelist file. Then I loop through a filelist and send each file to the binary mover. (I wonder if it's moving on to the next file and starting a new file before the previous is done.). I might need to check and see if any "mover" is still running before moving forward...)
-
[Plugin] Mover Tuning
Moved to a filelist based system instead of sending the find output to the mover binary. The first release of this had an issue with some special characters in the file name. But that was fixed Thursday.
-
[Plugin] Mover Tuning
Few questions. 1.) Did you install the update I released yesterday? 2.) Can you send me some of the files (in a DM) that are under /tmp/Mover 3.) what version are you on?
-
[Plugin] Mover Tuning
Yeah, right now I'm specifically excluding them. But I guess I shouldn't. Next release I'll move empty folders.
-
[Plugin] Mover Tuning
###2023.05.18 - Fixed a issue where SED was seeing [] and {} inside of the filepath string, by double quoting the echo'd variable. - Added softstop as a command to gracefully exit the mover from the command line. Checks for a (empty) file under /var/run/moversoft.stop before sending each file to the binary mover. Will exit the loop if the file exists and mover will stop once the current file is done moving. This is more graceful than the original stop (Which still exists) that just kills the PID. Example: /usr/local/emhttp/plugins/ca.mover.tuning/age_mover softstop