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