What I have:
-
Exports - switch to ‘async’ nfs (this is the RW export, media is RO)
/vol/plex *(rw,async,no_subtree_check,no_root_squash) -
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
- 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.
-
sec=sysallows the two machines to trust each other for UID/GID security
(bypassing the need for user accounts). Leaves on UID / GID mechanism. -
asyncallows the Plex machine to delegate file write management to the storage machine ( a ‘send and forget’ as Plex machine is concerned ) -
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. -
Making a group (e.g “plexdvr”) of which you and
plexare members makes this easily identifiable. You can keep ownership, groupplexdvrhas RW.
Give a read. Try with a few things by hand,