You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users-cn@cloudstack.apache.org by 虚无缥缈 <83...@qq.com> on 2014/04/24 08:57:20 UTC

看了上海活动的分布式文档,有问题请教,感谢回复。

目前的环境:4台glusterfs(3.4.2)做了一个卷、两台agnent主机、一台manager主机。
 目前的配置:2台agent mount  gfs卷成功,在mount目录里写入测试数据也没有问题,权限也是root。
 遇到的问题:cloudstack配置完成,按文档添加SharedMountPoint主存储成功,但是创建系统vm总是报错,以下是日志,如果使用nfs协议添加gfs卷作为主存储,系统vm可以很快完成创建。
                 请问哪里还需要特殊配置吗?
  
 2014-04-23 16:26:33,833 DEBUG [cloud.deploy.FirstFitPlanner] (secstorage-1:null) The specified cluster is in avoid set, returning.
  2014-04-23 16:26:33,834 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl] (secstorage-1:null) Deploy avoids pods: null, clusters: [1], hosts: [1]
 2014-04-23 16:26:33,835 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl] (secstorage-1:null) DeploymentPlanner allocation algorithm: com.cloud.deploy.FirstFitPlanner_EnhancerByCloudStack_5ad4b13d@57e78b3e
 2014-04-23 16:26:33,835 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl] (secstorage-1:null) Trying to allocate a host and storage pools from dc:1, pod:null,cluster:null, requested cpu: 500, requested ram: 268435456
 2014-04-23 16:26:33,835 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl] (secstorage-1:null) Is ROOT volume READY (pool already allocated)?: No
 2014-04-23 16:26:33,835 DEBUG [cloud.deploy.FirstFitPlanner] (secstorage-1:null) Searching all possible resources under this Zone: 1
 2014-04-23 16:26:33,836 DEBUG [cloud.deploy.FirstFitPlanner] (secstorage-1:null) Listing clusters in order of aggregate capacity, that have (atleast one host with) enough CPU and RAM capacity under this Zone: 1
 2014-04-23 16:26:33,840 DEBUG [cloud.deploy.FirstFitPlanner] (secstorage-1:null) Removing from the clusterId list these clusters from avoid set: [1]
 2014-04-23 16:26:33,840 DEBUG [cloud.deploy.FirstFitPlanner] (secstorage-1:null) No clusters found after removing disabled clusters and clusters in avoid list, returning.
 2014-04-23 16:26:33,847 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
 2014-04-23 16:26:33,855 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) Hosts's actual total CPU: 48000 and CPU after applying overprovisioning: 48000
 2014-04-23 16:26:33,855 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) Hosts's actual total RAM: 101395537920 and RAM after applying overprovisioning: 101395537920
 2014-04-23 16:26:33,855 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) release cpu from host: 1, old used: 500,reserved: 0, actual total: 48000, total with overprovisioning: 48000; new used: 0,reserved:0; movedfromreserved: false,moveToReserveredfalse
 2014-04-23 16:26:33,855 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) release mem from host: 1, old used: 268435456,reserved: 0, total: 101395537920; new used: 0,reserved:0; movedfromreserved: false,moveToReserveredfalse
 2014-04-23 16:26:33,858 WARN  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Exception while trying to start secondary storage vm
 com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[SecondaryStorageVm|s-11-VM]Scope=interface com.cloud.dc.DataCenter; id=1
         at com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:842)
         at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:578)
         at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:571)
         at com.cloud.storage.secondary.SecondaryStorageManagerImpl.startSecStorageVm(SecondaryStorageManagerImpl.java:267)
         at com.cloud.storage.secondary.SecondaryStorageManagerImpl.allocCapacity(SecondaryStorageManagerImpl.java:696)
         at com.cloud.storage.secondary.SecondaryStorageManagerImpl.expandPool(SecondaryStorageManagerImpl.java:1300)
         at com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:123)
         at com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:50)
         at com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:104)
         at com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:33)
         at com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:81)
         at com.cloud.vm.SystemVmLoadScanner$1.run(SystemVmLoadScanner.java:72)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
         at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
         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:701)
 2014-04-23 16:26:33,860 INFO  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Unable to start secondary storage vm for standby capacity, secStorageVm vm Id : 11, will recycle it and start a new one
 2014-04-23 16:26:33,860 INFO  [cloud.secstorage.PremiumSecondaryStorageManagerImpl] (secstorage-1:null) Primary secondary storage is not even started, wait until next turn
 2014-04-23 16:26:46,479 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-1:null) Ping from 1
 2014-04-23 16:26:47,437 DEBUG [cloud.server.StatsCollector] (StatsCollector-3:null) VmStatsCollector is running...
 2014-04-23 16:26:49,569 DEBUG [cloud.server.StatsCollector] (StatsCollector-3:null) StorageCollector is running...
 2014-04-23 16:26:49,576 INFO  [storage.endpoint.DefaultEndPointSelector] (StatsCollector-3:null) No running ssvm is found, so command will be sent to LocalHostEndPoint
 2014-04-23 16:26:49,640 DEBUG [agent.transport.Request] (StatsCollector-3:null) Seq 1-1260978313: Received:  { Ans: , MgmtId: 59716377313896, via: 1, Ver: v1, Flags: 10, { GetStorageStatsAnswer } }
 2014-04-23 16:26:49,776 DEBUG [agent.transport.Request] (StatsCollector-3:null) Seq 1-1260978314: Received:  { Ans: , MgmtId: 59716377313896, via: 1, Ver: v1, Flags: 10, { GetStorageStatsAnswer } }
 2014-04-23 16:26:54,061 DEBUG [cloud.server.StatsCollector] (StatsCollector-3:null) HostStatsCollector is running...
 2014-04-23 16:26:54,654 DEBUG [agent.transport.Request] (StatsCollector-3:null) Seq 1-1260978315: Received:  { Ans: , MgmtId: 59716377313896, via: 1, Ver: v1, Flags: 10, { GetHostStatsAnswer } }
 2014-04-23 16:27:00,545 DEBUG [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Zone 1 is ready to launch secondary storage VM

回复: 看了上海活动的分布式文档,有问题请教,感谢回复。

Posted by 虚无缥缈 <83...@qq.com>.
这几天又通过日志发现了一些线索


cs挂载主存储之后,agent主机会自动在/mnt/下mount一个随机目录,我在添加nfs主存储的时候,这个目录是存在的,但是,在添加sharemountpoint的glusterfs主存储的时候,mnt下是没有这个随机目录的。
问题就在这了,如果我手工在mnt下创建这个目前,那ssvm是可以启动的,但是为什么自动创建的会失败。




------------------ 原始邮件 ------------------
发件人: "我自己的邮箱";<83...@qq.com>;
发送时间: 2014年4月24日(星期四) 下午3:38
收件人: "users-cn"<us...@cloudstack.apache.org>; 

主题: 回复: 看了上海活动的分布式文档,有问题请教,感谢回复。



我是就是主存储有问题,因为使用了glusterfs自由协议的连接方式做了主存储,如果主存储使用nfs挂载glousterfs卷就没有问题,系统vm都能正常启动,我现在怀疑glusterfs的参数设置问题,目前都是默认参数。




------------------ 原始邮件 ------------------
发件人: "rayang2004@gmail.com";<ra...@gmail.com>;
发送时间: 2014年4月24日(星期四) 下午3:18
收件人: "users-cn"<us...@cloudstack.apache.org>; 

主题: 回复: 看了上海活动的分布式文档,有问题请教,感谢回复。









Is ROOT volume READY (pool already allocated)?: No

看cluster下主存储是否正常吧。日志上显示看像是主存储问题


rayang2004@gmail.com
 发件人: 虚无缥缈发送时间: 2014-04-24 14:57收件人: users-cn主题: 看了上海活动的分布式文档,有问题请教,感谢回复。目前的环境:4台glusterfs(3.4.2)做了一个卷、两台agnent主机、一台manager主机。
 目前的配置:2台agent mount  gfs卷成功,在mount目录里写入测试数据也没有问题,权限也是root。
 遇到的问题:cloudstack配置完成,按文档添加SharedMountPoint主存储成功,但是创建系统vm总是报错,以下是日志,如果使用nfs协议添加gfs卷作为主存储,系统vm可以很快完成创建。
                 请问哪里还需要特殊配置吗?
  
 2014-04-23 16:26:33,833 DEBUG [cloud.deploy.FirstFitPlanner] (secstorage-1:null) The specified cluster is in avoid set, returning.
  2014-04-23 16:26:33,834 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl] (secstorage-1:null) Deploy avoids pods: null, clusters: [1], hosts: [1]
 2014-04-23 16:26:33,835 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl] (secstorage-1:null) DeploymentPlanner allocation algorithm: com.cloud.deploy.FirstFitPlanner_EnhancerByCloudStack_5ad4b13d@57e78b3e
 2014-04-23 16:26:33,835 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl] (secstorage-1:null) Trying to allocate a host and storage pools from dc:1, pod:null,cluster:null, requested cpu: 500, requested ram: 268435456
 2014-04-23 16:26:33,835 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl] (secstorage-1:null) Is ROOT volume READY (pool already allocated)?: No
 2014-04-23 16:26:33,835 DEBUG [cloud.deploy.FirstFitPlanner] (secstorage-1:null) Searching all possible resources under this Zone: 1
 2014-04-23 16:26:33,836 DEBUG [cloud.deploy.FirstFitPlanner] (secstorage-1:null) Listing clusters in order of aggregate capacity, that have (atleast one host with) enough CPU and RAM capacity under this Zone: 1
 2014-04-23 16:26:33,840 DEBUG [cloud.deploy.FirstFitPlanner] (secstorage-1:null) Removing from the clusterId list these clusters from avoid set: [1]
 2014-04-23 16:26:33,840 DEBUG [cloud.deploy.FirstFitPlanner] (secstorage-1:null) No clusters found after removing disabled clusters and clusters in avoid list, returning.
 2014-04-23 16:26:33,847 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
 2014-04-23 16:26:33,855 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) Hosts's actual total CPU: 48000 and CPU after applying overprovisioning: 48000
 2014-04-23 16:26:33,855 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) Hosts's actual total RAM: 101395537920 and RAM after applying overprovisioning: 101395537920
 2014-04-23 16:26:33,855 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) release cpu from host: 1, old used: 500,reserved: 0, actual total: 48000, total with overprovisioning: 48000; new used: 0,reserved:0; movedfromreserved: false,moveToReserveredfalse
 2014-04-23 16:26:33,855 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) release mem from host: 1, old used: 268435456,reserved: 0, total: 101395537920; new used: 0,reserved:0; movedfromreserved: false,moveToReserveredfalse
 2014-04-23 16:26:33,858 WARN  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Exception while trying to start secondary storage vm
 com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[SecondaryStorageVm|s-11-VM]Scope=interface com.cloud.dc.DataCenter; id=1
         at com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:842)
         at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:578)
         at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:571)
         at com.cloud.storage.secondary.SecondaryStorageManagerImpl.startSecStorageVm(SecondaryStorageManagerImpl.java:267)
         at com.cloud.storage.secondary.SecondaryStorageManagerImpl.allocCapacity(SecondaryStorageManagerImpl.java:696)
         at com.cloud.storage.secondary.SecondaryStorageManagerImpl.expandPool(SecondaryStorageManagerImpl.java:1300)
         at com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:123)
         at com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:50)
         at com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:104)
         at com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:33)
         at com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:81)
         at com.cloud.vm.SystemVmLoadScanner$1.run(SystemVmLoadScanner.java:72)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
         at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
         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:701)
 2014-04-23 16:26:33,860 INFO  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Unable to start secondary storage vm for standby capacity, secStorageVm vm Id : 11, will recycle it and start a new one
 2014-04-23 16:26:33,860 INFO  [cloud.secstorage.PremiumSecondaryStorageManagerImpl] (secstorage-1:null) Primary secondary storage is not even started, wait until next turn
 2014-04-23 16:26:46,479 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-1:null) Ping from 1
 2014-04-23 16:26:47,437 DEBUG [cloud.server.StatsCollector] (StatsCollector-3:null) VmStatsCollector is running...
 2014-04-23 16:26:49,569 DEBUG [cloud.server.StatsCollector] (StatsCollector-3:null) StorageCollector is running...
 2014-04-23 16:26:49,576 INFO  [storage.endpoint.DefaultEndPointSelector] (StatsCollector-3:null) No running ssvm is found, so command will be sent to LocalHostEndPoint
 2014-04-23 16:26:49,640 DEBUG [agent.transport.Request] (StatsCollector-3:null) Seq 1-1260978313: Received:  { Ans: , MgmtId: 59716377313896, via: 1, Ver: v1, Flags: 10, { GetStorageStatsAnswer } }
 2014-04-23 16:26:49,776 DEBUG [agent.transport.Request] (StatsCollector-3:null) Seq 1-1260978314: Received:  { Ans: , MgmtId: 59716377313896, via: 1, Ver: v1, Flags: 10, { GetStorageStatsAnswer } }
 2014-04-23 16:26:54,061 DEBUG [cloud.server.StatsCollector] (StatsCollector-3:null) HostStatsCollector is running...
 2014-04-23 16:26:54,654 DEBUG [agent.transport.Request] (StatsCollector-3:null) Seq 1-1260978315: Received:  { Ans: , MgmtId: 59716377313896, via: 1, Ver: v1, Flags: 10, { GetHostStatsAnswer } }
 2014-04-23 16:27:00,545 DEBUG [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Zone 1 is ready to launch secondary storage VM

回复: 看了上海活动的分布式文档,有问题请教,感谢回复。

Posted by 虚无缥缈 <83...@qq.com>.
我是就是主存储有问题,因为使用了glusterfs自由协议的连接方式做了主存储,如果主存储使用nfs挂载glousterfs卷就没有问题,系统vm都能正常启动,我现在怀疑glusterfs的参数设置问题,目前都是默认参数。




------------------ 原始邮件 ------------------
发件人: "rayang2004@gmail.com";<ra...@gmail.com>;
发送时间: 2014年4月24日(星期四) 下午3:18
收件人: "users-cn"<us...@cloudstack.apache.org>; 

主题: 回复: 看了上海活动的分布式文档,有问题请教,感谢回复。









Is ROOT volume READY (pool already allocated)?: No

看cluster下主存储是否正常吧。日志上显示看像是主存储问题


rayang2004@gmail.com
 发件人: 虚无缥缈发送时间: 2014-04-24 14:57收件人: users-cn主题: 看了上海活动的分布式文档,有问题请教,感谢回复。目前的环境:4台glusterfs(3.4.2)做了一个卷、两台agnent主机、一台manager主机。
 目前的配置:2台agent mount  gfs卷成功,在mount目录里写入测试数据也没有问题,权限也是root。
 遇到的问题:cloudstack配置完成,按文档添加SharedMountPoint主存储成功,但是创建系统vm总是报错,以下是日志,如果使用nfs协议添加gfs卷作为主存储,系统vm可以很快完成创建。
                 请问哪里还需要特殊配置吗?
  
 2014-04-23 16:26:33,833 DEBUG [cloud.deploy.FirstFitPlanner] (secstorage-1:null) The specified cluster is in avoid set, returning.
  2014-04-23 16:26:33,834 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl] (secstorage-1:null) Deploy avoids pods: null, clusters: [1], hosts: [1]
 2014-04-23 16:26:33,835 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl] (secstorage-1:null) DeploymentPlanner allocation algorithm: com.cloud.deploy.FirstFitPlanner_EnhancerByCloudStack_5ad4b13d@57e78b3e
 2014-04-23 16:26:33,835 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl] (secstorage-1:null) Trying to allocate a host and storage pools from dc:1, pod:null,cluster:null, requested cpu: 500, requested ram: 268435456
 2014-04-23 16:26:33,835 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl] (secstorage-1:null) Is ROOT volume READY (pool already allocated)?: No
 2014-04-23 16:26:33,835 DEBUG [cloud.deploy.FirstFitPlanner] (secstorage-1:null) Searching all possible resources under this Zone: 1
 2014-04-23 16:26:33,836 DEBUG [cloud.deploy.FirstFitPlanner] (secstorage-1:null) Listing clusters in order of aggregate capacity, that have (atleast one host with) enough CPU and RAM capacity under this Zone: 1
 2014-04-23 16:26:33,840 DEBUG [cloud.deploy.FirstFitPlanner] (secstorage-1:null) Removing from the clusterId list these clusters from avoid set: [1]
 2014-04-23 16:26:33,840 DEBUG [cloud.deploy.FirstFitPlanner] (secstorage-1:null) No clusters found after removing disabled clusters and clusters in avoid list, returning.
 2014-04-23 16:26:33,847 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
 2014-04-23 16:26:33,855 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) Hosts's actual total CPU: 48000 and CPU after applying overprovisioning: 48000
 2014-04-23 16:26:33,855 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) Hosts's actual total RAM: 101395537920 and RAM after applying overprovisioning: 101395537920
 2014-04-23 16:26:33,855 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) release cpu from host: 1, old used: 500,reserved: 0, actual total: 48000, total with overprovisioning: 48000; new used: 0,reserved:0; movedfromreserved: false,moveToReserveredfalse
 2014-04-23 16:26:33,855 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) release mem from host: 1, old used: 268435456,reserved: 0, total: 101395537920; new used: 0,reserved:0; movedfromreserved: false,moveToReserveredfalse
 2014-04-23 16:26:33,858 WARN  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Exception while trying to start secondary storage vm
 com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[SecondaryStorageVm|s-11-VM]Scope=interface com.cloud.dc.DataCenter; id=1
         at com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:842)
         at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:578)
         at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:571)
         at com.cloud.storage.secondary.SecondaryStorageManagerImpl.startSecStorageVm(SecondaryStorageManagerImpl.java:267)
         at com.cloud.storage.secondary.SecondaryStorageManagerImpl.allocCapacity(SecondaryStorageManagerImpl.java:696)
         at com.cloud.storage.secondary.SecondaryStorageManagerImpl.expandPool(SecondaryStorageManagerImpl.java:1300)
         at com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:123)
         at com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:50)
         at com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:104)
         at com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:33)
         at com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:81)
         at com.cloud.vm.SystemVmLoadScanner$1.run(SystemVmLoadScanner.java:72)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
         at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
         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:701)
 2014-04-23 16:26:33,860 INFO  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Unable to start secondary storage vm for standby capacity, secStorageVm vm Id : 11, will recycle it and start a new one
 2014-04-23 16:26:33,860 INFO  [cloud.secstorage.PremiumSecondaryStorageManagerImpl] (secstorage-1:null) Primary secondary storage is not even started, wait until next turn
 2014-04-23 16:26:46,479 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-1:null) Ping from 1
 2014-04-23 16:26:47,437 DEBUG [cloud.server.StatsCollector] (StatsCollector-3:null) VmStatsCollector is running...
 2014-04-23 16:26:49,569 DEBUG [cloud.server.StatsCollector] (StatsCollector-3:null) StorageCollector is running...
 2014-04-23 16:26:49,576 INFO  [storage.endpoint.DefaultEndPointSelector] (StatsCollector-3:null) No running ssvm is found, so command will be sent to LocalHostEndPoint
 2014-04-23 16:26:49,640 DEBUG [agent.transport.Request] (StatsCollector-3:null) Seq 1-1260978313: Received:  { Ans: , MgmtId: 59716377313896, via: 1, Ver: v1, Flags: 10, { GetStorageStatsAnswer } }
 2014-04-23 16:26:49,776 DEBUG [agent.transport.Request] (StatsCollector-3:null) Seq 1-1260978314: Received:  { Ans: , MgmtId: 59716377313896, via: 1, Ver: v1, Flags: 10, { GetStorageStatsAnswer } }
 2014-04-23 16:26:54,061 DEBUG [cloud.server.StatsCollector] (StatsCollector-3:null) HostStatsCollector is running...
 2014-04-23 16:26:54,654 DEBUG [agent.transport.Request] (StatsCollector-3:null) Seq 1-1260978315: Received:  { Ans: , MgmtId: 59716377313896, via: 1, Ver: v1, Flags: 10, { GetHostStatsAnswer } }
 2014-04-23 16:27:00,545 DEBUG [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Zone 1 is ready to launch secondary storage VM

回复: 看了上海活动的分布式文档,有问题请教,感谢回复。

Posted by "rayang2004@gmail.com" <ra...@gmail.com>.





Is ROOT volume READY (pool already allocated)?: No

看cluster下主存储是否正常吧。日志上显示看像是主存储问题


rayang2004@gmail.com
 发件人: 虚无缥缈发送时间: 2014-04-24 14:57收件人: users-cn主题: 看了上海活动的分布式文档,有问题请教,感谢回复。目前的环境:4台glusterfs(3.4.2)做了一个卷、两台agnent主机、一台manager主机。
 目前的配置:2台agent mount  gfs卷成功,在mount目录里写入测试数据也没有问题,权限也是root。
 遇到的问题:cloudstack配置完成,按文档添加SharedMountPoint主存储成功,但是创建系统vm总是报错,以下是日志,如果使用nfs协议添加gfs卷作为主存储,系统vm可以很快完成创建。
                 请问哪里还需要特殊配置吗?
  
 2014-04-23 16:26:33,833 DEBUG [cloud.deploy.FirstFitPlanner] (secstorage-1:null) The specified cluster is in avoid set, returning.
  2014-04-23 16:26:33,834 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl] (secstorage-1:null) Deploy avoids pods: null, clusters: [1], hosts: [1]
 2014-04-23 16:26:33,835 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl] (secstorage-1:null) DeploymentPlanner allocation algorithm: com.cloud.deploy.FirstFitPlanner_EnhancerByCloudStack_5ad4b13d@57e78b3e
 2014-04-23 16:26:33,835 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl] (secstorage-1:null) Trying to allocate a host and storage pools from dc:1, pod:null,cluster:null, requested cpu: 500, requested ram: 268435456
 2014-04-23 16:26:33,835 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl] (secstorage-1:null) Is ROOT volume READY (pool already allocated)?: No
 2014-04-23 16:26:33,835 DEBUG [cloud.deploy.FirstFitPlanner] (secstorage-1:null) Searching all possible resources under this Zone: 1
 2014-04-23 16:26:33,836 DEBUG [cloud.deploy.FirstFitPlanner] (secstorage-1:null) Listing clusters in order of aggregate capacity, that have (atleast one host with) enough CPU and RAM capacity under this Zone: 1
 2014-04-23 16:26:33,840 DEBUG [cloud.deploy.FirstFitPlanner] (secstorage-1:null) Removing from the clusterId list these clusters from avoid set: [1]
 2014-04-23 16:26:33,840 DEBUG [cloud.deploy.FirstFitPlanner] (secstorage-1:null) No clusters found after removing disabled clusters and clusters in avoid list, returning.
 2014-04-23 16:26:33,847 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) VM state transitted from :Starting to Stopped with event: OperationFailedvm's original host id: null new host id: null host id before state transition: 1
 2014-04-23 16:26:33,855 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) Hosts's actual total CPU: 48000 and CPU after applying overprovisioning: 48000
 2014-04-23 16:26:33,855 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) Hosts's actual total RAM: 101395537920 and RAM after applying overprovisioning: 101395537920
 2014-04-23 16:26:33,855 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) release cpu from host: 1, old used: 500,reserved: 0, actual total: 48000, total with overprovisioning: 48000; new used: 0,reserved:0; movedfromreserved: false,moveToReserveredfalse
 2014-04-23 16:26:33,855 DEBUG [cloud.capacity.CapacityManagerImpl] (secstorage-1:null) release mem from host: 1, old used: 268435456,reserved: 0, total: 101395537920; new used: 0,reserved:0; movedfromreserved: false,moveToReserveredfalse
 2014-04-23 16:26:33,858 WARN  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Exception while trying to start secondary storage vm
 com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[SecondaryStorageVm|s-11-VM]Scope=interface com.cloud.dc.DataCenter; id=1
         at com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:842)
         at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:578)
         at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:571)
         at com.cloud.storage.secondary.SecondaryStorageManagerImpl.startSecStorageVm(SecondaryStorageManagerImpl.java:267)
         at com.cloud.storage.secondary.SecondaryStorageManagerImpl.allocCapacity(SecondaryStorageManagerImpl.java:696)
         at com.cloud.storage.secondary.SecondaryStorageManagerImpl.expandPool(SecondaryStorageManagerImpl.java:1300)
         at com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:123)
         at com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:50)
         at com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:104)
         at com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:33)
         at com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:81)
         at com.cloud.vm.SystemVmLoadScanner$1.run(SystemVmLoadScanner.java:72)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
         at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
         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:701)
 2014-04-23 16:26:33,860 INFO  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Unable to start secondary storage vm for standby capacity, secStorageVm vm Id : 11, will recycle it and start a new one
 2014-04-23 16:26:33,860 INFO  [cloud.secstorage.PremiumSecondaryStorageManagerImpl] (secstorage-1:null) Primary secondary storage is not even started, wait until next turn
 2014-04-23 16:26:46,479 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-1:null) Ping from 1
 2014-04-23 16:26:47,437 DEBUG [cloud.server.StatsCollector] (StatsCollector-3:null) VmStatsCollector is running...
 2014-04-23 16:26:49,569 DEBUG [cloud.server.StatsCollector] (StatsCollector-3:null) StorageCollector is running...
 2014-04-23 16:26:49,576 INFO  [storage.endpoint.DefaultEndPointSelector] (StatsCollector-3:null) No running ssvm is found, so command will be sent to LocalHostEndPoint
 2014-04-23 16:26:49,640 DEBUG [agent.transport.Request] (StatsCollector-3:null) Seq 1-1260978313: Received:  { Ans: , MgmtId: 59716377313896, via: 1, Ver: v1, Flags: 10, { GetStorageStatsAnswer } }
 2014-04-23 16:26:49,776 DEBUG [agent.transport.Request] (StatsCollector-3:null) Seq 1-1260978314: Received:  { Ans: , MgmtId: 59716377313896, via: 1, Ver: v1, Flags: 10, { GetStorageStatsAnswer } }
 2014-04-23 16:26:54,061 DEBUG [cloud.server.StatsCollector] (StatsCollector-3:null) HostStatsCollector is running...
 2014-04-23 16:26:54,654 DEBUG [agent.transport.Request] (StatsCollector-3:null) Seq 1-1260978315: Received:  { Ans: , MgmtId: 59716377313896, via: 1, Ver: v1, Flags: 10, { GetHostStatsAnswer } }
 2014-04-23 16:27:00,545 DEBUG [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Zone 1 is ready to launch secondary storage VM