[CentOS] Shrinking a volume group

Tue Sep 12 19:48:55 UTC 2006
Matt Hyclak <hyclak at math.ohiou.edu>

On Tue, Sep 12, 2006 at 02:41:33PM -0500, Steve Bergman enlightened us:
> I did something stupid when setting up a server which is now live.  I
> think I'm stuck.
> 
> I set up swap on Raid1 which is decidedly non-optimal.  I'd prefer 2
> independent swap partitions at the same priority.
> 
> Here is the set up:
> 
> /dev/sda1 + /dev/sdb1 -> md0 (raid1)
> 
> md0 -> VolGroup00 
> 
> VolGroup00 -> VG00LV00(/), VG00LV01(/home), VG00LV02(swap)
> 
> I've gotten as far as :
> 
> Turning off swap and removing LV02.
> 
> Next step would be to shrink VG00.  But it looks like you can only
> shrink a volume group by removing entire PV's.  I only have 1 PV.
> 
> So I think I'm stuck.
> 
> Any ideas?

Yes, leave it as a mirrored partition so when memory is swapped out to a
disk that dies, your server does not panic.

Matt

-- 
Matt Hyclak
Department of Mathematics 
Department of Social Work
Ohio University
(740) 593-1263