简体   繁体   English

重启和 nova 救援时 OpenStack VM 文件系统错误无法救援卷支持的实例 (HTTP 400)

[英]OpenStack VM File System Error on reboot and nova rescue Cannot rescue a volume-backed instance (HTTP 400)

Openstack VM's File system went into read-only mode and rebooted it. Openstack VM 的文件系统进入只读模式并重新启动它。 After the reboot I'm getting grub menu and auto booting from the Kernel and seeing only blank screen in Openstck dashboard console.重新启动后,我从内核获得 grub 菜单和自动启动,并且在 Openstck 仪表板控制台中只看到空白屏幕。

I tried nova rescue but failed with below error,我尝试了 nova 救援,但因以下错误而失败,

cannot be rescued: Cannot rescue a volume-backed instance (HTTP 400)

I did edited the grub and enetered single/rescue mode to fix the file system error but still I'm getting blank screen after ctrl+x in grub edit.我确实编辑了 grub 并进入了单/救援模式以修复文件系统错误,但在 grub 编辑中按ctrl+x后仍然出现空白屏幕。 I want to bring up the vm instance and how do I fix the file system error.我想调出 vm 实例以及如何修复文件系统错误。

File system error happened as of vm's backend storage, ceph sds node's all went down as of power failure and restored back. vm 的后端存储发生文件系统错误,ceph sds 节点在电源故障时全部关闭并恢复。

I'm using RHOSP 13 and VM's image is RHEL 7.我使用的是 RHOSP 13,VM 的映像是 RHEL 7。

I did alternate way to get into rescue mode and fixed the file system error.我做了另一种方式进入救援模式并修复了文件系统错误。

  1. ssh to compute Host of the instance and attach ISO image to the instance as it's backend is KVM (inside the file point the cdrom to ISO image location and boot dev to cdrom using virsh edit) ssh 计算实例的主机并将 ISO 映像附加到实例,因为它的后端是 KVM(在文件中将 cdrom 指向 ISO 映像位置并使用 virsh edit 将 dev 引导到 cdrom)

virsh edit vmname virsh 编辑虚拟机名称

  1. Make the instance to active state from openstack cli command从 openstack cli 命令使实例处于活动状态

nova reset-state --active instancename nova 重置状态 --active 实例名

  1. Start the VM from compute Host从计算主机启动虚拟机

virsh start vmname virsh 启动虚拟机名称

  1. Get into openstack dashboard console and repair the file system accordingly and shutdown the instance进入openstack仪表板控制台并相应地修复文件系统并关闭实例
  • Troubleshooting故障排除

  • Rescue mode救援模式

  • continue to shell继续壳

  • vgscan -v vgscan -v

  • vgchange -ay vgchange -ay

  • lvscan扫描

  • e2fsck /dev/xxx or xfs_repair /dev/xxx e2fsck /dev/xxx 或 xfs_repair /dev/xxx

  1. From openstack cli start the instance normally after file system fix在文件系统修复后从 openstack cli 正常启动实例

nova start instancename nova 启动实例名

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM