Delete LVM attached to iSCSI


Apr 12, 2018
I created an ISCSI and LVM for VMs but misspelled the LVM name So I deleted it and tried to recreate it with correct spelling but get the following Error Message:

create storage failed: device '/dev/disk/by-id/scsi-36589cfc000000aca113ed9386b8dcb80' is already used by volume group 'baldru_LVM' (500)

What do I need to do to delete the target? I do not have it in my storage.cfg.

root@pve-1:/etc/pve# cat storage.cfg
dir: local
path /var/lib/vz
content iso,vztmpl,backup
maxfiles 0

lvmthin: local-lvm
thinpool data
vgname pve
content images,rootdir

iscsi: iSCSI
target iqn.helios.ctl:target1
content none

lvm: VM_LVM
vgname LVMStore1
base iSCSI:0.0.0.scsi-36589cfc000000606951ba279efb41f8d
content rootdir,images
shared 1

nfs: baldurNFS
export /mnt/BKStore/NFSBackup
path /mnt/pve/baldurNFS
content backup,iso,vztmpl
maxfiles 2
options vers=3

iscsi: Selene_ISCSI
target iqn.selene.ctl:target1
content none

iscsi: Baldur_ISCSI
content none
We do have a subscription and I click on the Help button to find information about lvm but I do not see how to delete a bad lvm in the notes. My Primary lvm is working with 1 freeNAS iSCSI and I am trying to create a second lvm to second freeNAS iSCSI so I can move VMs to it while I upgrade the primary FreeNAS.
I found the commands in shell but I do not see documentation on how to use these commands and not screw up my production server. I have 1 lvm group that is connected to multiple iSCSI drives and I need to remove the bad iSCSI from the group. Is there a file that shows the lvm groups attached to physical drives so I can edit it there?


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!