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

Fix issue preventing graceful Unraid shutdown. #30

Open
wants to merge 2 commits into
base: latest---mergerfs-support
Choose a base branch
from

Conversation

Torqu3Wr3nch
Copy link

Resolves #28 by lazily unmounting Rclone and mergerfs mounts.

@Torqu3Wr3nch Torqu3Wr3nch changed the title Resolves #28 preventing graceful Unraid shutdown Fix issue preventing graceful Unraid shutdown. Sep 20, 2021
@Torqu3Wr3nch Torqu3Wr3nch changed the title Fix issue preventing graceful Unraid shutdown. [#28] Fix issue preventing graceful Unraid shutdown. Sep 20, 2021
@Torqu3Wr3nch Torqu3Wr3nch changed the title [#28] Fix issue preventing graceful Unraid shutdown. Fix issue preventing graceful Unraid shutdown. Sep 20, 2021
@Torqu3Wr3nch Torqu3Wr3nch marked this pull request as ready for review September 20, 2021 17:55
@BinsonBuzz
Copy link
Owner

Thanks. I run this script at array start.

Would the new commands work if multiple mounts are present?

@Torqu3Wr3nch
Copy link
Author

I do the same, but I actually have a second copy of the script to run at array stop. (I actually would recommend this configuration for anyone. Let me know if you would like me to make such an update to the readme).

This updated script should work assuming users configured it for each additional rclone mount.

@BinsonBuzz
Copy link
Owner

I do the same, but I actually have a second copy of the script to run at array stop. (I actually would recommend this configuration for anyone. Let me know if you would like me to make such an update to the readme).

This updated script should work assuming users configured it for each additional rclone mount.

Is there anyway to make it work globally so only one instance is needed like currently? If not, it might be something to add in the comments as an optional tweak.

In fact, let's do that for now - can you add a comment line saying something like "....this only works if you have one mount instance. If you have multiple rclone mounts, add manual entries for each mount"

@Torqu3Wr3nch
Copy link
Author

I can look into it- I'm 90% sure umount allows for multiple mount points. Do you have an example mount script configuration that I can look at for multiple mount points or are users just creating multiple mount scripts for each rclone mount?

Side note outside of the scope of this pull request, when I wrote this script, I considered centralizing where we store the "required settings" since different scripts pull from the same information. This would decrease the risk of transcription errors among users, but that's for another time.

I'll update the comments for the time being. It's already broken now, so the quick fix is what I want to prioritize for the time being.

If you're agreeable to the idea of a centralized "required settings" config file, I can look at implementing that alongside the umount for multiple mount points. Makes sense to do them together.

@BinsonBuzz
Copy link
Owner

BinsonBuzz commented Sep 21, 2021 via email

@Torqu3Wr3nch
Copy link
Author

Comments updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The mount is making unraid unable to stop array
2 participants