Restoring a backup to iSCSI storage

ionutul

New Member
Mar 23, 2023
1
0
1
Hey,

I have a server running proxmox that's connected to a dell powervault storage through iSCSI. 1679589232996.png

I never had any issue creating new vm's and using the powervault as the main storage drive, like so
1679589380274.png

I had to do some work on the iSCSI datastores so I created a backup for the two vm's I stored there AND I copied all the contents of the hark disk to the local storage easily to the local storage without any kind of downtime. This was great.

Having completed the work on the iSCSI datastore, I tried to move back the hard drive from local back to iSCSI datastore through Disk action > Move storage but I always will get this error:

Code:
create full clone of drive scsi0 (local-lvm:vm-109-disk-0) 
TASK ERROR: storage migration failed: can't allocate space in iscsi storage

Which was odd so I tried to restore one of the backups and I get the exact same error:


Code:
restore vma archive: zstd -q -d -c /var/lib/vz/dump/vzdump-qemu-109-2023_03_22-20_01_54.vma.zst | vma extract -v -r /var/tmp/vzdumptmp83440.fifo - /var/tmp/vzdumptmp83440
CFG: size: 535 name: qemu-server.conf
DEV: dev_id=1 size: 99996401664 devname: drive-scsi0
CTIME: Wed Mar 22 20:01:56 2023
no lock found trying to remove 'create'  lock
error before or during data restore, some or all disks were not completely restored. VM 104 state is NOT cleaned up.
TASK ERROR: command 'set -o pipefail && zstd -q -d -c /var/lib/vz/dump/vzdump-qemu-109-2023_03_22-20_01_54.vma.zst | vma extract -v -r /var/tmp/vzdumptmp83440.fifo - /var/tmp/vzdumptmp83440' failed: can't allocate space in iscsi storage

Right now I am completly able to create new vm's on the iSCSI storage but I can't restore my vm's to them.

What could I do ?
 
So it seems that you are using a Direct Lun approach with iSCSI. In this mode you dont have controls such as "create/delete/snapshot/clone" for the Luns. You must manually provision the storage in advance.
This explains the failure on Clone operation. The Clone operation in UI combines multiple steps, ie VM create, storage allocation etc. But that is not possible with direct iSCSI - you must pre-create things. Essentially it means you cant clone your VM.

A similiar situation happens with backup, I believe you are using a process that automatically attempts to create target VM and storage. You have to find a way to restore to existing VM with pre-configured storage.

Good luck.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
  • Like
Reactions: ionutul

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!