[clug-talk] mdadm raid 5
gustin at echostar.ca
Fri Jun 12 15:15:29 PDT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Chris R. Thompson wrote:
> I am configuring an Ubuntu 9.04 Desktop with 4 disks; the primary is a single disk where the O/S resides. The other 3 I am trying to configure in a software raid 5. To do this I am using mdadm; the problem I am having is that post configuration using cfdisk and the mdadm --create command, I restart, and the OS tries to boot from the raid 5, rather then the single disk. I am then stuck into the (initramfs) prompt and forced to repair by uninstalling mdadm.
> I am of the impression that the /boot is actually modified when installing and configuring the mdadm.
It shouldn't be unless you plan on booting from the array. When I setup
my array at home I did not modify anything in boot. My system at home
is running Ubuntu 8.04 server and I just built it a week ago so this is
all still fresh.
> The question at this point, is where do I need to configure the "boot" option; and what would it be. The technical details are below.
> single disk is /dev/sda1
In the /etc/fstab I would use the UUID to define the / (root), this goes
the same for /boot/grub/menu/lst (in other words, use the UUID instead
of the device name).
All boot options are likely in /boot/grub/menu.lst unless you
specifically requested LILO or some other boot loader for some strange
> raid array 5
> the /etc/mdadm/mdadm.conf
> DEVICE partitions
> ARRAY /dev/md0
> metadata=00.90 spares=0
> MAILADDR root
I use this howto as a template:
It is pretty straightforward and easy to follow.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the clug-talk