linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: First RAID Setup
@ 2005-12-15 19:35 Callahan, Tom
  2005-12-15 19:44 ` Andargor The Wise
  2005-12-22 14:00 ` Bill Davidsen
  0 siblings, 2 replies; 25+ messages in thread
From: Callahan, Tom @ 2005-12-15 19:35 UTC (permalink / raw)
  To: 'Andargor The Wise', linux-raid

You "should" have a designated spare for RAID-5.

Not sure why you have 3 disks for each RAID1, RAID1 is mirror, and unless
the third drive is a spare, it is not needed.

Thanks,
Tom Callahan

-----Original Message-----
From: linux-raid-owner@vger.kernel.org
[mailto:linux-raid-owner@vger.kernel.org]On Behalf Of Andargor The Wise
Sent: Thursday, December 15, 2005 2:10 PM
To: linux-raid@vger.kernel.org
Subject: First RAID Setup


I admit it. I'm a RAID virgin.

However, after a disastrous failure of the sole drive
I wasn't backing up, I decided to go RAID-5 under
Slack 10.2 (first time ever with RAID-5).

The config:

Asus P5GL-MX (ICH6) mobo w/1 GB RAM, 4 x SATA ports
P4 3.0G/1M
3 x WD2000JS 200.0 GB SATA drives

First, a question: the BIOS on this machine seems to
list the SATA ports as "third/fourth IDE
master/slave". Further, the documentation seems to say
that SATA 1/2 are "master" and SATA 3/4 are "slave"
(black and red connectors, respectively).

My understanding is that SATA drives are each on
separate buses. Is this because the BIOS offers a
P-ATA emulation mode for SATA and it makes it "easier"
to understand for novices to show them that way?

I ask because people have said that it is not a good
idea to have both IDE masters and slaves on the same
bus as part of a RAID-5 array. I know SATA is
different, but will using three of the SATA ports on
this mobo be OK?

Second, after reading the excellent advice in this
list, I decided that booting from RAID-5 might not be
a good idea. So this is what I've been thinking:

Each disk partitioned alike:
	1	30MB 
	2	8GB (to allow for memory upgrades later)
	5	rest_of_disk

mds:
	md0	raid1 sda1 sdb1 sdc1
	md1	raid1 sda2 sdb2 sdc2
	md2	raid5 sda5 sdb5 sdc5

	md0	/boot
	md1	swap
	md2	/

Does this look OK? What should the stripe and chunk
sizes be, considering I'll be going with reiserfs?
Typical usage: development machine, some DB apps with
medium load, read-only mostly, not many writes. Very
few large files (such as multimedia).

Or should I set up separate RAID-5's for /usr and /var
as well?

Lastly, can I install directly to this configuration,
or should I install on a separate disk and move things
into the array?

Andargor


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-
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] 25+ messages in thread
* Re: First RAID Setup
@ 2005-12-22 17:03 Andrew Burgess
  0 siblings, 0 replies; 25+ messages in thread
From: Andrew Burgess @ 2005-12-22 17:03 UTC (permalink / raw)
  To: linux-raid

>Since I'll be recreating the array anyway, I might as
>well split /, /home, and /var into three RAID5's.

Consider LVM2 which allows you to change the sizes of those
three partitions.


^ permalink raw reply	[flat|nested] 25+ messages in thread
* RE: First RAID Setup
@ 2005-12-15 21:46 Callahan, Tom
  0 siblings, 0 replies; 25+ messages in thread
From: Callahan, Tom @ 2005-12-15 21:46 UTC (permalink / raw)
  To: 'Tobias Hofmann', Brad Campbell
  Cc: Callahan, Tom, 'Andargor The Wise', linux-raid

You forgot to </delurk>

:) Happy Holidays

Tom Callahan

-----Original Message-----
From: Tobias Hofmann [mailto:tobias.hofmann@medien.uni-weimar.de]
Sent: Thursday, December 15, 2005 4:32 PM
To: Brad Campbell
Cc: Callahan, Tom; 'Andargor The Wise'; linux-raid@vger.kernel.org
Subject: Re: First RAID Setup


<delurk>

On 15.12.2005 21:46, Brad Campbell wrote:
> Callahan, Tom wrote:
> 
>> It is always wise to build in a spare however, that being said about all
>> raid levels. In your configuration, if a disk fails in your RAID5, your
>> array will go down. RAID5 is usually 3+ disks, with a mirror. So you 
>> should
>> have 3 disks at minimum, and then a 4th as a spare.
> 
> /me wonders in the days of reliable RAID-6 why we use RAID-5 + spare?

Me too. ;) So, with holidays ahead, two questions (as I might tackle 
that soon and have not found it mentioned):

- How would one "switch" from the latter to the former? Is there 
something like "grow_to_RAID_6"?
- Does RAID6 have disadvantages wrt write speed?

TIA for any comments,

greets, tobi... :)


^ permalink raw reply	[flat|nested] 25+ messages in thread
* RE: First RAID Setup
@ 2005-12-15 20:37 Callahan, Tom
  2005-12-17  0:00 ` Andargor The Wise
  0 siblings, 1 reply; 25+ messages in thread
From: Callahan, Tom @ 2005-12-15 20:37 UTC (permalink / raw)
  To: 'Andargor The Wise', Callahan, Tom, linux-raid

Sorry, I'm programmed for HA lately. Your plan sounds good then, I wish you
the best of luck.

Tom Callahan

-----Original Message-----
From: Andargor The Wise [mailto:andargor@yahoo.com]
Sent: Thursday, December 15, 2005 3:22 PM
To: Callahan, Tom; linux-raid@vger.kernel.org
Subject: RE: First RAID Setup




--- "Callahan, Tom" <CallahanT@tessco.com> wrote:

> I understand the reason for the RAID1 devices..... I
> was asking why you have
> 3 devices in the RAID1 setup? RAID1 is a mirrored
> configuration, requiring
> only 2 disks for operation.

Right. Like I indicated, I reviewed this list for
suggested configurations and this is what I came up
with as a result.

I guess you do only need two disks, since you'll be
able to recover anyway, but it seemed a simpler config
with identical disk partitions and only a small amount
of space wasted on one disk.

> It is always wise to build in a spare however, that
> being said about all
> raid levels. In your configuration, if a disk fails
> in your RAID5, your
> array will go down. RAID5 is usually 3+ disks, with
> a mirror. So you should
> have 3 disks at minimum, and then a 4th as a spare.

But if I don't mind the machine coming down, I don't
think I need a spare? I just want to be able to rip
out the bad drive, slap in a new one, rebuild, and be
back in business with all my data. I don't need HA.

(snip)
> Another gotcha, it's usually better to use entire
> disks, if you can afford
> to, in an MD array. This alleviates growing pains of
> having to manually
> repartition if you want to grow an exisiting
> filesystem. This may not make
> much sense now, but once you have to do it, you'll
> smack your forehead in
> grief.

Yes, I can see that, you instead grow by slapping in
extra disks and then resizing the array. Hmm. I'll
have to think about that.

> 
> Thanks,
> Tom Callahan


Thanks for the advice, lots to mull over. I've got
time, I'm still ddrescue'ing my crashed drive... :)

Andargor



> 
> -----Original Message-----
> From: Andargor The Wise [mailto:andargor@yahoo.com]
> Sent: Thursday, December 15, 2005 2:45 PM
> To: Callahan, Tom; linux-raid@vger.kernel.org
> Subject: RE: First RAID Setup
> 
> 
> The RAID1 partitions are to make sure:
> 
> 1) The machine is able to boot even if a disk is
> lost
> (/boot).
> 2) The machine isn't brought down if a disk is lost
> (swap)
> 
> I thought about a spare drive, but I don't need high
> availability. I'm satisfied with being able to
> recover
> my data.
> 
> Andargor
> 
> 
> --- "Callahan, Tom" <CallahanT@tessco.com> wrote:
> 
> > You "should" have a designated spare for RAID-5.
> > 
> > Not sure why you have 3 disks for each RAID1,
> RAID1
> > is mirror, and unless
> > the third drive is a spare, it is not needed.
> > 
> > Thanks,
> > Tom Callahan
> > 
> > -----Original Message-----
> > From: linux-raid-owner@vger.kernel.org
> > [mailto:linux-raid-owner@vger.kernel.org]On Behalf
> > Of Andargor The Wise
> > Sent: Thursday, December 15, 2005 2:10 PM
> > To: linux-raid@vger.kernel.org
> > Subject: First RAID Setup
> > 
> > 
> > I admit it. I'm a RAID virgin.
> > 
> > However, after a disastrous failure of the sole
> > drive
> > I wasn't backing up, I decided to go RAID-5 under
> > Slack 10.2 (first time ever with RAID-5).
> > 
> > The config:
> > 
> > Asus P5GL-MX (ICH6) mobo w/1 GB RAM, 4 x SATA
> ports
> > P4 3.0G/1M
> > 3 x WD2000JS 200.0 GB SATA drives
> > 
> > First, a question: the BIOS on this machine seems
> to
> > list the SATA ports as "third/fourth IDE
> > master/slave". Further, the documentation seems to
> > say
> > that SATA 1/2 are "master" and SATA 3/4 are
> "slave"
> > (black and red connectors, respectively).
> > 
> > My understanding is that SATA drives are each on
> > separate buses. Is this because the BIOS offers a
> > P-ATA emulation mode for SATA and it makes it
> > "easier"
> > to understand for novices to show them that way?
> > 
> > I ask because people have said that it is not a
> good
> > idea to have both IDE masters and slaves on the
> same
> > bus as part of a RAID-5 array. I know SATA is
> > different, but will using three of the SATA ports
> on
> > this mobo be OK?
> > 
> > Second, after reading the excellent advice in this
> > list, I decided that booting from RAID-5 might not
> > be
> > a good idea. So this is what I've been thinking:
> > 
> > Each disk partitioned alike:
> > 	1	30MB 
> > 	2	8GB (to allow for memory upgrades later)
> > 	5	rest_of_disk
> > 
> > mds:
> > 	md0	raid1 sda1 sdb1 sdc1
> > 	md1	raid1 sda2 sdb2 sdc2
> > 	md2	raid5 sda5 sdb5 sdc5
> > 
> > 	md0	/boot
> > 	md1	swap
> > 	md2	/
> > 
> > Does this look OK? What should the stripe and
> chunk
> > sizes be, considering I'll be going with reiserfs?
> > Typical usage: development machine, some DB apps
> > with
> > medium load, read-only mostly, not many writes.
> Very
> > few large files (such as multimedia).
> > 
> > Or should I set up separate RAID-5's for /usr and
> > /var
> > as well?
> > 
> > Lastly, can I install directly to this
> > configuration,
> > or should I install on a separate disk and move
> > things
> > into the array?
> > 
> > Andargor
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> > protection around 
> > http://mail.yahoo.com 
> > -
> > 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
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 25+ messages in thread
* RE: First RAID Setup
@ 2005-12-15 20:02 Callahan, Tom
  2005-12-15 20:22 ` Andargor The Wise
  2005-12-15 20:46 ` Brad Campbell
  0 siblings, 2 replies; 25+ messages in thread
From: Callahan, Tom @ 2005-12-15 20:02 UTC (permalink / raw)
  To: 'Andargor The Wise', Callahan, Tom, linux-raid

I understand the reason for the RAID1 devices..... I was asking why you have
3 devices in the RAID1 setup? RAID1 is a mirrored configuration, requiring
only 2 disks for operation.

It is always wise to build in a spare however, that being said about all
raid levels. In your configuration, if a disk fails in your RAID5, your
array will go down. RAID5 is usually 3+ disks, with a mirror. So you should
have 3 disks at minimum, and then a 4th as a spare.

The MD modules/subsystem will then automagically bring in that spare disk if
any of the existing 3 in your RAID5 setup fail.

It is wise to think through your layout prior to building, and I commend you
for that. You may also want to review/experiment with the MD subsystem. For
instance, There is a neat --grow mode that is not mentioned in many vendor
man pages that can allow you to grow an MD device as needed.

Another gotcha, it's usually better to use entire disks, if you can afford
to, in an MD array. This alleviates growing pains of having to manually
repartition if you want to grow an exisiting filesystem. This may not make
much sense now, but once you have to do it, you'll smack your forehead in
grief.

Thanks,
Tom Callahan

-----Original Message-----
From: Andargor The Wise [mailto:andargor@yahoo.com]
Sent: Thursday, December 15, 2005 2:45 PM
To: Callahan, Tom; linux-raid@vger.kernel.org
Subject: RE: First RAID Setup


The RAID1 partitions are to make sure:

1) The machine is able to boot even if a disk is lost
(/boot).
2) The machine isn't brought down if a disk is lost
(swap)

I thought about a spare drive, but I don't need high
availability. I'm satisfied with being able to recover
my data.

Andargor


--- "Callahan, Tom" <CallahanT@tessco.com> wrote:

> You "should" have a designated spare for RAID-5.
> 
> Not sure why you have 3 disks for each RAID1, RAID1
> is mirror, and unless
> the third drive is a spare, it is not needed.
> 
> Thanks,
> Tom Callahan
> 
> -----Original Message-----
> From: linux-raid-owner@vger.kernel.org
> [mailto:linux-raid-owner@vger.kernel.org]On Behalf
> Of Andargor The Wise
> Sent: Thursday, December 15, 2005 2:10 PM
> To: linux-raid@vger.kernel.org
> Subject: First RAID Setup
> 
> 
> I admit it. I'm a RAID virgin.
> 
> However, after a disastrous failure of the sole
> drive
> I wasn't backing up, I decided to go RAID-5 under
> Slack 10.2 (first time ever with RAID-5).
> 
> The config:
> 
> Asus P5GL-MX (ICH6) mobo w/1 GB RAM, 4 x SATA ports
> P4 3.0G/1M
> 3 x WD2000JS 200.0 GB SATA drives
> 
> First, a question: the BIOS on this machine seems to
> list the SATA ports as "third/fourth IDE
> master/slave". Further, the documentation seems to
> say
> that SATA 1/2 are "master" and SATA 3/4 are "slave"
> (black and red connectors, respectively).
> 
> My understanding is that SATA drives are each on
> separate buses. Is this because the BIOS offers a
> P-ATA emulation mode for SATA and it makes it
> "easier"
> to understand for novices to show them that way?
> 
> I ask because people have said that it is not a good
> idea to have both IDE masters and slaves on the same
> bus as part of a RAID-5 array. I know SATA is
> different, but will using three of the SATA ports on
> this mobo be OK?
> 
> Second, after reading the excellent advice in this
> list, I decided that booting from RAID-5 might not
> be
> a good idea. So this is what I've been thinking:
> 
> Each disk partitioned alike:
> 	1	30MB 
> 	2	8GB (to allow for memory upgrades later)
> 	5	rest_of_disk
> 
> mds:
> 	md0	raid1 sda1 sdb1 sdc1
> 	md1	raid1 sda2 sdb2 sdc2
> 	md2	raid5 sda5 sdb5 sdc5
> 
> 	md0	/boot
> 	md1	swap
> 	md2	/
> 
> Does this look OK? What should the stripe and chunk
> sizes be, considering I'll be going with reiserfs?
> Typical usage: development machine, some DB apps
> with
> medium load, read-only mostly, not many writes. Very
> few large files (such as multimedia).
> 
> Or should I set up separate RAID-5's for /usr and
> /var
> as well?
> 
> Lastly, can I install directly to this
> configuration,
> or should I install on a separate disk and move
> things
> into the array?
> 
> Andargor
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> -
> 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
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 25+ messages in thread
* First RAID Setup
@ 2005-12-15 19:09 Andargor The Wise
  0 siblings, 0 replies; 25+ messages in thread
From: Andargor The Wise @ 2005-12-15 19:09 UTC (permalink / raw)
  To: linux-raid

I admit it. I'm a RAID virgin.

However, after a disastrous failure of the sole drive
I wasn't backing up, I decided to go RAID-5 under
Slack 10.2 (first time ever with RAID-5).

The config:

Asus P5GL-MX (ICH6) mobo w/1 GB RAM, 4 x SATA ports
P4 3.0G/1M
3 x WD2000JS 200.0 GB SATA drives

First, a question: the BIOS on this machine seems to
list the SATA ports as "third/fourth IDE
master/slave". Further, the documentation seems to say
that SATA 1/2 are "master" and SATA 3/4 are "slave"
(black and red connectors, respectively).

My understanding is that SATA drives are each on
separate buses. Is this because the BIOS offers a
P-ATA emulation mode for SATA and it makes it "easier"
to understand for novices to show them that way?

I ask because people have said that it is not a good
idea to have both IDE masters and slaves on the same
bus as part of a RAID-5 array. I know SATA is
different, but will using three of the SATA ports on
this mobo be OK?

Second, after reading the excellent advice in this
list, I decided that booting from RAID-5 might not be
a good idea. So this is what I've been thinking:

Each disk partitioned alike:
	1	30MB 
	2	8GB (to allow for memory upgrades later)
	5	rest_of_disk

mds:
	md0	raid1 sda1 sdb1 sdc1
	md1	raid1 sda2 sdb2 sdc2
	md2	raid5 sda5 sdb5 sdc5

	md0	/boot
	md1	swap
	md2	/

Does this look OK? What should the stripe and chunk
sizes be, considering I'll be going with reiserfs?
Typical usage: development machine, some DB apps with
medium load, read-only mostly, not many writes. Very
few large files (such as multimedia).

Or should I set up separate RAID-5's for /usr and /var
as well?

Lastly, can I install directly to this configuration,
or should I install on a separate disk and move things
into the array?

Andargor


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2005-12-22 17:03 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-15 19:35 First RAID Setup Callahan, Tom
2005-12-15 19:44 ` Andargor The Wise
2005-12-22 14:00 ` Bill Davidsen
  -- strict thread matches above, loose matches on Subject: below --
2005-12-22 17:03 Andrew Burgess
2005-12-15 21:46 Callahan, Tom
2005-12-15 20:37 Callahan, Tom
2005-12-17  0:00 ` Andargor The Wise
2005-12-17  2:01   ` Andargor The Wise
2005-12-18 22:08     ` Andargor The Wise
2005-12-22 14:27       ` Bill Davidsen
2005-12-22 15:00         ` Andargor The Wise
2005-12-15 20:02 Callahan, Tom
2005-12-15 20:22 ` Andargor The Wise
2005-12-15 20:46 ` Brad Campbell
2005-12-15 21:31   ` Tobias Hofmann
2005-12-16  1:51     ` Max Waterman
2005-12-16  8:01       ` Tobias Hofmann
2005-12-16  1:53     ` Neil Brown
2005-12-16  8:08       ` Tobias Hofmann
2005-12-19  1:02         ` Neil Brown
2005-12-19  9:03           ` Max Waterman
2005-12-16  8:42       ` Gordon Henderson
2005-12-22 14:20   ` Bill Davidsen
2005-12-22 14:24     ` Mattias Wadenstein
2005-12-15 19:09 Andargor The Wise

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).