1.备份数据
[root@controller ~]# mv /var/lib/docker/volumes/ceph_mon /var/lib/docker/volumes/ceph_backup/
[root@controller ~]# mv /var/lib/docker/volumes/ceph_mon_config /var/lib/docker/volumes/ceph_backup/
[root@controller ~]# mv /etc/kolla/ceph-mon /var/lib/docker/volumes/ceph_backup/
2.删除掉docker volume ls下的卷
[root@controller ~]# docker volume ls
DRIVER VOLUME NAME
local c1153187c7804f2ee02c2352a8f7e54037a3cd4425501429aa07f82f914fab11
local ceph_mon
local ceph_mon_config
local cinder
local elasticsearch
local glance
local grafana
local haproxy_socket
local influxdb
local keystone_fernet_tokens
local kolla_etcd
local kolla_logs
local magnum
local mariadb
local neutron_metadata_socket
local openvswitch_db
local rabbitmq
[root@controller ~]# docker volume rm ceph_mon ceph_mon_config
3.开始部署 ceph-mon
[root@controller ~]# mkdir /etc/kolla/ceph-mon
[root@controller ~]# kolla-ansible deploy -i /etc/kolla_data/multinode -t ceph
4.恢复数据
[root@controller ~]# rm -rf /var/lib/docker/volumes/ceph_mon
[root@controller ~]# rm -rf /var/lib/docker/volumes/ceph_mon_config
[root@controller ~]# rm -rf /etc/kolla/ceph-mon
[root@controller ~]# cp /var/lib/docker/volumes/ceph_backup/ceph_mon /var/lib/docker/volumes/ -r
[root@controller ~]# cp /var/lib/docker/volumes/ceph_backup/ceph_mon_config /var/lib/docker/volumes/ -r
[root@controller ~]# cp /var/lib/docker/volumes/ceph_backup/ceph-mon /etc/kolla/ -r
5.重启 ceph-mon 容器
[root@controller ~]# docker restart ceph_mon