Nfs folder does not support NFS export

This forum is for discussion about general software issues.

Nfs folder does not support NFS export

Postby marmotton » Sun Mar 30, 2014 3:38 pm

Hi everybody,

I'm willing to export a folder over NFS, a quite common thing isn't it, and got this message each time I try to start the nfs daemon.
My setup is as follows:
- Arch on a Goflex net
- folder is on a raid array, built with 2 sata disks on the appropriated ports on the goflex, and the array is formatted with ext4
- nfs-utils installed, system is up-to-date, and I followed the instructions on the arch wiki (folder bind mounted, added to /etc/exports, ...)

I also tried to export another folder under /home, same result, I got a "does not support NFS export" error.
Google hasn't been of any help, and I'm thinking that either I made a very common mistake, or I should better consider to abandon and share this folder by other means like samba.

Here are some command outputs, feel free to ask any others, and more important, thanks a lot in advance for your help !

$this->bbcode_second_pass_code('', '[marmotte@goflex ~]$ uname -a
Linux goflex 3.1.10-32-ARCH #1 PREEMPT Tue Feb 11 06:26:34 MST 2014 armv5tel GNU/Linux
')

$this->bbcode_second_pass_code('', '[marmotte@goflex ~]$ cat /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
UUID=0e351e10-aede-4f55-bbf6-9b4c730e5f99 /raid ext4 defaults,nofail 0 0

/raid /srv/nfs/share none bind 0 0
')

$this->bbcode_second_pass_code('', '[marmotte@goflex ~]$ cat /etc/exports
# /etc/exports - exports(5) - directories exported to NFS clients
#
# Example for NFSv2 and NFSv3:
# /srv/home hostname1(rw,sync) hostname2(ro,sync)
# Example for NFSv4:
# /srv/nfs4 hostname1(rw,sync,fsid=0)
# /srv/nfs4/home hostname1(rw,sync,nohide)
# Using Kerberos and integrity checking:
# /srv/nfs4 *(rw,sync,sec=krb5i,fsid=0)
# /srv/nfs4/home *(rw,sync,sec=krb5i,nohide)
#
# Use `exportfs -arv` to reload.

/srv/nfs/share 192.168.1.50(rw,no_subtree_check,nohide)
')

$this->bbcode_second_pass_code('', '[marmotte@goflex ~]$ ll /srv/ | grep nfs
drwxrwxrwx 3 root root 4096 Feb 13 2014 nfs
[marmotte@goflex ~]$ ll /srv/nfs/ | grep share
drwxrwxrwx 3 root root 4096 Feb 13 2014 share
')

$this->bbcode_second_pass_code('', '[marmotte@goflex ~]$ sudo exportfs -ra
exportfs: /srv/nfs/share does not support NFS export
')

$this->bbcode_second_pass_code('', '[marmotte@goflex ~]$ sudo systemctl start nfsd
Job for nfsd.service failed. See 'systemctl status nfsd.service' and 'journalctl -xn' for details.
[marmotte@goflex ~]$ journalctl -xn
-- Logs begin at Thu 1970-01-01 01:00:17 CET, end at Fri 1970-01-02 01:09:03 CET. --
Jan 02 01:04:59 goflex sudo[760]: pam_unix(sudo:session): session closed for user root
Jan 02 01:09:02 goflex sudo[774]: marmotte : TTY=pts/0 ; PWD=/home/marmotte ; USER=root ; COMMAND=/usr/bin/systemctl start nfsd
Jan 02 01:09:02 goflex sudo[774]: pam_unix(sudo:session): session opened for user root by marmotte(uid=0)
Jan 02 01:09:02 goflex systemd[1]: Starting NFS Server Daemon...
-- Subject: Unit nfsd.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nfsd.service has begun starting up.
Jan 02 01:09:02 goflex rpc.nfsd[777]: rpc.nfsd: Setting version failed: errno 22 (Invalid argument)
Jan 02 01:09:02 goflex exportfs[789]: exportfs: /srv/nfs/share does not support NFS export
Jan 02 01:09:02 goflex systemd[1]: nfsd.service: control process exited, code=exited status=1
Jan 02 01:09:03 goflex systemd[1]: Failed to start NFS Server Daemon.
-- Subject: Unit nfsd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nfsd.service has failed.
--
-- The result is failed.
Jan 02 01:09:03 goflex systemd[1]: Unit nfsd.service entered failed state.
Jan 02 01:09:03 goflex sudo[774]: pam_unix(sudo:session): session closed for user root
')
marmotton
 
Posts: 1
Joined: Sun Mar 30, 2014 1:22 pm

Return to General

Who is online

Users browsing this forum: No registered users and 5 guests

cron