All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pieter De Wit <pieter@insync.za.net>
To: Krzysztof Adamski <k-list@adamski.org>
Cc: linux-raid@vger.kernel.org
Subject: Re: Looking for help how to migrate 2disk RAID1 to 3 disk RAID6
Date: Thu, 02 Jan 2014 11:06:03 +1300	[thread overview]
Message-ID: <52C4914B.90301@insync.za.net> (raw)
In-Reply-To: <1388589051.5058.43.camel@oxygen.netxsys.com>

On 2/01/2014 04:10, Krzysztof Adamski wrote:
> On Wed, 2014-01-01 at 23:33 +1300, Pieter De Wit wrote:
>
> Based of what you are saying you probably would not believe that RAID5
> can be made with 2 drives, DATA + 1 PARITY. But Linux RAID supports that
> just fine (thanks Neil).
Yeah - you right there - I can't see why you would have a "RAID1 set 
with parity", nor can I see how the calculations would work. Then again, 
I am not a MD developer and I am not going to look at the source code. I 
would like to know what the command line would look like to create this, 
for educational purposes.
> Hot spares are a joke, you have to wait for a drive to fail before you
> use them, that can be to late. A 3 drive RAID1 make more sense. On one
> system I have a 8 drive RAID1 (the /boot partition) the / (root)
> partition is a 8 drive RAID6.
>
>
IMHO, you have answered your question of what RAID level you need to 
run, RAID1. As for your original question of the data migration, I would 
move the data over on a filesystem level. I used to have this neat trick 
where by I created soft symlink between the "new" and "old" locations, 
from memory, it only works between different block devices. You then 
instruct linux to copy the data to "itself". Since it's a symlink it 
copies the data to the new device. It was something along those lines. 
You need to mount the source as read only, iirc. Contact me off list if 
you want more details.

Cheers,

Pieter

      reply	other threads:[~2014-01-01 22:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-01  0:51 Looking for help how to migrate 2disk RAID1 to 3 disk RAID6 Krzysztof Adamski
2014-01-01  1:02 ` Pieter De Wit
2014-01-01  4:54   ` Krzysztof Adamski
2014-01-01  7:15     ` Tomas M
2014-01-01 15:02       ` Krzysztof Adamski
2014-01-01 10:33     ` Pieter De Wit
2014-01-01 15:10       ` Krzysztof Adamski
2014-01-01 22:06         ` Pieter De Wit [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=52C4914B.90301@insync.za.net \
    --to=pieter@insync.za.net \
    --cc=k-list@adamski.org \
    --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.