From: John Robinson <john.robinson@anonymous.org.uk>
To: Dominique <dcouot@hotmail.com>
Cc: linux-raid mailing list <linux-raid@vger.kernel.org>
Subject: Re: Ubuntu mdadm Raid and EFI
Date: Mon, 28 Nov 2011 14:07:06 +0000 [thread overview]
Message-ID: <4ED3958A.9090909@anonymous.org.uk> (raw)
In-Reply-To: <BLU0-SMTP1700793E8A96042A5B235CDC9CE0@phx.gbl>
On 24/11/2011 16:11, Dominique wrote:
> Ok, nothing like writing a mail to get intuition for the next steps..
>
> First I simplified the initial setup.
> RAID1 for everyone, and only two HDD to start. I'll convert and expand
> at a later stage.
> I also added an EFI partition ('bootgrup' if I remember well). I did
> that on both disk.
> Reboot and voila, it boots.
>
> But this kind of negates the RAID1 /boot logic. If the first disk fail,
> then what ? No EFI, no boot ?
> How - if possible - do you configure EFI to boot from RAID1 across xHDD
> to allow boot in degraded mode ?
I haven't used EFI/GPT at all yet, but I imagine the same as the
old-fashioned MBR technique: install the boot loader separately on all
the devices you might need to boot from. The CentOS and Fedora
installers automatically do this for you with MBR and presumably with
GPT as well if you configure /boot to be a md RAID-1 i.e. they put grub
on all the drives making up /boot, and I would have thought the Ubuntu
installer would as well, but you can do it by hand if you have to. Just
replicate whatever's on sda to sdb, sdc etc.
Then when your first hard disc fails and you reboot, the BIOS will boot
the first hard disc it finds, which will be your second hard disc, and
all will be lovely. This doesn't work if your first hard disc is still
visible but unreadable, but that's always been the problem, and you need
BIOS RAID support (e.g. Intel IMSM) to cope with it.
And a quick suggestion: use RAID 10 for your swap partition, it'll be
faster than RAID 1. Since you want to be able to survive 2 disc
failures, you probably ought to use layout raid10,f3.
Hope this helps.
Cheers,
John.
--
John Robinson, yuiop IT services
0131 557 9577 / 07771 784 058
46/12 Broughton Road, Edinburgh EH7 4EE
prev parent reply other threads:[~2011-11-28 14:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-24 14:09 Ubuntu mdadm Raid and EFI Dominique
2011-11-24 16:11 ` Dominique
2011-11-28 9:44 ` Jes Sorensen
2011-11-28 14:07 ` John Robinson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ED3958A.9090909@anonymous.org.uk \
--to=john.robinson@anonymous.org.uk \
--cc=dcouot@hotmail.com \
--cc=linux-raid@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).