From: Michael Orlitzky <michael@orlitzky.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Auto-Rebuild md RAID Arrays?
Date: Wed, 20 Apr 2011 00:47:12 -0400 [thread overview]
Message-ID: <4DAE6550.2050603@orlitzky.com> (raw)
In-Reply-To: <BANLkTim9EBvpGffrOQRPhUU09kfcyAQmBw@mail.gmail.com>
On 04/19/11 17:05, Andrew Wilkinson wrote:
> Hello All,
>
> I am in the research phase of building a Gentoo-based backup/NAS target
> using md software RAID or (maybe) btrfs or zfs. One thing that I am not
> finding much info about is any facility for automatically rebuilding an
> array when a new, matching drive is inserted. At this stage, the plan
> is to use four identical drives in a RAID10-style setup.
>
> Is any here aware of the right way to configure this?
mdadm expects you to know the drive name (e.g. /dev/sdX) of the drive
you'd like to operate on. If you are real confident,
a) in your scripting abilities
b) that the new drive will have the same name as the replaced drive
then you could write a script that removes all failed drives on startup
(there's an mdadm --manage command that does that) and adds the new ones
in their place.
I probably wouldn't risk it unless you're going to mail the box to
Alaska and it would be a great inconvenience to do manually. If someone
accidentally switches two SATA cables your script could wind up doing
some damage.
Btrfs and ZFS I can't speak to.
prev parent reply other threads:[~2011-04-20 4:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-19 21:05 [gentoo-user] Auto-Rebuild md RAID Arrays? Andrew Wilkinson
2011-04-20 4:47 ` Michael Orlitzky [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=4DAE6550.2050603@orlitzky.com \
--to=michael@orlitzky.com \
--cc=gentoo-user@lists.gentoo.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