[SOLVED] Failed restore deleted my container and all disks, how to get them back?

dekiesel

Member
Apr 30, 2023
60
6
8
Hi,

I *had* a lxc that I tried to restore from a backup. The lxc had an mp on disk1 and one on disk2. disk1 is much smaller than disk2.

Unbeknownst to me proxmox tried to restore both mountpoints to disk1, which failed (No space left on device).
Proxmox then deleted all lxc-disks and even the config from/etc/pve/lxc.

I do have a backup on a separate harddrive, but since the container itself was deleted I don't know how to restore it... Does anybody know if this is possible?
 
Last edited:
you can use "pct restore" or browse to the storage and select the backup there to restore it
 
  • Like
Reactions: dekiesel
you can use "pct restore" or browse to the storage and select the backup there to restore it
Thank you for the help!

Unfortunately the restore still fails for reasons I don't understand:

Code:
recovering backed-up configuration from 'extbackup:backup/vzdump-lxc-129-2024_11_21-08_25_52.tar.zst'
  Logical volume "vm-129-disk-0" created.
Creating filesystem with 3670016 4k blocks and 917504 inodes
Filesystem UUID: 26793746-c466-4b0b-8882-dbaf84a535c9
Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208
  Logical volume "vm-129-disk-2" created.
Creating filesystem with 23068672 4k blocks and 5767168 inodes
Filesystem UUID: 5e299857-f688-4b13-bd70-530a804ee77e
Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
    4096000, 7962624, 11239424, 20480000
  Logical volume "vm-129-disk-3" created.
Creating filesystem with 47185920 4k blocks and 11796480 inodes
Filesystem UUID: 5f18c944-217f-4cff-b3fe-7cf8326bfffe
Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
    4096000, 7962624, 11239424, 20480000, 23887872
restoring 'extbackup:backup/vzdump-lxc-129-2024_11_21-08_25_52.tar.zst' now..
extracting archive '/mnt/extssd1/proxmoxbackup/dump/vzdump-lxc-129-2024_11_21-08_25_52.tar.zst'
tar: ./root/app/persistant-data/immich/uploads/thumbs/aab9fdfc-7fd9-416e-b6a2-3639710baa2c/6b/b6/6bb6cc65-65fc-4279-b898-197bbac487b1.jpeg: Wrote only 8192 of 10240 bytes
tar: ./root/app/persistant-data/immich/uploads/thumbs/aab9fdfc-7fd9-416e-b6a2-3639710baa2c/6b/b6/6bb601d5-f863-4cdf-8d85-19081303fd43.jpeg: Cannot write: No space left on device
tar: ./root/app/persistant-data/immich/uploads/thumbs/aab9fdfc-7fd9-416e-b6a2-3639710baa2c/6b/15: Cannot mkdir: No space left on device

During the restore I monitored the Logical Volumes for LXC 129 and while they are running close they aren't actually filling up completely

Code:
  vm-129-disk-0                  data Vwi-aotz--  14.00g wdreddata                68.20                                 
  vm-129-disk-1                  data Vwi-a-tz-- 180.00g wdreddata                80.65                                 
  vm-129-disk-2                  data Vwi-aotz--  88.00g wdreddata                94.93                                 
  vm-129-disk-3                  data Vwi-aotz-- 180.00g wdreddata                2.12

Any ideas why? Can I tell the restore process to create a bigger logical volume?
 
"Increase" (!!) lxc disk size in hardware setting "by x GB" - eg. 10GB (it's not the new absolute size in menue) and after try restore again.
Maybe it's still the first "vm-129-disk-0" disk from your error lines shown or even a further one, "-1", "-2" or "-3".
 
was the container originally on ZFS? it might contain more uncompressed data then it has volume size, in which case overriding the mp size(s) is the way out..
 
was the container originally on ZFS? it might contain more uncompressed data then it has volume size, in which case overriding the mp size(s) is the way out..
This is my first hooray with proxmox so I can't be 100% sure, but to the best of my knowledge I specifically chose lvm-thin. How can I override the mp sizes?

The gui lets me see the config but not change it
1738766041888.png

And in the backup folder there is no config:
1738766093478.png

Thank you for your help!
 
This did the trick:

Code:
pct restore 129 /mnt/extssd1/proxmoxbackup/dump/vzdump-lxc-129-2024_11_21-08_25_52.tar.zst --rootfs local-lvm:14 --mp0 wdreddata:100,mp=/root/app/persistant-data/immich/uploads
 
  • Like
Reactions: fabian and waltar