LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
Search this Thread
Old 07-28-2013, 09:45 AM   #1
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 442

Rep: Reputation: 17
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?
 
Old 07-29-2013, 06:55 PM   #2
Linux MR
Member
 
Registered: May 2013
Distribution: Red Hat, Scientific, Fedora, openSuSE, Mageia, Mint, Arch
Posts: 57

Rep: Reputation: Disabled
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.
 
Old 07-31-2013, 04:07 AM   #3
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 442

Original Poster
Rep: Reputation: 17
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?
 
Old 07-31-2013, 05:09 AM   #4
sunilpopaliya
Member
 
Registered: Apr 2012
Posts: 42

Rep: Reputation: Disabled
Hi

Can you check your NFS service status??


======
sunil
 
Old 08-02-2013, 11:38 PM   #5
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 442

Original Poster
Rep: Reputation: 17
here you are:
Quote:
# /etc/init.d/nfs-kernel-server status
nfsd not running
# /etc/init.d/nfs-common status
all daemons running
 
Old 08-02-2013, 11:44 PM   #6
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 442

Original Poster
Rep: Reputation: 17
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)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS sharing problem madhanblore Linux - Networking 5 08-07-2009 01:23 PM
NFS sharing problem in solaris9 sunram Solaris / OpenSolaris 4 03-17-2008 12:48 AM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 04:18 AM
problem sharing folder via NFS cdavidson Linux - Newbie 4 04-03-2005 08:39 PM
Problem with sharing CD-ROM over network, NFS PR0T0N Linux - Networking 3 12-05-2003 10:18 AM


All times are GMT -5. The time now is 10:25 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration