LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-18-2015, 03:37 PM   #1
varma1156@gmail.com
LQ Newbie
 
Registered: Jun 2015
Posts: 2

Rep: Reputation: Disabled
Access denied by server while mounting from rhel virtual box


Hi,

I am trying to mount a drive from rhel(virtual box) to a NFS Server box which is linux box.

Server:

14:30:04 # cat /etc/exports
/devCert <ip-address>(rw)
/mnt/test/ *(rw,sync,no_root_squash)


14:32:14 # sudo exportfs -a

Client:

[vagrant@default-rhel65 log]$ sudo showmount -e <nfs-server>
Export list for <nfs-server>:
/mnt/test *
/devCert <ip-address>

[vagrant@default-rhel65 log]$ sudo mount <nfs-server>:/mnt/test /mnt/test
mount.nfs: access denied by server while mounting <nfs-server>:/mnt/test


Could anyone let me know what am I missing here?

Server:

sudo rpcinfo -p

program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 58408 status
100024 1 tcp 37375 status
100011 1 udp 640 rquotad
100011 2 udp 640 rquotad
100011 1 tcp 643 rquotad
100011 2 tcp 643 rquotad
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100227 2 tcp 2049 nfs_acl
100227 3 tcp 2049 nfs_acl
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100227 2 udp 2049 nfs_acl
100227 3 udp 2049 nfs_acl
100021 1 udp 42031 nlockmgr
100021 3 udp 42031 nlockmgr
100021 4 udp 42031 nlockmgr
100021 1 tcp 46332 nlockmgr
100021 3 tcp 46332 nlockmgr
100021 4 tcp 46332 nlockmgr
100005 1 udp 56090 mountd
100005 1 tcp 45826 mountd
100005 2 udp 34195 mountd
100005 2 tcp 57942 mountd
100005 3 udp 57329 mountd
100005 3 tcp 48736 mountd


Client:

sudo rpcinfo -p

program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100011 1 udp 875 rquotad
100011 2 udp 875 rquotad
100011 1 tcp 875 rquotad
100011 2 tcp 875 rquotad
100005 1 udp 43787 mountd
100005 1 tcp 40835 mountd
100005 2 udp 50904 mountd
100005 2 tcp 47699 mountd
100005 3 udp 43172 mountd
100005 3 tcp 40638 mountd
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100227 2 tcp 2049 nfs_acl
100227 3 tcp 2049 nfs_acl
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100227 2 udp 2049 nfs_acl
100227 3 udp 2049 nfs_acl
100021 1 udp 58240 nlockmgr
100021 3 udp 58240 nlockmgr
100021 4 udp 58240 nlockmgr
100021 1 tcp 40581 nlockmgr
100021 3 tcp 40581 nlockmgr
100021 4 tcp 40581 nlockmgr
100024 1 udp 44187 status
100024 1 tcp 33670 status

Thanks!

Last edited by varma1156@gmail.com; 06-18-2015 at 04:50 PM. Reason: Posted some errors in the text
 
Old 06-18-2015, 04:19 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,577
Blog Entries: 14

Rep: Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969
That's a bit confusing.

It appears you're calling the exporting system "server" in one place "serverbox" in another and "linuxbox" in yet a third location in what you wrote. Alternatively it could be you are calling your client that is trying to do the mount "linuxbox".

If you notice the showmount -e is NOT showing the same exports /etc/exports. If server, serverbox and linuxbox are all the same this explains why the mount fails - it doesn't see the exports. If linuxbox is the client then running showmount -e against it doesn't help you as it shows what the client is exporting not what the server is exporting. Run your showmount -e specifying the exporting server but do it ON the client. That will tell you what the client can see from the server.
 
Old 06-18-2015, 04:49 PM   #3
varma1156@gmail.com
LQ Newbie
 
Registered: Jun 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Sorry for the confusion, I have corrected the post.

I am running
showmount -e <nfs-server> on the client machine.

And it has same exports as /etc/exports.
 
  


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
[SOLVED] NFS access denied by server while mounting Lumify Linux - Server 21 11-17-2013 10:07 AM
[SOLVED] RHEL server remote access is denied himalayan Linux - Software 3 07-05-2013 02:03 AM
mount.nfs access denied by server while mounting varmanravi20 Red Hat 2 08-02-2012 11:27 AM
[SOLVED] mount.nfs: access denied by server while mounting physnastr Linux - General 2 10-02-2011 04:33 PM
mount.nfs: access denied by server while mounting mokrunka Linux - Networking 4 10-07-2008 01:53 AM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration