From: Bill Davidsen <davidsen@tmr.com>
To: Moshe Yudkowsky <moshe@pobox.com>
Cc: Peter Rabbitson <rabbit+list@rabbit.us>,
Michael Tokarev <mjt@tls.msk.ru>,
linux-raid@vger.kernel.org
Subject: Re: In this partition scheme, grub does not find md information?
Date: Tue, 29 Jan 2008 18:44:20 -0500 [thread overview]
Message-ID: <479FBA54.6010009@tmr.com> (raw)
In-Reply-To: <479F7FCD.7030106@pobox.com>
Moshe Yudkowsky wrote:
> I'd like to thank everyone who wrote in with comments and
> explanations. And in particular it's nice to see that I'm not the only
> one who's confused.
>
> I'm going to convert back to the RAID 1 setup I had before for /boot,
> 2 hot and 2 spare across four drives. No, that's wrong: 4 hot makes
> the most sense.
>
> And given that RAID 10 doesn't seem to confer (for me, as far as I can
> tell) advantages in speed or reliability -- or the ability to mount
> just one surviving disk of a mirrored pair -- over RAID 5, I think
> I'll convert back to RAID 5, put in a hot spare, and do regular
> backups (as always). Oh, and use reiserfs with data=journal.
>
Depending on near/far choices, raid10 should be faster than raid5, with
far read should be quite a bit faster. You can't boot off raid10, and if
you put your swap on it many recovery CDs won't use it. But for general
use and swap on a normally booted system it is quite fast.
> Comments back:
>
> Peter Rabbitson wrote:
>
>> Maybe you are, depending on your settings, but this is beyond the
>> point. No matter what 1+0 you have (linux, classic, or otherwise) you
>> can not boot from it, as there is no way to see the underlying
>> filesystem without the RAID layer.
>
> Sir, thank you for this unequivocal comment. This comment clears up
> all my confusion. I had a wrong mental model of how file system maps
> work.
>
>> With the current state of affairs (available mainstream bootloaders)
>> the rule is:
>> Block devices containing the kernel/initrd image _must_ be either:
>> * a regular block device (/sda1, /hda, /fd0, etc.)
>> * or a linux RAID 1 with the superblock at the end of the device
>> (0.9 or 1.2)
>
> Thaks even more: 1.2 it is.
>
>> This is how you find the actual raid version:
>>
>> mdadm -D /dev/md[X] | grep Version
>>
>> This will return a string of the form XX.YY.ZZ. Your superblock
>> version is XX.YY.
>
> Ah hah!
>
> Mr. Tokarev wrote:
>
>> By the way, on all our systems I use small (256Mb for small-software
>> systems,
>> sometimes 512M, but 1G should be sufficient) partition for a root
>> filesystem
>> (/etc, /bin, /sbin, /lib, and /boot), and put it on a raid1 on all...
>> ... doing [it]
>> this way, you always have all the tools necessary to repair a damaged
>> system
>> even in case your raid didn't start, or you forgot where your root
>> disk is
>> etc etc.
>
> An excellent idea. I was going to put just /boot on the RAID 1, but
> there's no reason why I can't add a bit more room and put them all
> there. (Because I was having so much fun on the install, I'm using 4GB
> that I was going to use for swap space to mount base install and I'm
> working from their to build the RAID. Same idea.)
>
> Hmmm... I wonder if this more expansive /bin, /sbin, and /lib causes
> hits on the RAID1 drive which ultimately degrade overall performance?
> /lib is hit only at boot time to load the kernel, I'll guess, but /bin
> includes such common tools as bash and grep.
>
>> Also, placing /dev on a tmpfs helps alot to minimize number of writes
>> necessary for root fs.
>
> Another interesting idea. I'm not familiar with using tmpfs (no need,
> until now); but I wonder how you create the devices you need when
> you're doing a rescue.
>
> Again, my thanks to everyone who responded and clarified.
>
--
Bill Davidsen <davidsen@tmr.com>
"Woe unto the statesman who makes war without a reason that will still
be valid when the war is over..." Otto von Bismark
next prev parent reply other threads:[~2008-01-29 23:44 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-29 4:44 In this partition scheme, grub does not find md information? Moshe Yudkowsky
2008-01-29 5:08 ` Neil Brown
2008-01-29 11:02 ` Moshe Yudkowsky
2008-01-29 11:14 ` Peter Rabbitson
2008-01-29 11:29 ` Moshe Yudkowsky
2008-01-29 14:09 ` Michael Tokarev
2008-01-29 14:07 ` Michael Tokarev
2008-01-29 14:47 ` Peter Rabbitson
2008-01-29 15:13 ` Michael Tokarev
2008-01-29 15:41 ` Peter Rabbitson
2008-01-29 16:51 ` Michael Tokarev
2008-01-29 17:51 ` Keld Jørn Simonsen
2008-01-29 16:16 ` Moshe Yudkowsky
2008-01-29 16:34 ` Peter Rabbitson
2008-01-29 19:34 ` Moshe Yudkowsky
2008-01-29 20:21 ` Keld Jørn Simonsen
2008-01-29 22:14 ` Moshe Yudkowsky
2008-01-29 23:45 ` Bill Davidsen
2008-01-30 0:13 ` Moshe Yudkowsky
2008-01-30 22:36 ` Bill Davidsen
2008-01-30 0:17 ` Keld Jørn Simonsen
2008-01-29 23:44 ` Bill Davidsen [this message]
2008-01-30 0:22 ` Keld Jørn Simonsen
2008-01-30 0:26 ` Peter Rabbitson
2008-01-30 22:39 ` Bill Davidsen
2008-01-30 0:32 ` Moshe Yudkowsky
2008-01-30 0:53 ` Keld Jørn Simonsen
2008-01-30 1:00 ` Moshe Yudkowsky
2008-01-31 14:40 ` Bill Davidsen
2008-01-30 13:11 ` Michael Tokarev
2008-01-30 14:10 ` Moshe Yudkowsky
2008-01-30 14:41 ` Michael Tokarev
2008-01-31 14:59 ` Bill Davidsen
2008-02-02 20:17 ` Bill Davidsen
2008-01-30 12:01 ` Peter Rabbitson
2008-01-29 16:42 ` Michael Tokarev
2008-01-29 16:26 ` Keld Jørn Simonsen
2008-01-29 16:46 ` Michael Tokarev
2008-01-29 18:01 ` Keld Jørn Simonsen
2008-01-30 13:37 ` Michael Tokarev
2008-01-30 14:47 ` Peter Rabbitson
2008-01-30 15:21 ` Keld Jørn Simonsen
2008-01-30 15:35 ` Peter Rabbitson
2008-01-30 15:46 ` Loop devices to RAID? (was Re: In this partition scheme, grub does not find md information?) Moshe Yudkowsky
2008-01-30 15:56 ` Tim Southerwood
2008-01-29 15:57 ` In this partition scheme, grub does not find md information? Moshe Yudkowsky
2008-01-29 16:37 ` Keld Jørn Simonsen
2008-01-29 16:57 ` Michael Tokarev
2008-01-30 11:03 ` David Greaves
2008-01-30 11:44 ` Moshe Yudkowsky
2008-01-30 12:00 ` WRONG INFO (was Re: In this partition scheme, grub does not find md information?) Peter Rabbitson
2008-01-30 12:41 ` David Greaves
2008-01-30 13:39 ` Michael Tokarev
2008-02-04 16:49 ` In this partition scheme, grub does not find md information? John Stoffel
2008-02-04 17:26 ` Michael Tokarev
2008-01-30 11:03 ` David Greaves
2008-01-29 14:48 ` Keld Jørn Simonsen
2008-01-29 16:00 ` Moshe Yudkowsky
2008-01-29 16:25 ` Peter Rabbitson
2008-01-29 14:04 ` Keld Jørn Simonsen
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=479FBA54.6010009@tmr.com \
--to=davidsen@tmr.com \
--cc=linux-raid@vger.kernel.org \
--cc=mjt@tls.msk.ru \
--cc=moshe@pobox.com \
--cc=rabbit+list@rabbit.us \
/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).