cloudstack-users-cn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Royal Yang <rayang2...@gmail.com>
Subject Re: 答复: 二级存储丢失
Date Wed, 16 Apr 2014 06:12:53 GMT
添加一个服务方案,勾选高可用,将虚拟机的服务方案更改为这个新建的方案。当host故障的时候应用此方案的虚拟机就能自动启动了


2014-04-16 13:23 GMT+08:00 许叁征 <xusz@chinanetcenter.com>:

>
>
>  二级存储是使用NFS的,后面经“北京-steelen”的协助支持下,启用本地存储后经相应检查后,虚拟机多数可以启动了。在这里面要特别感谢下steelen,来到厦门的时候,记得告诉我,请你吃大餐以表心意,
>  目前有两个问题,在平时中一直困扰的。
> 1.使用两台XENserver为一个pool集群后,xenserver,有自时它会自动在XEN面板上变红色图标,然后节点会自动消失,一台xenserver
> 就会ping不通掉,看起来是机器在重启了。这样就造成虚拟机也瞬间停止运行了。。隔了2分钟后,它会可能会自动加载成同一个pool。
>    1.1想问下各位,造成这个问题的原因是什么,如何处理?
>    1.2 如何在节点故障恢复后,虚拟机也能自动启动起来免人工手动启动。
> 谢谢大家了。
>
>
> -----邮件原件-----
> 发件人: users-cn-return-3485-xusz=chinanetcenter.com@cloudstack.apache.org[mailto:
> users-cn-return-3485-xusz=chinanetcenter.com@cloudstack.apache.org] 代表
> linuxbqj@gmail.com
> 发送时间: 2014年4月16日星期三 7:49
> 收件人: users-cn@cloudstack.apache.org
> 主题: Re: 二级存储丢失
>
> 二级存储是使用的iscsi还是NFS呢?
>
> 二级存储手动挂载有没有问题?看日志,分析是二级存储挂载不上
>
>
> 2014-04-15 10:18 GMT+08:00 许叁征 <xusz@chinanetcenter.com>:
>
> >   HI ALL
> >
> >  最近一节点因为innode文件满了,造成虚拟机挺止,修复好节点却发现虚拟机无法启动,
> >
> > 环境:CS4.0.1 +XENSERVER。
> >
> >  添加了XEN主存储还是不能启动虚拟机。
> >
> > 2014-04-15 10:12:48,114 DEBUG
> > [storage.allocator.LocalStoragePoolAllocator] (secstorage-1:null) Unable
> to
> > find storage pool to fit the vm
> >
> > 2014-04-15 10:12:48,114 DEBUG [cloud.deploy.FirstFitPlanner]
> > (secstorage-1:null) No suitable pools found for volume:
> > Vol[67635|vm=67556|ROOT] under cluster: 20
> >
> > 2014-04-15 10:12:48,114 DEBUG [cloud.deploy.FirstFitPlanner]
> > (secstorage-1:null) No suitable pools found
> >
> > 2014-04-15 10:12:48,114 DEBUG [cloud.deploy.FirstFitPlanner]
> > (secstorage-1:null) No suitable storagePools found under this Cluster: 20
> >
> > 2014-04-15 10:12:48,115 DEBUG [cloud.deploy.FirstFitPlanner]
> > (secstorage-1:null) Checking resources in Cluster: 1 under Pod: 1
> >
> > 2014-04-15 10:12:48,115 DEBUG [cloud.deploy.FirstFitPlanner]
> > (secstorage-1:null) Calling HostAllocators to find suitable hosts
> >
> > 2014-04-15 10:12:48,115 DEBUG [allocator.impl.FirstFitAllocator]
> > (secstorage-1:FirstFitRoutingAllocator) Looking for hosts in dc: 1  pod:1
> > cluster:1
> >
> > 2014-04-15 10:12:48,117 DEBUG [allocator.impl.FirstFitAllocator]
> > (secstorage-1:FirstFitRoutingAllocator) FirstFitAllocator has 1 hosts to
> > check for allocation: [Host[-68-Routing]]
> >
> > 2014-04-15 10:12:48,119 DEBUG [allocator.impl.FirstFitAllocator]
> > (secstorage-1:FirstFitRoutingAllocator) Found 1 hosts for allocation
> after
> > prioritization: [Host[-68-Routing]]
> >
> > 2014-04-15 10:12:48,119 DEBUG [allocator.impl.FirstFitAllocator]
> > (secstorage-1:FirstFitRoutingAllocator) Looking for speed=500Mhz, Ram=256
> >
> > 2014-04-15 10:12:48,120 DEBUG [cloud.capacity.CapacityManagerImpl]
> > (secstorage-1:FirstFitRoutingAllocator) Checking if host: 68 has enough
> > capacity for requested CPU: 500 and requested RAM: 268435456 ,
> > cpuOverprovisioningFactor: 6.0
> >
> > 2014-04-15 10:12:48,122 DEBUG [cloud.capacity.CapacityManagerImpl]
> > (secstorage-1:FirstFitRoutingAllocator) Hosts's actual total CPU: 34128
> and
> > CPU after applying overprovisioning: 204768
> >
> > 2014-04-15 10:12:48,122 DEBUG [cloud.capacity.CapacityManagerImpl]
> > (secstorage-1:FirstFitRoutingAllocator) Free CPU: 204768 , Requested CPU:
> > 500
> >
> > 2014-04-15 10:12:48,122 DEBUG [cloud.capacity.CapacityManagerImpl]
> > (secstorage-1:FirstFitRoutingAllocator) Free RAM: 24472994112 , Requested
> > RAM: 268435456
> >
> > 2014-04-15 10:12:48,122 DEBUG [cloud.capacity.CapacityManagerImpl]
> > (secstorage-1:FirstFitRoutingAllocator) Host has enough CPU and RAM
> > available
> >
> > 2014-04-15 10:12:48,122 DEBUG [cloud.capacity.CapacityManagerImpl]
> > (secstorage-1:FirstFitRoutingAllocator) STATS: Can alloc CPU from host:
> 68,
> > used: 0, reserved: 0, actual total: 34128, total with overprovisioning:
> > 204768; requested cpu:500,alloc_from_last_host?:false
> > ,considerReservedCapacity?: true
> >
> > 2014-04-15 10:12:48,122 DEBUG [cloud.capacity.CapacityManagerImpl]
> > (secstorage-1:FirstFitRoutingAllocator) STATS: Can alloc MEM from host:
> 68,
> > used: 0, reserved: 0, total: 24472994112; requested mem:
> > 268435456,alloc_from_last_host?:false ,considerReservedCapacity?: true
> >
> > 2014-04-15 10:12:48,122 DEBUG [allocator.impl.FirstFitAllocator]
> > (secstorage-1:FirstFitRoutingAllocator) Found a suitable host, adding to
> > list: 68
> >
> > 2014-04-15 10:12:48,122 DEBUG [allocator.impl.FirstFitAllocator]
> > (secstorage-1:FirstFitRoutingAllocator) Host Allocator returning 1
> suitable
> > hosts
> >
> > 2014-04-15 10:12:48,123 DEBUG [cloud.deploy.FirstFitPlanner]
> > (secstorage-1:null) Checking suitable pools for volume (Id, Type):
> > (67635,ROOT)
> >
> > 2014-04-15 10:12:48,124 DEBUG [cloud.deploy.FirstFitPlanner]
> > (secstorage-1:null) We need to allocate new storagepool for this volume
> >
> > 2014-04-15 10:12:48,124 DEBUG [cloud.deploy.FirstFitPlanner]
> > (secstorage-1:null) Calling StoragePoolAllocators to find suitable pools
> >
> > 2014-04-15 10:12:48,124 DEBUG
> > [storage.allocator.LocalStoragePoolAllocator] (secstorage-1:null)
> > LocalStoragePoolAllocator trying to find storage pool to fit the vm
> >
> > 2014-04-15 10:12:48,124 DEBUG
> > [storage.allocator.FirstFitStoragePoolAllocator] (secstorage-1:null)
> > Looking for pools in dc: 1  pod:1  cluster:1
> >
> > 2014-04-15 10:12:48,126 DEBUG
> > [storage.allocator.FirstFitStoragePoolAllocator] (secstorage-1:null)
> > FirstFitStoragePoolAllocator has 4 pools to check for allocation
> >
> > 2014-04-15 10:12:48,126 DEBUG
> > [storage.allocator.AbstractStoragePoolAllocator] (secstorage-1:null)
> > Checking if storage pool is suitable, name: xen131 ,poolId: 227
> >
> > 2014-04-15 10:12:48,126 DEBUG
> > [storage.allocator.AbstractStoragePoolAllocator] (secstorage-1:null) Is
> > localStorageAllocationNeeded? true
> >
> > 2014-04-15 10:12:48,126 DEBUG
> > [storage.allocator.AbstractStoragePoolAllocator] (secstorage-1:null) Is
> > storage pool shared? true
> >
> > 2014-04-15 10:12:48,126 DEBUG
> > [storage.allocator.AbstractStoragePoolAllocator] (secstorage-1:null)
> > StoragePool is not of correct type, skipping this pool
> >
> > 2014-04-15 10:12:48,126 DEBUG
> > [storage.allocator.AbstractStoragePoolAllocator] (secstorage-1:null)
> > Checking if storage pool is suitable, name: primary2 ,poolId: 236
> >
> > 2014-04-15 10:12:48,126 DEBUG
> > [storage.allocator.AbstractStoragePoolAllocator] (secstorage-1:null) Is
> > localStorageAllocationNeeded? true
> >
> > 2014-04-15 10:12:48,126 DEBUG
> > [storage.allocator.AbstractStoragePoolAllocator] (secstorage-1:null) Is
> > storage pool shared? true
> >
> > 2014-04-15 10:12:48,126 DEBUG
> > [storage.allocator.AbstractStoragePoolAllocator] (secstorage-1:null)
> > StoragePool is not of correct type, skipping this pool
> >
> > 2014-04-15 10:12:48,126 DEBUG
> > [storage.allocator.AbstractStoragePoolAllocator] (secstorage-1:null)
> > Checking if storage pool is suitable, name: primary ,poolId: 200
> >
> > 2014-04-15 10:12:48,126 DEBUG
> > [storage.allocator.AbstractStoragePoolAllocator] (secstorage-1:null) Is
> > localStorageAllocationNeeded? true
> >
> > 2014-04-15 10:12:48,126 DEBUG
> > [storage.allocator.AbstractStoragePoolAllocator] (secstorage-1:null) Is
> > storage pool shared? true
> >
> > 2014-04-15 10:12:48,126 DEBUG
> > [storage.allocator.AbstractStoragePoolAllocator] (secstorage-1:null)
> > StoragePool is not of correct type, skipping this pool
> >
> > 2014-04-15 10:12:48,126 DEBUG
> > [storage.allocator.AbstractStoragePoolAllocator] (secstorage-1:null)
> > Checking if storage pool is suitable, name: xen129 ,poolId: 235
> >
> > 2014-04-15 10:12:48,126 DEBUG
> > [storage.allocator.AbstractStoragePoolAllocator] (secstorage-1:null) Is
> > localStorageAllocationNeeded? true
> >
> > 2014-04-15 10:12:48,126 DEBUG
> > [storage.allocator.AbstractStoragePoolAllocator] (secstorage-1:null) Is
> > storage pool shared? true
> >
> > 2014-04-15 10:12:48,126 DEBUG
> > [storage.allocator.AbstractStoragePoolAllocator] (secstorage-1:null)
> > StoragePool is not of correct type, skipping this pool
> >
> > 2014-04-15 10:12:48,126 DEBUG
> > [storage.allocator.FirstFitStoragePoolAllocator] (secstorage-1:null)
> > FirstFitStoragePoolAllocator returning 0 suitable storage pools
> >
> > 2014-04-15 10:12:48,126 DEBUG
> > [storage.allocator.LocalStoragePoolAllocator] (secstorage-1:null)
> > LocalStoragePoolAllocator returning 0 suitable storage pools
> >
> > 2014-04-15 10:12:48,126 DEBUG
> > [storage.allocator.LocalStoragePoolAllocator] (secstorage-1:null) Unable
> to
> > find storage pool to fit the vm
> >
> > 2014-04-15 10:12:48,126 DEBUG [cloud.deploy.FirstFitPlanner]
> > (secstorage-1:null) No suitable pools found for volume:
> > Vol[67635|vm=67556|ROOT] under cluster: 1
> >
> > 2014-04-15 10:12:48,126 DEBUG [cloud.deploy.FirstFitPlanner]
> > (secstorage-1:null) No suitable pools found
> >
> > 2014-04-15 10:12:48,126 DEBUG [cloud.deploy.FirstFitPlanner]
> > (secstorage-1:null) No suitable storagePools found under this Cluster: 1
> >
> > 2014-04-15 10:12:48,126 DEBUG [cloud.deploy.FirstFitPlanner]
> > (secstorage-1:null) Could not find suitable Deployment Destination for
> this
> > VM under any clusters, returning.
> >
> > 2014-04-15 10:12:48,126 DEBUG [cloud.deploy.FirstFitPlanner]
> > (secstorage-1:null) No Pods found for destination, returning.
> >
> > 2014-04-15 10:12:48,274 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: null
> >
> > 2014-04-15 10:12:48,276 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-67556-VM]Scope=interface
> > com.cloud.dc.DataCenter; id=1
> >
> >     at
> >
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:734)
> >
> >     at
> >
> com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:472)
> >
> >     at
> >
> com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:465)
> >
> >     at
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.startSecStorageVm(SecondaryStorageManagerImpl.java:257)
> >
> >     at
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.allocCapacity(SecondaryStorageManagerImpl.java:684)
> >
> >     at
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.expandPool(SecondaryStorageManagerImpl.java:1310)
> >
> >     at
> >
> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:119)
> >
> >     at
> >
> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:50)
> >
> >     at
> > com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:106)
> >
> >     at
> > com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:34)
> >
> >     at
> > com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:83)
> >
> >     at
> com.cloud.vm.SystemVmLoadScanner$1.run(SystemVmLoadScanner.java:73)
> >
> >     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:1110)
> >
> >     at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >
> >     at java.lang.Thread.run(Thread.java:679)
> >
> > 2014-04-15 10:12:48,277 INFO
> > [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null)
> Unable
> > to start secondary storage vm for standby capacity, secStorageVm vm Id :
> > 67556, will recycle it and start a new one
> >
> > 2014-04-15 10:12:48,277 INFO
> > [cloud.secstorage.PremiumSecondaryStorageManagerImpl] (secstorage-1:null)
> > Primary secondary storage is not even started, wait until next turn
> >
> > 2014-04-15 10:12:49,247 DEBUG
> > [network.router.VirtualNetworkApplianceManagerImpl]
> > (RouterStatusMonitor-1:null) Found 0 routers.
> >
> > 2014-04-15 10:12:58,920 DEBUG [cloud.server.StatsCollector]
> > (StatsCollector-3:null) StorageCollector is running...
> >
> > 2014-04-15 10:12:58,923 DEBUG [cloud.server.StatsCollector]
> > (StatsCollector-3:null) There is no secondary storage VM for secondary
> > storage host nfs://172.16.0.130/home/share/secondary
> >
> > 2014-04-15 10:12:58,925 DEBUG [cloud.server.StatsCollector]
> > (StatsCollector-3:null) There is no secondary storage VM for secondary
> > storage host nfs://172.16.0.130/home/secondary
> >
> > 2014-04-15 10:12:58,933 DEBUG [agent.manager.DirectAgentAttache]
> > (DirectAgent-55:null) Seq 68-1544683570: Executing request
> >
> > 2014-04-15 10:12:59,859 DEBUG [agent.manager.DirectAgentAttache]
> > (DirectAgent-55:null) Seq 68-1544683570: Response Received:
> >
> > 2014-04-15 10:12:59,859 DEBUG [agent.transport.Request]
> > (StatsCollector-3:null) Seq 68-1544683570: Received:  { Ans: , MgmtId:
> > 690716573693, via: 68, Ver: v1, Flags: 10, { GetStorageStatsAnswer } }
> >
> > 2014-04-15 10:12:59,864 DEBUG [agent.manager.DirectAgentAttache]
> > (DirectAgent-133:null) Seq 68-1544683571: Executing request
> >
> > ^C
> >
> >
> >
> >
> >
> >
> >
> > 许叁征
> >
> > 网宿科技股份有限公司  厦门分公司 运营技术支持部
> >
> > [image: line1]
> >
> > Tel: <021-64871177>13860125907
> >
> > E-mail:xusz@chinanetcenter.com
> > http://www.chinanetcenter.com
> >
> > [image: cid:__1@Foxmail.net]
> >
> > 分公司:北京-上海-广州-深圳
> >
> > 免费咨询热线:800-820-0001
> >
> > 网宿科技 --卓越的互联网业务平台提供商
> >
> >
> >  ------------------------------
> >
> >
> >
>
>
>
> --
> 白清杰 (Born Bai)
>
> 北京开源愿景信息技术有限公司
>
> Mail: linuxbqj@gmail.com
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message