I've recently setup an OMV system, and after many reloads have finally established my system with 4 data disks set up with mergefs and snapraid. My problem is that I still continue to have numerous issues with dockers and the internal use of shared folders. Mergefs duplicates parts of the primary disk structure across disks in order to use the "least filled" requirement I have selected. I'm guessing my dir tree structure is the same as most, a primary dir-1 that contains all of my other sub dirs.
What I was previously doing is sharing each dir that was called out as a requirement for each docker; i.e. /dir1/dir3/dir2/downloads, I would simply share downloads. Needless to say there a lot of shared folders showing up. I then decided that if I simply share /dir1, then all sub directories would be shared by default.
I have also been creating new folders as necessary using both my windows share, and SSH, then going into the OMV GUI and sharing them internally if needed.
I still have a lot of problems. I've removed shares from within the OMV GUI, and I've SSH into the drive structure and removed suspect directories that way. My dockers like Radarr, Sonarr, Serviio, all continue to screw up because the shares keep changing. I set up so that everything is working, then I come back the next day and the dockers no longer see the shared information. If I SSH into and look at the structure, I can clearly see by timestamps that things are being saved/accessed from different drives (probably due to mergefs).
Yesterday, after having problems with a docker Serviio, I discovered that my shared folders had all been changed in ownership back to root! Nothing worked.
I probably have a number of things I have done wrong, and continue to do wrong, but I think the first thing is to get a better grasp of the shared folder concept and how I should be emplimenting it. I had hoped that there was a TDL video that seriously described it but I havent found it, only the basic stuff most of his vids have.
I would really appreciate it if someone could either explain it for me, or point me to a good place to get the info. Thanks
EDIT*** In a previous post, it was recommended that I declare my shared folders as volumes within the docker. I have done that using numerous methods. I have gone to /srv/ and selected the applicable folder within my mergefs, I have gone to /sharedfolders/ and selected the appropriate folder there, I have gone to /tv, /media, and probably a couple other places, but the one thing that remains consistent is that I can not consistently rely on those folders remaining accessable; one day the work, the next they don't.