Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Mover Trigger #55

Closed
leitenky opened this issue Jan 7, 2025 · 4 comments
Closed

Add Mover Trigger #55

leitenky opened this issue Jan 7, 2025 · 4 comments
Labels
enhancement New feature or request priority-low Low Priority

Comments

@leitenky
Copy link

leitenky commented Jan 7, 2025

Is your feature request related to a problem? Please describe.
I would like to be able to manually trigger the Mover in unraid to run from home assistant, and see it's status (running or not)

Describe the solution you'd like
I would like to push a button on my home assistant dashboard that would run the Mover task in unraid (like shutdown or reboot). I would also find it helpful to see if mover is running currently or not

@leitenky leitenky added the enhancement New feature or request label Jan 7, 2025
@domalab domalab added the priority-low Low Priority label Jan 7, 2025
@domalab
Copy link
Owner

domalab commented Jan 8, 2025

I dont fully understand how the mover command in unraid works.

From Unraid Console when you execute mover you get this

mover
Usage: /usr/local/sbin/mover start [-e] <disk_name>
/usr/local/sbin/mover stop|status
<disk_name> must match pattern 'disk[0-9]*'

If I execute mover start then I dont know if it moves data from cache to array or array to cache.

So I'm not sure how to implement this logic into a button.

@leitenky
Copy link
Author

leitenky commented Jan 9, 2025

Oh sorry, not sure I'm that knowledgeable in unraid. Currently to trigger it I log in to the interface. Go to the main tab. Scroll down to array operation and select move. That's also where it tells you if it's running or not

@domalab
Copy link
Owner

domalab commented Jan 9, 2025

Oh sorry, not sure I'm that knowledgeable in unraid. Currently to trigger it I log in to the interface. Go to the main tab. Scroll down to array operation and select move. That's also where it tells you if it's running or not

Under the hood that button triggers the mover command but not sure how it works.

@domalab
Copy link
Owner

domalab commented Jan 12, 2025

Oh sorry, not sure I'm that knowledgeable in unraid. Currently to trigger it I log in to the interface. Go to the main tab. Scroll down to array operation and select move. That's also where it tells you if it's running or not

You can also look into creating a bash script which triggers the mover. Configure it via plugin scripts and the integration will automatically pick it up and create a button for you.

You could have a script that moves data from cache to array and another one that moves array to cache. Depending on your setup and needs.

@domalab domalab closed this as not planned Won't fix, can't repro, duplicate, stale Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority-low Low Priority
Projects
None yet
Development

No branches or pull requests

2 participants