加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

cinder-volume服务状态为down 解决方法

发布时间:2020-12-14 04:33:19 所属栏目:大数据 来源:网络整理
导读:[[email?protected] ~]# cinder service-list +------------------+-------------+------+---------+-------+----------------------------+-----------------+ | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | +---------------
[[email?protected] ~]# cinder service-list +------------------+-------------+------+---------+-------+----------------------------+-----------------+ | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | +------------------+-------------+------+---------+-------+----------------------------+-----------------+ | cinder-scheduler | controller | nova | enabled | up | 2019-04-17T18:15:24.000000 | - | | cinder-volume | [email?protected] | nova | enabled | down | 2019-04-17T18:15:20.000000 | - | +------------------+-------------+------+---------+-------+----------------------------+-----------------+

cinder-volume服务没起来 已经重启服务也还是down状态,启动日志看看有没有报错

[[email?protected] ~]# systemctl restart openstack-cinder-volume.service
[[email?protected] log]# tail -f messages
Apr 17 18:17:33 controller cinder-volume: 2019-04-17 18:17:33.112 3085 ERROR cinder.volume.manager Stderr: u‘  Volume group "cinder-volumes" not foundn  Cannot process volume group cinder-volumesn‘
Apr 17 18:17:33 controller cinder-volume: 2019-04-17 18:17:33.112 3085 ERROR cinder.volume.manager
Apr 17 18:17:33 controllern cinder-volume: 2019-04-17 18:17:33.337 3085 INFO cinder.volume.manager [req-1c834e71-3c13-474e-8f96-8391d7d471f7 - - - - -] Initializing RPC dependent components of volume driver LVMVolumeDriver (3.0.0)
Apr 17 18:17:33 controller cinder-volume: 2019-04-17 18:17:33.339 3085 WARNING cinder.volume.drivers.lvm [req-1c834e71-3c13-474e-8f96-8391d7d471f7 - - - - -] Unable to update stats on non-initialized Volume Group: cinder-volumes
Apr 17 18:17:33 controller cinder-volume: 2019-04-17 18:17:33.355 3085 INFO cinder.volume.manager [req-1c834e71-3c13-474e-8f96-8391d7d471f7 - - - - -] Driver post RPC initialization completed successfully.

大致报错信息是指找不到cinder-volumes这个卷组

[[email?protected]~]# vgs 没有卷组
[[email?protected] ~]# pvcreate /dev/vda7  创建一个物理卷
[[email?protected] ~]# vgcreate cinder-volumes /dev/vda7  创建卷组
[[email?protected] ~]# vgs
  VG            #PV #LV #SN Attr   VSize VFree
  cinder-volume   1   0   0 wz--n- 4.75g 4.75g 现在有了
    #再去看一下配置文件 确保万一
    [lvm]
    volume_group = cinder-volumes
    #重启服务
    [[email?protected] ~]# systemctl restart openstack-cinder-volume.service target.service
    [[email?protected] ~]# cinder service-list
+------------------+--------------+------+---------+-------+----------------------------+-----------------+
|      Binary      |     Host     | Zone |  Status | State |         Updated_at         | Disabled Reason |
+------------------+--------------+------+---------+-------+----------------------------+-----------------+
| cinder-scheduler |   controller   | nova | enabled |   up  | 2019-04-17T18:36:09.000000 |        -        |
|  cinder-volume   | [email?protected] | nova | enabled |   up  | 2019-04-17T18:36:04.000000 |        -        |
+------------------+--------------+------+---------+-------+----------------------------+-----------------+

这样就解决了。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读