Using external NAS a datasource for the YunoHost server?

Hey guys,

I will explain you my setup in brief: I got a small mini PC as my server for all needed apps. But all my movies, music and documents are sotred on my Ugreen NAS which I used before. This was only planned for file sharing and saving.
Now I would like to use my NAS as the main storage for different apps, for example Jellyfin or NextCloud. Has anyone a good solution how to include it in my setup so that I have a stable data im- and export to it? I thought about using samba and mounting it via cifs, but I don’t know how much I can rely on it to be honest.
Any other recommendations? Thanks in advance.

Cheers
Felix

hello
Is your NAS able to export NFS share? if it can do it, you could mount this share on your yunohost server

1 Like

hey, yes it supports NFS, so you think this would be a better solution than samba?

for sure!
samba is a linux implementation of the Microsoft’s smb protocol which was designed for windows shares
nfs is a pure linux file sharing protocol

Hi Felix, that sounds like a good setup! Using your mini PC as an app server and the Ugreen NAS for storage is practical. Samba (CIFS) is a common way to mount a NAS and in general works well for media apps (like Jellyfin and Nextcloud). If the connection is good and on a local network it should be fine. But, if you have the option, I would highly recommend using NFS instead (if your NAS has NFS support), as NFS tends to be faster / more stable when using it for long read/write operations. Just remember to use systemd mount units, or fstab with /nofail, /x-systemd.automount, etc, to make sure the share mounts clean at boot.

thanks for the answers. Can somebody give me a example nfs mount with all the necessary commands in it? I think the most difficult part is to mount after all network services have been started.
I’m not yet that familiar with correct usage of options for fstab.

Currently I have my samba mounted with root and I created another group for the samba shares and added my primary user to it. Is there a better way in case of permissions? So that every app can reach this directory.

Here Mount /home/yunohost.backup on a remote server - #6 by jarod5001

1 Like

absolutely not,

try using a packet sniffer for a fun experiment on samba the overhead is HUGE
NSFS is a lot better, iSCSI would be perfect (and is intented for exactly this type of use) but is rather hard to setup. there is sshfs which might allso work nice as it is entirely userspace instead of kernelspace but that has more lagg too

1 Like