答复: 答复: 二级存储丢失

2014-04-17 文章 许叁征
Hi  linuxbqj 
故障修复过程,北京-steelen会发布一个恢复过程到社区里面哈,另外后面发现服务器硬盘坏了,现在又要开始迁移的过程恢复数据了。。
对了,想问大家一个问题,如何做高可用的cloudstack,就是说一台cloudstac k主机宕机机了,另一台备机cloudstac k仍能工作。
目前cloudstack能做到吗?如果有,可有推荐的解决方案链接。。求解。谢谢


 



-邮件原件-
发件人: users-cn-return-3491-xusz=chinanetcenter@cloudstack.apache.org 
[mailto:users-cn-return-3491-xusz=chinanetcenter@cloudstack.apache.org] 代表 
linux...@gmail.com
发送时间: 2014年4月16日星期三 15:11
收件人: users-cn@cloudstack.apache.org
主题: Re: 答复: 二级存储丢失

hey 叁征,是否可以把你的解决过程整理一个文章发布到社区网站呢

2014-04-16 14:12 GMT+08:00 Royal Yang rayang2...@gmail.com:
 添加一个服务方案,勾选高可用,将虚拟机的服务方案更改为这个新建的方案。当host故障的时候应用此方案的虚拟机就能自动启动了


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



  
 二级存储是使用NFS的,后面经“北京-steelen”的协助支持下,启用本地存储后经相应检查后,虚拟机多数可以启动了。在这里面要特别感谢下steelen,来到厦门的时候,记得告诉我,请你吃大餐以表心意,
  目前有两个问题,在平时中一直困扰的。
 1.使用两台XENserver为一个pool集群后,xenserver,有自时它会自动在XEN面板上变红色图标,然后节点会自动消失,一台xenserver
 就会ping不通掉,看起来是机器在重启了。这样就造成虚拟机也瞬间停止运行了。。隔了2分钟后,它会可能会自动加载成同一个pool。
1.1想问下各位,造成这个问题的原因是什么,如何处理?
1.2 如何在节点故障恢复后,虚拟机也能自动启动起来免人工手动启动。
 谢谢大家了。


 -邮件原件-
 发件人: 
 users-cn-return-3485-xusz=chinanetcenter@cloudstack.apache.org[mailto:
 users-cn-return-3485-xusz=chinanetcenter@cloudstack.apache.org] 代表
 linux...@gmail.com
 发送时间: 2014年4月16日星期三 7:49
 收件人: users-cn@cloudstack.apache.org
 主题: Re: 二级存储丢失

 二级存储是使用的iscsi还是NFS呢?

 二级存储手动挂载有没有问题?看日志,分析是二级存储挂载不上


 2014-04-15 10:18 GMT+08:00 许叁征 x...@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):
 

Re: 答复: 二级存储丢失

2014-04-17 文章 ganglin_lan
cloudstack高可用可以配置cloudstack slave 
服务器,正常安装cloudstack,初始化数据库时,不要用--deploy-as参数,这样两个cloudstack就可以同时管理了,当然前面还可以加个ngiinx之类的做负载均衡,重点是mysql数据库要做主从




ganglin_lan

发件人: 许叁征
发送时间: 2014-04-17 16:02
收件人: users-cn@cloudstack.apache.org
主题: 答复: 答复: 二级存储丢失
Hi  linuxbqj 
故障修复过程,北京-steelen会发布一个恢复过程到社区里面哈,另外后面发现服务器硬盘坏了,现在又要开始迁移的过程恢复数据了。。
对了,想问大家一个问题,如何做高可用的cloudstack,就是说一台cloudstac k主机宕机机了,另一台备机cloudstac k仍能工作。
目前cloudstack能做到吗?如果有,可有推荐的解决方案链接。。求解。谢谢






-邮件原件-
发件人: users-cn-return-3491-xusz=chinanetcenter@cloudstack.apache.org 
[mailto:users-cn-return-3491-xusz=chinanetcenter@cloudstack.apache.org] 代表 
linux...@gmail.com
发送时间: 2014年4月16日星期三 15:11
收件人: users-cn@cloudstack.apache.org
主题: Re: 答复: 二级存储丢失

hey 叁征,是否可以把你的解决过程整理一个文章发布到社区网站呢

2014-04-16 14:12 GMT+08:00 Royal Yang rayang2...@gmail.com:
 添加一个服务方案,勾选高可用,将虚拟机的服务方案更改为这个新建的方案。当host故障的时候应用此方案的虚拟机就能自动启动了


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



  
 二级存储是使用NFS的,后面经“北京-steelen”的协助支持下,启用本地存储后经相应检查后,虚拟机多数可以启动了。在这里面要特别感谢下steelen,来到厦门的时候,记得告诉我,请你吃大餐以表心意,
  目前有两个问题,在平时中一直困扰的。
 1.使用两台XENserver为一个pool集群后,xenserver,有自时它会自动在XEN面板上变红色图标,然后节点会自动消失,一台xenserver
 就会ping不通掉,看起来是机器在重启了。这样就造成虚拟机也瞬间停止运行了。。隔了2分钟后,它会可能会自动加载成同一个pool。
1.1想问下各位,造成这个问题的原因是什么,如何处理?
1.2 如何在节点故障恢复后,虚拟机也能自动启动起来免人工手动启动。
 谢谢大家了。


 -邮件原件-
 发件人: 
 users-cn-return-3485-xusz=chinanetcenter@cloudstack.apache.org[mailto:
 users-cn-return-3485-xusz=chinanetcenter@cloudstack.apache.org] 代表
 linux...@gmail.com
 发送时间: 2014年4月16日星期三 7:49
 收件人: users-cn@cloudstack.apache.org
 主题: Re: 二级存储丢失

 二级存储是使用的iscsi还是NFS呢?

 二级存储手动挂载有没有问题?看日志,分析是二级存储挂载不上


 2014-04-15 10:18 GMT+08:00 许叁征 x...@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 

Re: 答复: 二级存储丢失

2014-04-17 文章 ganglin_lan
生产环境不建议这样干,cs服务器只提供cs服务。你这样相当于主存储和cs在一台机器上




ganglin_lan

发件人: 许叁征
发送时间: 2014-04-17 17:20
收件人: users-cn@cloudstack.apache.org; 'ganglin_lan'
主题: 答复: 答复: 二级存储丢失

目前 使用的环境 是CS主机具有虚拟机文件,全为home目录下,
那这个CS备用机器/home目录下是不是也要同步,这个同步是如何用的同步?。







-邮件原件-
发件人: users-cn-return-3501-xusz=chinanetcenter@cloudstack.apache.org 
[mailto:users-cn-return-3501-xusz=chinanetcenter@cloudstack.apache.org] 代表 
ganglin_lan
发送时间: 2014年4月17日星期四 16:05
收件人: users-cn
主题: Re: 答复: 二级存储丢失

cloudstack高可用可以配置cloudstack slave 
服务器,正常安装cloudstack,初始化数据库时,不要用--deploy-as参数,这样两个cloudstack就可以同时管理了,当然前面还可以加个ngiinx之类的做负载均衡,重点是mysql数据库要做主从




ganglin_lan

发件人: 许叁征
发送时间: 2014-04-17 16:02
收件人: users-cn@cloudstack.apache.org
主题: 答复: 答复: 二级存储丢失
Hi  linuxbqj 
故障修复过程,北京-steelen会发布一个恢复过程到社区里面哈,另外后面发现服务器硬盘坏了,现在又要开始迁移的过程恢复数据了。。
对了,想问大家一个问题,如何做高可用的cloudstack,就是说一台cloudstac k主机宕机机了,另一台备机cloudstac k仍能工作。
目前cloudstack能做到吗?如果有,可有推荐的解决方案链接。。求解。谢谢






-邮件原件-
发件人: users-cn-return-3491-xusz=chinanetcenter@cloudstack.apache.org 
[mailto:users-cn-return-3491-xusz=chinanetcenter@cloudstack.apache.org] 代表 
linux...@gmail.com
发送时间: 2014年4月16日星期三 15:11
收件人: users-cn@cloudstack.apache.org
主题: Re: 答复: 二级存储丢失

hey 叁征,是否可以把你的解决过程整理一个文章发布到社区网站呢

2014-04-16 14:12 GMT+08:00 Royal Yang rayang2...@gmail.com:
 添加一个服务方案,勾选高可用,将虚拟机的服务方案更改为这个新建的方案。当host故障的时候应用此方案的虚拟机就能自动启动了


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



  
 二级存储是使用NFS的,后面经“北京-steelen”的协助支持下,启用本地存储后经相应检查后,虚拟机多数可以启动了。在这里面要特别感谢下steelen,来到厦门的时候,记得告诉我,请你吃大餐以表心意,
  目前有两个问题,在平时中一直困扰的。
 1.使用两台XENserver为一个pool集群后,xenserver,有自时它会自动在XEN面板上变红色图标,然后节点会自动消失,一台xenserver
 就会ping不通掉,看起来是机器在重启了。这样就造成虚拟机也瞬间停止运行了。。隔了2分钟后,它会可能会自动加载成同一个pool。
1.1想问下各位,造成这个问题的原因是什么,如何处理?
1.2 如何在节点故障恢复后,虚拟机也能自动启动起来免人工手动启动。
 谢谢大家了。


 -邮件原件-
 发件人: 
 users-cn-return-3485-xusz=chinanetcenter@cloudstack.apache.org[mailto:
 users-cn-return-3485-xusz=chinanetcenter@cloudstack.apache.org] 代表
 linux...@gmail.com
 发送时间: 2014年4月16日星期三 7:49
 收件人: users-cn@cloudstack.apache.org
 主题: Re: 二级存储丢失

 二级存储是使用的iscsi还是NFS呢?

 二级存储手动挂载有没有问题?看日志,分析是二级存储挂载不上


 2014-04-15 10:18 GMT+08:00 许叁征 x...@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
 

REMINDER realhostip going away

2014-04-17 文章 John Kinsella
Reminder, folks - please migrate off realhostip.com or you’re going to get a 
nasty surprise this summer. More info at link below.

https://blogs.apache.org/cloudstack/entry/realhostip_service_is_being_retired