nfs processes shutdown.
strace only of command exportfs:
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...
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:~#