Openfiler: Delete a Volume Group from the Commandline


Last week I decided to give Openfiler 2.3 a try. I downloaded the ISO and installed it on my “storage” box. After clicking around and having some trouble with the iscsi targer server, I did a rebuild of Openfiler. But somthing strange happend. All the volume groupes where deleted but somehow, one of the volume groups came back again. So I pressed delete volume group a several times but it wont get away :S.

So after digging around on google, I found the following site: http://tldp.org/HOWTO/LVM-HOWTO. On this page you’ll find everything about LVM.

So back to my problem with Openfiler. In the Select Volume Group you’ll find and dropdown menu with all the volume groups. Remember the group you want to delete.

image

Go to the commandline on the Openfiler box or via Putty. 

With the following command you can disable the volume group”

vgchange –a n <volume group name>

image

After disableing of the volume group, you can delete the whole volume with the following command:

vgremove <volume group name>

If you’re sure about this, you press y to continue.

image

When you go back to the Openfiler screen and pressed F5 for refreshing the browser. You’ll notice that the volume group is gone.

image

Everything is back to normal.

 

Source for the LVM commands: http://tldp.org/HOWTO/LVM-HOWTO/commontask.html

Advertisements

7 thoughts on “Openfiler: Delete a Volume Group from the Commandline

  1. Pingback: Trouble with volume management on OpenFiler | Amal Graafstra

  2. Pingback: Confluence: OpenFiler

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s