What user are you trying to mount with? If using root, try to add no_root_squash to the exports file on the NFS server, or just mount as a different user.
Check SELinux, depending on the mountpoint's location, this may be an issue (check the audit log for avc's or just set to permissive/disabled to retest). Stop iptables/firewalld and retest (to make sure it's not an issue connecting to portmapper or something like that) If you're still unable to work it out, please paste a copy of the server's exports and the client mounting options (from fstab or command line) And also, the output of the mount command with a -v :) On Fri, May 8, 2015 at 3:03 PM, srinivas niddapu <sr...@axiomio.com> wrote: > Appreciated info Rohit. > > As we verified our NFS storage there is no permission restrictions (* FULL > ACCESS). > Validated the same NFS share on the Cloud Stack Hypervisors, already > mounted and data visible. > > We try to mount the NFS volume in the SSVM manually but its throwing > error. Unable to mount. > "mount.nfs: access denied by server while mounting" > > While restoring snapshot in the CloudStack UI getting below error. > > Status > Failed to create templatecom.cloud.utils.exception.CloudRuntimeException: > GetRootDir for nfs://172.30.36.51/vS02304090GCSP_NAS07 failed due to > com.cloud.utils.exception.CloudRuntimeException: Unable to mount > 172.30.36.51:/vS02304090GCSP_NAS07 at > /mnt/SecStorage/1c7f122c-e72e-3daa-a54a-3693b89d4015 due to mount.nfs: > access denied by server while mounting 172.30.36.51:/vS02304090GCSP_NAS07 > at > org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.getRootDir(NfsSecondaryStorageResource.java:1956) > at > org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.copySnapshotToTemplateFromNfsToNfsXenserver(NfsSecondaryStorageResource.java:377) > at > org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.copySnapshotToTemplateFromNfsToNfs(NfsSecondaryStorageResource.java:444) > at > org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.createTemplateFromSnapshot(NfsSecondaryStorageResource.java:553) > at > org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.execute(NfsSecondaryStorageResource.java:632) > at > org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.executeRequest(NfsSecondaryStorageResource.java:236) > at > com.cloud.storage.resource.PremiumSecondaryStorageResource.defaultAction(PremiumSecondaryStorageResource.java:63) > at > com.cloud.storage.resource.PremiumSecondaryStorageResource.executeRequest(PremiumSecondaryStorageResource.java:59) > at com.cloud.agent.Agent.processRequest(Agent.java:498) at > com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:806) at > com.cloud.utils.nio.Task.run(Task.java:83) at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:679) > > Any suggestions. > > Thanks, > Srini. > > -----Original Message----- > From: Rohit Yadav [mailto:rohit.ya...@shapeblue.com] > Sent: Friday, May 08, 2015 5:57 PM > To: dev@cloudstack.apache.org > Cc: us...@cloudstack.apache.org; srinivas niddapu > Subject: Re: Unable to mount Secondary Storage on SSVM > > > > On 08-May-2015, at 2:05 pm, anil lakineni < > anilkumar459.lakin...@gmail.com> wrote: > > > > and this Secondary Storage path is mounting and working with all other > > servers except with SSVM.. Getting error "mount.nfs: access denied by > > server while mounting xx.xx.xx.xx:/xxxx" > > Check your nfs exports file and do a chmod 777 on the mount points, such > as /export/secondary or /export/primary. > > Regards, > Rohit Yadav > Software Architect, ShapeBlue > M. +91 88 262 30892 | rohit.ya...@shapeblue.com > Blog: bhaisaab.org | Twitter: @_bhaisaab > > > > Find out more about ShapeBlue and our range of CloudStack related services > > IaaS Cloud Design & Build< > http://shapeblue.com/iaas-cloud-design-and-build//> > CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/> > CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/> > CloudStack Software Engineering< > http://shapeblue.com/cloudstack-software-engineering/> > CloudStack Infrastructure Support< > http://shapeblue.com/cloudstack-infrastructure-support/> > CloudStack Bootcamp Training Courses< > http://shapeblue.com/cloudstack-training/> > > This email and any attachments to it may be confidential and are intended > solely for the use of the individual to whom it is addressed. Any views or > opinions expressed are solely those of the author and do not necessarily > represent those of Shape Blue Ltd or related companies. If you are not the > intended recipient of this email, you must neither take any action based > upon its contents, nor copy or show it to anyone. Please contact the sender > if you believe you have received this email in error. Shape Blue Ltd is a > company incorporated in England & Wales. ShapeBlue Services India LLP is a > company incorporated in India and is operated under license from Shape Blue > Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil > and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is > a company registered by The Republic of South Africa and is traded under > license from Shape Blue Ltd. ShapeBlue is a registered trademark. >