* Controlling Reading and Writing in RAID 1 configuration
@ 2006-04-25 12:58 Rik Herrin
2006-04-27 22:04 ` Neil Brown
0 siblings, 1 reply; 5+ messages in thread
From: Rik Herrin @ 2006-04-25 12:58 UTC (permalink / raw)
To: linux-raid
Hi,
I have a setup where I want to use RAID 1 to mirror
my data over the LAN. I am exposing 2x500 GB-sized
devices via iSCSI and was wondering if I could
configure the RAID 1 to write to both members of the
RAID 1 configuration but only read from one as one
link is 1GbE while the other is lower but sufficient
for writing. Is this possible? Thanks for your help.
Regards,
Rik Herrin
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Controlling Reading and Writing in RAID 1 configuration
2006-04-25 12:58 Controlling Reading and Writing in RAID 1 configuration Rik Herrin
@ 2006-04-27 22:04 ` Neil Brown
2006-04-27 22:38 ` Ming Zhang
0 siblings, 1 reply; 5+ messages in thread
From: Neil Brown @ 2006-04-27 22:04 UTC (permalink / raw)
To: Rik Herrin; +Cc: linux-raid
On Tuesday April 25, rikherrin@yahoo.com wrote:
> Hi,
> I have a setup where I want to use RAID 1 to mirror
> my data over the LAN. I am exposing 2x500 GB-sized
> devices via iSCSI and was wondering if I could
> configure the RAID 1 to write to both members of the
> RAID 1 configuration but only read from one as one
> link is 1GbE while the other is lower but sufficient
> for writing. Is this possible? Thanks for your help.
You'll be wanting the '--write-mostly' option to mdadm.
This requires a fairly recent kernel and mdadm.
NeilBrown
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Controlling Reading and Writing in RAID 1 configuration
2006-04-27 22:04 ` Neil Brown
@ 2006-04-27 22:38 ` Ming Zhang
2006-04-27 23:06 ` Neil Brown
0 siblings, 1 reply; 5+ messages in thread
From: Ming Zhang @ 2006-04-27 22:38 UTC (permalink / raw)
To: Neil Brown; +Cc: Rik Herrin, linux-raid
On Fri, 2006-04-28 at 08:04 +1000, Neil Brown wrote:
> On Tuesday April 25, rikherrin@yahoo.com wrote:
> > Hi,
> > I have a setup where I want to use RAID 1 to mirror
> > my data over the LAN. I am exposing 2x500 GB-sized
> > devices via iSCSI and was wondering if I could
> > configure the RAID 1 to write to both members of the
> > RAID 1 configuration but only read from one as one
only read from one disk, shall this be a "--read-preferred" ?
i checked email archive, but still not quite understand on this
"--write-mostly". for raid1, u anyway need to write all components, so
why there is a "mostly"?
> > link is 1GbE while the other is lower but sufficient
> > for writing. Is this possible? Thanks for your help.
>
> You'll be wanting the '--write-mostly' option to mdadm.
> This requires a fairly recent kernel and mdadm.
>
> NeilBrown
> -
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Controlling Reading and Writing in RAID 1 configuration
2006-04-27 22:38 ` Ming Zhang
@ 2006-04-27 23:06 ` Neil Brown
2006-04-28 1:31 ` Ming Zhang
0 siblings, 1 reply; 5+ messages in thread
From: Neil Brown @ 2006-04-27 23:06 UTC (permalink / raw)
To: mingz; +Cc: Rik Herrin, linux-raid
On Thursday April 27, mingz@ele.uri.edu wrote:
>
> On Fri, 2006-04-28 at 08:04 +1000, Neil Brown wrote:
> > On Tuesday April 25, rikherrin@yahoo.com wrote:
> > > Hi,
> > > I have a setup where I want to use RAID 1 to mirror
> > > my data over the LAN. I am exposing 2x500 GB-sized
> > > devices via iSCSI and was wondering if I could
> > > configure the RAID 1 to write to both members of the
> > > RAID 1 configuration but only read from one as one
>
> only read from one disk, shall this be a "--read-preferred" ?
No. The one(s) you don't read from is the odd-one-out. The one(s)
you read from are 'normal' and don't get a special flag.
>
> i checked email archive, but still not quite understand on this
> "--write-mostly". for raid1, u anyway need to write all components, so
> why there is a "mostly"?
>
Mostly it will just write to this device.
But if all the non-write-mostly device fail, then it will read from
this device. So it isn't write-only. It is write-mostly.
Make sense?
NeilBrown
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Controlling Reading and Writing in RAID 1 configuration
2006-04-27 23:06 ` Neil Brown
@ 2006-04-28 1:31 ` Ming Zhang
0 siblings, 0 replies; 5+ messages in thread
From: Ming Zhang @ 2006-04-28 1:31 UTC (permalink / raw)
To: Neil Brown; +Cc: Rik Herrin, linux-raid
On Fri, 2006-04-28 at 09:06 +1000, Neil Brown wrote:
> On Thursday April 27, mingz@ele.uri.edu wrote:
> >
> > On Fri, 2006-04-28 at 08:04 +1000, Neil Brown wrote:
> > > On Tuesday April 25, rikherrin@yahoo.com wrote:
> > > > Hi,
> > > > I have a setup where I want to use RAID 1 to mirror
> > > > my data over the LAN. I am exposing 2x500 GB-sized
> > > > devices via iSCSI and was wondering if I could
> > > > configure the RAID 1 to write to both members of the
> > > > RAID 1 configuration but only read from one as one
> >
> > only read from one disk, shall this be a "--read-preferred" ?
>
> No. The one(s) you don't read from is the odd-one-out. The one(s)
> you read from are 'normal' and don't get a special flag.
>
> >
> > i checked email archive, but still not quite understand on this
> > "--write-mostly". for raid1, u anyway need to write all components, so
> > why there is a "mostly"?
> >
>
> Mostly it will just write to this device.
> But if all the non-write-mostly device fail, then it will read from
> this device. So it isn't write-only. It is write-mostly.
>
> Make sense?
i know why my English language test had that low score now.
thx!
>
> NeilBrown
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-04-28 1:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-25 12:58 Controlling Reading and Writing in RAID 1 configuration Rik Herrin
2006-04-27 22:04 ` Neil Brown
2006-04-27 22:38 ` Ming Zhang
2006-04-27 23:06 ` Neil Brown
2006-04-28 1:31 ` Ming Zhang
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).