[PVE-User] Move VM's HDD incl. snapshots from one Ceph to another
Eneko Lacunza
elacunza at binovo.es
Mon Aug 19 14:10:22 CEST 2019
Hi Uwe,
Didn't notice the Cepth reference in your original post, sorry. :)
Are those snapshots long-lived? If not, you could move the disk from
GUI, wait to new snapshots to be create on PVE 6 Ceph, and the delete
snapshots and images from PVE 5 Ceph?
Anyways, it seems that your command below should work too.
Cheers
El 19/8/19 a las 12:57, Uwe Sauter escribió:
> 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
>
>
> Regards,
>
> Uwe
>
>
>
> Am 19.08.19 um 12:30 schrieb Mark Adams:
>> It is relatively straight forward using cli, use the rbd export (and
>> export-diff) command over ssh.
>>
>> On Mon, 19 Aug 2019, 12:26 Eneko Lacunza, <elacunza at binovo.es> wrote:
>>
>>> Hi Uwe,
>>>
>>> El 19/8/19 a las 10:14, Uwe Sauter escribió:
>>>> is it possible to move a VM's disks from one Ceph cluster to another,
>>> including all snapshots that those disks have? The GUI
>>>> doesn't let me do it but is there some commandline magic that will move
>>> the disks and all I have to do is edit the VM's config file?
>>>>
>>>> Background: I have two PVE clusters, one of which is already PVE 6. Now
>>> I need to move the VMs from the older to the newer cluster
>>>> so I can re-install those machines with PVE 6. I know that an upgrade is
>>> possible but I'd like the cleaner approach of re-installing.
>>> What storage are you using? (the snapshot thing can be a problem).
>>>
>>> Cheers
>>> Eneko
>>>
>>> --
>>> Zuzendari Teknikoa / Director Técnico
>>> Binovo IT Human Project, S.L.
>>> Telf. 943569206
>>> Astigarraga bidea 2, 2º izq. oficina 11; 20180 Oiartzun (Gipuzkoa)
>>> www.binovo.es
>>>
>>> _______________________________________________
>>> pve-user mailing list
>>> pve-user at pve.proxmox.com
>>> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
>>>
>> _______________________________________________
>> pve-user mailing list
>> pve-user at pve.proxmox.com
>> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
>>
> _______________________________________________
> pve-user mailing list
> pve-user at pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
--
Zuzendari Teknikoa / Director Técnico
Binovo IT Human Project, S.L.
Telf. 943569206
Astigarraga bidea 2, 2º izq. oficina 11; 20180 Oiartzun (Gipuzkoa)
www.binovo.es
More information about the pve-user
mailing list