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

[root@controller ~]# 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   | compute@lvm | nova | enabled |   down  | 2019-04-17T18:15:20.000000 |        -        |
+------------------+-------------+------+---------+-------+----------------------------+-----------------+

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

[root@controller ~]# systemctl restart openstack-cinder-volume.service
[root@controller 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 found\n  Cannot process volume group cinder-volumes\n'
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这个卷组

[root@controller~]# vgs 没有卷组
[root@controlle ~]# pvcreate /dev/vda7  创建一个物理卷
[root@controlle ~]# vgcreate cinder-volumes /dev/vda7  创建卷组
[root@controller ~]# vgs
  VG            #PV #LV #SN Attr   VSize VFree
  cinder-volume   1   0   0 wz--n- 4.75g 4.75g 现在有了
    #再去看一下配置文件 确保万一
    [lvm]
    volume_group = cinder-volumes
    #重启服务
    [root@controller ~]# systemctl restart openstack-cinder-volume.service target.service
    [root@controller ~]# 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   | compute@lvm | nova | enabled |   up  | 2019-04-17T18:36:04.000000 |        -        |
+------------------+--------------+------+---------+-------+----------------------------+-----------------+

这样就解决了。

猜你喜欢

转载自blog.51cto.com/9103824/2380221
今日推荐