From: Jeremy Friesner <jaf@lcsaudio.com>
To: linux-raid@vger.kernel.org
Cc: jeffk@jdkoftinoff.com, ronb@lcsaudio.com
Subject: Question about fault-tolerant redundant disk reading
Date: Tue, 30 Mar 2004 12:21:54 -0800 [thread overview]
Message-ID: <200403301221.54747.jaf@lcsaudio.com> (raw)
Hi all,
I'm trying to add some basic drive-failure tolerance into my audio playback
system, and I could use some advice as to the best way to go about it.
Some background info: My company is working on a high-end(ish) embedded audio
playback device. It's a PowerPC-based computer-on-a-card with an external
SCSI connector, running Linux 2.4. The idea is that the user will connect
one or more external SCSI drives to this device, then power it on, and our
software will automount any ext3 partitions it finds on these drives, look
for audio files in the partitions, and play the audio out over a speaker.
So far, so good. But what we'd like to add is some fault tolerance --
specifically, if one of the drives in the system was to fail or lose power,
we'd like the system to seamlessly fail-over to another drive so that the
music playback isn't interrupted.
Some possibilities:
1) Do it without RAID. This would be my preference if it is possible, since
it would be the simplest for the user to set up. Ideally all the user would
have to do is copy the same audio files onto several ext3-formatted drives
and plug them all in. Our audio-playback program would read the files as
usual, but if the read() system call returned an error, we would assume that
the drive was toasted and would switch over to reading from the file with the
same name on another drive. The only problem is that it's not clear that
Linux can be made to handle SCSI drive errors quickly and cleanly enough for
this to work... is this idea practical? If so, what steps need to be taken
to obtain "quick-fail" behaviour?
2) Use software RAID. This would require more setup work and knowledge on the
part of the user, but it might handle drive failures more gracefully. Is
software RAID capable of handling a failover promptly enough to avoid audio
dropouts? (i.e. within 3-5 seconds?)
3) Use a separate hardware RAID device so that the Linux card never even
realizes a failure occurred. I think this would be the most reliable
solution, but we're trying to keep the price down and this would blow the
budget for a lot of our customers.
If someone knowledgable can provide some advice, I'd be very appreciative.
Thanks,
Jeremy Friesner
Level Control Systems
jaf@lcsaudio.com
next reply other threads:[~2004-03-30 20:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-30 20:21 Jeremy Friesner [this message]
2004-03-31 15:38 ` Question about fault-tolerant redundant disk reading Mark Bellon
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=200403301221.54747.jaf@lcsaudio.com \
--to=jaf@lcsaudio.com \
--cc=jeffk@jdkoftinoff.com \
--cc=linux-raid@vger.kernel.org \
--cc=ronb@lcsaudio.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).