LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   NFS under Debian (https://www.linuxquestions.org/questions/linux-networking-3/nfs-under-debian-4175425365/)

AnalBeard 09-03-2012 02:16 AM

NFS under Debian
 
Ok, so i've been trying to set up NFS on my kFreeBSD box with mixed results. So far, my settings are as follows:

Code:

simon@sepulveda:~$ cat /etc/rc.conf
nfs_server_enable="YES"
nfs_server_flags="-u -t -o -n 4"
nfs_reserved_port_only="YES"
rcpbind_enable="YES"
mountd_flags="-r"
mountd_enable="YES"
rpc_lockd_enable="YES"
rpc_statd_enable="YES"

Code:

simon@sepulveda:~$ cat /etc/exports
/home/simon -ro -maproot=root -network 192.168.1.0 -mask 255.255.255.0
/mnt -maproot=root -network 192.168.1.0 -mask 255.255.255.0
/home/simon/t -ro -maproot=root -network 192.168.1.0 -mask 255.255.255.0

however, when i use my Mac to query what's available on the server, i get this:

Code:

Figueroa:AnalBeard ~ : showmount -e sepulveda
Exports list on sepulveda:
/home/simon                        192.168.1.0

now the /mnt directory i've exported originally exported my ZFS share, but i wondered whether ACLs were the issue so i just shared /mnt, and the last share was just a test. Neither of them work though. Any ideas?

zhjim 09-03-2012 02:55 AM

Did you restart the services on sepulveda after changing /etc/exports?
What does showmount for sepulveda say when run it sepulveda itself? Also I doubt that theres a difference might be worth a try.

AnalBeard 09-03-2012 10:02 AM

Quote:

Originally Posted by zhjim (Post 4771188)
Did you restart the services on sepulveda after changing /etc/exports?
What does showmount for sepulveda say when run it sepulveda itself? Also I doubt that theres a difference might be worth a try.

Restarted, and when that didn't work, I rebooted, just make sure. I can't use showmount on Sepulveda because it's not in the repos.

AnalBeard 09-03-2012 05:10 PM

This gets stranger and stranger.

Did some fiddling and modified the line of the one export that works, and now i get this:

Code:

Figueroa:AnalBeard ~ : showmount -e sepulveda
Exports list on sepulveda:
/tank                              192.168.1.0
/mnt/sepulveda.tank                192.168.1.0

Code:

simon@sepulveda:/sbin$ cat /etc/exports
/mnt/sepulveda.tank -ro -maproot=root -network 192.168.1.0 -mask 255.255.255.0
/tank -alldirs -network 192.168.1.0 -mask 255.255.255.0

how very odd!

however, it all works now and i can mount my shares without the appallingness that is Samba.

zhjim 09-04-2012 12:41 AM

Glad you got it working. NFS sometimes can be an ass cause it's not just one service one has to take care of. portmap, nfs_kernel_server, mountd. Also the configuration is really strict a space within the allowed networks options can make a huge difference.


All times are GMT -5. The time now is 09:14 PM.