Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 46971

Re: exportfs: /anyfolder does not support NFS export

$
0
0
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 ....

Viewing all articles
Browse latest Browse all 46971

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>