* [gentoo-user] Auto-Rebuild md RAID Arrays?
@ 2011-04-19 21:05 Andrew Wilkinson
2011-04-20 4:47 ` Michael Orlitzky
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Wilkinson @ 2011-04-19 21:05 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 428 bytes --]
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?
Thanks,
-Andy
[-- Attachment #2: Type: text/html, Size: 461 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [gentoo-user] Auto-Rebuild md RAID Arrays?
2011-04-19 21:05 [gentoo-user] Auto-Rebuild md RAID Arrays? Andrew Wilkinson
@ 2011-04-20 4:47 ` Michael Orlitzky
0 siblings, 0 replies; 2+ messages in thread
From: Michael Orlitzky @ 2011-04-20 4:47 UTC (permalink / raw
To: gentoo-user
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-20 4:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-19 21:05 [gentoo-user] Auto-Rebuild md RAID Arrays? Andrew Wilkinson
2011-04-20 4:47 ` Michael Orlitzky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox