Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using cloud. I want to mount a folder in the cloudstack management server to the system where xenserver is installed. But while doing it, error occurred. I have done so many things but error exist.

[root@xenserver2 ~]# mount -t nfs /secondarymount
mount: failed, reason given by server: Permission denied is the management server ip.

Can anyone help me?

Thanks in advance!

share|improve this question
Error log says...? – Ignacio Vazquez-Abrams May 29 '13 at 10:37
What is the output of showmount -e in xenserver2 machine – max May 29 '13 at 10:43
Do you have permission to the remote folder? You can try adding -o username=myusername,password=mypassword to the mount command – Nick van Tilborg May 29 '13 at 11:55
@max this is the output [root@xenserver2 ~]# showmount -e Export list for /export * [root@xenserver2 ~]# – user227570 May 30 '13 at 5:59
@Nick van Tilborg the following is the output i got: [root@xenserver2 ~]# mount -t nfs /secondarymount-o username=root,password=******** Usage: mount -V : print version mount -h : print this help – user227570 May 30 '13 at 6:27

Your showmount -e output shows that you exported /export directory

but you are trying to mount /mnt/secondary diectory !!!

Please update your Question with this detail

What you exported in /etc/export file ?


In Server Side

[root@localhost ~]# cat /etc/exports

Start rpcbibd and nfs services

[root@localhost mnt]# service rpcbind restart
Stopping rpcbind:                                          [  OK  ]
Starting rpcbind:                                          [  OK  ]
[root@localhost mnt]# service nfs restart
Shutting down NFS mountd:                                  [  OK  ]
Shutting down NFS daemon:                                  [  OK  ]
Shutting down NFS quotas:                                  [  OK  ]
Shutting down NFS services:                                [  OK  ]
Starting NFS services:                                     [  OK  ]
Starting NFS quotas:                                       [  OK  ]
Starting NFS daemon:                                       [  OK  ]
Starting NFS mountd:          
[root@localhost ~]# iptables -F

Flushing iptables is not the correct way configure a proper iptables rule

In Client Side check exported directory

[root@localhost ~]# showmount -e
Export list for
[root@localhost ~]# mount -t nfs /mnt/
[root@localhost ~]# 
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .