Not recording to NFS mounted share

What I have:

  1. Exports - switch to ‘async’ nfs (this is the RW export, media is RO)
    /vol/plex *(rw,async,no_subtree_check,no_root_squash)

  2. Setup nfs mount on Plex server machine,

# plex
192.168.0.20:/vol/plex    /glock/plexinc       nfs defaults,sec=sys,rw,auto,async,rsize=4194304,wsize=4194304,x-systemd.after=network-online.target,nofail,bg 0 0
  1. Setup setgid for directories on PMS machine AND NFS storage
    – Don’t forget to set perms on base directory before mounting the NFS as well as after the NFS is mounted.

How this works.

  1. sec=sys allows the two machines to trust each other for UID/GID security
    (bypassing the need for user accounts). Leaves on UID / GID mechanism.

  2. async allows the Plex machine to delegate file write management to the storage machine ( a ‘send and forget’ as Plex machine is concerned )

  3. Setgid ensures permissions are set correctly -AND- propagated correctly into subdirectories and files as new content is recorded.
    – All sub directories and files inherit the permissions and ownership from the parent directory. Once you set it up, it’s self maintaining.

  4. Making a group (e.g “plexdvr”) of which you and plex are members makes this easily identifiable. You can keep ownership, group plexdvr has RW.

Give a read. Try with a few things by hand,

1 Like