linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: linux-raid@vger.kernel.org
Subject: Re: ext3 journal on software raid (was Re: PROBLEM: Kernel 2.6.10 crashing repeatedly and hard)
Date: Tue, 04 Jan 2005 14:21:23 +0300	[thread overview]
Message-ID: <41DA7C33.8090705@tls.msk.ru> (raw)
In-Reply-To: <200501040115.36729.maarten@ultratux.net>

maarten wrote:
> On Monday 03 January 2005 22:36, Guy wrote:
> 
>>Maarten said:
>>"Doing the math, the outcome is still (200% divided by four)= 50%.
>>Ergo: the same as with a single disk.  No change."
>>
>>Guy said:
>>"I bet a non-mirror disk has similar risk as a RAID1."
>>
>>Guy and Maarten agree, but Maarten does a better job of explaining it!  :)
>>
>>I also agree with most of what Maarten said below, but not mirroring
>>swap???
> 
> 
> Yeah... bad choice in hindsight.  
> But, there once was a time, a long long time ago, that the software-raid howto 
> explicitly stated that running swap on raid was a bad idea, and that by 

In 2.2, and probably in early 2.4, there indeed was a prob with having
swap on raid (md) array.  "Random" system lockups, especially during
the array recovery.  That problem(s) has been fixed long ago.  But I
think the howto in question tells about something different...

> telling the kernel all swap partitions had the same priority, the kernel 
> itself would already 'raid' the swap, ie. divide equally between the swap 
> spaces. I'm sure you can read it back somewhere.

> Now we know better, and we realize that that will indeed loadbalance between 
> the various swap partitions, but it will not provide redundancy at all.  
> Oh well, new insights huh ? ;-)

...that is, the howto tells about raid0 setup (striping), and yes, there's
no "r" in "raid0" really (but there IS an "anti-r", as raid0 array is LESS
reliable than a single drive).  That to say: instead of placing swap on
raid0 array, let the swap code itself to perform the striping - swap code
"knows better" about its needs.  This is still applies to recent kernels.
But here, we aren't talking about *reilable* swap, we're talking about
*fast* swap (raid1 aka reliable vs raid0 aka fast).  There's no code in
"swap subsystem" to mirror swap space, but there IS such a code in md.
Hence, if you want reliability, use raid1 arrays for swap space.  In the
same time, if you want speed *too*, use multiple raid1 arrays with equal
priority as swap areas (dunno how current raid10 code compares to "swap
striping" on top of raid1 arrays, but that probably makes very small
difference).

Ie, nothing wrong with howto, which is talking about fast swap (sure it'd
be good to mention reliability too), and nothing wrong with having raid
arrays as swap (esp. when the abovementioned bug(s) has been fixed). Or,
"nothing new"... ;)

I learned to place swap to raid1 arrays instead of striping it (as suggested
by the howto) the hard way, going the full cycle recovering damaged data
because system got foobared after one component (stripe) of swapspace was
lost, and I don't want to repeat that recovery again. ;)

> Maarten

/mjt

  reply	other threads:[~2005-01-04 11:21 UTC|newest]

Thread overview: 130+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200501030916.j039Gqe23568@inv.it.uc3m.es>
2005-01-03 10:17 ` ext3 journal on software raid (was Re: PROBLEM: Kernel 2.6.10 crashing repeatedly and hard) Guy
2005-01-03 11:31   ` Peter T. Breuer
2005-01-03 17:34     ` Guy
2005-01-03 19:20       ` ext3 Gordon Henderson
2005-01-03 19:47         ` ext3 Morten Sylvest Olsen
2005-01-03 20:05           ` ext3 Gordon Henderson
2005-01-03 17:46     ` ext3 journal on software raid (was Re: PROBLEM: Kernel 2.6.10 crashing repeatedly and hard) maarten
2005-01-03 19:52       ` maarten
2005-01-03 20:41         ` Peter T. Breuer
2005-01-03 23:19           ` Peter T. Breuer
2005-01-03 23:46             ` Neil Brown
2005-01-04  0:28               ` Peter T. Breuer
2005-01-04  1:18                 ` Alvin Oga
2005-01-04  4:29                   ` Neil Brown
2005-01-04  8:43                     ` Peter T. Breuer
2005-01-04  2:07                 ` Neil Brown
2005-01-04  2:16                   ` Ewan Grantham
2005-01-04  2:22                     ` Neil Brown
2005-01-04  2:41                       ` Andy Smith
2005-01-04  3:42                         ` Neil Brown
2005-01-04  9:50                           ` Peter T. Breuer
2005-01-04 14:15                             ` David Greaves
2005-01-04 15:20                               ` Peter T. Breuer
2005-01-04 16:42                             ` Guy
2005-01-04 17:46                               ` Peter T. Breuer
2005-01-04  9:30                         ` Maarten
2005-01-04 10:18                           ` Peter T. Breuer
2005-01-04 13:36                             ` Maarten
2005-01-04 14:13                               ` Peter T. Breuer
2005-01-04 19:22                                 ` maarten
2005-01-04 20:05                                   ` Peter T. Breuer
2005-01-04 21:38                                     ` Guy
2005-01-04 23:53                                       ` Peter T. Breuer
2005-01-05  0:58                                       ` Mikael Abrahamsson
2005-01-04 21:48                                     ` maarten
2005-01-04 23:14                                       ` Peter T. Breuer
2005-01-05  1:53                                         ` maarten
2005-01-04  9:46                         ` Peter T. Breuer
2005-01-04 19:02                           ` maarten
2005-01-04 19:12                             ` David Greaves
2005-01-04 21:08                             ` Peter T. Breuer
2005-01-04 22:02                               ` Brad Campbell
2005-01-04 23:20                                 ` Peter T. Breuer
2005-01-05  5:44                                   ` Brad Campbell
2005-01-05  9:00                                     ` Peter T. Breuer
2005-01-05  9:14                                       ` Brad Campbell
2005-01-05  9:28                                         ` Peter T. Breuer
2005-01-05  9:43                                           ` Brad Campbell
2005-01-05 15:09                                             ` Guy
2005-01-05 15:52                                               ` maarten
2005-01-05 10:04                                           ` Andy Smith
2005-01-04 22:21                               ` Neil Brown
2005-01-05  0:08                                 ` Peter T. Breuer
2005-01-04 22:29                               ` Neil Brown
2005-01-05  0:19                                 ` Peter T. Breuer
2005-01-05  1:19                                   ` Jure Pe_ar
2005-01-05  2:29                                     ` Peter T. Breuer
2005-01-05  0:38                               ` maarten
2005-01-04  9:40                   ` Peter T. Breuer
2005-01-04 11:57                     ` Which drive gets read in case of inconsistency? [was: ext3 journal on software raid etc] Michael Tokarev
2005-01-04 12:40                       ` Morten Sylvest Olsen
2005-01-04 12:44                       ` Peter T. Breuer
2005-01-04 14:22                         ` Maarten
2005-01-04 14:56                           ` Peter T. Breuer
2005-01-04 14:03                     ` ext3 journal on software raid (was Re: PROBLEM: Kernel 2.6.10 crashing repeatedly and hard) David Greaves
2005-01-04 14:07                       ` Peter T. Breuer
2005-01-04 14:43                         ` David Greaves
2005-01-04 15:12                           ` Peter T. Breuer
2005-01-04 16:54                             ` David Greaves
2005-01-04 17:42                               ` Peter T. Breuer
2005-01-04 19:12                                 ` David Greaves
2005-01-04  0:45           ` maarten
2005-01-04 10:14             ` Peter T. Breuer
2005-01-04 13:24               ` Maarten
2005-01-04 14:05                 ` Peter T. Breuer
2005-01-04 15:31                   ` Maarten
2005-01-04 16:21                     ` Peter T. Breuer
2005-01-04 20:55                       ` maarten
2005-01-04 21:11                         ` Peter T. Breuer
2005-01-04 21:38                         ` Peter T. Breuer
2005-01-04 23:29                           ` Guy
2005-01-04 19:57                     ` Mikael Abrahamsson
2005-01-04 21:05                       ` maarten
2005-01-04 21:26                         ` Alvin Oga
2005-01-04 21:46                         ` Guy
2005-01-03 20:22       ` Peter T. Breuer
2005-01-03 23:05         ` Guy
2005-01-04  0:08         ` maarten
2005-01-04  8:57         ` I'm glad I don't live in Spain (was Re: ext3 journal on software raid) David L. Smith-Uchida
2005-01-03 21:36       ` ext3 journal on software raid (was Re: PROBLEM: Kernel 2.6.10 crashing repeatedly and hard) Guy
2005-01-04  0:15         ` maarten
2005-01-04 11:21           ` Michael Tokarev [this message]
2005-01-03  9:30 Peter T. Breuer
  -- strict thread matches above, loose matches on Subject: below --
2004-12-30  0:31 PROBLEM: Kernel 2.6.10 crashing repeatedly and hard Georg C. F. Greve
2004-12-30 16:23 ` Georg C. F. Greve
2004-12-30 17:39   ` Peter T. Breuer
2004-12-30 19:50     ` Michael Tokarev
2004-12-30 21:39       ` Peter T. Breuer
2005-01-02 19:42         ` ext3 journal on software raid (was Re: PROBLEM: Kernel 2.6.10 crashing repeatedly and hard) Andy Smith
2005-01-02 20:18           ` Peter T. Breuer
2005-01-03  0:30             ` Andy Smith
2005-01-03  6:41               ` Neil Brown
2005-01-03  8:37                 ` Peter T. Breuer
2005-01-03  8:03               ` Peter T. Breuer
2005-01-03  8:58                 ` Guy
2005-01-03 12:11                 ` Michael Tokarev
2005-01-03 14:23                   ` Peter T. Breuer
2005-01-03 18:30                     ` maarten
2005-01-03 21:36                     ` Michael Tokarev
2005-01-05  9:56           ` Andy Smith
2005-01-05 10:44             ` Alvin Oga
2005-01-05 10:56               ` Brad Campbell
2005-01-05 11:39                 ` Alvin Oga
2005-01-05 12:02                   ` Brad Campbell
2005-01-05 13:23                     ` Alvin Oga
2005-01-05 13:33                       ` Brad Campbell
2005-01-05 14:12                 ` Erik Mouw
2005-01-05 14:37                   ` Michael Tokarev
2005-01-05 17:11                     ` Erik Mouw
2005-01-06  5:41                       ` Brad Campbell
2005-01-05 15:17                 ` Guy
2005-01-05 15:33                   ` Alvin Oga
2005-01-05 16:22                     ` Michael Tokarev
2005-01-05 17:23                       ` Peter T. Breuer
2005-01-05 16:23                     ` Andy Smith
2005-01-05 16:30                       ` Andy Smith
2005-01-05 17:07                     ` Guy
2005-01-05 17:21                       ` Alvin Oga
2005-01-05 17:32                         ` Guy
2005-01-05 18:37                           ` Alvin Oga
2005-01-05 17:26                       ` David Greaves
2005-01-05 18:16                         ` Peter T. Breuer
2005-01-05 18:28                           ` Guy
2005-01-05 18:26                         ` Guy
2005-01-05 15:48                   ` Peter T. Breuer

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=41DA7C33.8090705@tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --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).