Quantcast
Channel: Proxmox Support Forum
Viewing all articles
Browse latest Browse all 170657

Backup snapshot mode when there are lots of write access

$
0
0
Hello,

I'm installing a new server on Proxmox 2.2 and before using it in production, I am doing tests backup snapshot mode (for CT).
(*Intel Xeon E3 - 4 cores - 3.4GHz - 2x 2To SATA3 RAID1 - 32 Go DDR3*)

I try to do a test snapshot on a machine with a high rate of writing.

The test is simple, I run multiple parallel downloads :
Code:

wget -b -O file1.iso http://ftp.u-picardie.fr/mirror/ubuntu/releases//quantal/ubuntu-12.10-desktop-amd64.iso
wget -b -O file2.iso http://ftp.u-picardie.fr/mirror/ubuntu/releases//quantal/ubuntu-12.10-desktop-amd64.iso
wget -b -O file3.iso http://ftp.u-picardie.fr/mirror/ubuntu/releases//quantal/ubuntu-12.10-desktop-amd64.iso
[...]

When I run the snapshot, I have the following errors:
Quote:

INFO: starting new backup job: vzdump 102 --remove 0 --mode snapshot --compress lzo --storage backup --node ns123456
INFO: Starting Backup of VM 102 (openvz)
INFO: CTID 102 exist mounted running
INFO: status = running
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: creating lvm snapshot of /dev/mapper/pve-lv1 ('/dev/pve/vzsnap-ns368405-0')
INFO: Logical volume "vzsnap-ns123456-0" created
INFO: creating archive '/var/lib/vz/dump//dump/vzdump-openvz-102-2013_01_22-10_44_15.tar.lzo'
INFO: tar: ./root/file51: File shrank by 44663086 bytes; padding with zeros
INFO: tar: ./root/file53: Read error at byte 0, while reading 1536 bytes: Input/output error
INFO: tar: ./root/file52: Read error at byte 0, while reading 8192 bytes: Input/output error
INFO: tar: ./root/wget-log.2: Read error at byte 0, while reading 9216 bytes: Input/output error
INFO: tar: ./root/.bashrc: Read error at byte 0, while reading 3106 bytes: Input/output error
INFO: tar: ./root/.profile: Read error at byte 0, while reading 140 bytes: Input/output error
INFO: tar: ./root/wget-log.1: Read error at byte 0, while reading 2048 bytes: Input/output error
INFO: tar: ./root/wget-log: Read error at byte 0, while reading 1024 bytes: Input/output error
INFO: tar: ./lib/i386-linux-gnu/libnih.so.1.0.0: Read error at byte 0, while reading 10240 bytes: Input/output error
INFO: tar: ./lib/i386-linux-gnu/libexpat.so.1.5.2: Read error at byte 0, while reading 5632 bytes: Input/output error
INFO: tar: ./lib/i386-linux-gnu/librt-2.15.so: Read error at byte 0, while reading 3584 bytes: Input/output error
[...]
INFO: Total bytes written: 518871040 (495MiB, 2.0MiB/s)
INFO: tar: Exiting with failure status due to previous errors
ERROR: Backup of VM 102 failed - command '(cd /mnt/vzsnap0/private/102;find . '(' -regex '^\.$' ')' -o '(' -type 's' -prune ')' -o -print0|sed 's/\\/\\\\/g'|tar cpf - --totals --sparse --numeric-owner --no-recursion --one-file-system --null -T -|lzop) >/var/lib/vz/dump//dump/vzdump-openvz-102-2013_01_22-10_44_15.tar.dat' failed: exit code 2
INFO: Backup job finished with errors
TASK ERROR: job errors

Here is the result of "vgdisplay" :
Quote:

vgdisplay
--- Volume group ---
VG Name pve
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 51
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 1.80 TiB
PE Size 4.00 MiB
Total PE 471431
Alloc PE / Size 426929 / 1.63 TiB
Free PE / Size 44502 / 173.84 GiB
VG UUID vBHM7f-3ERu-xaCJ-4eKU-VzKJ-jWWN-WN0ANe
Do you have any feedback about snapshot mode when the disc contents change a lot?
The problem is it a problem on a memory allocation settings or other?

Edit : dietmar says :
Quote:

The LVM snapshot runs out of space. You can increase snapshot size in /etc/vzdump.conf (see man vzdump, 'size' option).
But, what exactly is the "snapshot size"? How to calculate the size needed?
Is there a command for the change to take effect?


Thanks ;)

PS : I already posted this message yesterday but it was deleted by mistake

Viewing all articles
Browse latest Browse all 170657

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>