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? Thanks, Steve
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
On Tue, 2006-09-12 at 14:41 -0500, Steve Bergman wrote:> 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.You can shrink a PV with pvresize. You will have to adjust the partition size afterwards. More information can be found in pvresize(8). -- Daniel