Is there anything special on OMV NFS shares?

    • Is there anything special on OMV NFS shares?

      Hello,

      I'm posting this in Offtopic as it's not about a problem with OMV. If a mod thinks it would fit better into the NFS corner, please move it.

      I'm running an OMV server and it shares some directories via NFS with other Linux PCs in my LAN. On client side I have one line in /etc/fstab which mounts all subdirectories at once with the correct ro/rw access.

      Now I'd like to do the same with my HTPC. Therefore I took some lines from the servers /etc/exports and adapted it to the HTPCs directory structure:

      Source Code

      1. /data/dir1 192.168.178.123(fsid=1,rw,subtree_check,secure)
      2. /data/dir2 192.168.178.1/24(fsid=2,ro,subtree_check,secure,async)
      3. /data 192.168.178.123(ro,fsid=0,root_squash,no_subtree_check,hide)
      4. /data 192.168.178.1/24(ro,fsid=0,root_squash,no_subtree_check,hide)
      I try to share /data/dir2 to everybody in this subnet as read-only and /data/dir1 to a specific client as read-write. Unfortunately the OMV one-liner in /etc/fstab doesn't work with the HTPC exports. I have to add another line specifically for /data/dir1. Otherwise it's mounted as ro instead of rw.

      So my question is: does OMV do anything more special than this?

      What I really want is to share all children of /data as ro but /data/dir1 as rw.

      The post was edited 5 times, last by myscha ().

    • myscha wrote:

      I try to share /data/dir2 to everybody in this subnet as read-only and /data/dir1 to a specific client as read-write. Unfortunately the OMV one-liner in /etc/fstab doesn't work with the HTPC exports. I have to add another line specifically for /data/dir1. Otherwise it's mounted as ro instead of rw.
      I believe the multihost/subnet in nfs in omv has never worked. Follow the guidelines for NFS on multi host

      linux.die.net/man/5/exports

      The fourth export seems unnecessary

      myscha wrote:

      So my question is: does OMV do anything more special than this?
      it adds the pseudo-root fs as ro, as you can see in the last line of exports in omv, it also configures nfs with the common guidelines using fstab bind mounts, to the /export directory


      myscha wrote:

      What I really want is to share all children of /data as ro but /data/dir1 as rw.
      well if you mount srv:/data should be ro, mount srv:/data/dir2 should be rw
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • Users Online 1

      1 Guest