Sunday, July 6, 2008

Today, we're finishing up what we started yesterday with our post on using LVM on AIX Linux. Today we're going to move on to Logical Volume, Volume Group and Physical Volume destruction commands. I also opted not to list out the usage commands (since there are quite a few of them, and we haven't covered this subject when looking at Linux LVM yet). It's fairly short and simple, but this is a "Lazy Sunday" :)

Remove a Volume Group (Note that, again it doesn't agree too much with the Linux or HP versions, we're just turning off the volume group to destroy it):

host # varyoffvg VolumeGroupName

De-Allocate a Physical Volume (Note that Physical Volumes, in AIX, already exist - they just need to be allocated to Volume Groups):

There is no specific pv command for this operation. PV allocation and de-allocation actually, for better or worse, happen as a result of the vg and lv destruction commands. However, you can do the following to "destroy" the device:

host # rmdev DEVICE

, Mike

Chris Gibson wrote in with these additional helpful comments. Thanks, Chris!With regard to "Removing a volume group", I use this procedure: