Error deleting LVM from storage model

htjioe

New Member
Jul 2, 2009
8
0
1
Hi all,

I am playing around with the new storage model on pve 1.4 beta2. I had added a new physical disk (/dev/sdb) and format it as LINUX LVM disk. Create a pv, vg and lv on it. And add it as LVM to the storage model.
Everything looks fine up to that. But when I try to delete it from the storage list it report an error:

Error: command '/sbin/vgchange -aln fsdata' failed with exit code 5

Can somebody help me what is going wrong here?

TIA.

H2T
 
I guess the VG is still in use?

Honestly not!
Because it was a test for me to understand how to add/remove things (disk space)!
I have also manually deleted the lv, vg to see what happends but it doesn't help much.

Until I found that there is a config file for storage i.e /etc/pve/storage.cfg
So I deleted that specific entry from the file and from then I don't see that entry from the GUI. Logic of course but not sure that this the correct manner.

H2T
 
I have also manually deleted the lv, vg to see what happends but it doesn't help much.

Maybe "vgchange -aln fsdata" failed because you already removed the VG? If not, try to strace the command to see whats wrong.

Until I found that there is a config file for storage i.e /etc/pve/storage.cfg
So I deleted that specific entry from the file and from then I don't see that entry from the GUI. Logic of course but not sure that this the correct manner.

That the correct manner - no problem.