Wednesday, February 22, 2012

Adding software RAID to an existing system

I had to do something tricky yesterday, add software RAID to an existing system that had LVM.  First stop was Google, where I found some pages that kinda covered a normally partitioned system, some that covered a normally partitioned system quite well, and one page that was step by step for just my situation.  That almost never happens.

It would have been easier to reinstall the system and do it all from the installer disk, but there is a very real possibility that I’ll have to add disks to this system in the future and this was a good time to get some practice in on keeping a live system up while playing musical partitions.

The only change I had to make was to use mkinitramfs rather than mkinitrd.  Syntax is mostly the same, the command looks like

mkinitramfs -o /boot/initrd.img-$(uname -r) $(uname -r)

That’s due to time, not oversight on the author’s part.  Apparently, Debian Lenny did away with mkinitrd and replaced it with mkinitramfs.  That may change again as yaird is in unstable.  Who knows.

Here’s the link:
LVM single disk to LVM RAID 1

No comments:

Post a Comment