All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Brown <david.brown@hesbynett.no>
To: John Crisp <john@reetspetit.net>
Cc: linux-raid@vger.kernel.org
Subject: Re: RAID 1 partition with hot spare shows [UUU] ?
Date: Wed, 18 Apr 2012 11:09:53 +0200	[thread overview]
Message-ID: <4F8E84E1.1040407@hesbynett.no> (raw)
In-Reply-To: <4F8E7E73.5070909@reetspetit.net>

On 18/04/2012 10:42, John Crisp wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 18/04/12 01:12, NeilBrown wrote:
>> On Wed, 18 Apr 2012 00:42:54 +0200 John Crisp wrote:
>>>
>>> I don't understand how md1 shows [UUU] ??
>>
>> You have a RAID1 with 3 devices.  What it difficult to comprehend
>> about that.
>
> Probably a misunderstanding of the terminology - in Hicksville where I
> live mirrored usually just means a pair ;-)
>
>> Each block is written to all three devices.
>
> I didn't realise that a RAID 1 could have more than two devices. Most
> documentation around always illustrates a RAID 1 with a pair of drives
> and hence the confusion.
>

A lot of hardware raid systems (and software systems, such as Window's 
"dynamic disks") are limited to 2 devices in a raid1 set.  The world of 
Linux md raid is very different - here flexibility is the key.  Amongst 
other things, you can have raid1 sets with any number of devices - 
you've seen it with 3 devices, but you can also make them with just one 
device.  And you can also use all sorts of different disks in the set, 
not just identical ones.

You might well ask what use a 1-disk raid1 "mirror" is.  The answer is 
not much use on its own - but very useful in that you can add and remove 
disks whenever you want.  Suppose, for example, you have a single disk 
in the machine, and you want to exchange it for a new, bigger disk.  If 
the disk is a 1-disk raid1 mirror, you can do it quickly and safely 
without going off-line (except if you need to power-off to do the actual 
disk swapping).  Attach your new, bigger disk.  Add it to the raid1 
array.  Wait for the sync to complete (using the disk normally all this 
time).  Fail and remove the original disk.  Your new disk is now a 
1-disk "mirror" with the same data.  Grow the raid to fill the new disk, 
then grow your filesystems (or physical volumes for LVM) to use the new 
space.

There are lots of cool things you can do when you are not limited to 
hardware raid mindsets!

      reply	other threads:[~2012-04-18  9:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-17 22:42 RAID 1 partition with hot spare shows [UUU] ? John Crisp
2012-04-17 23:12 ` NeilBrown
2012-04-18  7:42   ` David Brown
2012-04-18  8:42   ` John Crisp
2012-04-18  9:09     ` David Brown [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=4F8E84E1.1040407@hesbynett.no \
    --to=david.brown@hesbynett.no \
    --cc=john@reetspetit.net \
    --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 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.