How to use Volumes in Minio?
-
Well I would suggest to test this with a fresh minio instance first to ensure the process works!
I think there might be more places which need to be made adjustable regarding the credentials. That being said maybe the
server <folder>
approach was not the best one in the first place, just what came to mind. -
@nebulon I've found some more: the actual config files are created after reboot in the new volume (hidden), and they don't contain the "old" credentials. The Cloudron script
/app/code/minio-credentials
is hardcoded to create them in data/data instead of the new volume. -
End of the story:
- migration did not succeed (I think Minio also doesn't like moving files in the background?)
- created a new app
- added Volume
- changed the
sudo chown -R cloudron /media/s3-01 && sudo chmod u+rxw /media/s3-01
- changed the env.sh
- changed the config in
/media/s3-01/.minio.sys/config/config.json
(search for minioadmin and change those access and secret keys) - I deleted the .minio.sys in the data/data
- started the app
Now buckets are created in the Volume and backup to Minio seems to work (at least I do see now about 400Mbit upload from my MacBook)
-
@imc67 Why do you want to make it use a volume? Minio's /app/data is really it's "database" and is not meant to be shared with others. If you just want to move the storage location to some other place, you should use the Move Data Directory configuration.
The volumes stuff is really for content/files that can be used by all apps. It's not meant for one app to share it's internal data with another.
-
@imc67 Ah, this is a workaround for forgetting to disable backups during minio update! Eventually, volumes will gain backup feature and your workflow might break
Maybe at the browser session level, the checkbox state of the Update dialog can be remembered (at a per-app level). Would that help?
-
@girish said in How to use Volumes in Minio?:
Maybe at the browser session level, the checkbox state of the Update dialog can be remembered (at a per-app level). Would that help?
I remember this kind of thing is indeed suggested before in the forum, however if only on browser session then it will be different when using other browsers at the same time I guess?
-
@imc67 I think previously @nebulon defaulted the value to the value of "automatic backups" but that change wasn't correct, so we had reverted it. This is because just because the user didn't want automatic daily backups, doesn't mean he doesn't want backup during an update.
@nebulon Is it easy to store the checkbox state per app (in localstorage or something?). What do you think?
-
@girish I guess we can store that in localstorage, hopefully thought does not get confusing when using more than one browser then. Generally I am questioning here why the manual update even comes into play on such a regular basis that this checkbox is an issue in the first place.
-
@nebulon for me it is no issue anymore because of the Volumes. In this Minio app I don't share the Volume with other apps and it's not backed up just like I want.
Hopefully in future releases, like @girish wrote, when they will be backed up there will also be an option to never backup specific Volumes?