I’ve been toying around with OpenFiler a while now and I’ve run into some quirky behavior when it comes to order or operations via the web interface. I had some issues with not being able to unmap an iSCSI LUN to being unable to remove a volume group. I was able to futz around and get the LUN to unmap so I could delete the iSCSI target in question, but I couldn’t figure out the volume group issue.
I found this blog entry that helped, so I’m posting it in my blog for safe keeping. That entry also makes reference to a great LVM reference you should know about. Basically, the solution to remove the volume group via command line interface is this:
vgchange -a n XXXX
vgremove XXXX