8.11 OpenStack 问题排查

8.11.1 虚拟机启动不了

问题描述

[root@ws_compute01 ~]# virsh domblklist instance-00000699
error: failed to get domain 'instance-00000699'
error: Domain not found: no domain with matching name 'instance-00000699'

/var/log/messages 报错如下

image0

解决方法

service systemd-machined  restart
service libvirtd restart

8.11.2 掉盘如何处理

出现这个错误

[root@ws_compute08 tmp]# pvs
  /dev/sdb: read failed after 0 of 4096 at 0: Input/output error
  /dev/sdb: read failed after 0 of 4096 at 3000034590720: Input/output error
  /dev/sdb: read failed after 0 of 4096 at 3000034648064: Input/output error
  /dev/sdb: read failed after 0 of 4096 at 4096: Input/output error
  PV         VG          Fmt  Attr PSize  PFree
  /dev/sdc   hdd-volumes lvm2 a--  <2.73t <2.73t
  /dev/sdd   hdd-volumes lvm2 a--  <2.73t <2.73t

解决方法

echo 1 > /sys/block/sdb/device/delete
关注公众号,获取最新干货!