admin
不忘初心,方得始终
级别: 管理员
只看楼主 | | | 0楼 发表于:2017-07-19 16:53

ceph rbd导出磁盘和拷贝云主机磁盘

导出磁盘:
rbd export -p volumes --image volume-470fee37-b950-4eef-a595-d7def334a5d6 /var/lib/glance/ceph-pool/volumes/bak_volume-470fee37-b950-4eef-a595-d7def334a5d6
拷贝磁盘:
rbd -p volumes rm volume-53d44542-0fed-4c5d-b977-8ba49cc17199 (首先清除原有磁盘的内容)
time rbd cp volumes/volume-d88dcc23-4290-422b-a0ae-d8cd55773db0 volumes/volume-53d44542-0fed-4c5d-b977-8ba49cc17199 (把新的云主机的数据拷贝到原有云主机的磁盘)