I deleted volume that was root disk for my containers

sdillon

New Member
Sep 9, 2025
2
1
3
I followed a tutorial that produced a bunch of storage volumes for each type of storage. Images, backups, etc. all had different storage volumes. I found this confusing and in my haste to remove them, I accidentally removed the storage volume that held the .raw files for my containers. The Root Disk specified in my container Resources tab is "VM-Images: 105/vm-105-disk-0.raw, size=2G" and now the VM-Images volume is gone. Whomp, whomp, whomp. I do have backups though.

Before I try to recover with the wrong command, I wanted to ask if I'm in the right ballpark. This post uses the pct restore command which uses the backup file but there is a --rootfs parameter which looks like I could use to select a new root disk for the linux container. The full command is: 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

Would I need to specify mount points or could I add those afterwards if I miss them? If this is the right command, are there any other tips to make sure I get this right? Thanks for your time.
 
What the hell the world could be overcomplicated ? My head is too full and already even too old to learn any other way, sorry ...
pvefs - root - /srv/data/images/186 - /bin/bash
1008#: time cp ../../../.xfssnaps/daily.2025-09-09_0001/srv/data/images/186/vm-186-disk-0.raw .
real 0m0.152s
user 0m0.001s
sys 0m0.015s

pvefs - root - /srv/data/images/186 - /bin/bash
1009#: ll
total 3039068
-rw-r----- 1 root root 8589934592 Sep 9 19:02 vm-186-disk-0.raw
 
Thanks for taking the time to reply. I was able to find the raw files, recreate the volume and get everything back to normal. I've now moved the root fs for the containers to the new volume and recovered the container that was deleted. Thanks.
 
  • Like
Reactions: waltar