Export Filesystem as NFS: Difference between revisions

From wiki
Jump to navigation Jump to search
imported>NetBoot
(Fixed path)
imported>Johayek
mNo edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
According to http://www.synology.com/enu/forum/viewtopic.php?t=5569, the NFS package shipped in Nov 2007 is does not work properly. Replace /usr/syno/etc.defaults/rc.d/S83nfsd.sh with the following.
According to http://www.synology.com/enu/forum/viewtopic.php?t=5569, the NFS package shipped in Nov 2007 is does not work properly. Replace /usr/syno/etc.defaults/rc.d/S83nfsd.sh with the following.
'''Note:''' As of September 2008, Synology firmwares seem to support NFS nicely out-of-the-box (/etc/exports is even editable from web interface).


Caveat emptor: This is not supported by Synology. It is not my solution. All thanks and accountability belongs to NetBoot.  
Caveat emptor: This is not supported by Synology. It is not my solution. All thanks and accountability belongs to NetBoot.  
Line 26: Line 28:
         ;;
         ;;
         stop)
         stop)
                 echo "Stoping NFS server..."
                 echo "Stopping NFS server..."
                 killall -kill nfsd
                 killall -kill nfsd
                 killall portmap
                 killall portmap
Line 32: Line 34:
                 /usr/sbin/exportfs -ua >/dev/null 2>&1
                 /usr/sbin/exportfs -ua >/dev/null 2>&1
esac  
esac  
<pre>
</pre>
 
Note the main change is to add "-kill"
 
[[Category:SynologyWiki]]
[[Category:ToBeExported]]

Latest revision as of 17:38, 31 January 2015

According to http://www.synology.com/enu/forum/viewtopic.php?t=5569, the NFS package shipped in Nov 2007 is does not work properly. Replace /usr/syno/etc.defaults/rc.d/S83nfsd.sh with the following.

Note: As of September 2008, Synology firmwares seem to support NFS nicely out-of-the-box (/etc/exports is even editable from web interface).

Caveat emptor: This is not supported by Synology. It is not my solution. All thanks and accountability belongs to NetBoot.

#!/bin/sh
# Copyright (c) 2000-2008 Synology Inc. All rights reserved.

case $1 in
        start)
#               Support=`/bin/get_key_value /etc.defaults/synoinfo.conf supportnfs`
#               case "$Support" in
#               [Yy][Ee][Ss])
#                       ;;
#               *)
#                       echo "NFS server is not supported. Skip..."
#                       exit
#                       ;;
#               esac

                echo "Starting NFS server..."
                /sbin/portmap
                /usr/sbin/nfsd
                /usr/sbin/mountd
                /usr/sbin/exportfs -ra >/dev/null 2>&1
        ;;
        stop)
                echo "Stopping NFS server..."
                killall -kill nfsd
                killall portmap
                killall mountd
                /usr/sbin/exportfs -ua >/dev/null 2>&1
esac 

Note the main change is to add "-kill"