bpurcell.org - Linux NFS mount: failed, reason given by server: Permission denied
Calendar
SunMonTueWedThuFriSat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Subject Archives
Amazon EC2 (15)
ColdFusionMX (155)
Corvette (3)
Flash Lite (4)
Flash Media Server (5)
Flash Player (3)
Flex (39)
General Web Dev (14)
HDTV (3)
Jboss (1)
Jquery (2)
JRun (59)
Max 2003 (3)
Other (33)
PC Hardware (16)
Software (17)
SpatialKey (7)
Wireless (8)
Working Out (1)

RSS Feed
Feed Listing

Site Contents
Home
My Blog
ColdFusion
JRun
Flex
Wireless & Networking
Hardware & Gadgets
HDTV
Software Picks
Pictures
Contact Me
Search


My Articles & Papers
Flex Performance
Server/Client
mm.com Under the Hood
Multiple Instances of CFMX
Multiple Instance Config
NLB with ColdFusion
Clustering CFMX for J2EE
Multi-Tier Hardware LB w CFMX
Cisco CSS & Coldfusion MX
JRun 4 Jini based Clustering
WiFi Growth

2ID Tacweb

Other Hobbys
Body-For-Life Challenge

Personal Projects
Family Pool
Deck Gate

username:
password:
 

 
Viewing Individual Entry / Main
June 11, 2009

This issue drove me nuts today for several hours today, to be honest I was pretty close to breaking something! Earlier in the day I had the NFS mount working fine then I created an AMI and booted up another instance from the newly created AMI but in the new instance the mount kept failing. The error looks something like this:

[root@server]# mount -t nfs 192.168.2.1:/dbshare /mnt/dbshare
mount: 192.168.2.1:/dbshare failed, reason given by server: Permission denied

According to the error you would think that I have a configuration issue so I changed everything that I could think of within /etc/exports

My /etc/exports originally looked like this:

/dbshare 192.168.2.2(rw,sync) (where 192.168.2.2 is the client where I am performing the mount)

I changed it to something more open like this with no luck:

/dbshare 192.168.0.0/255.255.0.0(rw,sync)

I started looking around the logs on the server in /var/log/messages and found that it was authenticating fine
Jun 11 19:04:00 servername mountd[5222]: authenticated mount request from 192.168.2.2:736 for /dbshare (/dbshare)

I was really frustrated at this point and I had already spent an hour on Google looking for the answer. I found another answer but the website was down, luckily the cached version on Google came to the rescue.

The ANSWER:

The problem was that the special nfsd file system that mounts to /proc/fs/nfsd wasn't mounted. I'm not sure how it gets mounted (maybe rc.sysinit does it?), but I tool the advice from the forum entry and added an entry to /etc/fstab

none /proc/fs/nfsd nfsd auto,defaults 0 0

then ran mount -a

After this the mount worked fine. I hope that someone finds this helpful.

Comments

I was looking for the answer to this problem for two days... Great thanks to your solution, it works!!!

Thanks very much :)


Thanks, I was having the same issue and this ntry in fstab got me out of trouble.


Thanks a lot for your post... i have been searching the solution for last two days,,


Thanks... took 2 hrs & finally got the answer


Thank you very much for having documented the issue. Your solution helped me a lot.

I had been working on that strange issue since a couple hours already to no avail.


In my case, the issue is with modprobe.conf being wrongly configured:

modprobe.conf is missing the following lines:

install nfsd /sbin/modprobe --first-time --ignore-install nfsd && { /bin/mount -t nfsd nfsd /proc/fs/nfsd > /dev/null 2>&1 || :; }

remove nfsd { /bin/umount /proc/fs/nfsd > /dev/null 2>&1 || :; } ; /sbin/modprobe -r --first-time --ignore-remove nfsd


Thanks. I was changing NFS from v3 to v4 and in the process the /proc/fs/nfsd got unmounted as you mention. Instead of editing /etc/fstab you can give this mount command:

# mount -t nfsd -o rw,auto,defaults nfsd /proc/fs/nfsd


[url=http://www.sac-hermespascher.com]Sac Hermes[/url] [url=http://www.sac-hermespascher.com/sac-hermes-birkin-35-c-3.html?zenid=f417e1b1c2817da7eb0fac78ac516a98]Sac Hermes Birkin 35[/url] [url=http://www.sac-hermespascher.com]Sac Hermes pas cher[/url]<a href="http://www.sac-hermespascher.com/">sac hermes</a> <a href="http://www.sac-hermespascher.com/">sac hermes kelly</a> <a href="http://www.sac-hermespascher.com/">sac hermes birkin</a> <a href="http://www.sac-hermespascher.com/">sac hermes pas cher</a>


 
Page Render Time:16