How to clean up old (bogus) lvm?

dswartz

Renowned Member
Dec 13, 2010
286
9
83
I was experimenting with a FreeNAS box, with an iscsi target. I had an iscsi on the proxmox mapped to a lun on the freenas. I then created an LVM on top of that. After my experiment, I took down (and deleted) the freenas server, but messed up and forgot to delete the lvm and iscsi first. Now, no matter what I do, it won't let me delete the storage (I get an error about '/sbin/vgchange -aln stuff' failed with code 5. I assume there is something I can do on the command line to clean this up?
 
delete the outdated storage definition:

Code:
nano /etc/pve/storage.cfg
 
that did it, thanks tom! i knew there had to be something simple, just didn't know where to look :)