LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   nfs server configured but not mounting (https://www.linuxquestions.org/questions/linux-server-73/nfs-server-configured-but-not-mounting-852585/)

deepu.sarma 12-27-2010 06:14 AM

nfs server configured but not mounting
 
Hi every body,


I have configured an nfs server like this

#vi /etc/exports
/var/ftp/pub *.dell.com(rw,sync)

& configured yum server

from client yum update is working but by using nfs method if i am trying to mount i am getting this message
mount 192.168.0.254:/var/ftp/pub failed,reason given by server:permission denied

Sayan Acharjee 12-27-2010 06:42 AM

Quote:

Originally Posted by deepu.sarma (Post 4204188)
Hi every body,


I have configured an nfs server like this

#vi /etc/exports
/var/ftp/pub *.dell.com(rw,sync)

& configured yum server

from client yum update is working but by using nfs method if i am trying to mount i am getting this message
mount 192.168.0.254:/var/ftp/pub failed,reason given by server:permission denied

Check the permission of this folder /var/ftp/pub

Code:

#ls -ld /var/ftp/pub
Ensure adequate permission is given to it to make it accessible.

ComputerErik 12-27-2010 10:31 AM

The /etc/exports looks wrong to me, the general format is:

/path/to/export subnet(options)

so in your guess I would guess you want something like:

/var/ftp/pub 192.168.0.0/24 (rw,sync)

then run the exportfs command with appropriate flags to reread the config file. What your /etc/exports is doing is allowing only hosts from dell.com to connect to your NFS share, which I kind of doubt was the intention.

Now the piece about yum seems out of place to me since yum is used to install software, and is done via ftp/http and has nothing to do with an NFS share. What you would want to do to mount the share is something like:

mount hostname:/var/ftp/pub /nfs


All times are GMT -5. The time now is 04:31 PM.