This one time, at band camp, Howard Lowndes wrote: >On Tue, 2004-05-18 at 18:24, Jeff Waugh wrote: >> <quote who="Howard Lowndes"> >> >> > Having said that, the next problem is that you know how to do it, the Deb >> > expert next to you knows how to do that, but beyond that there is very >> > little assistance out there other than the mail lists, which should be the >> > last resort, as most of them tend to retort, sometimes rightly, "RTFM". >> >> Sure, but that's what SLUG and DebSIG are for. :-) > >OK, so how do I install Debian with RAID and LVM?
Looks like I'm about to do it again here at work, so my memory has been renewed: the short version of how I do my raid conversions/migrations is like this: * do the install onto one disk * create the partitions on the second disk, set the partition types correctly * create raid/lvm volumes in degraded mode on second disk * copy the data from the first disk onto the second disk now, depending on whether or not this is a live migration or not: * shut down all the services * chroot into the raid mount * rsync data * start up services inside the chroot * pivot root so the original disk is no longer mounted at / otherwise it's usually: * make sure the MBR is correctly set up to boot off the second disk * reboot then: * copy the partition table from the second disk to the first: sfdisk -d /dev/sdb | sfdisk /dev/sda * hot add the partitions to the raid volumes * fiddle with bootloader to make sure everything is set up right * wait for the raid sync to complete I've not used LVM on production systems so adjust for personal taste. I can elaborate more later if google can't help. -- [EMAIL PROTECTED] http://spacepants.org/jaq.gpg -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
