创建cinder云硬盘的时候出现down的错误
[root@linux-node1 ~]# cinder service-list
+------------------+-----------------+------+---------+-------+----------------------------+-----------------+
| Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+------------------+-----------------+------+---------+-------+----------------------------+-----------------+
| cinder-scheduler | linux-node1 | nova | enabled | up | 2017-04-26T14:48:49.000000 | - |
| cinder-volume | linux-node2@lvm | nova | enabled | down | 2017-04-26T22:45:47.000000 | - |
+------------------+-----------------+------+---------+-------+----------------------------+-----------------+
是计算节点和主节点的时间不统一导致的。
主节点:
[root@linux-node1 ~]# date
2017年 04月 26日 星期三 22:41:47 CST
[root@linux-node1 ~]# date
从节点:
[root@linux-node2 ~]# date
Thu Apr 27 06:41:39 CST 2017
[root@linux-node2 ~]# systemctl restart chronyd
[root@linux-node2 ~]# date
Thu Apr 27 06:42:15 CST 2017
所以同步下时间,同步时间方式很多方式,这里方式如下:
主和从同时操作:
ntpdate ntp1.aliyun.com
计算节点重启服务:
systemctl restart openstack-cinder-volume.service target.service
再次查看结果:
[root@linux-node1 ~]# cinder service-list
+------------------+-----------------+------+---------+-------+----------------------------+-----------------+
| Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+------------------+-----------------+------+---------+-------+----------------------------+-----------------+
| cinder-scheduler | linux-node1 | nova | enabled | up | 2017-04-26T14:48:49.000000 | - |
| cinder-volume | linux-node2@lvm | nova | enabled | up | 2017-04-26T14:48:55.000000 | - |
+------------------+-----------------+------+---------+-------+----------------------------+-----------------+
大功告成!