记cinder-volume服务down的解决方法

 安装cinder服务的时候发现存储节点的cinder-volume状态一直处于down,如下图:

记cinder-volume服务down的解决方法_第1张图片

具体报错如下:

[root@storage  ~ ] tail -f /var/log/cinder/volume.log

2019-12-17 13:48:13.575 16546 WARNING cinder.volume.manager [req-ce2471c3-779d-421d-a30f-e96cfb0afd32 - - - - -] Update driver status failed: (config name lvm) is uninitialized.
2019-12-17 13:48:14.628 16546 ERROR cinder.service [-] Manager for service cinder-volume xiandian@lvm is reporting problems, not sending heartbeat. Service will appear "down".
2019-12-17 13:48:24.629 16546 ERROR cinder.service [-] Manager for service cinder-volume xiandian@lvm is reporting problems, not sending heartbeat. Service will appear "down".
2019-12-17 13:48:34.634 16546 ERROR cinder.service [-] Manager for service cinder-volume xiandian@lvm is reporting problems, not sending heartbeat. Service will appear "down".
2019-12-17 13:48:44.640 16546 ERROR cinder.service [-] Manager for service cinder-volume xiandian@lvm is reporting problems, not sending heartbeat. Service will appear "down".
2019-12-17 13:48:54.641 16546 ERROR cinder.service [-] Manager for service cinder-volume xiandian@lvm is reporting problems, not sending heartbeat. Service will appear "down".
2019-12-17 13:49:04.648 16546 ERROR cinder.service [-] Manager for service cinder-volume xiandian@lvm is reporting problems, not sending heartbeat. Service will appear "down".
2019-12-17 13:49:13.578 16546 WARNING cinder.volume.manager [req-ce2471c3-779d-421d-a30f-e96cfb0afd32 - - - - -] Update driver status failed: (config name lvm) is uninitialized.
2019-12-17 13:49:14.650 16546 ERROR cinder.service [-] Manager for service cinder-volume xiandian@l

从日志上看,是service接收不到心跳包,检查cinder.conf配置文件,并没有问题,怀疑是时间同步问题,检查controller节点和存储节点的时间发现,时间是一样的。最后发现存储节点上的卷组是空的,

[root@storage ~]# vgs
  VG             #PV #LV #SN Attr   VSize VFree

创建cinder-volumes卷组后重启cinder服务

创建物理卷

[root@storage ~]# pvcreate /dev/sda3
  Physical volume "/dev/sda3" successfully created

创建逻辑卷组

[root@storage ~]# vgcreate  cinder-volumes  /dev/sda3
   Volume group "cinder-voluems" successfully created

查看逻辑卷组

[root@storage ~]# vgs
  VG             #PV #LV #SN Attr   VSize  VFree
  cinder-volumes   1   0   0 wz--n-  7.9T 7.9T

重启所有cinder服务

[root@storage ~]# systemctl restart openstack-cinder*】

重启后服务正常up了,问题解决

 

你可能感兴趣的:(linux,openstack,cinder服务down)