All of lore.kernel.org
 help / color / mirror / Atom feed
From: wopp@parplies.de
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] RAID 1 on Device Mapper - best practices?
Date: Wed Oct 22 08:02:02 2003	[thread overview]
Message-ID: <20031021171817.GA28462@mail.parplies.de> (raw)
In-Reply-To: <200310172212.06301.mike@gaima.co.uk>

[-- Attachment #1: Type: text/plain, Size: 3802 bytes --]

Hi all,

Mike Williams wrote on 17.10.2003 at 22:12:06 [Re: [linux-lvm] RAID 1 on Device Mapper - best practices?]:
> On Friday 17 October 2003 21:48, John Stoffel wrote: 
> > Well, it could make more sense that way, but I was trying to get it do
> > that I could move and expand/shrink the filesystems as needed on the
> > various volumes.
> 
> Ahh, but that's the beauty of RAID and LVM, what you end up with is just
> another block device. Which ever way you do it you'll get the same benefit.

I believe that is not true. How do you resize a RAID device? The only
option I can think of is to re-create it, which is clearly beside the 
point. With LVM on top of RAID, you can lvextend (or lvreduce), pvmove
and so on - where's the problem?

To put it differently, LVM devices are not just "another block device",
they're resizeable block devices. You get this benefit at the level you use
LVM on. Below RAID it's not really worth much (which is probably why Debian
starts RAID first).

> > The other downside of the MD underneath LVM is that when a MD RAID
> > goes bad, I need to resync the entire disk.

I've thought about that too. At the moment, I'm experimenting with several
disk partitions on each physical disk and RAID-1 devices made up of one
partition of each disk. Each MD is a PV in my VG. This way, if one
partition fails (i.e. runs in degenerated mode) the others will still be
mirrored. Maybe some ASCII-art can make this a bit clearer:

     +------+   +------+
     | hda1 | + | hdb1 |  -> md0 \
     +------+   +------+          +- VG0
     | hda2 | + | hdb2 |  -> md1 /
     +------+   +------+

[Yes, I'd prefer sda/sdb too ;-]

I'm not totally happy with this setup, because it's partly pointless :).
First of all, I'd like to point out that redundancy-providing RAID is,
PRIMARILY, a means of minimizing downtime, NOT a means of preventing data
loss. RAID reacts on disk failures (which affect the whole disk) and on
read/write errors. In these cases, normal operation proceeds without
interruption. If your data goes bad on disk but does not trigger a read
error, RAID doesn't care, i.e. it does not compare the contents of your
mirrors. Backups are against data loss and data corruption.

Of course, there's also the case of a partial failure (surface damage or
something the like) - I've just recently experienced it myself. In my case,
it hit a non-mirrored LVM PV, resulting in one or more filesystems being
remounted read-only, which was a pain ...
I've replaced the faulty disk with a new one, and now everything is
mirrored as described above (so "next time", there will hopefully be no
service interruption due to an FS which is unexpectedly read-only).
So? I'd have had to resync the whole disk in any case.

My conclusion is: Either you're only "playing around" with RAID, in which
case you should probably do whatever is most fun or gives you the most
learning experience, or you're serious about it, in which case you'll
immediately replace any disk showing errors anyway.


Just for the sake of contradicting myself, I'd like to add one thing which
is not stressed often enough here for my taste :).

People, if you're spreading out file systems over several physical disks
without providing some sort of redundancy, you're asking for trouble.
You're increasing the points of failure, making it much more probable for
a hardware error on any one of the disks to take all your data with it.
This is the reason RAID level 1+0 and RAID level 5 (yes, and 4 ...) were
invented shortly after RAID 0. Learn from other people's mistakes :).

Redundancy does HELP to keep your data safe :).


I'm sure more people have thought about these topics. What are your
conclusions?

Regards,
Holger

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2003-10-22  8:02 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-17 15:10 [linux-lvm] RAID 1 on Device Mapper - best practices? John Stoffel
2003-10-17 15:29 ` Mike Williams
2003-10-17 15:51   ` John Stoffel
2003-10-17 15:56     ` [linux-lvm] " Måns Rullgård
2003-10-17 16:13     ` [linux-lvm] " Mike Williams
2003-10-22  8:02       ` wopp [this message]
2003-10-23 17:52         ` [linux-lvm] Drive gone bad, now what? Gert van der Knokke
2003-10-23 18:59           ` John Stoffel
2003-10-24  0:22             ` Rickard Olsson
2003-10-24 15:23               ` Gert van der Knokke
2003-10-27  8:59                 ` John Stoffel
2003-10-27 18:28                   ` Gert van der Knokke
2003-10-28  2:20                     ` Patrick Caulfield
2003-10-28 13:52                       ` Gert van der Knokke
2003-10-28 14:14                         ` Jayson Garrell
2003-10-28 14:30                           ` Gert van der Knokke
2003-10-28 15:36                             ` John Stoffel
2003-10-29  8:54                               ` Brian J. Murrell
2003-10-30  8:00                                 ` Petro
2003-11-26 10:15                                   ` Harri Haataja
2003-10-28 16:06                             ` Glen Harris
2003-10-28 14:55                         ` Chris Cox
2003-10-28  8:57                     ` Mark H. Wood
2003-10-28  8:40                 ` Mark H. Wood
2003-10-23 18:53         ` [linux-lvm] RAID 1 on Device Mapper - best practices? John Stoffel
2003-11-20  7:20         ` Gregory K. Ruiz-Ade
2003-11-20  8:33           ` [linux-lvm] " Måns Rullgård
2003-11-21 13:02             ` Micah Anderson

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=20031021171817.GA28462@mail.parplies.de \
    --to=wopp@parplies.de \
    --cc=linux-lvm@sistina.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.