[Hampshire] setting up software raid and LVM

Top Page

Reply to this message
Author: Philip Stubbs
Date:  
To: Hampshire LUG Discussion List
Subject: [Hampshire] setting up software raid and LVM
Hi all,

Ok, I need to get my head round RAID and LVM as I want to upgrade my
home server. At the moment, my disks are configured as per the top
part of this picture:-
http://stuphi.co.uk/disk_layout.jpg
I hope that makes sense. :-)

md0 is used for / and md1 for /home

As can be seen, if hdc dies, it should still work. If hda dies, it
will not boot.

What I want, from how I understand things, is represented by the
bottom part of that image. So all of hda and hdc become part of a
single RAID, and then LVM works on the resulting md0. Then I can
create partitions as required in the resulting vg. Does this sound
right?

I need to do this in a way that keeps my data. So I was going to
remove hdc from the original array, set that up as hda in the new
machine in a degraded array, with LVM etc. Once that is working, I was
going to then move the old hda to be the new hdc in the new machine,
boot with a rescue CD, and mount it as is so I can copy the data
across. Then I create the single partition, and add it to the array.

If I have gone way off track here, please let me know :-)

Thanks.

--
Philip Stubbs