From: Richard Michael <rmichael-raid@edgeofthenet.org>
To: linux-raid@vger.kernel.org
Subject: Auto rebuild of Firewire/USB drive in 3-way RAID1
Date: Tue, 19 Jun 2007 15:40:41 -0400 [thread overview]
Message-ID: <20070619194041.GM6050@server> (raw)
Hello all,
I'm looking for comments on a setup I'm working on..
I'm building three-way mirror with (at least) one removable drive. My
intention is solve the offsite backup problem by allowing my users to
simply unplug the removable drive, take it away, and replug it (or a
replacement later) without having to think about anything. It's
three-way so I have redundancy when the removable is gone.
I'm experimenting with mdadm to figure out various solutions to build
the setup. My approach is to use the PROGRAM feature of mdadm to run a
script when the removable device "fails", the script will briefly sleep
to let subsystems settle down, then call mdadm to remove to failed
device. On reconnect of the device, I can use udev to tell me which
socket the drive was connected (to determine if it's RAID related even I
care about), briefly sleep again, then call mdadm to add the device back
to the array.
I could write a udev rule to make the dev names permanent, i.e.
corresponding to the socket so I don't have to deal with incremental or
varying sda, sdb, sdc, style names. But it might not be worth it..
I'll just be using "mdadm <MD> --remove detached", and "mdadm <MD> --add
<NEW_DEV_PATH>".
I'm just wondering if I understand things correctly. Should I be
looking at writing the array config into mdadm.conf and doing something
mdadm --assemble? I think not because the array will already be active
(and therefore assembled), just degraded.
Thoughts?
Ultimately, I'd like to do this ontop of an EVMS BBR (bad block
relocation) segment manager to buy me time when bad blocks are
encountered on array drives. (As opposed to have the entire drive
offlined immediately.)
Thanks,
Richard
reply other threads:[~2007-06-19 19:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20070619194041.GM6050@server \
--to=rmichael-raid@edgeofthenet.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 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).