Trying to restore backup.

8BitHero

New Member
Dec 12, 2016
4
0
1
55
I've managed to stumble my way through setting up Proxmox, and migrating my old ubuntu server 12.04 webserver into an LVM.

I've been doing a number of backups on the way, stopping the VM, and using the backup function.

Ubuntu was nagging me to update to the latest and greatest, and I figured I'd give it a shot, because I could always roll back. The update fell apart, and broke a bunch of services.

When I try to restore the proxmox created image I get:

Virtual Environment 4.3-1/e7cdc165
Virtual Machine 100 ('VM 100' ) on node 'HPServer'
Logs
()
restore vma archive: zcat /mnt/backup/dump/vzdump-qemu-100-2016_11_24-20_19_26.vma.gz|vma extract -v -r /var/tmp/vzdumptmp21021.fifo - /var/tmp/vzdumptmp21021
CFG: size: 456 name: qemu-server.conf
DEV: dev_id=1 size: 34359738368 devname: drive-ide0
DEV: dev_id=2 size: 146028888064 devname: drive-ide1
CTIME: Thu Nov 24 20:19:30 2016
Logical volume "vm-100-disk-1" created.
new volume ID is 'VMStorage:vm-100-disk-1'
map 'drive-ide0' to '/dev/VM_Storage/vm-100-disk-1' (write zeros = 1)
Logical volume "vm-100-disk-1" successfully removed
temporary volume 'VMStorage:vm-100-disk-1' sucessfuly removed
TASK ERROR: command 'zcat /mnt/backup/dump/vzdump-qemu-100-2016_11_24-20_19_26.vma.gz|vma extract -v -r /var/tmp/vzdumptmp21021.fifo - /var/tmp/vzdumptmp21021' failed: lvcreate 'VM_Storage/pve-vm-100' error: Volume group "VM_Storage" has insufficient free space (26802 extents): 34816 required.

When I check the storage VMStorage, it is 136.7GiB free. The VM does contain 2 seperate "Drives", one OS (32GB), and a data drive (146GB). It looks like it is trying to unpack both images into VM_Storage, and not restore the 2 images to the separate 2 drives like it supposed to.

I've googled, and searched these forums, I did not see this error come up.

Thanks for any help.
 
I was able to manually restore the 2 extracted raw files using

dd if=disk-drive-ide0.raw of=/dev/VM_Storage/vm-100-disk-1
dd if=disk-drive-ide1.raw of=/dev/Webserver_Storage/vm-100-disk-1

So it backs up the images correctly, and splits them into 2 files for each drive.
It just doesn't unpack them correctly, and tries to put them both into the first drive (in this case VM_Storage) instead of 1 into VM_Storage and the other into Webserver_Storage.
 
So it backs up the images correctly, and splits them into 2 files for each drive.
It just doesn't unpack them correctly, and tries to put them both into the first drive (in this case VM_Storage) instead of 1 into VM_Storage and the other into Webserver_Storage.
how did you restore? with the gui? there you can only choose one storage, so all the disks get restored there
on the cli you can provide a storage per disk AFAIK

Instead of backing up the entire VM image, since it won't restore properly, is there a way to just backup the single drive?
you can choose the 'no backup' option in the gui on a disk
 
how did you restore? with the gui? there you can only choose one storage, so all the disks get restored there
on the cli you can provide a storage per disk AFAIK

you can choose the 'no backup' option in the gui on a disk

I manually unpacked the vma file, then DD'd the raws into the 2 drives VM_Storage and Webserver_storage.

I guess not many people split a VM over 2 drives. OS and data.
 

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!