xenserver 恢复从pool中删除的机器状态

本文提供了一种解决XenServer 6.2在紧急模式下无法正常启动的问题方案。通过编辑pool.conf文件、重命名state.db文件并重启工具堆栈,最终能够使服务器恢复正常,并重新连接到XenCenter。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

I Had the same problem on a Xenserver 6.2 server, and fixed with these steps.
当我用xencenter在host关闭的状态下,将它从池中delete掉,然后重启host机会一值报错,大概是它已经从pool中删除,xe命令运行不成功,通过以下的方法可以恢复

1) on the slave server check the state of the server

xe host-is-in-emergency-mode
answer: true

2) because the server is still in emergency mode, we need to edit the pool.conf.

nano /etc/xensource/pool.conf

Remove all entry and add : master
保存配置

3) I then renamed the state.db with this command.

mv /var/xapi/state.db /var/xapi/state.db_old

Then restart the toolstack:

xe toolstack-restart.

In the Console iInow could use the emergency network reset. configure the Management interface. after reboot of the server i could connect is to XenCenter again.

hope this helps.

4) Thanks it worked. After that your Local SR for DVD Drive and Removable storage (for USB stuffs, or attaching block device directly) will be gone. Which can be recreated using :

# xe sr-create host-uuid=<uuid> content-type=iso name-label=”DVD drives” type=udev device-config:location=/dev/xapi/cd
# xe sr-create host-uuid=<uuid> content-type=disk name-label=”Removable storage” type=udev device-config:location=/dev/xapi/block

Try with an first boot activate , it worked for me

总结为下(注意,如果你更换过xenserver机器的ip,最后一步执行完会把host机的ip配置为你初始安装xenserver时的ip)

# /etc/init.d/xapi stop
# echo master > /etc/xensource/pool.conf 
# rm -f /var/xapi/state.db* 
# rm -f /var/xapi/local.db 
# /etc/init.d/firstboot activate
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值