2023-08-23, 06:28 AM
Been a hot minute since I used OMV, so I don't recall exactly where things needed to be set in the GUI. I typed this up and...I'm wondering a big question...did you install the NFS client package on your Ubuntu machine? I think the package is nfs-common? If not...that may be the source of your issue.
Start there, then read on if you've already installed that package. Mounting this as NFS requires you to have that package installed for anything to work properly.
In OMV, you need to make sure that the NFS is set to be exported to either explicitly your IP for your server or to your entire internal network. Know your risks -- every decision you make has a risk. Exporting to the whole network makes the drives available to every machine that connects to your network. If you squash (as I'm suggesting), you can't trace file modifications or restrict access using FACL or other methods. These are too complex for my setup where I have two machines that do the business and sharing with other machines happens outside the confines of NFS.
So if you have your shares setup properly in OMV to export to the right subnet or explicit IP(s), the next step is setting options. Here is an example of one of my exports, straight from /etc/exports, which is the same format that OMV uses (ignore the mount and the export -- the options are what you're interested in):
These are simple options that work for me. Read/write, sync, no subtree check, and I squash all access down to appear as though it comes from my service user that owns the files to ensure I don't have access issues with my NFS shares. On the other end, where you're mounting the NFS shares (which would be in Ubuntu, in /etc/fstab as you've gathered), it would look like this:
Abstracting:
The type is the type of file system (NFS), defaults means no special options (those are set in the exports by the host), and the other two numbers relate to special options that I've looked up and read over before but do not understand enough to relay. There's plenty of documentation and I'd rather you read from there than get confused by me. Hopefully this helps? Good luck.
Code:
sudo apt install nfs-common
Start there, then read on if you've already installed that package. Mounting this as NFS requires you to have that package installed for anything to work properly.
In OMV, you need to make sure that the NFS is set to be exported to either explicitly your IP for your server or to your entire internal network. Know your risks -- every decision you make has a risk. Exporting to the whole network makes the drives available to every machine that connects to your network. If you squash (as I'm suggesting), you can't trace file modifications or restrict access using FACL or other methods. These are too complex for my setup where I have two machines that do the business and sharing with other machines happens outside the confines of NFS.
So if you have your shares setup properly in OMV to export to the right subnet or explicit IP(s), the next step is setting options. Here is an example of one of my exports, straight from /etc/exports, which is the same format that OMV uses (ignore the mount and the export -- the options are what you're interested in):
Code:
/mnt/media/4K 192.168.1.31(rw,sync,no_subtree_check,anonuid=1000,anongid=995)
These are simple options that work for me. Read/write, sync, no subtree check, and I squash all access down to appear as though it comes from my service user that owns the files to ensure I don't have access issues with my NFS shares. On the other end, where you're mounting the NFS shares (which would be in Ubuntu, in /etc/fstab as you've gathered), it would look like this:
Code:
192.168.1.31:/mnt/media/core /mnt/media/core nfs defaults 0 0
Abstracting:
Code:
host:/remote/path /local/mount/path type defaults 0 0
The type is the type of file system (NFS), defaults means no special options (those are set in the exports by the host), and the other two numbers relate to special options that I've looked up and read over before but do not understand enough to relay. There's plenty of documentation and I'd rather you read from there than get confused by me. Hopefully this helps? Good luck.
Jellyfin 10.10.0 LSIO Docker | Ubuntu 24.04 LTS | i7-13700K | Arc A380 6 GB | 64 GB RAM | 79 TB Storage