From: Roger Heflin <rogerheflin@gmail.com>
To: Matt Garman <matthew.garman@gmail.com>
Cc: linux-raid <linux-raid@vger.kernel.org>
Subject: Re: raid0/jbod/lvm, sorta?
Date: Tue, 29 Dec 2009 18:43:39 -0600 [thread overview]
Message-ID: <4B3AA23B.8060502@gmail.com> (raw)
In-Reply-To: <20091230000357.GA23485@septictank.raw-sewage.fake>
Matt Garman wrote:
> Is there a way, with Linux md (or maybe lvm) to create a single mass
> storage device from many physical drives, but with the property that
> if one drive fails, all data isn't lost, AND no redundancy?
>
> I.e., similar to RAID-0, but if one drive dies, all data (but that
> on the failed drive) is still readily available?
>
> Motivation:
>
> I currently have a four-disc RAID5 device for media storage. The
> typical usage pattern is few writes, many reads, lots of idle time.
> I got to thinking, with proper backups, RAID really only buys me
> availability or performance, neither of which are a priority.
> Modern single-disc speed is more than enough, and high-availability
> isn't a requirement for a home media server.
>
> So I have four discs constantly running, using a fair amount of
> power. And I need more space, so the power consumption only goes
> up.
>
> I experimented a while with letting the drives spindown (hdparm -S),
> but (1) it was obnoxious waiting for all four discs to spinup when I
> wanted the data (they spunup in series---good for the power supply,
> bad for latency); and (2) I felt that having all four discs spinup
> was too much wear and tear on the drives, when, in principle, only
> one drive needed to spin up.
>
> I got to thinking, I could just have a bunch of individual drives,
> let them all spindown, and when data is needed, only spinup the one
> drive that has the data I want. Less wear and tear overall, lower
> overall power consumption, and lower access latency (compared to the
> whole RAID spinup).
>
> I know I could do this manually with symlinks. E.g., have a
> directory like /bigstore that contains symlinks into /mnt/drive1,
> /mnt/drive2, /mnt/drive3, etc. And then if one drive dies, the
> whole store isn't trashed. This seems fairly simple, so I wonder if
> there's not some automatic way to do it. Hence, this email. :)
>
> Thanks for any thoughts or suggestions!
> Matt
>
I was thinking the best way would be to use the raid5 like you are,
but have a "cache" drive/device, the cache device has all filesystem
entries but only points over to the other data (HSM system), and then
when you try to read one of the files it spins things up and copies
that file onto cache (when done with the copy the raid array spins
down). Same thing would be done on recording ... it writes to the
cache device and when either the cache is getting close to full moves
off/syncs the new files onto the raid array, and/or moves all of the
"new" files off every so often via a cron job.
Now, exactly how to write a kernel module or some other service to
manage this I am not sure about, but it would in my case allow me to
spin down a number of spindles for a large portion of the day...and
those things run 5-10w/spindle, so alot of power.
If someone has ideas of where to start or some program/kernel modules
to start with or knows of something that would already do this, it
would seem useful.
next prev parent reply other threads:[~2009-12-30 0:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-30 0:03 raid0/jbod/lvm, sorta? Matt Garman
[not found] ` <db9fa2350912291628n170ec385qabb8e52f37da9ed0@mail.gmail.com>
2009-12-30 0:29 ` Fwd: " Kevin Maguire
2009-12-30 0:37 ` Roger Heflin
2009-12-30 0:43 ` Roger Heflin [this message]
2009-12-30 6:13 ` Mikael Abrahamsson
2009-12-30 9:31 ` Jan Ceuleers
2009-12-30 9:36 ` Mikael Abrahamsson
2009-12-30 7:29 ` Luca Berra
[not found] ` <52.81.08392.151EA3B4@cdptpa-omtalb.mail.rr.com>
2009-12-30 14:15 ` Matt Garman
2009-12-30 18:25 ` Leslie Rhorer
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=4B3AA23B.8060502@gmail.com \
--to=rogerheflin@gmail.com \
--cc=linux-raid@vger.kernel.org \
--cc=matthew.garman@gmail.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).