[SOLVED] Removed harddrive from storage - not sure how to manually add it back

voarsh

Member
Nov 20, 2020
218
19
23
28
I have a HDD under /dev/sdc/

I removed the drive (accidentally) from /etc/pve/storage.cfg

I have some VM's running using the removed storage (no idea what'll happen if I restart them. I assume it'll screw up).
 
Do you mean you edited that file and removed some lines? Can you not put them back? Or restore the file from backups?
I didn't make a backup (I will now!) and I don't actually know what to put there to put it back.
I can't go to the node and add the directory (that's what it was). A HDD added as a directory, because there's no unused disks.
 
Do you still see that disk in the GUI in Storage? If yes, you can see the values you need to write in that file or maybe save it and proxmox writes the file itself.
Consult the Proxmox documentation on Storage, you can recreate the lines yourself. Or add the storage again in the GUI.
 
I did manage to see in the task history the directory:
Physical volume "/dev/sdc" successfully created.
Volume group "HPBay8" successfully created
And if I go to here I see the content of the directory..

/dev/HPBay8/
 
I added it back like so:
LVM: HPBay8
path /dev/HPBay8
vgname HPBay8
content rootdir,images
 
Last edited:

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!