Ways to restore only some HDs from a vzdump or avoid deleting in case of errors

Tacioandrade

Renowned Member
Sep 14, 2012
120
17
83
Vitória da Conquista, Brazil
Hello everybody! I come here with a question about a problem I'm having! I'm migrating several VMs from a Proxmox Cluster to another new, updated one with ZFS replication, but in my largest VM I'm encountering a headache (luckily the node where the VM is is still active for Monday, if the worst happens) .

I made a backup via vzdump of a fileserver VM with 3 disks, the backup ran without any error when completed, however when restoring to the destination node, it gave an error twice at 95%, at the exact same point.I made a backup via vzdump of a fileserver VM with 3 disks, the backup ran without any error when completed, however when restoring to the destination node, it gave an error twice at 95%, at the exact same point.

Code:
progress 95% (read 2295123148800 bytes, duration 31921 sec)
_30-23_11_18.vma.zst : Decoding error (36) : Data corruption detected
vma: restore failed - short vma extent (1986655 < 3801600)
/bin/bash: line 1: 802595 Exit 1                  zstd -q -d -c /mnt/pve/HD-8TB-USB/dump/vzdump-qemu-206-2024_05_30-23_11_18.vma.zst
     802596 Trace/breakpoint trap   | vma extract -v -r /var/tmp/vzdumptmp802585.fifo - /var/tmp/vzdumptmp802585
temporary volume 'RAID5-SSD:vm-10006-disk-1' sucessfuly removed
temporary volume 'RAID5-SSD:vm-10006-disk-2' sucessfuly removed
temporary volume 'RAID5-SSD:vm-10006-disk-0' sucessfuly removed
no lock found trying to remove 'create'  lock
error before or during data restore, some or all disks were not completely restored. VM 10006 state is NOT cleaned up.
TASK ERROR: command 'set -o pipefail && zstd -q -d -c /mnt/pve/HD-8TB-USB/dump/vzdump-qemu-206-2024_05_30-23_11_18.vma.zst | vma extract -v -r /var/tmp/vzdumptmp802585.fifo - /var/tmp/vzdumptmp802585' failed: exit code 133

As the backup process for the 3 disks takes an average of 10 hours (there are more than 2TB of data on the Hard Disk), I would like to know if there is any way via cmd to:
* Restore only disks 1 and 2 and the third disk I would clone via clonezilla via the network
* In case of errors, it will not perform disk removal, as at least it would be able to use the first 2 disks and clone the third

I have already started the backup process of just the first 2 disks again, but I believe it will take more than 6 hours, so I am looking for a plan B and C.

Thank you in advance for your help.
 
Guys, I luckily managed to solve the problem with the backup that had been made on the Proxmox Backup Server! The restore took 16:23:43, but it worked.
During the process, afraid of causing problems and losing the 2 disks, after each imported disk I used the zfs rename command to rename disks 0 and 1 to another name, because if problems occurred, I would use clonezilla to pull the data from the disk 2 over the network, but it was not necessary.
 
  • Like
Reactions: Kingneutron
> The restore took 16:23:43

You might be able to speed this up a bit by doing a ' renice -15 ' on the restore process (get it from top)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!