LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   NFS sharing and mounting problem on KVM Debian VM (https://www.linuxquestions.org/questions/linux-wireless-networking-41/nfs-sharing-and-mounting-problem-on-kvm-debian-vm-4175471208/)

golden_boy615 07-28-2013 09:45 AM

NFS sharing and mounting problem on KVM Debian VM
 
I want to share a folder with nfs in my debian VM which is in KVM hypervisor. I did axactly the same as this site

but when I use this command to make my share point effect I get this error:
Quote:

# cat /etc/exports
/var/result *(ro,sync,no_subtree_check)
Quote:

#exportfs -a
exportfs: /var/result does not support NFS export

/var/result is empty . and in the client side I got this :
Quote:

mount 192.168.0.12:/var/result /home/result/
mount.nfs: access denied by server while mounting 192.168.0.12:/var/result
I tested this configuration exactly on same machine (but bare metal) and everything worked fine.
does any body know what is wrong?

Linux MR 07-29-2013 06:55 PM

Which nfs version are you using?
What are the permissions on the folder /var/results?
Have you tried exportfs -r (to refresh or empty cache and bring in new settings)?
When mounting also try using the -v to get more verbose output on the client side.

golden_boy615 07-31-2013 04:07 AM

Quote:

# nfsstat --version
nfsstat: 1.2.6
permission is :
Quote:

drwxr-xr-x
yes I have tried exportfs -r many times
Quote:

#exportfs -rv
exporting *:/var/result
exportfs: /var/result does not support NFS export
# exportfs -av
exporting *:/var/result
exportfs: /var/result does not support NFS export
Quote:

# df -T
df: `/USR': No such file or directory
df: `/APP': No such file or directory
Filesystem Type 1K-blocks Used Available Use% Mounted on
rootfs rootfs 10451380 1184904 8742240 12% /
udev devtmpfs 10240 0 10240 0% /dev
tmpfs tmpfs 50952 156 50796 1% /run
none aufs 10451380 1184904 8742240 12% /
tmpfs tmpfs 5120 4 5116 1% /run/lock
tmpfs tmpfs 101900 0 101900 0% /run/shm
as you see I use aufs as my root partition format could be a cause of it or not ?
if it is how can I override it?

sunilpopaliya 07-31-2013 05:09 AM

Hi

Can you check your NFS service status??


======
sunil

golden_boy615 08-02-2013 11:38 PM

here you are:
Quote:

# /etc/init.d/nfs-kernel-server status
nfsd not running
# /etc/init.d/nfs-common status
all daemons running

golden_boy615 08-02-2013 11:44 PM

sorry last post was my mistake but this is their statuses again:
Quote:

# /etc/init.d/nfs-kernel-server status
nfsd running

# /etc/init.d/nfs-common status
all daemons running

# exportfs -av
exporting *:/var/result
exportfs: /var/result does not support NFS export
# exportfs -rv
exporting *:/var/result
exportfs: /var/result does not support NFS export

~# cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
/var/result *(ro,sync,no_subtree_check)


All times are GMT -5. The time now is 07:33 PM.