How to implement on NFS #23
Replies: 11 comments
-
I had managed to install package on nfs mount. Containers are running but nothing in web-browser. I had checked ports and docker logs... What can the problem be? |
Beta Was this translation helpful? Give feedback.
-
What address are you trying to use? |
Beta Was this translation helpful? Give feedback.
-
the one from ip addr |
Beta Was this translation helpful? Give feedback.
-
So xxx.xxx.xxx.xxx:8686 for example? Do you have the relevant ports open on your server? |
Beta Was this translation helpful? Give feedback.
-
yep, ie for qbittorrent it works on local volume, but empty webpage once i put data+docker on nfs (edit: i mean during compose up)... |
Beta Was this translation helpful? Give feedback.
-
I'd waited little bit longer and jackett popped up |
Beta Was this translation helpful? Give feedback.
-
I managed to put configs on local volume and data on nfs with adjusting permissions accordingly |
Beta Was this translation helpful? Give feedback.
-
i've tried jellyfin from a different machine to get to /data/media subfolders on nfs |
Beta Was this translation helpful? Give feedback.
-
@fdfytr I'm attempting this now; if I'm able to mitigate the issues you're experiencing I'll chime in. Assuming all things normally work fine with your NFS mount point (outside of any docker containers), I'm naively thinking it'll be necessary to use either a volume or a bind mount to the file system. On my system, I'm running an NFS mount resembling: # /etc/fstab
{{ NAS HOST }}:{{ NAS REMOTE PATH }} {{ LOCAL PATH }} nfs rw,suid,dev,no_root_squash,no_subtree_check,relatime,vers=3,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr={{ NAS HOST }},mountvers=3,mountproto=udp,local_lock=none,addr={{ NAS HOST }} 0 0 I believe this working config gives all users write access, which seems like it ought to include docker and any transient users in the containers. All told, I haven't dug into this yet, but there's a chance you might be able to tweak your mount options to make things just work. |
Beta Was this translation helpful? Give feedback.
-
@dmgolembiowski I reckon creating a volume to do this should be possible. I know it's pretty simple for smb, I don't have experience for NFS but it's probably possible. Good luck! |
Beta Was this translation helpful? Give feedback.
-
Confirmed! (Sorry) It can be done and it does work. These are the pitfalls you have to watch out for:
Honestly though, SSHFS was more fault tolerant and caused fewer file fragmentations under heavy + consistent traffic. Who wants to build a fs with me? |
Beta Was this translation helpful? Give feedback.
-
Would appreciate instructions/step on how to run it on NFS volume
Beta Was this translation helpful? Give feedback.
All reactions