Backup issues kvm AND openvz

copymaster

Member
Nov 25, 2009
183
0
16
Hi Guys,
i am fiddeling around with Backups on my cluster.

I have KVM VM's running on a SAN and local openvz VM's

I created a cifs share on the netapp and mounted it on every node of the cluster as /backup.

Then i added a store (Directory /backup) using this mounted share.

i configured a backup for a KVM machine and choosed "snapshot" as Modus.
The VM is a Windows 7

The Log tells me:
Code:
Jan 14 13:33:02 INFO: Starting Backup of VM 101 (qemu)
Jan 14 13:33:02 INFO: running
Jan 14 13:33:02 INFO: status = running
Jan 14 13:33:02 INFO: mode failure - unable to dump into snapshot (use option --dumpdir)
Jan 14 13:33:02 INFO: trying 'suspend' mode instead
Jan 14 13:33:02 INFO: backup mode: suspend
Jan 14 13:33:02 INFO: bandwidth limit: 10240 KB/s
Jan 14 13:33:02 INFO: suspend vm
Jan 14 13:33:02 INFO: creating archive '/var/lib/vz/vzdump-qemu-101-2010_01_14-13_33_02.tgz'
Jan 14 13:33:02 INFO: adding '/var/lib/vz/vzdump-qemu-101-2010_01_14-13_33_02.tmp/qemu-server.conf' to archive ('qemu-server.conf')
Jan 14 13:33:02 INFO: adding '/var/lib/vz/images/101/vm-101-disk-1.raw' to archive ('vm-disk-ide0.raw')
Jan 14 13:43:11 INFO: Total bytes written: 7077029888 (11.08 MiB/s)
Jan 14 13:43:11 INFO: archive file size: 3.00GB
Jan 14 13:43:12 INFO: resume vm
Jan 14 13:43:12 INFO: vm is online again after 610 seconds
Jan 14 13:43:12 INFO: Finished Backup of VM 101 (00:10:10)

I thought it is possible to backup a running kvm machine when using a ISCSI/LVM store? isn't it possible to dump into Snapshot with my config?


The openvz VM is dumped as a snapshot to the share as it should.

BUT: I did not get any EMAIL, even though i configured it in the Backup.

Where do i have to check the SMTP settings?
 
Hi Guys,
i am fiddeling around with Backups on my cluster.

I have KVM VM's running on a SAN and local openvz VM's

I created a cifs share on the netapp and mounted it on every node of the cluster as /backup.

Then i added a store (Directory /backup) using this mounted share.

i configured a backup for a KVM machine and choosed "snapshot" as Modus.
The VM is a Windows 7

The Log tells me:
Code:
Jan 14 13:33:02 INFO: Starting Backup of VM 101 (qemu)
Jan 14 13:33:02 INFO: running
Jan 14 13:33:02 INFO: status = running
Jan 14 13:33:02 INFO: mode failure - unable to dump into snapshot (use option --dumpdir)
Jan 14 13:33:02 INFO: trying 'suspend' mode instead
Jan 14 13:33:02 INFO: backup mode: suspend
Jan 14 13:33:02 INFO: bandwidth limit: 10240 KB/s
Jan 14 13:33:02 INFO: suspend vm
Jan 14 13:33:02 INFO: creating archive '/var/lib/vz/vzdump-qemu-101-2010_01_14-13_33_02.tgz'
Jan 14 13:33:02 INFO: adding '/var/lib/vz/vzdump-qemu-101-2010_01_14-13_33_02.tmp/qemu-server.conf' to archive ('qemu-server.conf')
Jan 14 13:33:02 INFO: adding '/var/lib/vz/images/101/vm-101-disk-1.raw' to archive ('vm-disk-ide0.raw')
Jan 14 13:43:11 INFO: Total bytes written: 7077029888 (11.08 MiB/s)
Jan 14 13:43:11 INFO: archive file size: 3.00GB
Jan 14 13:43:12 INFO: resume vm
Jan 14 13:43:12 INFO: vm is online again after 610 seconds
Jan 14 13:43:12 INFO: Finished Backup of VM 101 (00:10:10)
I thought it is possible to backup a running kvm machine when using a ISCSI/LVM store? isn't it possible to dump into Snapshot with my config?


The openvz VM is dumped as a snapshot to the share as it should.

BUT: I did not get any EMAIL, even though i configured it in the Backup.

Where do i have to check the SMTP settings?

should work, how did you install Proxmox VE, from ISO?
do you have enough free space in the volume?

Code:
pvdisplay

SMTP setup: is done automatically during installation (from ISO), to change manually see /etc/postfix/
 
Why does it write into '/var/lib/vz/vzdump-qemu-101-2010_01_14-13_33_02.tgz'? Seems you did not specify the backup storage for the backup job?
 
ok i verified the storage and now it seems to work:

Code:
Jan 14 14:39:01 INFO: Starting Backup of VM 101 (qemu)
Jan 14 14:39:01 INFO: running
Jan 14 14:39:01 INFO: status = running
Jan 14 14:39:01 INFO: backup mode: snapshot
Jan 14 14:39:01 INFO: bandwidth limit: 10240 KB/s
Jan 14 14:39:02 INFO:   Logical volume "vzsnap-Donald-0" created
Jan 14 14:39:02 INFO: creating archive '/backup/vzdump-qemu-101-2010_01_14-14_39_01.tgz'
Jan 14 14:39:02 INFO: adding '/backup/vzdump-qemu-101-2010_01_14-14_39_01.tmp/qemu-server.conf' to archive ('qemu-server.conf')
Jan 14 14:39:02 INFO: adding '/mnt/vzsnap0/images/101/vm-101-disk-1.raw' to archive ('vm-disk-ide0.raw')
Jan 14 14:49:12 INFO: Total bytes written: 7079694848 (11.07 MiB/s)
Jan 14 14:49:12 INFO: archive file size: 3.00GB
Jan 14 14:49:14 INFO:   Logical volume "vzsnap-Donald-0" successfully removed
Jan 14 14:49:14 INFO: Finished Backup of VM 101 (00:10:13)

And for Emails:

i did a dpkg-reconfigure postfix and told postfix to be a satellite system that uses a mailserver as relay and now the mails are delivered.

Thanks a lot.