From: "Martin K. Petersen" <mkp@mkp.net>
To: Guy <bugzilla@watkins-home.com>
Cc: 'Frank Wittig' <fw@weisshuhn.de>,
rv@eychenne.org, linux-raid@vger.kernel.org
Subject: Re: Questions about software RAID
Date: Wed, 20 Apr 2005 11:49:12 -0400 [thread overview]
Message-ID: <yq1ekd5cutj.fsf@wilson.lab.mkp.net> (raw)
In-Reply-To: <200504200415.j3K4FWm29946@www.watkins-home.com> (Guy's message of "Wed, 20 Apr 2005 00:15:27 -0400")
>>>>> "Guy" == Guy <bugzilla@watkins-home.com> writes:
Guy> I want the failed disk to light a red LED.
Guy> I want the tray the disk is in to light a red LED.
Guy> I want the cabinet the tray is in to light a red LED.
That's easy when you have a custom hardware RAID enclosure that you
have control over. As you suggest yourself, it's not easy when you
have off the shelf components.
What happens in "real" storage systems is that the SCSI bus is
monitored by a SAF-TE or SES chip. The OS (in this case the RAID
controller firmware) will talk to the SAF-TE device or access the SES
page to get information about hot swap events, failed disks, stopped
fans, busted power supply, etc.
I messed with a daemon to monitor enclosures implementing either of
these two standards during the infancy of hotplug. I should probably
look into that again. But obviously this would only apply to disk
trays with suitable monitoring hardware.
Guy> I want the re-build to the new disk to start.
Are you sure? How do you know that the disk you just inserted is
something you want to use for the RAID? What if you hook up - say - a
USB storage device to back up data before you start messing with
things? You most definitely don't want the RAID to start scribbling
over any random device you hook up to a system with a failed RAID
device.
In the HW RAID enclosure case that's easy - again because the whole
tray is under the array firmware's control.
Definining a generic resync-on-hotplug policy is not trivial. One
policy that might work for most people is sync if a new disk is
inserted on the same address (SCSI controller, channel, id, lun). But
there's no one size fits all policy.
And this is not just because Linux sucks. It's simply that a lot of
the "easy" HW RAID features are a result of appropriately designed
hardware.
We can certainly make Linux work more smoothly on hardware that allows
for monitoring and predictable addressing, etc. But in the low end
it'll have to be a policy defined by the sysadmin. And we probably
want to leave it a sysadmin configurable policy even if the hardware
implements the required magic.
--
Martin K. Petersen Wild Open Source, Inc.
mkp@wildopensource.com http://www.wildopensource.com/
next prev parent reply other threads:[~2005-04-20 15:49 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-19 11:00 Questions about software RAID bernd
2005-04-19 14:40 ` Hervé Eychenne
2005-04-19 15:27 ` David Greaves
2005-04-19 15:54 ` Hervé Eychenne
2005-04-19 16:53 ` Frank Wittig
2005-04-19 17:54 ` Hervé Eychenne
2005-04-19 19:46 ` Frank Wittig
2005-04-20 4:15 ` Guy
2005-04-20 4:47 ` Questions about software RAID - red led Alvin Oga
2005-04-20 7:59 ` Questions about software RAID David Greaves
2005-04-20 9:26 ` Molle Bestefich
2005-04-20 9:32 ` Hervé Eychenne
2005-04-20 17:36 ` Molle Bestefich
2005-04-20 11:16 ` Peter T. Breuer
2005-04-20 12:34 ` Lars Marowsky-Bree
2005-04-20 15:49 ` Martin K. Petersen [this message]
2005-04-21 1:21 ` Guy
-- strict thread matches above, loose matches on Subject: below --
2005-04-18 19:50 tmp
2005-04-18 20:12 ` David Greaves
2005-04-18 23:12 ` tmp
2005-04-19 6:36 ` Peter T. Breuer
2005-04-19 7:15 ` Luca Berra
2005-04-19 8:08 ` David Greaves
2005-04-19 12:18 ` Michael Tokarev
2005-04-18 20:15 ` Peter T. Breuer
2005-04-18 20:50 ` Frank Wittig
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=yq1ekd5cutj.fsf@wilson.lab.mkp.net \
--to=mkp@mkp.net \
--cc=bugzilla@watkins-home.com \
--cc=fw@weisshuhn.de \
--cc=linux-raid@vger.kernel.org \
--cc=rv@eychenne.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).