Thread (3 messages) 3 messages, 2 authors, 2009-12-20

Re: Booting from RAID1

From: Michael Evans <hidden>
Date: 2009-12-20 06:43:45

On Sat, Dec 19, 2009 at 9:34 PM, Leslie Rhorer [off-list ref] wrote:
Hey, everyone,

       It's me again.  Well, while I am still going to keep small offline
drive backups for my boot drives on the servers, I have decided to replace
the very small boot drives with some slightly larger RAID1 arrays.  To that
end, I've looked around the web for some good advice, and the best I have
found matching my system configuration seems to be this howto:

http://www.linuxhowtos.org/System/raid.htm

       I am a little unsure of one section, however.  In the section he
labels "Fix up initrd" he is suggesting I change the initrd in order to
allow booting from an md array rather than a sata drive.  I thought all 2.6
kernels supported booting from an array directly ( No? ).  Also, both of
these systems will have one PATA drive and one SATA ( seen as a "SCSI"
/dev/sdx drive ) drive in the RAID 1 arrays.  Does that make a difference?

       I will have three RAID 1 arrays: MD1 containing /boot on the first
partition, MD2 containing / on the second partition, and MD3 containing the
swap on the third partition of both drives.  One of the systems will also
have an NTFS partition on each drive for booting Windows - rarely used.  I
will be using grub as the bootloader.

       Any further advice?

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Advice point 1; read my howto: http://wiki.tldp.org/LVM-on-RAID  If
you see anything that doesn't work, let me know so I can fix it.

Advice point 2; which my howto should mention: For boot devices you'll
probably want to use the 1.0 mdadm label format (not 1.1 or 1.2, which
are the same but change where the label is stored) for just the boot
raid 1.0 only.  It will also mention some things you should be extra
careful about...

Like mounting the bare devices in that raid set by mistake.

Oh, and you'll also very likely want grub to read the /boot
filesystem, which is why it must be on a partition followed by the
raid header, instead of a partition containing a raid header and raid
protected partition.  That use is OK since grub operates read-only.
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help