You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Mauro Ferraro - G2K Hosting <mf...@g2khosting.com> on 2020/09/21 14:29:43 UTC
NFS 4 and secondary storage
Hi guys,
we are trying to set up a secondary storage with NFS 4 and we get an error.:
DEBUG [c.c.a.t.Request] (AgentManager-Handler-1:null) (logid:) Seq
9-9189032089696076679: Processing: { Ans: , MgmtId: 90520732656511,
via: 9, Ver: v1, Flags: 10,
[{"com.cloud.agent.api.Answer":{"result":false,"details":"com.cloud.utils.exception.CloudRuntimeException:
*GetRootDir for nfs://10.0.254.12/mnt/secondary failed due to
com.cloud.utils.exception.CloudRuntimeException: Unable to mount
10.0.254.12:/mnt/secondary at
/mnt/SecStorage/89cfc424-4510-3484-aee4-cda5d7029238 due to mount.nfs:
requested NFS version or transport protocol is not supported*\n\tat
org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.getRootDir(NfsSecondaryStorageResource.java:2458)\n\tat
org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.execute(NfsSecondaryStorageResource.java:2208)\n\tat
org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.executeRequest(NfsSecondaryStorageResource.java:292)\n\tat
com.cloud.storage.resource.PremiumSecondaryStorageResource.defaultAction(PremiumSecondaryStorageResource.java:64)\n\tat
com.cloud.storage.resource.PremiumSecondaryStorageResource.executeRequest(PremiumSecondaryStorageResource.java:60)\n\tat
com.cloud.agent.Agent.processRequest(Agent.java:644)\n\tat
com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:1057)\n\tat
com.cloud.utils.nio.Task.call(Task.java:83)\n\tat
com.cloud.utils.nio.Task.call(Task.java:29)\n\tat
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\n\tat
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)\n\tat
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\n\tat
java.base/java.lang.Thread.run(Thread.java:834)\n","wait":0}}] }
There is a way to force NFS version 4 in ACS?.
Thanks
M
Re: NFS 4 and secondary storage
Posted by Mauro Ferraro - G2K Hosting <mf...@g2khosting.com>.
Thank you very much guys, we will try this!.
El 22/9/2020 a las 01:14, Pearl d'Silva escribió:
> Hi Mauro,
>
> Can you try setting the following global setting value: secstorage.nfs.version to the specific version and then add the store. Furthermore, NFSv4 requires that domain setting matches on all clients.Hence, the /etc/idmapd.conf file must be accordingly updated. Please refer to :
>
> http://docs.cloudstack.apache.org/en/latest/quickinstallationguide/qig.html#nfs
>
>
> Thanks,
> Pearl
>
> ________________________________
> From: Hean Seng <he...@gmail.com>
> Sent: Monday, September 21, 2020 9:50 PM
> To: users@cloudstack.apache.org <us...@cloudstack.apache.org>; mferraro@g2khosting.com <mf...@g2khosting.com>
> Subject: Re: NFS 4 and secondary storage
>
> You can try manual mount it at linux see if can or not
>
> On Mon, Sep 21, 2020 at 10:30 PM Mauro Ferraro - G2K Hosting <
> mferraro@g2khosting.com> wrote:
>
>> Hi guys,
>>
>> we are trying to set up a secondary storage with NFS 4 and we get an
>> error.:
>>
>>
>> DEBUG [c.c.a.t.Request] (AgentManager-Handler-1:null) (logid:) Seq
>> 9-9189032089696076679: Processing: { Ans: , MgmtId: 90520732656511,
>> via: 9, Ver: v1, Flags: 10,
>> [{"com.cloud.agent.api.Answer":{"result":false,"details":"com.cloud.utils.exception.CloudRuntimeException:
>>
>> *GetRootDir for nfs://10.0.254.12/mnt/secondary failed due to
>> com.cloud.utils.exception.CloudRuntimeException: Unable to mount
>> 10.0.254.12:/mnt/secondary at
>> /mnt/SecStorage/89cfc424-4510-3484-aee4-cda5d7029238 due to mount.nfs:
>> requested NFS version or transport protocol is not supported*\n\tat
>> org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.getRootDir(NfsSecondaryStorageResource.java:2458)\n\tat
>>
>> org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.execute(NfsSecondaryStorageResource.java:2208)\n\tat
>>
>> org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.executeRequest(NfsSecondaryStorageResource.java:292)\n\tat
>>
>> com.cloud.storage.resource.PremiumSecondaryStorageResource.defaultAction(PremiumSecondaryStorageResource.java:64)\n\tat
>>
>> com.cloud.storage.resource.PremiumSecondaryStorageResource.executeRequest(PremiumSecondaryStorageResource.java:60)\n\tat
>>
>> com.cloud.agent.Agent.processRequest(Agent.java:644)\n\tat
>> com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:1057)\n\tat
>> com.cloud.utils.nio.Task.call(Task.java:83)\n\tat
>> com.cloud.utils.nio.Task.call(Task.java:29)\n\tat
>> java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\n\tat
>> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)\n\tat
>>
>> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\n\tat
>>
>> java.base/java.lang.Thread.run(Thread.java:834)\n","wait":0}}] }
>>
>> There is a way to force NFS version 4 in ACS?.
>>
>> Thanks
>>
>> M
>>
>>
> --
> Regards,
> Hean Seng
>
> pearl.dsilva@shapeblue.com
> www.shapeblue.com
> 3 London Bridge Street, 3rd floor, News Building, London SE1 9SGUK
> @shapeblue
>
>
>
Re: NFS 4 and secondary storage
Posted by Pearl d'Silva <pe...@shapeblue.com>.
Hi Mauro,
Can you try setting the following global setting value: secstorage.nfs.version to the specific version and then add the store. Furthermore, NFSv4 requires that domain setting matches on all clients.Hence, the /etc/idmapd.conf file must be accordingly updated. Please refer to :
http://docs.cloudstack.apache.org/en/latest/quickinstallationguide/qig.html#nfs
Thanks,
Pearl
________________________________
From: Hean Seng <he...@gmail.com>
Sent: Monday, September 21, 2020 9:50 PM
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>; mferraro@g2khosting.com <mf...@g2khosting.com>
Subject: Re: NFS 4 and secondary storage
You can try manual mount it at linux see if can or not
On Mon, Sep 21, 2020 at 10:30 PM Mauro Ferraro - G2K Hosting <
mferraro@g2khosting.com> wrote:
> Hi guys,
>
> we are trying to set up a secondary storage with NFS 4 and we get an
> error.:
>
>
> DEBUG [c.c.a.t.Request] (AgentManager-Handler-1:null) (logid:) Seq
> 9-9189032089696076679: Processing: { Ans: , MgmtId: 90520732656511,
> via: 9, Ver: v1, Flags: 10,
> [{"com.cloud.agent.api.Answer":{"result":false,"details":"com.cloud.utils.exception.CloudRuntimeException:
>
> *GetRootDir for nfs://10.0.254.12/mnt/secondary failed due to
> com.cloud.utils.exception.CloudRuntimeException: Unable to mount
> 10.0.254.12:/mnt/secondary at
> /mnt/SecStorage/89cfc424-4510-3484-aee4-cda5d7029238 due to mount.nfs:
> requested NFS version or transport protocol is not supported*\n\tat
> org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.getRootDir(NfsSecondaryStorageResource.java:2458)\n\tat
>
> org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.execute(NfsSecondaryStorageResource.java:2208)\n\tat
>
> org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.executeRequest(NfsSecondaryStorageResource.java:292)\n\tat
>
> com.cloud.storage.resource.PremiumSecondaryStorageResource.defaultAction(PremiumSecondaryStorageResource.java:64)\n\tat
>
> com.cloud.storage.resource.PremiumSecondaryStorageResource.executeRequest(PremiumSecondaryStorageResource.java:60)\n\tat
>
> com.cloud.agent.Agent.processRequest(Agent.java:644)\n\tat
> com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:1057)\n\tat
> com.cloud.utils.nio.Task.call(Task.java:83)\n\tat
> com.cloud.utils.nio.Task.call(Task.java:29)\n\tat
> java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\n\tat
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)\n\tat
>
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\n\tat
>
> java.base/java.lang.Thread.run(Thread.java:834)\n","wait":0}}] }
>
> There is a way to force NFS version 4 in ACS?.
>
> Thanks
>
> M
>
>
--
Regards,
Hean Seng
pearl.dsilva@shapeblue.com
www.shapeblue.com
3 London Bridge Street, 3rd floor, News Building, London SE1 9SGUK
@shapeblue
Re: NFS 4 and secondary storage
Posted by Hean Seng <he...@gmail.com>.
You can try manual mount it at linux see if can or not
On Mon, Sep 21, 2020 at 10:30 PM Mauro Ferraro - G2K Hosting <
mferraro@g2khosting.com> wrote:
> Hi guys,
>
> we are trying to set up a secondary storage with NFS 4 and we get an
> error.:
>
>
> DEBUG [c.c.a.t.Request] (AgentManager-Handler-1:null) (logid:) Seq
> 9-9189032089696076679: Processing: { Ans: , MgmtId: 90520732656511,
> via: 9, Ver: v1, Flags: 10,
> [{"com.cloud.agent.api.Answer":{"result":false,"details":"com.cloud.utils.exception.CloudRuntimeException:
>
> *GetRootDir for nfs://10.0.254.12/mnt/secondary failed due to
> com.cloud.utils.exception.CloudRuntimeException: Unable to mount
> 10.0.254.12:/mnt/secondary at
> /mnt/SecStorage/89cfc424-4510-3484-aee4-cda5d7029238 due to mount.nfs:
> requested NFS version or transport protocol is not supported*\n\tat
> org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.getRootDir(NfsSecondaryStorageResource.java:2458)\n\tat
>
> org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.execute(NfsSecondaryStorageResource.java:2208)\n\tat
>
> org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.executeRequest(NfsSecondaryStorageResource.java:292)\n\tat
>
> com.cloud.storage.resource.PremiumSecondaryStorageResource.defaultAction(PremiumSecondaryStorageResource.java:64)\n\tat
>
> com.cloud.storage.resource.PremiumSecondaryStorageResource.executeRequest(PremiumSecondaryStorageResource.java:60)\n\tat
>
> com.cloud.agent.Agent.processRequest(Agent.java:644)\n\tat
> com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:1057)\n\tat
> com.cloud.utils.nio.Task.call(Task.java:83)\n\tat
> com.cloud.utils.nio.Task.call(Task.java:29)\n\tat
> java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\n\tat
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)\n\tat
>
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\n\tat
>
> java.base/java.lang.Thread.run(Thread.java:834)\n","wait":0}}] }
>
> There is a way to force NFS version 4 in ACS?.
>
> Thanks
>
> M
>
>
--
Regards,
Hean Seng
Re: NFS 4 and secondary storage
Posted by Nicolas Vazquez <Ni...@shapeblue.com>.
Hi Mauro,
Have you tried setting the global configuration 'secstorage.nfs.version' to 4 before adding secondary storage?
Regards,
Nicolas Vazquez
________________________________
From: Mauro Ferraro - G2K Hosting <mf...@g2khosting.com>
Sent: Monday, September 21, 2020 11:29 AM
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Subject: NFS 4 and secondary storage
Hi guys,
we are trying to set up a secondary storage with NFS 4 and we get an error.:
DEBUG [c.c.a.t.Request] (AgentManager-Handler-1:null) (logid:) Seq
9-9189032089696076679: Processing: { Ans: , MgmtId: 90520732656511,
via: 9, Ver: v1, Flags: 10,
[{"com.cloud.agent.api.Answer":{"result":false,"details":"com.cloud.utils.exception.CloudRuntimeException:
*GetRootDir for nfs://10.0.254.12/mnt/secondary failed due to
com.cloud.utils.exception.CloudRuntimeException: Unable to mount
10.0.254.12:/mnt/secondary at
/mnt/SecStorage/89cfc424-4510-3484-aee4-cda5d7029238 due to mount.nfs:
requested NFS version or transport protocol is not supported*\n\tat
org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.getRootDir(NfsSecondaryStorageResource.java:2458)\n\tat
org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.execute(NfsSecondaryStorageResource.java:2208)\n\tat
org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.executeRequest(NfsSecondaryStorageResource.java:292)\n\tat
com.cloud.storage.resource.PremiumSecondaryStorageResource.defaultAction(PremiumSecondaryStorageResource.java:64)\n\tat
com.cloud.storage.resource.PremiumSecondaryStorageResource.executeRequest(PremiumSecondaryStorageResource.java:60)\n\tat
com.cloud.agent.Agent.processRequest(Agent.java:644)\n\tat
com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:1057)\n\tat
com.cloud.utils.nio.Task.call(Task.java:83)\n\tat
com.cloud.utils.nio.Task.call(Task.java:29)\n\tat
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\n\tat
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)\n\tat
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\n\tat
java.base/java.lang.Thread.run(Thread.java:834)\n","wait":0}}] }
There is a way to force NFS version 4 in ACS?.
Thanks
M
Nicolas.Vazquez@shapeblue.com
www.shapeblue.com
3 London Bridge Street, 3rd floor, News Building, London SE1 9SGUK
@shapeblue