Xianath
May 19th, 2009, 02:37 AM
I have an Ubuntu Server 9.04 installation that runs from a single old 80GB IDE hard disk. I have six 1TB disks in this box all set up with software RAID and LVM2 and would like to get rid of the IDE disk and run entirely off the RAID.
Here is what each of the six SATA disks looks like:
/dev/sda1 * 1 7 56196 83 Linux
/dev/sda2 8 3977 31889025 fd Linux raid autodetect
/dev/sda3 3978 4060 666697+ 82 Linux swap / Solaris
/dev/sda4 4061 121601 944148082+ 5 Extended
/dev/sda5 4061 28380 195350368+ fd Linux raid autodetect
/dev/sda6 28381 52700 195350368+ fd Linux raid autodetect
/dev/sda7 52701 77020 195350368+ fd Linux raid autodetect
/dev/sda8 77021 101340 195350368+ fd Linux raid autodetect
/dev/sda9 101341 121601 162746451 fd Linux raid autodetect
I have sd[ace]1 and sd[bdf]1 in two md RAID0 volumes set up as a pair of PVs in a mirrored LV to serve as my boot partition (/dev/System/Boot). I also set up sd[abcdef]2 in RAID5 as a single PV/LV to use as my root partition (/dev/System/Root).
This is a headless box and plugging in a monitor will be a major pain. The BIOS is already set up to try IDE and then the first two SATA disks (hence the interleaved RAID0 disks). The question is, how do I safely move everything from the IDE HDD to the LVM2 setup without breaking stuff up? Basically I want to set it up, power off, remove the IDE HDD, boot it up and it should work. Everything I've found online so far describes how to *install* on a RAID/LVM2 but this is not an easy option to pursue. Any tips, hints or pointers to a FAQ I missed?
Thanks,
Peter
Here is what each of the six SATA disks looks like:
/dev/sda1 * 1 7 56196 83 Linux
/dev/sda2 8 3977 31889025 fd Linux raid autodetect
/dev/sda3 3978 4060 666697+ 82 Linux swap / Solaris
/dev/sda4 4061 121601 944148082+ 5 Extended
/dev/sda5 4061 28380 195350368+ fd Linux raid autodetect
/dev/sda6 28381 52700 195350368+ fd Linux raid autodetect
/dev/sda7 52701 77020 195350368+ fd Linux raid autodetect
/dev/sda8 77021 101340 195350368+ fd Linux raid autodetect
/dev/sda9 101341 121601 162746451 fd Linux raid autodetect
I have sd[ace]1 and sd[bdf]1 in two md RAID0 volumes set up as a pair of PVs in a mirrored LV to serve as my boot partition (/dev/System/Boot). I also set up sd[abcdef]2 in RAID5 as a single PV/LV to use as my root partition (/dev/System/Root).
This is a headless box and plugging in a monitor will be a major pain. The BIOS is already set up to try IDE and then the first two SATA disks (hence the interleaved RAID0 disks). The question is, how do I safely move everything from the IDE HDD to the LVM2 setup without breaking stuff up? Basically I want to set it up, power off, remove the IDE HDD, boot it up and it should work. Everything I've found online so far describes how to *install* on a RAID/LVM2 but this is not an easy option to pursue. Any tips, hints or pointers to a FAQ I missed?
Thanks,
Peter