Backup live

  • Thread starter Thread starter Maxence
  • Start date Start date
M

Maxence

Guest
Hello,

Is it possible to backup a vm in live (mean without to shutdown the vm)
I added a storage, created a backup job. snapshot doesn't work if my vm isn't shutdown.

Jan 16 14:27:01 cron26937 (root) CMD (vzdump --quiet --node 1 --snapshot --storage NFS-Backup1 --mailto my@mail.com 108)
Jan 16 14:27:01 vzdump26937 INFO: starting new backup job: vzdump --quiet --node 1 --snapshot --storage NFS-Backup1 --mailto my@mail.com 108
Jan 16 14:27:01 vzdump26937 INFO: Starting Backup of VM 108 (openvz)
Jan 16 14:34:03 vzdump26937 ERROR: Backup of VM 108 failed - command 'rsync --stats -x --numeric-ids --bwlimit=10240 -aH --delete --no-whole-file --inplace '/var/lib/vz/private/108/' '/mnt/pve/NFS-Backup1/vzdump-openvz-108-2010_01_16-14_27_01.tmp'' failed with exit code 23
My storage is empty

But When I shutdown my vm
Jan 16 14:40:51 pvedaemon28479 VM 108 stopped
Jan 16 14:42:01 cron28718 (root) CMD (vzdump --quiet --node 1 --snapshot --storage NFS-Backup1 --mailto my@mail.com 108)
Jan 16 14:42:01 vzdump28718 INFO: starting new backup job: vzdump --quiet --node 1 --snapshot --storage NFS-Backup1 --mailto my@mail.com 108
Jan 16 14:42:02 vzdump28718 INFO: Starting Backup of VM 108 (openvz) Jan 16 14:43:01 vzdump28718 INFO: Finished Backup of VM 108 (00:01:00)
Jan 16 14:42:02 vzdump28718 INFO: Starting Backup of VM 108 (openvz)
Jan 16 14:43:01 vzdump28718 INFO: Finished Backup of VM 108 (00:01:00)
ID du Volume
NFS-Backup1:backup/vzdump-openvz-108-2010_01_16-14_42_01.tar
Size 0.31
 
Last edited by a moderator:
The rsync manual page says "error 23 Partial transfer due to error".

What kinf of NFS server is that?
 
I'm using Openfiler NSA 2.3

I just tested here with the latest openfiler 2.3, works as expected.

what Proxmox VE version do you use (update to the latest) and post the output of:

Code:
pveversion -v
and

Code:
vgs
 
Ok :
root@mengy:~# pveversion -v
pve-manager: 1.4-10 (pve-manager/1.4/4403)
qemu-server: 1.1-8
pve-kernel: 2.6.24-18
pve-qemu-kvm: 0.11.0-2
pve-firmware: 1
vncterm: 0.9-2
vzctl: 3.0.23-1pve3
vzdump: 1.2-5
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1dso1
root@mengy:~# vgs
VG #PV #LV #SN Attr VSize VFree
pve 1 1 0 wz--n- 445,23G 4,00M
 
Here is my parition disk

1 primaire ext3 / - 20000 Mo
2 primaire swap swap - 1024 Mo
3 LV ext3 /var/lib/vz - 478976 Mo

How it's possible ?
 
Last edited by a moderator:
From OVH, we can install directly proxmox 1.5 + openVZ + kernel 2.6.x-pve on debian 64bit. And I use default partition.
 
From OVH, we can install directly proxmox 1.5 + openVZ + kernel 2.6.x-pve on debian 64bit. And I use default partition.

No, OVH installs currently 1.4, not 1.5. For OVH specific questions best place to ask is OVH.

Take a look on the LVM documentation, its a bit of work but its possible to change the partitioning that you can use LVM snapshots.
 
It's 1.5, I tested yesterday and they announced it on the ml.

I'll see for LVM documentation.

Thanks