Welcome! Log In Create A New Profile

Advanced

exportfs: /anyfolder does not support NFS export

Posted by marcint43 
marcint43
exportfs: /anyfolder does not support NFS export
March 07, 2014 05:26PM
I am trying to export anything .... no results....

This post is like desperate action... I am not newbie with linux, not newbie with nfs (I have been using NFS for years)
But with this case I feel stupid ...no idea what could be wrong...

Details of my configuration in last posts in thread:
http://forum.doozan.com/read.php?2,12096,15422#msg-15422
...and many many before...

basicaly:
- ARMel arch (hardware :Zyxel NSA 325 V2, rootfilesystem on pendrive (/dev/sdb1 - /boot part with ext2, /dev/sdb2 - rootfilesystem), u-boot bootloader in NAND
- two hdd with mdadm and lvm ... but this is not this case
- marvel chipset
- kernel 3.13.1-kirkwood-tld-2 kernel.


PROBLEM:
any entry in /etc/exports file caused message "folder does not support NFS export" ...

no matter if debian wheezy, squeeze, testing, if folder is on ext2,ex3,lvm, if nfs3 or nfs4, directly from pendrive, anywhere...

I give up, I spend many hours on that without any result ...
Re: exportfs: /anyfolder does not support NFS export
March 07, 2014 06:03PM
marcint43 Wrote:
-------------------------------------------------------

> This post is like desperate action... I am not
> newbie with linux, not newbie with nfs (I have
> been using NFS for years)
> But with this case I feel stupid ...no idea what
> could be wrong...

I know how you feel :) that it should work. You could try to use a new fresh USB bootdrive and create a new rootfs using my latest rootfs Debian-3.13.1-kirkwood-tld-2-rootfs-bodhi.tar.bz2 (07 Feb 2014) (link in my signature)

Boot with this, and going through the setup again. I know you've done this before, but as a reminder:

- apt-get install nfs-kernel-server nfs-common
- apt-get install portmap
- create exports in /etc/exports
- /etc/init.d/nfs-kernel-server start

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: exportfs: /anyfolder does not support NFS export
March 07, 2014 06:07PM
Also, my kernel server settings:

cat /etc/default/nfs-kernel-server
# Number of servers to start up
RPCNFSDCOUNT=8

# Runtime priority of server (see nice(1))
RPCNFSDPRIORITY=0

# Options for rpc.mountd.
# If you have a port-based firewall, you might want to set up
# a fixed port here using the --port option. For more information, 
# see rpc.mountd(8) or http://wiki.debian.org/SecuringNFS
# To disable NFSv4 on the server, specify '--no-nfs-version 4' here
RPCMOUNTDOPTS=--manage-gids

# Do you want to start the svcgssd daemon? It is only required for Kerberos
# exports. Valid alternatives are "yes" and "no"; the default is "no".
NEED_SVCGSSD=

# Options for rpc.svcgssd.
RPCSVCGSSDOPTS=

Permission for /usr and /usr/src
drwxr-xr-x  10 root root       4096 Sep 20 21:25 usr
drwxr-xr-x 109 root root   4096 Mar  7 02:18 src

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 03/07/2014 06:10PM by bodhi.
marcint43
Re: exportfs: /anyfolder does not support NFS export
March 07, 2014 06:41PM
again, everything from the beginning...

purge any nfs related things, and install fresh , from the beginning....now....

root@debian:~# apt-get remove --purge nfs-common librpcsecgss3 libnfsidmap2 nfs-kernel-server rpcbind
The following packages will be REMOVED:
  libnfsidmap2* nfs-common* nfs-kernel-server* rpcbind*

dpkg: warning: while removing nfs-common, directory '/var/lib/nfs' not empty so not removed

root@debian:~# ls /var/lib/nfs/ -la
total 2
drwxr-xr-x  2 statd nogroup 1024 Jan  1 02:07 .
drwxr-xr-x 22 root  root    1024 Jan  1  1970 ..
-rw-------  1 root  root       0 Jan  1 02:07 .etab.lock
-rw-r--r--  1 root  root       0 Jan  1  1970 export-lock

root@debian:~# lsof -n | grep nfs
nfsiod      25       root  cwd       DIR       8,18     1024          2 /
nfsiod      25       root  rtd       DIR       8,18     1024          2 /
nfsiod      25       root  txt   unknown                                /proc/25/exe

root@debian:~# ps -lwww 25
F S   UID   PID  PPID  C PRI  NI ADDR SZ WCHAN  TTY        TIME CMD
1 S     0    25     2  0  60 -20 -     0 rescue ?          0:00 [nfsiod]

(compiled in kernel, not able to simply kill, umount from proc probably solve, but reboot will be next)

root@debian:~# mount | grep nfs
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)

manually:
removed `/var/lib/nfs/export-lock'
removed `/var/lib/nfs/.etab.lock'
rmdir /var/lib/nfs/

reboot.

root@debian:~# mount | grep nfs
root@debian:~# 


root@debian:~# cat /etc/apt/sources.list
deb http://ftp.us.debian.org/debian wheezy main
deb http://security.debian.org/ wheezy/updates main contrib non-free



ii  libc6:armel                                 2.17-97   
installed from testing, as log as:
ii  lvm2                                        2.02.104-2   
(because of bug with "vector" memory allocation in LVM)


root@debian:~# apt-get  upgrade
The following packages will be upgraded:
  base-files libc-bin libgnutls26 libssl1.0.0 multiarch-support tzdata wget
Y

....hmmm I was sure that I did that before, but maybe after I did backup (which I am reverted back after "migration to squeeze" for few tests)

Get:2 http://ftp.us.debian.org/debian/ wheezy/main base-files armel 7.1wheezy4 [76.7 kB]
Get:3 http://ftp.us.debian.org/debian/ wheezy/main libc-bin armel 2.13-38+deb7u1 [1208 kB]
Get:4 http://ftp.us.debian.org/debian/ wheezy/main libssl1.0.0 armel 1.0.1e-2+deb7u4 [1052 
Get:5 http://ftp.us.debian.org/debian/ wheezy/main multiarch-support armel 2.13-38+deb7u1 [150 
Get:6 http://ftp.us.debian.org/debian/ wheezy/main tzdata all 2013i-0wheezy1 [450 
Get:7 http://ftp.us.debian.org/debian/ wheezy/main wget armel 1.13.4-3+deb7u1 [748 

apt-get autoclean

...for purity:
root@debian:~# rm /var/cache/apt/archives/*deb -v


...for purity:
reboot  (to be 200% sure, libc-bin was upgraded)


root@debian:~# apt-get install nfs-kernel-server
The following NEW packages will be installed:
  libnfsidmap2 nfs-common nfs-kernel-server rpcbind
Y
Creating config file /etc/idmapd.conf with new version
Creating config file /etc/default/nfs-common with new version
Creating config file /etc/exports with new version
Creating config file /etc/default/nfs-kernel-server with new version
[warn] Not starting NFS kernel daemon: no exports. ... (warning).


vim /etc/exports 
/usr/src   192.168.0.0/255.255.255.0(rw,sync,no_root_squash,no_subtree_check,insecure)


ls -ld /usr/src
drwxr-xr-x 2 root root 1024 Jan 22  2012 /usr/src

root@debian:~# ps aux | egrep 'nfs|portm|bind|rpc'
root        20  0.0  0.0      0     0 ?        S<   00:59   0:00 [rpciod]
root        25  0.0  0.0      0     0 ?        S<   00:59   0:00 [nfsiod]
root      2502  0.0  0.1   2368   780 ?        Ss   01:02   0:00 /sbin/rpcbind -w
statd     2729  0.0  0.2   2688  1232 ?        Ss   01:02   0:00 /sbin/rpc.statd
root      2741  0.0  0.1   2996   612 ?        Ss   01:02   0:00 /usr/sbin/rpc.idmapd

root@debian:~# /etc/init.d/nfs-common  restart
[ ok ] Stopping NFS common utilities: idmapd statd.
[ ok ] Starting NFS common utilities: statd idmapd.
root@debian:~# /etc/init.d/rpcbind restart    
[ ok ] Stopping rpcbind daemon....
[ ok ] Starting rpcbind daemon....
root@debian:~# /etc/init.d/nfs-kernel-server restart
[ ok ] Stopping NFS kernel daemon: mountd nfsd.
[ ok ] Unexporting directories for NFS kernel daemon....
[....] Exporting directories for NFS kernel daemon...exportfs: /usr/src does not support NFS export
. ok 
[ ok ] Starting NFS kernel daemon: nfsd mountd.

....I give up ....
Re: exportfs: /anyfolder does not support NFS export
March 07, 2014 06:47PM
Is that a new USB/HDD rootfs?

BTW, my mount:

# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=14494,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=12284k,mode=755)
/dev/disk/by-label/rootfs on / type ext3 (rw,noatime,errors=remount-ro,user_xattr,acl,barrier=1,data=ordered)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=24560k)
tmpfs on /tmp type tmpfs (rw,relatime)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
smbnetfs on /media/net type fuse.smbnetfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 03/07/2014 06:51PM by bodhi.
marcint43
Re: exportfs: /anyfolder does not support NFS export
March 07, 2014 06:54PM
root@debian:~# apt-get install portmap 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'rpcbind' instead of 'portmap'
rpcbind is already the newest version.
rpcbind set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@debian:~#

but rpcbind is a "new version of portmap" so I think this is good enough ... yhmm.. maybe this is an issue ?
but shouldn't, rpcinfo returns good ouptut:


root@debian:~# rpcinfo 
   program version netid     address                service    owner
    100000    4    tcp       0.0.0.0.0.111          portmapper superuser
    100000    3    tcp       0.0.0.0.0.111          portmapper superuser
    100000    2    tcp       0.0.0.0.0.111          portmapper superuser
    100000    4    udp       0.0.0.0.0.111          portmapper superuser
    100000    3    udp       0.0.0.0.0.111          portmapper superuser
    100000    2    udp       0.0.0.0.0.111          portmapper superuser
    100000    4    local     /var/run/rpcbind.sock  portmapper superuser
    100000    3    local     /var/run/rpcbind.sock  portmapper superuser
    100024    1    udp       0.0.0.0.230.39         status     105
    100024    1    tcp       0.0.0.0.224.139        status     105
    100003    2    tcp       0.0.0.0.8.1            nfs        superuser
    100003    3    tcp       0.0.0.0.8.1            nfs        superuser
    100003    4    tcp       0.0.0.0.8.1            nfs        superuser
    100227    2    tcp       0.0.0.0.8.1            -          superuser
    100227    3    tcp       0.0.0.0.8.1            -          superuser
    100003    2    udp       0.0.0.0.8.1            nfs        superuser
    100003    3    udp       0.0.0.0.8.1            nfs        superuser
    100003    4    udp       0.0.0.0.8.1            nfs        superuser
    100227    2    udp       0.0.0.0.8.1            -          superuser
    100227    3    udp       0.0.0.0.8.1            -          superuser
    100021    1    udp       0.0.0.0.152.78         nlockmgr   superuser
    100021    3    udp       0.0.0.0.152.78         nlockmgr   superuser
    100021    4    udp       0.0.0.0.152.78         nlockmgr   superuser
    100021    1    tcp       0.0.0.0.213.214        nlockmgr   superuser
    100021    3    tcp       0.0.0.0.213.214        nlockmgr   superuser
    100021    4    tcp       0.0.0.0.213.214        nlockmgr   superuser
    100021    1    udp6      ::.165.232             nlockmgr   superuser
    100021    3    udp6      ::.165.232             nlockmgr   superuser
    100021    4    udp6      ::.165.232             nlockmgr   superuser
    100021    1    tcp6      ::.135.253             nlockmgr   superuser
    100021    3    tcp6      ::.135.253             nlockmgr   superuser
    100021    4    tcp6      ::.135.253             nlockmgr   superuser
    100005    1    udp       0.0.0.0.142.169        mountd     superuser
    100005    1    tcp       0.0.0.0.128.53         mountd     superuser
    100005    2    udp       0.0.0.0.159.127        mountd     superuser
    100005    2    tcp       0.0.0.0.181.189        mountd     superuser
    100005    3    udp       0.0.0.0.220.104        mountd     superuser
    100005    3    tcp       0.0.0.0.150.112        mountd     superuser

root@debian:~# rpcinfo -u localhost nfs
program 100003 version 2 ready and waiting
program 100003 version 3 ready and waiting
program 100003 version 4 ready and waiting


One thing is VERY strange:
nfskernel server stop
common stop
rpcbind stop

and:
root@debian:~# exportfs -a
exportfs: /usr/src does not support NFS export


...bug in exportfs command ???? ...for example badly interpreting filesystem type ? (for example not possible to export NFS from FUSE filesystems or any other "not known" ... )
marcint43
Re: exportfs: /anyfolder does not support NFS export
March 07, 2014 07:18PM
nfs processes shutdown.

strace only of command exportfs:


root@debian:~# strace exportfs -a
execve("/usr/sbin/exportfs", ["exportfs", "-a"], [/* 14 vars */]) = 0
brk(0)                                  = 0xbc7000
uname({sys="Linux", node="debian", ...}) = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6fed000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=11876, ...}) = 0
mmap2(NULL, 11876, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb6fea000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/arm-linux-gnueabi/libwrap.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\204\"\0\0004\0\0\0"..., 512) = 512
lseek(3, 30004, SEEK_SET)               = 30004
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1000) = 1000
lseek(3, 29752, SEEK_SET)               = 29752
read(3, "A+\0\0\0aeabi\0\1!\0\0\0\0054T\0\6\2\10\1\t\1\22\4\24\1\25\1"..., 44) = 44
fstat64(3, {st_mode=S_IFREG|0644, st_size=31004, ...}) = 0
mmap2(NULL, 64960, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb6fb8000
mprotect(0xb6fbf000, 28672, PROT_NONE)  = 0
mmap2(0xb6fc6000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6) = 0xb6fc6000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/arm-linux-gnueabi/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0d\202\1\0004\0\0\0"..., 512) = 512
lseek(3, 1240084, SEEK_SET)             = 1240084
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2840) = 2840
lseek(3, 1236484, SEEK_SET)             = 1236484
read(3, "A)\0\0\0aeabi\0\1\37\0\0\0\0054T\0\6\2\10\1\t\1\22\4\23\1\24\1"..., 42) = 42
fstat64(3, {st_mode=S_IFREG|0755, st_size=1242924, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6fe9000
mmap2(NULL, 1279368, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb6e7f000
mprotect(0xb6fab000, 28672, PROT_NONE)  = 0
mmap2(0xb6fb2000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12b) = 0xb6fb2000
mmap2(0xb6fb5000, 9608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb6fb5000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/arm-linux-gnueabi/libnsl.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0@/\0\0004\0\0\0"..., 512) = 512
lseek(3, 70460, SEEK_SET)               = 70460
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1160) = 1160
lseek(3, 70136, SEEK_SET)               = 70136
read(3, "A)\0\0\0aeabi\0\1\37\0\0\0\0054T\0\6\2\10\1\t\1\22\4\23\1\24\1"..., 42) = 42
fstat64(3, {st_mode=S_IFREG|0644, st_size=71620, ...}) = 0
mmap2(NULL, 112384, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb6e63000
mprotect(0xb6e74000, 28672, PROT_NONE)  = 0
mmap2(0xb6e7b000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10) = 0xb6e7b000
mmap2(0xb6e7d000, 5888, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb6e7d000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6fe8000
set_tls(0xb6fe84c0, 0xb6fe8b98, 0xb6ff0050, 0xb6fe84c0, 0xb6ff0050) = 0
mprotect(0xb6fb2000, 8192, PROT_READ)   = 0
mprotect(0xb6e7b000, 4096, PROT_READ)   = 0
mprotect(0xb6fc6000, 4096, PROT_READ)   = 0
mprotect(0xb6fef000, 4096, PROT_READ)   = 0
munmap(0xb6fea000, 11876)               = 0
getpid()                                = 2835
rt_sigaction(SIGUSR1, {0xfb0c, [USR1], SA_RESTART|0x4000000}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGUSR2, {0xfb0c, [USR2], SA_RESTART|0x4000000}, {SIG_DFL, [], 0}, 8) = 0
access("/proc/fs/nfs/filehandle", F_OK) = -1 ENOENT (No such file or directory)


access("/proc/fs/nfsd/filehandle", F_OK) = 0

open("/var/lib/nfs/export-lock", O_RDWR|O_CREAT|O_LARGEFILE, 0666) = 3
fcntl64(3, F_SETLKW64, {type=F_WRLCK, whence=SEEK_CUR, start=0, len=0}, 0xbeffbbe8) = 0
brk(0)                                  = 0xbc7000
brk(0xbe8000)                           = 0xbe8000
open("/etc/exports", O_RDONLY|O_LARGEFILE) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=478, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6fec000
read(4, "# /etc/exports: the access contr"..., 1024) = 478
open("/proc/fs/nfsd/export_features", O_RDONLY|O_LARGEFILE) = 5
read(5, "0x17e3f 0xf\n", 50)            = 12
close(5)                                = 0
lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat64("/usr/src", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
read(4, "", 1024)                       = 0
read(4, "", 1024)                       = 0
close(4)                                = 0
munmap(0xb6fec000, 4096)                = 0
openat(AT_FDCWD, "/etc/exports.d", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/src", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
open("/proc/net/rpc/auth.unix.ip/channel", O_WRONLY|O_LARGEFILE) = 4
write(4, "nfsd 0.0.0.0 2147483647 -test-cl"..., 38) = 38
close(4)                                = 0
open("/proc/net/rpc/nfsd.export/channel", O_WRONLY|O_LARGEFILE) = 4
close(4)                                = 0
statfs64("/usr/src", 88, {f_type="EXT2_SUPER_MAGIC", f_bsize=1024, f_blocks=452442, f_bfree=71103, f_bavail=47321, f_files=118944, f_ffree=100934, f_fsid={2147225750, -1093875100}, f_namelen=255, f_frsize=1024}) = 0
open("/proc/net/rpc/nfsd.export/channel", O_WRONLY|O_LARGEFILE) = 4

write(4, "-test-client- /usr/src 3 8192 -1"..., 38) = -1 ENOENT (No such file or directory)

close(4)                                = 0
write(2, "exportfs: ", 10exportfs: )              = 10
write(2, "/usr/src does not support NFS ex"..., 36/usr/src does not support NFS export) = 36

....now now exportfs knows that sth is wrong ....

the rest is cleaning, flushing, closing...



full line (strace -s999):
  write(4, "-test-client- /usr/src 3 8192 -1 -1 0\n", 38) = -1 ENOENT (No such file or directory)

definition of open function:
      int open(const char *pathname, int flags);int open(const char *pathname,
Given a pathname for a file, open() returns a file descriptor, a small, nonnegative integer for use in subsequent system calls (read(2), write(2), lseek(2), fcntl(2), etc.). The file descriptor returned by a successful call will be the lowest-numbered file descriptor not currently open for the process


what is "-test client-" ???? 




root@debian:~# cat /proc/fs/nfsd/export_features 
0x17e3f 0xf
root@debian:~# cat /proc/net/rpc/nfsd.export/channel
root@debian:~# cat /proc/net/rpc/auth.unix.ip/channel 
root@debian:~# grep 'test-client' /etc/ -r
root@debian:~#


root@debian:~# ls /var/lib/nfs/ -l
total 8
drwxr-xr-x  6 statd nogroup 1024 Jan  1 01:06 .
drwxr-xr-x 22 root  root    1024 Jan  1 01:02 ..
-rw-------  1 root  root       0 Jan  1 01:01 .etab.lock
-rw-r--r--  1 root  root     167 Jan  1 01:01 etab
-rw-r--r--  1 root  root       0 Jan  1 01:05 export-lock
-rw-r--r--  1 root  root       0 May 22  2013 rmtab
drwxr-xr-x  2 statd nogroup 1024 May 22  2013 rpc_pipefs
drwxr-xr-x  2 statd nogroup 1024 May 22  2013 sm
drwxr-xr-x  2 statd nogroup 1024 May 22  2013 sm.bak
-rw-r--r--  1 root  root       4 Jan  1 01:02 state
drwxr-xr-x  2 root  root    1024 May 22  2013 v4recovery
-rw-r--r--  1 root  root       0 May 22  2013 xtab

root@debian:~# cat /var/lib/nfs/etab 
/usr/src	192.168.0.0/255.255.255.0(rw,sync,wdelay,hide,nocrossmnt,insecure,no_root_squash,no_all_squash,no_subtree_check,secure_locks,acl,anonuid=65534,anongid=65534)
root@debian:~# 




When I started up all nfs processes 
munmap(0xb6f77000, 4096)                = 0
openat(AT_FDCWD, "/etc/exports.d", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/src", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
open("/proc/net/rpc/auth.unix.ip/channel", O_WRONLY|O_LARGEFILE) = 4
write(4, "nfsd 0.0.0.0 2147483647 -test-client-\n", 38) = 38
close(4)                                = 0
open("/proc/net/rpc/nfsd.export/channel", O_WRONLY|O_LARGEFILE) = 4
close(4)                                = 0
statfs64("/usr/src", 88, {f_type="EXT2_SUPER_MAGIC", f_bsize=1024, f_blocks=452442, f_bfree=71105, f_bavail=47323, f_files=118944, f_ffree=100933, f_fsid={2147225750, -1093875100}, f_namelen=255, f_frsize=1024}) = 0
open("/proc/net/rpc/nfsd.export/channel", O_WRONLY|O_LARGEFILE) = 4
write(4, "-test-client- /usr/src 3 8192 -1 -1 0\n", 38) = -1 ENOENT (No such file or directory)
close(4)                                = 0
write(2, "exportfs: ", 10exportfs: )              = 10
write(2, "/usr/src does not support NFS export", 36/usr/src does not support NFS export) = 36
write(2, "\n", 1

...so this is the same...

similar problem years ago...
http://markmail.org/message/hhnzko3hmkgxm65o#query:+page:1+mid:m5mxxrd3dhrf7a5e+state:results
..and quote:
"And I guess a boot-time related problem could be hardware dependent somehow."

So...u-boot is strongly suspected...


root@debian:~# fw_printenv 
Warning: Bad CRC, using default environment
bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm
bootdelay=5
baudrate=115200
root@debian:~#
marcint43
Re: exportfs: /anyfolder does not support NFS export
March 07, 2014 07:25PM
Marvell>> printenv 
bootargs=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/nfs rw init=/init
bootdelay=2
baudrate=115200
loads_echo=0
ipaddr=10.4.52.165
serverip=10.4.52.7
rootpath=/srv/ubuntu
netmask=255.255.255.0
nandEcc=1bit
MODEL_ID=AE03
PRODUCT_NAME=NSA-325v2
FEATURE_BIT=00
CONTRY_TYPE=FF
VENDOR_NAME=MitraStar Technology Corp.
run_diag=yes
console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x100000(root)
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
lcd0_enable=0
lcd0_params=640x480-16@60
ethaddr=00:50:43:00:02:02
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
image_multi=yes
ethact=egiga0
arcNumber=4495
bootargs_stock=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/nfs rw init=/init
bootargs_linux=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=LABEL=rootfs loglevel=8
bootcmd_linux=setenv bootargs $(bootargs_linux); mw.l f1010100 0020c000; usb reset; ext2load usb 0:1 $(loadaddr) /uImage; ext2load usb 0:1 0x01100000 /uInitrd; bootm $(loadaddr) 0x01100000
bootcmd_stock=setenv bootargs $(bootargs_stock); nand read.e $(loadaddr) $(kernel_addr) 0xA00000; bootm $(loadadr)
to_stock=setenv mainlineLinux no; setenv bootcmd \'run bootcmd_stock\'; saveenv; reset
to_linux=setenv mainlineLinux yes; setenv bootcmd \'run bootcmd_linux\'; saveenv; reset
bootcmd='run bootcmd_linux'
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=yes
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
disaMvPnp=no
enaAutoRecovery=yes
kernel_addr=0xc80000
pcieTune=no
pcieTune1=no

Environment size: 2497/131068 bytes
Marvell>>

Marvell>> saveenv 
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
Marvell>>

root@debian:~# fw_printenv 
Warning: Bad CRC, using default environment
bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm
bootdelay=5
baudrate=115200

root@debian:~# exportfs -a
exportfs: /usr/src does not support NFS export
marcint43
Re: exportfs: /anyfolder does not support NFS export
March 07, 2014 07:30PM
> Is that a new USB/HDD rootfs?

what do you mean ?
hdd I am not using now. admittedly mdadm starts but I exported LVM groups ... so system is not able to import them .. so is not able to activate and mount, ... so not bother me...
Without NFS I am like without hand ;-)

> BTW, my mount:

seems similar .. nothing special I see..
Re: exportfs: /anyfolder does not support NFS export
March 07, 2014 07:47PM
marcint43 Wrote:
-------------------------------------------------------
>
> Marvell>> printenv 
> bootargs=console=ttyS0,115200
> mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_en
> v),0x80000(key_store),0x80000(info),0xA00000(etc),
> 0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(ker
> nel_2),0x2FC0000(rootfs2) root=/dev/nfs rw
> init=/init
> bootdelay=2
> baudrate=115200
> loads_echo=0
> ipaddr=10.4.52.165
> serverip=10.4.52.7
> rootpath=/srv/ubuntu
> netmask=255.255.255.0
> nandEcc=1bit
> MODEL_ID=AE03
> PRODUCT_NAME=NSA-325v2
> FEATURE_BIT=00
> CONTRY_TYPE=FF
> VENDOR_NAME=MitraStar Technology Corp.
> run_diag=yes
> console=console=ttyS0,115200
> mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x1
> 00000(root)
> ethprime=egiga0
> bootargs_root=root=/dev/nfs rw
> bootargs_end=:::DB88FXX81:eth0:none
> image_name=uImage
> standalone=fsload 0x2000000 $(image_name);setenv
> bootargs $(console) root=/dev/mtdblock0 rw
> ip=$(ipaddr):$(serverip)$(bootargs_end)
> $(mvPhoneConfig); bootm 0x2000000;
> lcd0_enable=0
> lcd0_params=640x480-16@60
> ethaddr=00:50:43:00:02:02
> ethmtu=1500
> mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fx
> o
> mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2
> :3),mtu=1500
> usb0Mode=host
> yuk_ethaddr=00:00:00:EE:51:81
> netretry=no
> rcvrip=169.254.100.100
> loadaddr=0x02000000
> autoload=no
> image_multi=yes
> ethact=egiga0
> arcNumber=4495
> bootargs_stock=console=ttyS0,115200
> mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_en
> v),0x80000(key_store),0x80000(info),0xA00000(etc),
> 0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(ker
> nel_2),0x2FC0000(rootfs2) root=/dev/nfs rw
> init=/init
> bootargs_linux=console=ttyS0,115200
> mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_en
> v),0x80000(key_store),0x80000(info),0xA00000(etc),
> 0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(ker
> nel_2),0x2FC0000(rootfs2) root=LABEL=rootfs
> loglevel=8
> bootcmd_linux=setenv bootargs $(bootargs_linux);
> mw.l f1010100 0020c000; usb reset; ext2load usb
> 0:1 $(loadaddr) /uImage; ext2load usb 0:1
> 0x01100000 /uInitrd; bootm $(loadaddr) 0x01100000
> bootcmd_stock=setenv bootargs $(bootargs_stock);
> nand read.e $(loadaddr) $(kernel_addr) 0xA00000;
> bootm $(loadadr)
> to_stock=setenv mainlineLinux no; setenv bootcmd
> \'run bootcmd_stock\'; saveenv; reset
> to_linux=setenv mainlineLinux yes; setenv bootcmd
> \'run bootcmd_linux\'; saveenv; reset
> bootcmd='run bootcmd_linux'
> stdin=serial
> stdout=serial
> stderr=serial
> mainlineLinux=yes
> enaMonExt=no
> enaCpuStream=no
> enaWrAllo=no
> pexMode=RC
> disL2Cache=no
> setL2CacheWT=yes
> disL2Prefetch=yes
> enaICPref=yes
> enaDCPref=yes
> sata_dma_mode=yes
> netbsd_en=no
> vxworks_en=no
> disaMvPnp=no
> enaAutoRecovery=yes
> kernel_addr=0xc80000
> pcieTune=no
> pcieTune1=no
> 
> Environment size: 2497/131068 bytes
> Marvell>>
> 
> Marvell>> saveenv 
> Saving Environment to NAND...
> Erasing Nand...Writing to Nand... done
> Marvell>>
> 
>
>
>
> root@debian:~# fw_printenv 
> Warning: Bad CRC, using default environment
> bootcmd=bootp; setenv bootargs root=/dev/nfs
> nfsroot=${serverip}:${rootpath}
> ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:$
> {hostname}::off; bootm
> bootdelay=5
> baudrate=115200
> 
> root@debian:~# exportfs -a
> exportfs: /usr/src does not support NFS export
>
You 're not done with your rootfs yet. Look at /etc/fw_env.config. Address needs to be consistent with the UBoot env address that uBoot expects. My rootfs is for most Kirkwood plugs that default to 0xC0000. Your stock uBoot might be different.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 03/07/2014 07:51PM by bodhi.
marcint43
Re: exportfs: /anyfolder does not support NFS export
March 08, 2014 03:26AM
root@debian:~# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00100000 00020000 "uboot"
mtd1: 00080000 00020000 "uboot_env"
mtd2: 00080000 00020000 "key_store"
mtd3: 00080000 00020000 "info"
mtd4: 00a00000 00020000 "etc"
mtd5: 00a00000 00020000 "kernel_1"
mtd6: 02fc0000 00020000 "rootfs1"
mtd7: 00a00000 00020000 "kernel_2"
mtd8: 02fc0000 00020000 "rootfs2"
root@debian:~# cat /etc/fw_env.config 
# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
/dev/mtd0 0xc0000 0x20000 0x20000
marcint43
Re: exportfs: /anyfolder does not support NFS export
March 08, 2014 03:44AM
booted from stock firmware:

/ # cat /etc/fw_env.config 
# Configuration file for fw_(printenv/saveenv) utility.
# Up to two entries are valid, in this case the redundand
# environment sector is assumed present.
# Notice, that the "Number of sectors" is ignored on NOR.

# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
# NAND example
/dev/mtd1               0x0000          0x20000         0x20000                 4


/ # cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00100000 00020000 "uboot"
mtd1: 00080000 00020000 "uboot_env"
mtd2: 00080000 00020000 "key_store"
mtd3: 00080000 00020000 "info"
mtd4: 00a00000 00020000 "etc"
mtd5: 00a00000 00020000 "kernel_1"
mtd6: 02fc0000 00020000 "rootfs1"
mtd7: 00a00000 00020000 "kernel_2"
mtd8: 02fc0000 00020000 "rootfs2"
/ #

reboot
 
Marvell>> run to_linux


fixed my config in debian:
root@debian:~# cat /etc/fw_env.config
/dev/mtd1 0x0000 0x20000 0x20000 4

reboot

now fw_printenv started to work:
root@debian:~# fw_printenv 
bootargs=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/nfs rw init=/init
bootdelay=2
baudrate=115200
loads_echo=0
ipaddr=10.4.52.165
serverip=10.4.52.7
rootpath=/srv/ubuntu
netmask=255.255.255.0
nandEcc=1bit
MODEL_ID=AE03
PRODUCT_NAME=NSA-325v2
FEATURE_BIT=00
CONTRY_TYPE=FF
VENDOR_NAME=MitraStar Technology Corp.
run_diag=yes
console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x100000(root)
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
lcd0_enable=0
lcd0_params=640x480-16@60
ethaddr=00:50:43:00:02:02
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
image_multi=yes
ethact=egiga0
arcNumber=4495
bootargs_stock=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/nfs rw init=/init
bootargs_linux=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=LABEL=rootfs loglevel=8
bootcmd_linux=setenv bootargs $(bootargs_linux); mw.l f1010100 0020c000; usb reset; ext2load usb 0:1 $(loadaddr) /uImage; ext2load usb 0:1 0x01100000 /uInitrd; bootm $(loadaddr) 0x01100000
bootcmd_stock=setenv bootargs $(bootargs_stock); nand read.e $(loadaddr) $(kernel_addr) 0xA00000; bootm $(loadadr)
to_stock=setenv mainlineLinux no; setenv bootcmd \'run bootcmd_stock\'; saveenv; reset
to_linux=setenv mainlineLinux yes; setenv bootcmd \'run bootcmd_linux\'; saveenv; reset
stdin=serial
stdout=serial
stderr=serial
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
disaMvPnp=no
enaAutoRecovery=yes
kernel_addr=0xc80000
pcieTune=no
pcieTune1=no
mainlineLinux=yes
bootcmd='run bootcmd_linux'
root@debian:~# 


root@debian:~# exportfs -a
exportfs: /usr/src does not support NFS export
root@debian:~# exportfs -r
exportfs: /usr/src does not support NFS export


...still nothing :(
Re: exportfs: /anyfolder does not support NFS export
March 08, 2014 04:58AM
marcint43,

Reboot. Check if NFS share is visible from another box.

-bodhi
===========================
Forum Wiki
bodhi's corner
marcint43
Re: exportfs: /anyfolder does not support NFS export
March 08, 2014 05:26PM
share is visible ...but not accessible ?

CLIENT## mount -t nfs <NAS_IP>:/usr/src /test
mount.nfs: access denied by server while mounting <NAS_IP>:/usr/src

CLIENT# showmount -e <NAS_IP>
Export list for <NAS_IP>:
/usr/src 192.168.0.0/255.255.255.0

tcpdump on Zyxel-NAS side:


01:20:48.645073 IP IP_CLIENT.697 > IP_NAS.2049: Flags [S], seq 3297024397, win 14600, options [mss 
   1460,sackOK,TS val 6546064 ecr 0,nop,wscale 7], length 0
01:20:48.645144 IP IP_NAS.2049 > IP_CLIENT.697: Flags [S.], seq 2551774037, ack 3297024398, win 28960, 
    options [mss 1460,sackOK,TS val 94864 ecr 6546064,nop,wscale 6], length 0
01:20:48.645922 IP IP_CLIENT.697 > IP_NAS.2049: Flags [.], ack 1, win 115, options [nop,nop,TS val 6546065 ecr 94864], length 0
01:20:48.646005 IP IP_CLIENT.1232745354 > IP_NAS.2049: 40 null
01:20:48.646034 IP IP_NAS.2049 > IP_CLIENT.697: Flags [.], ack 45, win 453, options [nop,nop,TS val 94864 ecr 6546065], length 0
01:20:48.646173 IP IP_NAS.2049 > IP_CLIENT.1232745354: reply ok 24 null
01:20:48.647677 IP IP_CLIENT.697 > IP_NAS.2049: Flags [.], ack 29, win 115, options [nop,nop,TS val 6546065 ecr 94864], length 0
01:20:48.647724 IP IP_CLIENT.1249522570 > IP_NAS.2049: 112 getattr fh 0,0/24
01:20:48.647800 IP IP_NAS.2049 > IP_CLIENT.1249522570: reply ERR 20: Auth Bogus Credentials (seal broken)
01:20:48.648615 IP IP_CLIENT.697 > IP_NAS.2049: Flags [F.], seq 161, ack 53, win 115, options [nop,nop,TS val 6546065 ecr 94864], length 0
01:20:48.648678 IP IP_NAS.2049 > IP_CLIENT.697: Flags [F.], seq 53, ack 162, win 453, options [nop,nop,TS val 94864 ecr 6546065], length 0
01:20:48.649563 IP IP_CLIENT.697 > IP_NAS.2049: Flags [.], ack 54, win 115, options [nop,nop,TS val 6546066 ecr 94864], length 0
01:20:48.650039 IP IP_CLIENT.697 > IP_NAS.2049: Flags [S], seq 3297090096, win 14480, options [mss 1460,sackOK,TS val 6546066 ecr 94864,nop,wscale 7], length 0
01:20:48.650093 IP IP_NAS.2049 > IP_CLIENT.697: Flags [S.], seq 2551851418, ack 3297090097, win 28960,
 options [mss 1460,sackOK,TS val 94865 ecr 6546066,nop,wscale 6], length 0
01:20:48.651771 IP IP_CLIENT.697 > IP_NAS.2049: Flags [.], ack 1, win 114, options [nop,nop,TS val 6546066 ecr 94865], length 0
01:20:48.651829 IP IP_CLIENT.1249522570 > IP_NAS.2049: 112 getattr fh 0,0/24
01:20:48.651857 IP IP_NAS.2049 > IP_CLIENT.697: Flags [.], ack 117, win 453, options [nop,nop,TS val 94865 ecr 6546066], length 0
01:20:48.651975 IP IP_NAS.2049 > IP_CLIENT.1249522570: reply ERR 20: Auth Bogus Credentials (seal broken)
01:20:48.652781 IP IP_CLIENT.697 > IP_NAS.2049: Flags [.], ack 25, win 114, options [nop,nop,TS val 6546066 ecr 94865], length 0
01:20:48.652817 IP IP_CLIENT.697 > IP_NAS.2049: Flags [F.], seq 117, ack 25, win 114, options [nop,nop,TS val 6546066 ecr 94865], length 0
01:20:48.652869 IP IP_NAS.2049 > IP_CLIENT.697: Flags [F.], seq 25, ack 118, win 453, options [nop,nop,TS val 94865 ecr 6546066], length 0
01:20:48.654203 IP IP_CLIENT.697 > IP_NAS.2049: Flags [.], ack 26, win 114, options [nop,nop,TS val 6546067 ecr 94865], length 0

01:20:51.657523 IP IP_CLIENT.697 > IP_NAS.2049: Flags [S], seq 3297155751, win 14480, options [mss 1460,sackOK,TS 
val 6546818 ecr 94865,nop,wscale 7], length 0
01:20:51.657585 IP IP_NAS.2049 > IP_CLIENT.697: Flags [S.], seq 2598843427, ack 3297155752, win 28960, options [mss 
1460,sackOK,TS val 95165 ecr 6546818,nop,wscale 6], length 0
01:20:51.658426 IP IP_CLIENT.697 > IP_NAS.2049: Flags [.], ack 1, win 114, options [nop,nop,TS val 6546818 ecr 95165], length 0
01:20:51.658495 IP IP_CLIENT.1249522570 > IP_NAS.2049: 112 getattr fh 0,0/24
01:20:51.658523 IP IP_NAS.2049 > IP_CLIENT.697: Flags [.], ack 117, win 453, options [nop,nop,TS val 95165 ecr 6546818], length 0
01:20:51.658639 IP IP_NAS.2049 > IP_CLIENT.1249522570: reply ERR 20: Auth Bogus Credentials (seal broken)
01:20:51.660244 IP IP_CLIENT.697 > IP_NAS.2049: Flags [.], ack 25, win 114, options [nop,nop,TS val 6546818 ecr 95165], length 0
01:20:51.689513 IP IP_CLIENT.697 > IP_NAS.2049: Flags [F.], seq 117, ack 25, win 114, options [nop,nop,TS val 6546826 ecr 95165], length 0
01:20:51.689569 IP IP_NAS.2049 > IP_CLIENT.697: Flags [F.], seq 25, ack 118, win 453, options [nop,nop,TS val 95168 ecr 6546826], length 0
01:20:51.690374 IP IP_CLIENT.697 > IP_NAS.2049: Flags [.], ack 26, win 114, options [nop,nop,TS val 6546826 ecr 95168], length 0
marcint43
Re: exportfs: /anyfolder does not support NFS export
March 08, 2014 05:35PM
CLIENT# mount -vvvv -t nfs IP_NAS:/usr/src a
mount: fstab path: "/etc/fstab"
mount: mtab path:  "/etc/mtab"
mount: lock path:  "/etc/mtab~"
mount: temp path:  "/etc/mtab.tmp"
mount: UID:        0
mount: eUID:       0
mount: spec:  "IP_NAS:/usr/src"
mount: node:  "a"
mount: types: "nfs"
mount: opts:  "(null)"
mount: external mount: argv[0] = "/sbin/mount.nfs"
mount: external mount: argv[1] = "IP_NAS:/usr/src"
mount: external mount: argv[2] = "a"
mount: external mount: argv[3] = "-v"
mount: external mount: argv[4] = "-o"
mount: external mount: argv[5] = "rw"
mount.nfs: timeout set for Sun Mar  9 00:35:25 2014
mount.nfs: trying text-based options 'vers=4,addr=IP_NAS,clientaddr=IP_CLIENT'
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting IP_NAS:/usr/src
CLIENT# 
CLIENT# 
CLIENT# mount -vvvv -t nfs -o vers=3 IP_NAS:/usr/src a
mount: fstab path: "/etc/fstab"
mount: mtab path:  "/etc/mtab"
mount: lock path:  "/etc/mtab~"
mount: temp path:  "/etc/mtab.tmp"
mount: UID:        0
mount: eUID:       0
mount: spec:  "IP_NAS:/usr/src"
mount: node:  "a"
mount: types: "nfs"
mount: opts:  "vers=3"
mount: external mount: argv[0] = "/sbin/mount.nfs"
mount: external mount: argv[1] = "IP_NAS:/usr/src"
mount: external mount: argv[2] = "a"
mount: external mount: argv[3] = "-v"
mount: external mount: argv[4] = "-o"
mount: external mount: argv[5] = "rw,vers=3"
mount.nfs: timeout set for Sun Mar  9 00:35:37 2014
mount.nfs: trying text-based options 'vers=3,addr=IP_NAS'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying IP_NAS prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying IP_NAS prog 100005 vers 3 prot UDP port 59384
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting IP_NAS:/usr/src
CLIENT#

mountd refuses connection ...
marcint43
Re: exportfs: /anyfolder does not support NFS export
March 08, 2014 06:30PM
GOT IT !!!!!!

You were right ... ignore error message from exportfs, and just try to mount from client side .... BUT ... very important FORCE TO NFS3 (NFS4 doesnt work yet ... of course it has got sense because I have no auth services needed for nfs4)

(In listing above I have bug in netmask in /etc/exports.)


....but I am trying to remember .. what was wrong before... AT the beginning ... I was testing accessing with nfs3 but this was not work before ...


I did many changes in files,

another changes:
- disabled ipv6
- entries in /etc/hosts
- increased verbosity of daemons
- fixed ntpd was not working properly
- uboot env? ...Is it possible ???

I must get know what was the root cause, before I will find that I feel like a stupid child ...

I will revert back OS to backuped "not working" one and just try to use .... I will test this tomorrow.


Final Findings:
- in exportfs command there is probably bug in displaying bad message ... OR this is message for NFS4 which is not configured!
- exportfs error message is not error message, this is some kind of warn


THANKS A LOOOOOOT !
Re: exportfs: /anyfolder does not support NFS export
March 08, 2014 06:30PM
marcint43,

Congrats!

Concur. I think this exportfs error message was a terrible error message, a lazy way to report a warning :))

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 2 time(s). Last edit at 03/08/2014 06:34PM by bodhi.
marcint43
Re: exportfs: /anyfolder does not support NFS export
March 08, 2014 06:32PM
next caveat:
/usr/src2 *(rw,sync,no_root_squash,no_subtree_check,insecure)

asterisk is not working. There is need to be directly entered ip or ip/netmask.
Sintu Kumar
Re: exportfs: /anyfolder does not support NFS export
May 22, 2014 06:43AM
Please also check that whether you are mounting from server or from NAS drive. As NAS drive doesnot support NFS Export.
Re: exportfs: /anyfolder does not support NFS export
November 29, 2014 03:46PM
I had the same message until I exported a mount point that had no spaces in it. I was using:

# /etc/fstab
/mnt/My\040Book   /export/My\040Book    none   bind   0   0

# /etc/exports
/export/My\040Book	10.0.0.0/24(rw,nohide,insecure,no_subtree_check,async)

But it worked with:

# /etc/fstab
/mnt/My\040Book   /export/MyBook    none   bind   0   0

# /etc/exports
/export/My Book	10.0.0.0/24(rw,nohide,insecure,no_subtree_check,async)

Note that the filesystem is still mounted with a space in /mnt.
marcint43
Re: exportfs: /anyfolder does not support NFS export
August 26, 2021 03:47AM
marcint43 Wrote:
-------------------------------------------------------
> GOT IT !!!!!!
>
> You were right ... ignore error message from
> exportfs, and just try to mount from client side
> .... BUT ... very important FORCE TO NFS3 (NFS4
> doesnt work yet ... of course it has got sense
> because I have no auth services needed for nfs4)
>
> (In listing above I have bug in netmask in
> /etc/exports.)
>
>
> ....but I am trying to remember .. what was wrong
> before... AT the beginning ... I was testing
> accessing with nfs3 but this was not work before
> ...
>
>
> I did many changes in files,
>
> another changes:
> - disabled ipv6
> - entries in /etc/hosts
> - increased verbosity of daemons
> - fixed ntpd was not working properly
> - uboot env? ...Is it possible ???
>
> I must get know what was the root cause, before I
> will find that I feel like a stupid child ...
>
> I will revert back OS to backuped "not working"
> one and just try to use .... I will test this
> tomorrow.
>
>
> Final Findings:
> - in exportfs command there is probably bug in
> displaying bad message ... OR this is message for
> NFS4 which is not configured!
> - exportfs error message is not error message,
> this is some kind of warn
>
>
> THANKS A LOOOOOOT !
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: