Thanks Jayapal, Abhinandan. log SMlog doesnt giveout much, I am able to mount and edit file on mount from both server and agent. I get the same error as follows (timestamp is different because I tried it again), is there anything else I am missing?:
Nov 20 16:22:01 agent SM: [5432] ['mount', '--bind', '/var/cloud_mount/b61521bd-ad7b-3e95-91e8-00762b28aeeb/template/tmpl/1/1', '/var/run/sr-mount/e18ee8da-a45d-46b8-b361-ec50e9ddcb22'] Nov 20 16:22:01 agent SM: [5432] FAILED in util.pread: (rc 32) stdout: '', stderr: 'mount: special device /var/cloud_mount/b61521bd-ad7b-3e95-91e8-00762b28aeeb/template/tmpl/1/1 does not exist Nov 20 16:22:01 agent SM: [5432] ' Nov 20 16:22:02 agent SM: [5432] Raising exception [61, File SR creation error [opterr=fail to mount FileSR. Errno is 32]] Nov 20 16:22:02 agent SM: [5432] lock: released /var/lock/sm/e18ee8da-a45d-46b8-b361-ec50e9ddcb22/sr Nov 20 16:22:02 agent SM: [5432] ***** generic exception: sr_attach: EXCEPTION SR.SROSError, File SR creation error [opterr=fail to mount FileSR. Errno is 32] Nov 20 16:22:02 agent SM: [5432] File "/opt/xensource/sm/SRCommand.py", line 110, in run Nov 20 16:22:02 agent SM: [5432] return self._run_locked(sr) Nov 20 16:22:02 agent SM: [5432] File "/opt/xensource/sm/SRCommand.py", line 159, in _run_locked Nov 20 16:22:02 agent SM: [5432] rv = self._run(sr, target) Nov 20 16:22:02 agent SM: [5432] File "/opt/xensource/sm/SRCommand.py", line 322, in _run Nov 20 16:22:02 agent SM: [5432] return sr.attach(self.params['sr_uuid']) Nov 20 16:22:02 agent SM: [5432] File "/opt/xensource/sm/FileSR", line 164, in attach Nov 20 16:22:02 agent SM: [5432] opterr='fail to mount FileSR. Errno is %s' % inst.code) Nov 20 16:22:02 agent SM: [5432] File "/opt/xensource/sm/xs_errors.py", line 52, in __init__ Nov 20 16:22:02 agent SM: [5432] raise SR.SROSError(errorcode, errormessage) Nov 20 16:22:02 agent SM: [5432] Nov 20 16:22:02 agent SM: [5432] lock: closed /var/lock/sm/e18ee8da-a45d-46b8-b361-ec50e9ddcb22/sr Nov 20 16:22:30 agent SM: [5587] lock: opening lock file /var/lock/sm/485be965-9bcd-4e76-8fa8-5881f0203645/sr Nov 20 16:22:30 agent SM: [5587] lock: acquired /var/lock/sm/485be965-9bcd-4e76-8fa8-5881f0203645/sr Nov 20 16:22:30 agent SM: [5587] sr_attach {'sr_uuid': '485be965-9bcd-4e76-8fa8-5881f0203645', 'subtask_of': 'DummyRef:|fd400425-8c78-85c2-949c-230c0c39e03f|SR.attach', 'args': [], 'host_ref': 'OpaqueRef:274f3e03-3513-61a8-40de-5b1ece53c1d7', 'session_ref': 'OpaqueRef:5706f0b6-0fcb-7c5c-defa-36e537655059', 'device_config': {'SRmaster': 'true', 'location': '/var/cloud_mount/b61521bd-ad7b-3e95-91e8-00762b28aeeb/template/tmpl/1/1'}, 'command': 'sr_attach', 'sr_ref': 'OpaqueRef:5906daec-9b86-5fa3-58bc-e95969b77a4d'} Nov 20 16:22:30 agent SM: [5587] lock: opening lock file /var/lock/sm/485be965-9bcd-4e76-8fa8-5881f0203645/running Nov 20 16:22:30 agent SM: [5587] lock: opening lock file /var/lock/sm/485be965-9bcd-4e76-8fa8-5881f0203645/sr Nov 20 16:22:30 agent SM: [5587] lock: acquired /var/lock/sm/485be965-9bcd-4e76-8fa8-5881f0203645/running Nov 20 16:22:30 agent SM: [5587] lock: acquired /var/lock/sm/485be965-9bcd-4e76-8fa8-5881f0203645/sr Nov 20 16:22:30 agent SM: [5587] RESET for SR 485be965-9bcd-4e76-8fa8-5881f0203645 (master: True) Nov 20 16:22:30 agent SM: [5587] lock: released /var/lock/sm/485be965-9bcd-4e76-8fa8-5881f0203645/sr Nov 20 16:22:30 agent SM: [5587] lock: released /var/lock/sm/485be965-9bcd-4e76-8fa8-5881f0203645/running Nov 20 16:22:30 agent SM: [5587] lock: closed /var/lock/sm/485be965-9bcd-4e76-8fa8-5881f0203645/sr Nov 20 16:22:30 agent SM: [5587] lock: closed /var/lock/sm/485be965-9bcd-4e76-8fa8-5881f0203645/running Nov 20 16:22:30 agent SM: [5587] set_dirty 'OpaqueRef:5906daec-9b86-5fa3-58bc-e95969b77a4d' succeeded Nov 20 16:22:30 agent SM: [5587] ['mount', '--bind', '/var/cloud_mount/b61521bd-ad7b-3e95-91e8-00762b28aeeb/template/tmpl/1/1', '/var/run/sr-mount/485be965-9bcd-4e76-8fa8-5881f0203645'] Nov 20 16:22:30 agent SM: [5587] FAILED in util.pread: (rc 32) stdout: '', stderr: 'mount: special device /var/cloud_mount/b61521bd-ad7b-3e95-91e8-00762b28aeeb/template/tmpl/1/1 does not exist Nov 20 16:22:30 agent SM: [5587] ' Nov 20 16:22:30 agent SM: [5587] Raising exception [61, File SR creation error [opterr=fail to mount FileSR. Errno is 32]] Nov 20 16:22:30 agent SM: [5587] lock: released /var/lock/sm/485be965-9bcd-4e76-8fa8-5881f0203645/sr Nov 20 16:22:30 agent SM: [5587] ***** generic exception: sr_attach: EXCEPTION SR.SROSError, File SR creation error [opterr=fail to mount FileSR. Errno is 32] ________________________________________ From: Abhinandan Prateek <abhinandan.prat...@shapeblue.com> Sent: Thursday, November 19, 2015 11:20 PM To: dev@cloudstack.apache.org Subject: Re: SR_BACKEND_FAILURE_61File SR creation error [opterr=fail to mount FileSR. Errno is 32] The error signifies that the creation of file storage repository failed on xenserver, check that the nfs can be mounted and is writable. The log file mentioned by Jayapal will give you further clues to the problem. Regards, Abhinandan Prateek M: +91 9701199011 abhinandan.prat...@shapeblue.com On 20/11/15, 9:30 AM, "Jayapal Reddy Uradi" <jayapalreddy.ur...@citrix.com> wrote: >Hi Prakash, > >Can you also check the xenserver logs at /var/log/SMLog when this error is >coming. > >Thanks, >Jayapal >> On 20-Nov-2015, at 9:23 am, B Prakash <bpr...@hotmail.com> wrote: >> >> Please can someone help me with this? I am trying to setup NFS secondary >> storage on ACS 4.6 hosted on Ubuntu 14.04 with host XS 6.5. >> >> >> NFS mount and its access is working fine on both the servers, but when I try >> to set up a secondary storage, I get this exception; >> >> >> 2015-11-19 13:24:00,841 WARN [c.c.h.x.r.XenServerStorageProcessor] >> (DirectAgent-62:ctx-c53368c0) createFileSR failed! due to the following: >> SR_BACKEND_FAILURE_61File SR creation error [opterr=fail to mount FileSR. >> Errno is 32] >> SR_BACKEND_FAILURE_61File SR creation error [opterr=fail to mount FileSR. >> Errno is 32] >> at com.xensource.xenapi.Types.checkResponse(Types.java:2021) >> at com.xensource.xenapi.Connection.dispatch(Connection.java:395) >> at >> com.cloud.hypervisor.xenserver.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:457) >> at com.xensource.xenapi.PBD.plug(PBD.java:457) >> at >> com.cloud.hypervisor.xenserver.resource.Xenserver625StorageProcessor.createFileSR(Xenserver625StorageProcessor.java:129) >> at >> com.cloud.hypervisor.xenserver.resource.Xenserver625StorageProcessor.createFileSr(Xenserver625StorageProcessor.java:162) >> at >> com.cloud.hypervisor.xenserver.resource.Xenserver625StorageProcessor.copyTemplateToPrimaryStorage(Xenserver625StorageProcessor.java:196) >> at >> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:82) >> at >> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:54) >> at >> com.cloud.hypervisor.xenserver.resource.wrapper.xenbase.CitrixStorageSubSystemCommandWrapper.execute(CitrixStorageSubSystemCommandWrapper.java:36) >> at >> com.cloud.hypervisor.xenserver.resource.wrapper.xenbase.CitrixStorageSubSystemCommandWrapper.execute(CitrixStorageSubSystemCommandWrapper.java:30) >> at >> com.cloud.hypervisor.xenserver.resource.wrapper.xenbase.CitrixRequestWrapper.execute(CitrixRequestWrapper.java:122) >> at >> com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:1676) >> at >> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:302) >> at >> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49) >> at >> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56) >> at >> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103) >> at >> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53) >> at >> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46) >> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) >> at java.util.concurrent.FutureTask.run(FutureTask.java:262) >> at >> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) >> at >> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) >> at >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >> at java.lang.Thread.run(Thread.java:745) >> >> > 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.