Hi, I faced samed problem some time back.
Followed the steps here http://ostechnix.wordpress.com/2013/02/28/setup-nfs-server-in-centos-rhel-scientific-linux-6-3-step-by-step/ especially the one for the IP tables and the premission denied problem disappeared. Hope it helps. Regards, Ramzana ________________________________________ From: Bradley Hieber [mercsni...@gmail.com] Sent: Wednesday, July 17, 2013 11:43 PM To: users@cloudstack.apache.org Subject: Re: NFS directories http://pastebin.com/yGMJBA8M Current Management log On Wed, Jul 17, 2013 at 3:21 PM, Carlos Reategui <car...@reategui.com>wrote: > There may be a setting then in the nfs server that allows for that then, I > created 2 exports 1 for primary and 1 for secondary. I also did that > because I wanted separate spindles for both (i.e. separate raid 10). > > > On Wed, Jul 17, 2013 at 12:11 PM, Bradley Hieber <mercsni...@gmail.com > >wrote: > > > You see, and that is the odd thing. The documentation lists /export only > > and then they expect it to work. I am finding that to be the opposite. > > > > > > On Wed, Jul 17, 2013 at 3:09 PM, Carlos Reategui <car...@reategui.com > > >wrote: > > > > > I'm not an nfs expert but I believe you can only mount paths that have > > been > > > explicitly exported. Your export is /export not /export/primary. > > > > > > > > > On Wed, Jul 17, 2013 at 11:59 AM, Bradley Hieber <mercsni...@gmail.com > > > >wrote: > > > > > > > Jul 17 14:57:51 master rpc.mountd[31341]: authenticated mount request > > > from > > > > 192.168.2.114:840 for /export/primary (/export) > > > > Jul 17 14:57:51 master rpc.mountd[31341]: request to export directory > > > > /export/primary below nearest filesystem /export > > > > > > > > > > > > > > > > On Wed, Jul 17, 2013 at 2:47 PM, Bradley Hieber < > mercsni...@gmail.com > > > > >wrote: > > > > > > > > > [root@xenserver-01 ~]# showmount -e 192.168.2.123 > > > > > Export list for 192.168.2.123: > > > > > /export * > > > > > [root@xenserver-01 ~]# mount -t nfs 192.168.2.123:/export/primary > > > > > /primarymount/ > > > > > mount: 192.168.2.123:/export/primary failed, reason given by > server: > > > > > Permission denied > > > > > [root@xenserver-01 ~]# > > > > > > > > > > > > > > > > > > > > On Wed, Jul 17, 2013 at 2:10 PM, Bradley Hieber < > > mercsni...@gmail.com > > > > >wrote: > > > > > > > > > >> Should that also happen if I list /export/ for /export/primary and > > > > >> /export/secondary also? Then I am confused as to why I am getting > > NFS > > > > >> permission denied errors then. > > > > >> > > > > >> > > > > >> On Wed, Jul 17, 2013 at 2:06 PM, Dean Kamali < > dean.kam...@gmail.com > > > > >wrote: > > > > >> > > > > >>> When you list /etc/primary in /etc/exports it will export all > > content > > > > of > > > > >>> that folder, so you don't have to worry about sub-folders. > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > > >>> On Wed, Jul 17, 2013 at 2:00 PM, Bradley Hieber < > > > mercsni...@gmail.com > > > > >>> >wrote: > > > > >>> > > > > >>> > I can mount /export but it keeps telling me permission denied > > when > > > I > > > > >>> try to > > > > >>> > mount /export/primary or /export/secondary. The only way I have > > > been > > > > >>> able > > > > >>> > to stop it is manually listing /export/primary and > > > > /export/secondary. I > > > > >>> > can't manually list every folder though. That is why it is > having > > > > >>> issues > > > > >>> > mounting /export/secondary/template/templ/1/1 to > /var/run/cloud/ > > > > >>> Thoughts? > > > > >>> > > > > > >>> > > > > > >>> > On Tue, Jul 16, 2013 at 9:09 PM, Jijun <jiju...@gmail.com> > > wrote: > > > > >>> > > > > > >>> > > hi, > > > > >>> > > so i think you can test it in your hypervisor host > > > > >>> > > > > > > >>> > > do it as root > > > > >>> > > > > > > >>> > > mount -t nfs 192.168.2.114:/export /mnt > > > > >>> > > > > > > >>> > > and tell us the result. > > > > >>> > > > > > > >>> > > > > > > >>> > > > > > > >>> > > On 07/17/2013 02:02 AM, Bradley Hieber wrote: > > > > >>> > > > > > > >>> > >> drwxr-xr-x 4 root root 4096 Jul 16 13:15 export > > > > >>> > >> /export > > > > >>> > >> drwxr-xr-x 3 root root 4096 Jul 16 13:11 primary > > > > >>> > >> drwxr-xr-x 4 root root 4096 Jul 11 19:45 secondary > > > > >>> > >> > > > > >>> > >> > > > > >>> > >> > > > > >>> > >> On Tue, Jul 16, 2013 at 1:56 PM, Dean Kamali < > > > > dean.kam...@gmail.com > > > > >>> > > > > > >>> > >> wrote: > > > > >>> > >> > > > > >>> > >> what is the permissions on /export ? > > > > >>> > >>> > > > > >>> > >>> > > > > >>> > >>> On Tue, Jul 16, 2013 at 1:45 PM, Bradley Hieber < > > > > >>> mercsni...@gmail.com > > > > >>> > >>> > > > > >>> > >>>> wrote: > > > > >>> > >>>> [root@xenserver-01 /]# showmount -e 192.168.2.123 > > > > >>> > >>>> Export list for 192.168.2.123: > > > > >>> > >>>> /export 192.168.2.114 > > > > >>> > >>>> > > > > >>> > >>>> Restarting the service did not do anything productive. I > > > already > > > > >>> did > > > > >>> > an > > > > >>> > >>>> exportfs -ra before. > > > > >>> > >>>> > > > > >>> > >>>> > > > > >>> > >>>> On Tue, Jul 16, 2013 at 1:42 PM, Dean Kamali < > > > > >>> dean.kam...@gmail.com> > > > > >>> > >>>> wrote: > > > > >>> > >>>> > > > > >>> > >>>> Did you restart nfs service after modifying /etc/export ? > > > > >>> > >>>>> > > > > >>> > >>>>> From your hypervisor run showmount -e IP_ADDR_OF_NFS > > > > >>> > >>>>> > > > > >>> > >>>>> what dose it show? > > > > >>> > >>>>> > > > > >>> > >>>>> > > > > >>> > >>>>> > > > > >>> > >>>>> > > > > >>> > >>>>> On Tue, Jul 16, 2013 at 1:40 PM, Bradley Hieber < > > > > >>> > mercsni...@gmail.com > > > > >>> > >>>>> > > > > >>> > >>>>>> wrote: > > > > >>> > >>>>>> Hello community, > > > > >>> > >>>>>> > > > > >>> > >>>>>> The installation documentation for CS 4.1 says to use > > > /export > > > > >>> > >>>>>> *(rw,async,no_root_squash) for my options. I am having > > > > >>> difficulties > > > > >>> > >>>>>> mounting the /export/primary folder on my hypervisor as > a > > > > test. > > > > >>> > >>>>>> > > > > >>> > >>>>> Syslog > > > > >>> > >>> > > > > >>> > >>>> is > > > > >>> > >>>> > > > > >>> > >>>>> reporting "permisison denied" on the hypervisor. The > > > management > > > > >>> > >>>>>> > > > > >>> > >>>>> server > > > > >>> > >>> > > > > >>> > >>>> is > > > > >>> > >>>> > > > > >>> > >>>>> Ubuntu 12.04.02 and the hard drives are attached and > > mounted. > > > > Any > > > > >>> > >>>>>> assistance? > > > > >>> > >>>>>> > > > > >>> > >>>>>> -- > > > > >>> > >>>>>> Brad > > > > >>> > >>>>>> > > > > >>> > >>>>>> > > > > >>> > >>>> > > > > >>> > >>>> -- > > > > >>> > >>>> Brad > > > > >>> > >>>> > > > > >>> > >>>> > > > > >>> > >> > > > > >>> > >> > > > > >>> > > > > > > >>> > > -- > > > > >>> > > Thanks, > > > > >>> > > Jijun > > > > >>> > > > > > > >>> > > > > > > >>> > > > > > >>> > > > > > >>> > -- > > > > >>> > Brad > > > > >>> > > > > > >>> > > > > >> > > > > >> > > > > >> > > > > >> -- > > > > >> Brad > > > > >> > > > > > > > > > > > > > > > > > > > > -- > > > > > Brad > > > > > > > > > > > > > > > > > > > > > -- > > > > Brad > > > > > > > > > > > > > > > -- > > Brad > > > -- Brad