Skip to content

When the network share goes offline... #7351

Discussion options

You must be logged in to vote

Some time ago I've been messing with network shares and fstab. I always ended up spending more time than I should, while the actual fix is very easy and always work.

The secret of getting it to work perfectly is:

  1. Use NFS storage instead of Samba. It is generally faster.
  2. Tune NFS parameters. Below is what I am using to store recordings/events to my Synology NAS.
  3. Mount NFS storage using docker-compose (docker) and not host's fstab or host's mount. Docker will handle connection to NFS and personally I never had such case when NFS is not mounted, but application still works.

Here is how my (relevant parts of) docker-compose.yml look like:

services:
  frigate:
    container_name: frigate
    p…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@PyrokineticDarkElf
Comment options

Comment options

You must be logged in to vote
2 replies
@PyrokineticDarkElf
Comment options

@Loic691
Comment options

Answer selected by PyrokineticDarkElf
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants