admin 发表于 2020-12-27 13:11:44

本主题需向作者支付 5 金钱 才能浏览 购买主题

admin 发表于 2020-12-27 13:19:00

# cinder service-disable controller@CEPH2 cinder-volume
+------------------+---------------+----------+
| Host             | Binary      | Status   |
+------------------+---------------+----------+
| controller@CEPH2 | cinder-volume | disabled |
+------------------+---------------+----------+
# cinder-manage service remove cinder-volume controller@CEPH2
Option "logdir" from group "DEFAULT" is deprecated. Use option "log-dir" from group "DEFAULT".
Service cinder-volume on host controller@CEPH2 removed.

Every 2.0s: cinder service-list                                                                                                            Sun Dec 27 13:19:18 2020

+------------------+------------------+------+---------+-------+----------------------------+-----------------+
| Binary         | Host             | Zone | Status| State | Updated_at               | Disabled Reason |
+------------------+------------------+------+---------+-------+----------------------------+-----------------+
| cinder-scheduler | controller       | nova | enabled | up    | 2020-12-27T05:19:11.000000 | -               |
| cinder-volume    | controller@CEPH1 | nova | enabled | up    | 2020-12-27T05:19:12.000000 | -               |
+------------------+------------------+------+---------+-------+----------------------------+-----------------+

只要volume服务没有停止,过几秒钟状态又会恢复:

Every 2.0s: cinder service-list                                                                                                            Sun Dec 27 13:20:01 2020

+------------------+------------------+------+---------+-------+----------------------------+-----------------+
| Binary         | Host             | Zone | Status| State | Updated_at               | Disabled Reason |
+------------------+------------------+------+---------+-------+----------------------------+-----------------+
| cinder-scheduler | controller       | nova | enabled | up    | 2020-12-27T05:20:01.000000 | -               |
| cinder-volume    | controller@CEPH1 | nova | enabled | up    | 2020-12-27T05:20:02.000000 | -               |
| cinder-volume    | controller@CEPH2 | nova | enabled | up    | 2020-12-27T05:20:02.000000 | -               |
+------------------+------------------+------+---------+-------+----------------------------+-----------------+

admin 发表于 2023-12-30 23:04:13

root@controller:~# cinder service-disable controller@lvm cinder-volume
+----------------+---------------+----------+
| Host         | Binary      | Status   |
+----------------+---------------+----------+
| controller@lvm | cinder-volume | disabled |
+----------------+---------------+----------+
root@controller:~# cinder service-list
+------------------+-----------------+------+----------+-------+----------------------------+-----------------+
| Binary         | Host            | Zone | Status   | State | Updated_at               | Disabled Reason |
+------------------+-----------------+------+----------+-------+----------------------------+-----------------+
| cinder-scheduler | controller      | nova | enabled| up    | 2023-12-30T15:02:18.000000 | -               |
| cinder-volume    | controller@ceph | nova | enabled| up    | 2023-12-30T15:02:17.000000 | -               |
| cinder-volume    | controller@lvm| nova | disabled | down| 2023-12-30T15:00:28.000000 | -               |
+------------------+-----------------+------+----------+-------+----------------------------+-----------------+
root@controller:~# cinder-manage service remove cinder-volume controller@lvm
Service cinder-volume on host controller@lvm removed.
root@controller:~# cinder service-list
+------------------+-----------------+------+---------+-------+----------------------------+-----------------+
| Binary         | Host            | Zone | Status| State | Updated_at               | Disabled Reason |
+------------------+-----------------+------+---------+-------+----------------------------+-----------------+
| cinder-scheduler | controller      | nova | enabled | up    | 2023-12-30T15:03:28.000000 | -               |
| cinder-volume    | controller@ceph | nova | enabled | up    | 2023-12-30T15:03:27.000000 | -               |
+------------------+-----------------+------+---------+-------+----------------------------+-----------------+
页: [1]
查看完整版本: cinder 管理volume节点host,删除volume服务节点步骤