关于instance的powerstate为shutdown的问题

问题描述:服务器(host)关机重启后实例的Powerstate可能会变成shutdown然后实例无法用nova命令或从dashboard启动。

解决方法:

If you use kvm(libvirt), you can logon the compute node. 
use "virsh list --all" list all your no-running vm. For example, there is 
an instance name "instance-00000001", you cannot reboot using nova command 
because it attached block disk. You need do: 
1. virsh undefine instance-0000001 
2. goto the instances dir(default 
/var/lib/nova/instances/instance-00000001), run "virsh define libvirt.xml" 
3. then "virsh start instance-00000001", it can be started now/ 
4. then you should update information about "instances" and "volumes" table 
in nova db. I think you already done it. 
5. then you can "reboot" use nova-client or in dashboard. 

注:上面的方法一般是可以的,不过有时候使用了上面的方法后在dashboard里看到的power state还是shutdown,这时可以在dashboard里soft reboot一下就可以了

摘自:http://www.gossamer-threads.com/lists/openstack/dev/21524

转载于:https://my.oschina.net/u/138210/blog/171002

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值