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

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

具体报错如下:

[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了,问题解决

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值