[SOLVED] Backup Restore // TASK ERROR: unable to restore CT 102 - no such logical volume pve/vm-102-disk-0

Skream

Member
Mar 15, 2021
19
4
8
31
Hello all,

unfurtunately, I've had some issues while upgrading from PVE 6.4 to PVE 7, so I decided to install PVE 7 from scratch. I created backups of all LXCs and VMs and saved them on a PBS (V 2.0-4). Of course, I saved network configuration, storage.cfg and the config files of the LXCs and VMs as well.

After initial setup of PVE 7, I wanted to restore the LXCs, but unfortunatley, the restore process ended with
"TASK ERROR: unable to restore CT XXX- no such logical volume pve/vm-XXX-disk-0"
(replace XXX by LXC-ID).

Originally, the LXCs were stored on local-lvm and the virtual disk ist configured in the LXC config files (rootfs). However, the virtual disks are not shown in local-lvm --> CT volumes.

So my "stupid" question is: How can I restore my backup LXCs? :)

I have only one VM to restore (OpenMediaVault with 2.5TB, so it will take a while...), the process is currently running and the VM Disk is shown in local-lvm --> VM Disks.

Thanks a lot in advance for your help! :)
If you need any more information, feel free to ask.

EDIT:
I just took a deeper look into the log of the restore process:
Code:
recovering backed-up configuration from 'PBS:backup/ct/102/2022-06-17T21:00:19Z'

  Logical volume "vm-102-disk-0" created.

Creating filesystem with 2097152 4k blocks and 524288 inodes

Filesystem UUID: 665ea033-2387-4d07-ac2a-05807a63cc02

Superblock backups stored on blocks:

    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

  Logical volume "vm-102-disk-0" successfully removed

TASK ERROR: unable to restore CT 102 - no such logical volume pve/vm-102-disk-0
If I get that correcty, a logical volume is created in the first step, is getting removed right afterwards and in the end, the process stops since there is no logical volume available?

BR, Skream
 
Last edited:
Hi,
there's likely an error happening in between, after which restore aborts and cleans up the image again. Please share the backed up configuration and the output of pveversion -v and cat /etc/pve/storage.cfg. I assume you're restoring via UI to local-lvm again?
 
Hi Fabian,

thanks for your response. Luckily, I was able to solve the problem in the meantime :)

I think my fault was as follows: I restored the Conf-files of the LXCs to have like an empty shell which I could use the restore function for (click on LXC in UI --> Backup --> Restore). This procedure ended up with the message I already mentioned in my previous post.

How did I fix it?
Luckily, the PBS was already bound to PVE, so I could click on the storage and see all backup files. I deleted all Conf-Files of the LXC, clicked on PBS (storage) and used the restore function offered in PBS storage. I just had to make sure that the LXC will be restored to local-lvm and not to my Raid 1. Finally, all my VMs and LXCs got restored successfully and are up and running again! :)

BR, Skream
 

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!