From: Roman Mamedov <rm@romanrm.net>
To: antlists <antlists@youngman.org.uk>
Cc: William Morgan <therealbrewer@gmail.com>, linux-raid@vger.kernel.org
Subject: Re: Grow array and convert from raid 5 to 6
Date: Mon, 2 Mar 2020 00:48:06 +0500 [thread overview]
Message-ID: <20200302004806.54852908@natsu> (raw)
In-Reply-To: <fa393999-3f56-0bcf-b097-462a209f1eae@youngman.org.uk>
On Sun, 1 Mar 2020 19:07:56 +0000
antlists <antlists@youngman.org.uk> wrote:
> --add disk2 ..." to give an array with 4 active drives and 4 spares.
> Then you can upgrade to raid 6 - "--grow --level=6 --raid-devices=8".
This feels risky and unclear, for instance what will be the array state if 2
disks fail during this conversion? Would it depend on which ones have failed?
Instead I'd suggest doing this in two steps. First and foremost, add one disk
and convert to RAID6 in a special way:
--grow --level=6 --raid-devices=5 --layout=preserve
...due to the last bit (see the man page), this will be really fast and will
not even rewrite existing data on the old 4 disks; But you will get a
full-blown RAID6 redundancy array, albeit with a weird on-disk layout.
Then add 3 remaining disks, and
--grow --level=6 --raid-devices=8 --layout=normalise
Additionally, before you even begin, consider do you really want to go with
such a setup in the first place. I used to run large RAID6s with a single
filesystem on top, but then found them to be too much of a single point of
failure, and now moved on to merging individual disks on the FS level (using
MergerFS or mhddfs) for convenience, and doing 100% backups of everything
for data loss protection. Backups which you have to do anyway, as anyone will
tell you RAID is not a replacement for backup; but with a RAID6 there's too
much of a temptation to skimp on them, which tends to bite badly in the end.
Also back then it seemed way too expensive to backup everything, now with
todays HDD sizes and prices that's no longer so.
--
With respect,
Roman
next prev parent reply other threads:[~2020-03-01 19:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-01 18:07 Grow array and convert from raid 5 to 6 William Morgan
2020-03-01 19:07 ` antlists
2020-03-01 19:48 ` Roman Mamedov [this message]
2020-03-01 20:16 ` antlists
2020-03-02 23:57 ` William Morgan
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=20200302004806.54852908@natsu \
--to=rm@romanrm.net \
--cc=antlists@youngman.org.uk \
--cc=linux-raid@vger.kernel.org \
--cc=therealbrewer@gmail.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 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).