扫一扫,访问微社区

QQ登录

只需一步,快速开始

查看: 5124|回复: 2

[Linux] 如何删除POOL中异常挂掉XenServer的成员

[复制链接]
发表于 2013-8-30 17:40:01 | 显示全部楼层 |阅读模式

访客您好,登录后可看更多精彩内容!发帖、回复积分还可换实物奖品哦,还在犹豫什么,赶紧注册登录吧!

您需要 登录 才可以下载或查看,没有账号?立即注册

×
本帖最后由 鹰擊长空 于 2013-8-30 18:03 编辑

How to Remove a XenServer Slave when it No Longer Exists in the PoolDocument ID: CTX126382   /           Created On: 2010-8-19   /           Updated On: 2012-3-10
Average Rating: (4 ratings)
View products this document applies to
Summary
XenCenter shows the red icon of the XenServer Slave that no longer exists in the pool. You want to eliminate that XenServer Slave but you receive the error message below when you issue the command from XenServer Master xe host-forget of that Slave.
“This host cannot be forgotten because there are some user VMs still running
host: 58ee6a78-c20c-4069-b07d-0b092e15fc1c (XS2)
The XenServer Master’s database still has the list of the virtual machines from Slave, but in the reality, the Slave no longer exists. You need to shutdown the virtual machines first to be able to forget the Slave from the pool.
Procedure

  • Run the following command:
    xe host-list




  • The slave that you want to eliminate is XS2 with UUID 58ee6a78-c20c-4069-b07d-0b092e15fc1c. You want to find the virtual machines still running on the Slave:
    xe vm-list resident-on=58ee6a78-c20c-4069-b07d-0b092e15fc1c



  • The two virtual machines that you need to shut down are Storage Link and NetScaler Virtual Appliance. Run the following commands:
    xe vm-reset-powerstate uuid=603432e2-c85c-42fa-7bcd-430ddef6688a –force
    xe vm-reset-powerstate uuid=062a61b6-0ee3-9383-adf9-e2a506e5e3be –force

  • It is now safe to forget the Slave. Run the following command:
    xe host-forget uuid=58ee6a78-c20c-4069-b07d-0b092e15fc1c

  • Go to XenCenter, the slave XS2 is no longer there.


This document applies to:
以上内容来自于Citrix官网:http://support.citrix.com/article/CTX126382


毕嘉峰电脑技术论坛-Bijiafeng.com:论技术分享我们更专业更精确!!
比价蜂-优惠全知道!
 楼主| 发表于 2013-8-30 17:49:20 | 显示全部楼层

网友提供信息,环境为生产环境

本帖最后由 鹰擊长空 于 2013-8-30 17:57 编辑

补充:
北京-凡尘<bijiafeng@sina.com>  
你先在master的console中运行
1.xe host-list   列出server的UUID
2.xe vm-list resident-on=yourserveruuid     列出这个server上的设备(存储、虚机等,一般是存储居多)
3.xe vm-reset-powerstate uuid=uuid -force    重置该server链接的设备,有几个重置几个(这里uuid是你链接的设备的)
4.xe host-forget uuid=yourserveruuid      踢出pool中死掉的server

考虑:
1.第三步中用此命令xe vm-reset-powerstate force=true vm=<vm name>是否可行为探究(感谢 @上海-剑心 提供);
2.是否可用service xapi restart替代以上四部曲,有待考证(感谢 @北京-太子 提供)。
毕嘉峰电脑技术论坛-Bijiafeng.com:论技术分享我们更专业更精确!!
发表于 2018-6-13 20:42:23 | 显示全部楼层
本帖最后由 bijiafeng 于 2018-6-13 20:53 编辑

1.xe host-list   # 列出主机信息
2.xe vm-list resident-on=<host-uuid>   # 列出主机上设备、VM信息
3.xe vm-reset-powerstate uuid=<dev-uuid> -force  # 重置主机连接的设备,这里的dev-uuid是设备的uuid
4.xe pool-eject host uuid=<host-uuid> (xe host-forget uuid=<host-uuid>)  # 删除要移除的主机uuid

如果XenServer本地存储上有数据先用xe vm-copy复制到共享存储。
参考:https://bbs.bijiafeng.com/thread-1290-1-1.html

毕嘉峰电脑技术论坛-Bijiafeng.com:论技术分享我们更专业更精确!!
关闭

站长推荐 上一条 /1 下一条

9.9全场包邮
客服热线
暂缓开通 周一至周五:09:00 - 18:00
公司地址:北京市海淀区中关科技园
邮箱:root@bijiafeng.com

毕嘉峰电脑技术网始于2008年,由毕嘉峰创办并延续至今,在2012年进行线下转型于2013年正式上线运行。我们坚持初心不忘使命,努力为客户打造准确精准的解决方案,目前处于公益运行,如果你喜欢本站,希望给予赞助让我们做得更好更久,谢谢支持!。

Powered by Discuz!  X3.5 © 2008-2021 毕嘉峰电脑技术网   技术支持: 凡尘

申请友链|手机版|小黑屋|毕嘉峰电脑技术网 ( 京ICP备13033230号-2 )|赞助我们

GMT+8, 2024-5-5 21:38 , Processed in 0.045221 second(s), 23 queries .

快速回复 返回顶部 返回列表