Re-adding removed storage

Sep 14, 2022
6
1
8
I have a 7.2-3 proxmox server, with one local disk, carved into several partitions.

The storage was removed by selecting the storage, and choosing 'remove' and confirming the selection (idiotic, I know...)
The name of this partition was called 'local-lvm'
All of the vms and lxe containers continue to run.
Attempting to back them up, fails (I get the error "TASK ERROR: storage 'local-lvm' does not exist").
Attempting to stop, then start a container fails (can't find disk).

Here is a screenshot of the lsblk command, showing the 'sda3' partition and everything still running under it:
1663127762625.png

The disk is still present under 'Disks': (/dev/sda3)
1663127964147.png

And under 'LVM' we can still see the volume:
1663128092680.png


My question is - how do I add my storage back to the system, without losing the vms that are running on it?

What other information would be needed? Is there a process for such a thing?
 

Attachments

  • 1663128085260.png
    1663128085260.png
    25.6 KB · Views: 4
Hi,

if you just removed the storage, you should be able to re-add it by editing your /etc/pve/storage.conf by adding:

Code:
lvmthin: local-lvm
    thinpool data
    vgname pve
    content rootdir,images
 
  • Like
Reactions: LaserGuidedCake