restore via web-interface 2 iSCSI devices

PfeiferDrako

New Member
Sep 24, 2015
2
0
1
How to restore a KVM VM (windows maschine) with 2 iSCSI devices?
I thought restore is as easy as backup, but it seems not.
I thought proxmox will use the same iSCSI targets as the original VM
I can't choose what LUN/iSCSI device to use for DEV: dev_id=1 and dev_id=2
How to set the dev_id to the original iSCSI target luns?
(If I set up a new KVM VM I had to choose a iSCSI LUN from the drop down menu)

restore vma archive: lzop -d -c /mnt/pve/proxbackup/dump/vzdump-qemu-104-2015_09_12-08_27_39.vma.lzo|vma extract -v -r /var/tmp/vzdumptmp259559.fifo - /var/tmp/vzdumptmp259559
CFG: size: 439 name: qemu-server.conf
DEV: dev_id=1 size: 161061273600 devname: drive-ide0
DEV: dev_id=2 size: 375809638400 devname: drive-virtio1
CTIME: Sat Sep 12 08:27:41 2015
TASK ERROR: command 'lzop -d -c /mnt/pve/proxbackup/dump/vzdump-qemu-104-2015_09_12-08_27_39.vma.lzo|vma extract -v -r /var/tmp/vzdumptmp259559.fifo - /var/tmp/vzdumptmp259559' failed: can't allocate space in iscsi storage
 
It seems as qmrestore didn't get these ISCSI LUNs right.

Also not via command line

rootATnode3:/mnt/pve/proxbackup/dump# qmrestore vzdump-qemu-104-2015_09_12-08_27_39.vma.lzo 104 -force
restore vma archive: lzop -d -c /mnt/pve/proxbackup/dump/vzdump-qemu-104-2015_09_12-08_27_39.vma.lzo|vma extract -v -r /var/tmp/vzdumptmp282020.fifo - /var/tmp/vzdumptmp282020
CFG: size: 439 name: qemu-server.conf
DEV: dev_id=1 size: 161061273600 devname: drive-ide0
DEV: dev_id=2 size: 375809638400 devname: drive-virtio1
CTIME: Sat Sep 12 08:27:41 2015
command 'lzop -d -c /mnt/pve/proxbackup/dump/vzdump-qemu-104-2015_09_12-08_27_39.vma.lzo|vma extract -v -r /var/tmp/vzdumptmp282020.fifo - /var/tmp/vzdumptmp282020' failed: can't allocate space in iscsi storage

So I restore my VM to local storage an get 2 raw files.
I restore the raw images back with dd directly to the ISCSI-volume on the ISCSI storage

dd if=/srv/vmimages/images/124/vm-124-disk-1.raw bs=4M | ssh rootATstorage "dd bs=4M of=/dev/vg01/disk-1"

This works but it's not nice and takes twice restore time
 

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!