[PVE-User] Move VM's HDD incl. snapshots from one Ceph to another

Uwe Sauter uwe.sauter.de at gmail.com
Wed Aug 21 06:07:18 CEST 2019


Thanks to all. I got it working. rbd export/import were the right hint.


Am 21.08.19 um 01:26 schrieb Mike O'Connor:
> On 20/8/19 12:19 am, Mark Adams wrote:
>> On Mon, 19 Aug 2019 at 11:59, Uwe Sauter <uwe.sauter.de at gmail.com> wrote:
>>
>>> Hi,
>>>
>>> @Eneko
>>>
>>> Both clusters are hyper-converged PVE clusters each running its own Ceph
>>> cluster. On the older PVE 5 cluster I created a new RBD
>>> storage configuration for the PVE6 Ceph. So I can access the new Ceph from
>>> the old Cluster.
>>>
>>> I also migrated some VMs via the GUI from one Ceph to the other but those
>>> VMs didn't have snapshots.
>>>
>>> My question is: how can I move a RBD image with snapshots from one cluster
>>> to the other while keeping the history (snapshots)?
>>>
>>>
>>> @Mark:
>>>
>>> Do you think that this would work?
>>>
>>> rbd --cluster ceph --pool vdisks export --export-format 2 vm-101-disk-0 -
>>> | \
>>> rbd --cluster cluster2 --pool vdisks import --export-format 2 -
>>> vm-101-disk-0
>>>
> Older versions of rbd export did not export the snap shots but the
> export format 2 does include them if my reading of the documentation is
> correct.
> 
> The export-diff can export everything by not giving a from snap
> (--from-snap), my backup script uses this method.
> 
> I've not tried export-diff to see if it records the snap between the two
> points.
> 
> But a simple script which exports with no from snap and then between
> each snap would give you the result if it did not.
> 
> Really depends on what your trying to achieve.
> 
> Cheers
> 



More information about the pve-user mailing list