[root@controller ~]#
cinder service-list
+------------------+-------------+------+---------+-------+----------------------------+-----------------+
| Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+------------------+-------------+------+---------+-------+----------------------------+-----------------+
| cinder-scheduler | controller | nova | enabled | up | 2022-02-17T13:11:20.000000 | - |
| cinder-volume | compute@lvm | nova | enabled | down | 2022-02-17T13:01:36.000000 | - |
+------------------+-------------+------+---------+-------+----------------------------+-----------------+
[root@compute ~]#
[root@controller~]# vgs 没有卷组
[root@controlle ~]# pvcreate /dev/自己的名字 创建一个物理卷
[root@controlle ~]# vgcreate cinder-volumes /dev/** 创建卷组
[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@compute ~]# systemctl status openstack-cinder-volume.service
[root@controller ~]#
cinder service-list
+------------------+-------------+------+---------+-------+----------------------------+-----------------+
| Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+------------------+-------------+------+---------+-------+----------------------------+-----------------+
| cinder-scheduler | controller | nova | enabled | up | 2022-02-17T13:26:40.000000 | - |
| cinder-volume | compute@lvm | nova | enabled | up | 2022-02-17T13:26:45.000000 | - |
+------------------+-------------+------+---------+-------+----------------------------+-----------------+