I’m using Proxmox with Ceph. Is using rbd export the same with running Proxmox backup? The rbd export is faster from what I can tell but not sure if there is any impact to the running VM.
Thank you for your response.No, it's not the same. Backup of the VM has the configuration backed up as well as the disk, but maybe you don't care about that, or may be backing that up on your own? And of course, you get all the disks, rather than just one...
Then, as for the disk, if the VM is running, the same stuff applies here as a direct disk copy: you won't see what's in the buffers, and you may not get a reliable backup of live filesystem jokers (think remote FS, databases…).
So your backup might be a bit unreliable, or unusable at all. Proxmox backup uses qemu to help making sure the backup is nicely done, and has all the wanted data (you can also capture RAM…). You can add some interaction in the guest, by responding to freeze/thaw events for annoying usual suspects. I suspect you could plug yourself in qemu to get all that and do your backup using rdb export if it's significantly faster, it could be useful.
Maybe a cool patch to write for vzdump there, using that for Ceph-backed disks.. I think the regular backup work nicely though, so I'm not too excited by such a thing
Cheers,
Gilou
there is another factor. using vzdump issues a qm freeze before backup; using an uncontrolled rbd snap does not.No, it's not the same. Backup of the VM has the configuration backed up as well as the disk
qm freeze is not helpful in our case, as it actually makes the VM running cPanel to hangthere is another factor. using vzdump issues a qm freeze before backup; using an uncontrolled rbd snap does not.
Understand what is actually happening. If you are NOT able to issue a qm freeze, it means that ALL WRITES IN FLIGHT will be ignored for the purposes of backup. any data in buffer will not be written out, leaving all those affected files open. your backups will contain corrupt data.qm freeze is not helpful in our case,
I understand that, but it's not an option to enable qm freeze with VM running cPanel and CloudLinux - https://forum.proxmox.com/threads/backup-scheduler-stop-every-day-the-vm.103539/page-3Understand what is actually happening. If you are NOT able to issue a qm freeze, it means that ALL WRITES IN FLIGHT will be ignored for the purposes of backup. any data in buffer will not be written out, leaving all those affected files open. your backups will contain corrupt data.
Yes. which is to say you shouldnt do either. just use cpanel backup.I guess the complete question is, without qm freeze and not taking vm configs into account, is running backup from Proxmox the same with rbd export?
Is there anything classy you guys don't do hahah! That is impressive, I think one of you mentioned it @ FOSDEM now that I think of it..We do it in production, here our in house scripts https://github.com/JackSlateur/backurne.git
Well, without qm freeze, you could miss some datas in memory buffer. But no corruption, as your filesystem is doing fsync and barrier. Also, Its help if you have application use multiples disks. (Like a bdd with transactions logs on différent disks ). We dont have implement yet Ceph rbd group Snapshot@spirit this is pretty nice! I dont know if this covers the same ground, but are you experiencing the issues @tinduong1337 was mentioning? I see you do issue a qm-freeze (which is proper and sane)
that's awesome! thanks @spirit the `map` command is really useful. is there any way we can map it directly to the running VM?We do it in production, here our in house scripts https://github.com/JackSlateur/backurne.git
OOC, are you running HDD Ceph cluster for backup?I m backuping 4000vms with it. File restore is possible too.
Yes. Nvme for prod, HDD for backupthat's awesome! thanks @spirit the `map` command is really useful. is there any way we can map it directly to the running VM?
OOC, are you running HDD Ceph cluster for backup?
ah, currently no, because we don't have to give access to backup storage to the vm.that's awesome! thanks @spirit the `map` command is really useful. is there any way we can map it directly to the running VM?
Yes. Nvme for prod, HDD for backup