既然这样,那就用NFS好了,
CS的[secondary storage] 使用NFS的时间比较长,稳定。 对整体VM的运行也没有什么影响。

对性能影响主要的还是Primary Storage和带宽/磁盘IO。



ccf...@ccfish.net
 
发件人: anyun_admin
发送时间: 2018-08-07 09:45
收件人: users-cn@cloudstack.apache.org
主题: About ACS4.11.1 using Swift to do 
Secondary(关于ACS4.11.1使用Swift做Secondary的问题;)
hello everybody!
 
Our environment: CentOS7.4, CloudStack4.11.1.0 + KVM + RBD(Primary) +
Swift(Secondary) + NFS Secondary_Staging_Storege;
 
Failure: after adding the resources and starting Zone, SSVM and CPVM cannot
be started, and corresponding template virtual machine cannot be created.
Replace Secondary with NFS type to start SSVM and CPVM.
 
The system logs are as follows
 
大家好!
 
我们的环境:CentOS7.4,CloudStack4.11.1.0 + KVM + RBD(Primary) +
Swift(Secondary) + NFS Secondary_Staging_Storege;
 
故障:添加好资源后启动Zone后,SSVM和CPVM 不能启动,相应的模板虚拟机都不能创
建,把Secondary 换成NFS类型即可启动SSVM和CPVM,
 
麻烦大家分析一下原因,谢谢!
 
日志如下:
 
       2018-08-06 00:01:20,857 DEBUG [c.c.s.StatsCollector]
(StatsCollector-3:ctx-64b902de) (logid:6522a0ab) StorageCollector is
running...
 
2018-08-06 00:01:20,864 DEBUG [c.c.s.StatsCollector]
(StatsCollector-3:ctx-64b902de) (logid:6522a0ab) There is no secondary
storage VM for secondary storage host swift
 
2018-08-06 00:01:20,865 DEBUG [c.c.h.o.r.Ovm3HypervisorGuru]
(StatsCollector-3:ctx-64b902de) (logid:6522a0ab) getCommandHostDelegation:
class com.cloud.agent.api.GetStorageStatsCommand
 
2018-08-06 00:01:20,865 DEBUG [c.c.h.XenServerGuru]
(StatsCollector-3:ctx-64b902de) (logid:6522a0ab) We are returning the
default host to execute commands because the command is not of Copy type.
 
2018-08-06 00:01:20,960 DEBUG [c.c.a.t.Request]
(StatsCollector-3:ctx-64b902de) (logid:6522a0ab) Seq 1-459085687015085768:
Received:  { Ans: , MgmtId: 52236941027, via: 1(node7511), Ver: v1, Flags:
10, { GetStorageStatsAnswer } }
 
2018-08-06 00:01:21,724 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
(AsyncJobMgr-Heartbeat-1:ctx-b2ff2f6c) (logid:1a575a6b) Begin cleanup
expired async-jobs
 
2018-08-06 00:01:21,729 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
(AsyncJobMgr-Heartbeat-1:ctx-b2ff2f6c) (logid:1a575a6b) End cleanup expired
async-jobs
 
2018-08-06 00:01:21,885 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl]
(RouterStatusMonitor-1:ctx-461c6f63) (logid:05f1a3e8) Found 0 routers to
update status. 
 
2018-08-06 00:01:21,886 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl]
(RouterStatusMonitor-1:ctx-461c6f63) (logid:05f1a3e8) Found 0 VPC networks
to update Redundant State. 
 
2018-08-06 00:01:21,887 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl]
(RouterStatusMonitor-1:ctx-461c6f63) (logid:05f1a3e8) Found 0 networks to
update RvR status. 
 
2018-08-06 00:01:24,669 DEBUG [c.c.a.m.AgentManagerImpl]
(AgentManager-Handler-13:null) (logid:) Ping from 2(node7512)
 
2018-08-06 00:01:24,669 DEBUG [c.c.v.VirtualMachinePowerStateSyncImpl]
(AgentManager-Handler-13:null) (logid:) Process host VM state report from
ping process. host: 2
 
2018-08-06 00:01:24,669 DEBUG [c.c.v.VirtualMachinePowerStateSyncImpl]
(AgentManager-Handler-13:null) (logid:) Process VM state report. host: 2,
number of records in report: 0
 
2018-08-06 00:01:24,670 DEBUG [c.c.v.VirtualMachinePowerStateSyncImpl]
(AgentManager-Handler-13:null) (logid:) Done with process of VM state
report. host: 2
 
2018-08-06 00:01:24,801 DEBUG [c.c.a.m.AgentManagerImpl]
(AgentManager-Handler-3:null) (logid:) Ping from 1(node7511)
 
2018-08-06 00:01:24,802 DEBUG [c.c.v.VirtualMachinePowerStateSyncImpl]
(AgentManager-Handler-3:null) (logid:) Process host VM state report from
ping process. host: 1
 
2018-08-06 00:01:24,802 DEBUG [c.c.v.VirtualMachinePowerStateSyncImpl]
(AgentManager-Handler-3:null) (logid:) Process VM state report. host: 1,
number of records in report: 0
 
2018-08-06 00:01:24,802 DEBUG [c.c.v.VirtualMachinePowerStateSyncImpl]
(AgentManager-Handler-3:null) (logid:) Done with process of VM state report.
host: 1
 
2018-08-06 00:01:31,724 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
(AsyncJobMgr-Heartbeat-1:ctx-b87bd64d) (logid:99d818c5) Begin cleanup
expired async-jobs
 
2018-08-06 00:01:31,728 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
(AsyncJobMgr-Heartbeat-1:ctx-b87bd64d) (logid:99d818c5) End cleanup expired
async-jobs
 
2018-08-06 00:01:32,821 DEBUG [o.a.c.s.SecondaryStorageManagerImpl]
(secstorage-1:ctx-0f18b3c5) (logid:9f98a726) System vm template is not ready
at data center 1, wait until it is ready to launch secondary storage vm
 
2018-08-06 00:01:32,821 DEBUG [o.a.c.s.SecondaryStorageManagerImpl]
(secstorage-1:ctx-0f18b3c5) (logid:9f98a726) Zone 1 is not ready to launch
secondary storage VM yet
 
2018-08-06 00:01:33,373 DEBUG [c.c.c.ConsoleProxyManagerImpl]
(consoleproxy-1:ctx-5f8bb33f) (logid:b876958e) System vm template is not
ready at data center 1, wait until it is ready to launch console proxy vm
 
2018-08-06 00:01:33,373 DEBUG [c.c.c.ConsoleProxyManagerImpl]
(consoleproxy-1:ctx-5f8bb33f) (logid:b876958e) Zone 1 is not ready to launch
console proxy yet
 
2018-08-06 00:01:41,724 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
(AsyncJobMgr-Heartbeat-1:ctx-cde3235e) (logid:503f81d4) Begin cleanup
expired async-jobs
 
2018-08-06 00:01:41,729 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
(AsyncJobMgr-Heartbeat-1:ctx-cde3235e) (logid:503f81d4) End cleanup expired
async-jobs
 
2018-08-06 00:01:51,724 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
(AsyncJobMgr-Heartbeat-1:ctx-a57a90dd) (logid:676d5204) Begin cleanup
expired async-jobs
 
2018-08-06 00:01:51,729 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
(AsyncJobMgr-Heartbeat-1:ctx-a57a90dd) (logid:676d5204) End cleanup expired
async-jobs
 
2018-08-06 00:01:51,885 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl]
(RouterStatusMonitor-1:ctx-80acb697) (logid:1ad0b9be) Found 0 routers to
update status. 
 
2018-08-06 00:01:51,886 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl]
(RouterStatusMonitor-1:ctx-80acb697) (logid:1ad0b9be) Found 0 VPC networks
to update Redundant State. 
 
2018-08-06 00:01:51,887 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl]
(RouterStatusMonitor-1:ctx-80acb697) (logid:1ad0b9be) Found 0 networks to
update RvR status. 
 
2018-08-06 00:01:57,155 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager
Timer:ctx-4ae6cd1f) (logid:99251cb6) Resetting hosts suitable for reconnect
 
2018-08-06 00:01:57,156 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager
Timer:ctx-4ae6cd1f) (logid:99251cb6) Completed resetting hosts suitable for
reconnect
 
2018-08-06 00:01:57,156 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager
Timer:ctx-4ae6cd1f) (logid:99251cb6) Acquiring hosts for clusters already
owned by this management server
 
2018-08-06 00:01:57,157 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager
Timer:ctx-4ae6cd1f) (logid:99251cb6) Completed acquiring hosts for clusters
already owned by this management server
 
2018-08-06 00:01:57,157 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager
Timer:ctx-4ae6cd1f) (logid:99251cb6) Acquiring hosts for clusters not owned
by any management server
 
2018-08-06 00:01:57,157 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager
Timer:ctx-4ae6cd1f) (logid:99251cb6) Completed acquiring hosts for clusters
not owned by any management server
 
2018-08-06 00:02:01,724 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
(AsyncJobMgr-Heartbeat-1:ctx-30b6119a) (logid:00dd6af5) Begin cleanup
expired async-jobs
 
2018-08-06 00:02:01,729 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
(AsyncJobMgr-Heartbeat-1:ctx-30b6119a) (logid:00dd6af5) End cleanup expired
async-jobs
 
2018-08-06 00:02:02,823 DEBUG [o.a.c.s.SecondaryStorageManagerImpl]
(secstorage-1:ctx-768c80c1) (logid:e8098ae5) System vm template is not ready
at data center 1, wait until it is ready to launch secondary storage vm
 
2018-08-06 00:02:02,823 DEBUG [o.a.c.s.SecondaryStorageManagerImpl]
(secstorage-1:ctx-768c80c1) (logid:e8098ae5) Zone 1 is not ready to launch
secondary storage VM yet
 
2018-08-06 00:02:03,374 DEBUG [c.c.c.ConsoleProxyManagerImpl]
(consoleproxy-1:ctx-82e30373) (logid:a4f2ae55) System vm template is not
ready at data center 1, wait until it is ready to launch console proxy vm
 
2018-08-06 00:02:03,374 DEBUG [c.c.c.ConsoleProxyManagerImpl]
(consoleproxy-1:ctx-82e30373) (logid:a4f2ae55) Zone 1 is not ready to launch
console proxy yet
 
2018-08-06 00:02:11,298 DEBUG [c.c.s.StatsCollector]
(StatsCollector-6:ctx-50e89fd9) (logid:a95ad7c2) AutoScaling Monitor is
running...
 
2018-08-06 00:02:11,724 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
(AsyncJobMgr-Heartbeat-1:ctx-fb2e6c08) (logid:108ec5cc) Begin cleanup
expired async-jobs
 
2018-08-06 00:02:11,729 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
(AsyncJobMgr-Heartbeat-1:ctx-fb2e6c08) (logid:108ec5cc) End cleanup expired
async-jobs
 
2018-08-06 00:02:19,615 DEBUG [c.c.s.StatsCollector]
(StatsCollector-4:ctx-48711a5c) (logid:cc7badc7) HostStatsCollector is
running...
 
2018-08-06 00:02:19,667 DEBUG [c.c.a.t.Request]
(StatsCollector-4:ctx-48711a5c) (logid:cc7badc7) Seq 1-459085687015085769:
Received:  { Ans: , MgmtId: 52236941027, via: 1(node7511), Ver: v1, Flags:
10, { GetHostStatsAnswer } }
 
2018-08-06 00:02:19,715 DEBUG [c.c.a.t.Request]
(StatsCollector-4:ctx-48711a5c) (logid:cc7badc7) Seq 2-7913668970220098849:
Received:  { Ans: , MgmtId: 52236941027, via: 2(node7512), Ver: v1, Flags:
10, { GetHostStatsAnswer } }
 
2018-08-06 00:02:20,960 DEBUG [c.c.s.StatsCollector]
(StatsCollector-2:ctx-9a9e5b96) (logid:ab6c1eca) StorageCollector is
running...
 
2018-08-06 00:02:20,966 DEBUG [c.c.s.StatsCollector]
(StatsCollector-2:ctx-9a9e5b96) (logid:ab6c1eca) There is no secondary
storage VM for secondary storage host swift
 
2018-08-06 00:02:20,967 DEBUG [c.c.h.o.r.Ovm3HypervisorGuru]
(StatsCollector-2:ctx-9a9e5b96) (logid:ab6c1eca) getCommandHostDelegation:
class com.cloud.agent.api.GetStorageStatsCommand
 

回复