linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: Moshe Yudkowsky <moshe@pobox.com>
Cc: Peter Rabbitson <rabbit+list@rabbit.us>, linux-raid@vger.kernel.org
Subject: Re: In this partition scheme, grub does not find md information?
Date: Wed, 30 Jan 2008 16:11:50 +0300	[thread overview]
Message-ID: <47A07796.2010805@msgid.tls.msk.ru> (raw)
In-Reply-To: <479F7FCD.7030106@pobox.com>

Moshe Yudkowsky wrote:
[]
> 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.

You don't care of the speed of your root filesystem.  Note there are
two speeds - write and read.

You only write to root (including /bin and /lib and so on) during
software (re)install and during some configuration work (writing
/etc/password and the like).  First is very infrequent, and both
needs only a few writes, -- so write speed isn't important.

Read speed also not that important, because most commonly used
stuff from there will be cached anyway (like libc.so, bash and
grep), and again, reading such tiny stuff - it doesn't matter
if it's "fast" raid or a slow one.

What you do care about the speed of devices where your large,
commonly accessed/modified files - such as video files esp.
when you want streaming video - are resides.  And even here,
unless you've special requirement for speed, you will not
notice any difference between "slow" and "fast" raid levels.

For typical filesystem usage, raid5 works good for both reads
and (cached, delayed) writes.  It's workloads like databases
where raid5 performs badly.

What you do care about is your data integrity.  It's not really
interesting to reinstall a system or lose your data in case if
something goes wrong, and it's best to have recovery tools as
easily available as possible.  Plus, amount of space you need.

>> 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.

When you start udev, your /dev will be on tmpfs.

/mjt

  parent reply	other threads:[~2008-01-30 13:11 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
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 [this message]
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=47A07796.2010805@msgid.tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=linux-raid@vger.kernel.org \
    --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).