[CentOS] How to add a HD to a LVM

Sun May 8 16:31:21 UTC 2011
Scott Robbins <scottro at nyc.rr.com>

On Sun, May 08, 2011 at 09:21:56AM -0700, Todd Cary wrote:
> 
> lvm lvremove LogVol01
> 
> Using the GUI, I get
> 
> Logical volume LogVol01 contains swap filesystem. All data on it 
> will be lost! Are you quite certain that you wish to remove 
> logical volume LogVol01?


If it's a swap partition, first turn off the swap

swapoff /dev/VGwhaever/LogVol01

Then lvremove.


-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Xander: What's going on here? People are going all Felicity with 
their hair.