Vzdump problem with snapshot mode enabled.

  • Thread starter Thread starter yeayu
  • Start date Start date
Y

yeayu

Guest
Hi everybody,
I have a web server; It's working like kvm guest under Proxmox.
I would like to perform a hot backup, but i don't know how to do it. I have been using vzdump command to create backups, but always the machine is shutting down, and that it's not possible.. :s
I copy below the error code when i try a backup with snapshot mode enabled:

server-proxmox:/var/lib/vz# vzdump --snapshot 106
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "es_ES.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
INFO: starting new backup job: vzdump --snapshot 106
INFO: Starting Backup of VM 106 (qemu)
INFO: running
INFO: status = running
INFO: mode failure - unable to dump into snapshot (use option --dumpdir)
INFO: trying 'suspend' mode instead
INFO: backup mode: suspend

INFO: ionice priority: 7
INFO: suspend vm
INFO: creating archive '/var/lib/vz/dump/vzdump-qemu-106-2011_10_16-12_03_38.tar'
INFO: adding '/var/lib/vz/dump/vzdump-qemu-106-2011_10_16-12_03_38.tmp/qemu-server.conf' to archive ('qemu-server.conf')
INFO: adding '/var/lib/vz/images/106/vm-106-disk-1.raw' to archive ('vm-disk-scsi0.raw')

This is a really problem, because backups are very important to administrate a server. Even more when I'm talking about a production mail server.
What do I wrong? How could i fix it?

I'll be really apreciated with all kind of help.

Thank you for your time
 
Please specify another backup directory with option --dumpdir (outside the VG you want to backup).
 
I did it, but it didn't work.
There is free space enough (more than 600Gb into /var/lib/vz/ directory)
 
I did it, but it didn't work.
There is free space enough (more than 600Gb into /var/lib/vz/ directory)

The question is what you did exactly? BTW, it is not a matter of free space. You simply can't store a snapshot inside a snapshot - that creates an endless loop!
 
The question is what you did exactly? BTW, it is not a matter of free space. You simply can't store a snapshot inside a snapshot - that creates an endless loop!
I tryed again with dumpdir option typing:
vzdump --snapshot 106 --dumpdir /var/lib/vz/backups
and it didn't work.

I don't know what you are trying to say me with: "you simply can't store a snapshot inside a snapshot".. because I'm not trying to store that snapshot inside to other one, simply from proxmox CLI create a new snapshot of a running guest.
 
I tryed again with dumpdir option typing:
vzdump --snapshot 106 --dumpdir /var/lib/vz/backups
and it didn't work.

I don't know what you are trying to say me with: "you simply can't store a snapshot inside a snapshot".. because I'm not trying to store that snapshot inside to other one, simply from proxmox CLI create a new snapshot of a running guest.

you cannot use a dir below /var/lib/vz as a backup target.
 
mmm... I don't understand very well, so Could i use /var/lib/vz dir?
Could you show me how i must do it?

Thank you
 
just use a backup target OUTSIDE /var/lib/vz.

best practice, use a NFS share to backup the data to a remote location and finally, archive the backups to a tape - and store the tape in secure place.
 
I will try it, if it works I will leave you know.
Also, i have to looking for information about create nfs device in proxmox and how to mount with kvm or openvz guest.
Thank you
 
I do not recommend to create nfs server on Proxmox VE, just mount a NFS share from an NAS.
 
you cannot use a dir below /var/lib/vz as a backup target.

Says who? I do it all the time and it works great. I would rather store the backup on a local storage device than a NFS during the process backing up. After the successful backup, a script will then transfer the backup archives some place (to a remote location).

Temporary problems can cause network issues and depending on the type of services running on your containers you might not want to make a backup that will keep your network usage high. That's how I see it anyway. We have an backup FTP space that has more than enough storage space. Right after the backup, everything is transferred there. Correct me if I am wrong, but is there anything wrong with that?

P.S.: I store my backups in /var/lib/vz/backups

Cheers
 
Last edited: