Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

NFS setup not persistant after go script

Featured Replies

#EDIT#

 

For those who come here seeking answers, just use the GUI. Set your rule in the NFS set up for each share. It isnt worth the struggle.

 

#/EDIT#

 

Hi Everyone, I'm coming from freeNAS and need to get my Unraid NFS setup to match the old FreeNAS one so compatibility is maintained with my Proxmox host. I have authored an /etc/exports file the works but am having issues making it persistent.

 

I have copied my good exports setup to /boot and setup up /conifg/go to copy the file over /etc/exports. My understanding is that 'go' is initiated towards the end of the start up process and I seen not errors in the log. When I do a quick tail /etc/exports after the machine is restarted the file is in its default state. I can't tell if it is working or not but I'm showing the content of 'go' below.

Quote

#!/bin/bash

# Start the Management Utility
/usr/local/sbin/emhttp &

# Set up NFS Mount Points

cp /boot/exports /etc/exports

 

To try and determine if 'go' was the issue I installed the User Scripts Plugin and set up the below script to run at first array startup. I confirmed it was running successfully however /etc/exports still showed the default content. The logs show it ran at 12:12.34 when I did a restart test.

Quote

#!/bin/bash

cp /boot/exports /etc/exports
exportfs -arv

 

Checking the logs it looks like the default NFS server daemon started at 12.12.30 based on when exportfs -r ran.. so the User Script ran after the daemon was started but something must have reset the contents of /etc/exports. When I run the script manually it works perfectly but it seems like something randomly turns on and overwrites export back to the bog standard file.

 

Has anyone ever ran into this? Is there part of operation I'm missing that takes the disappointing GUI driven NFS settings and periodically rewrites them to the export file? Why wouldn't Unraid just have an "NFS Extras" entry in the GUI like they have for SMB?

 

I would appreciate any insight the fine people of this forum can offer.

 

 

 

Edited by skallox
I gave up

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.