Skip to contentSkip to conversation

Sharing disks amoung multiple software RAIDs

DISCUSSION Alex Davis 10 participants 24 messages May 1, 2008 – May 4, 2008 3 messages not in the archive MD RAID

lore
Share & tools
lore

Alex Davis

author
#0 lore raw

Is this a bad thing? I'm guessing that it is, but I want independent confirmation before I spoke to someone I know who's doing this.

Thanks

      ____________________________________________________________________________________

Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

#1 lore raw
Quoted 6 lines · Alex Davis

Is this a bad thing? I'm guessing that it is, but I want independent confirmation before I spoke to someone I know who's doing this.

Thanks

Quoted 8 lines
     ____________________________________________________________________________________

Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

What is the use case, why would you want to do that?
I have seen people on the list do it before, for example are you going to be utilizing both raids at the same time? If so, I would advise against it.

What is the reasoning?

author
#2 lore raw
Quoted 12 lines · Justin Piszcz

From: Justin Piszcz <[email protected]>
Subject: Re: Sharing disks amoung multiple software RAIDs
To: "Alex Davis" <[email protected]>
Cc: [email protected], [email protected]
Date: Thursday, May 1, 2008, 8:50 AM

Quoted 1 line · Alex Davis

Is this a bad thing? I'm guessing that it is, but

I want independent

Quoted 1 line

confirmation before I spoke to someone I know

who's doing this.

Quoted 1 line
Quoted 7 lines
Quoted 4 lines

Thanks

What is the use case, why would you want to do that? I have seen people on the list do it before, for example are you going to be utilizing both raids at the same time?

Yes.

Quoted 3 lines

If so, I would advise against it.

What is the reasoning?

No, I don't want to do this. I know someone who is, and I wanted to get more input before I advised them to get more disks. The RAIDs are running in degraded mode, so they'll need more disks anyway. Since they are (or hopefully soon will be) buying more disks, I'll advise them to get dedicated disks for each RAID.

      ____________________________________________________________________________________

Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

#3 lore raw
Quoted 33 lines · Alex Davis
Quoted 16 lines · Justin Piszcz

From: Justin Piszcz <[email protected]>
Subject: Re: Sharing disks amoung multiple software RAIDs
To: "Alex Davis" <[email protected]>
Cc: [email protected], [email protected]
Date: Thursday, May 1, 2008, 8:50 AM

Quoted 2 lines · Alex Davis

Is this a bad thing? I'm guessing that it is, but

I want independent

Quoted 2 lines

confirmation before I spoke to someone I know

who's doing this.

Quoted 9 lines
Quoted 5 lines

Thanks

What is the use case, why would you want to do that? I have seen people on the list do it before, for example are you going to be utilizing both raids at the same time?

Yes.

Quoted 2 lines

If so, I would advise against it.

Quoted 9 lines
Quoted 2 lines

What is the reasoning?

No, I don't want to do this. I know someone who is, and I wanted to get more input before I advised them to get more disks. The RAIDs are running in degraded mode, so they'll need more disks anyway. Since they are (or hopefully soon will be) buying more disks, I'll advise them to get dedicated disks for each RAID.

Depending on the use, dedicated disk may not be better, unless the budget is large. I ran an application which had a heavily read database and a large collection of files thich were read based on offsets read from the database. I have a limited number of drives available (rackspace limit, not $). I partitioned the drives with a small partition for the heavily read database, using three copies raid1, and raid5 for the more lightly used data, across the same disks.

I tried almost every layout possible with six drives, and spreading the required head motion to all drives was a big win on the heavily read database, while spreading the storage over all drives was required because of capacity. And split and shared the performance was optimized. And it did stay up with a drive fail, although "up" means "didn't lose data" rather than "usefully fast."

Signature · 3 lines
Bill Davidsen <[email protected]>
 "Woe unto the statesman who makes war without a reason that will still
 be valid when the war is over..." Otto von Bismark 
#4 lore raw
In reply to Justin Piszcz
Quoted 18 lines · Justin Piszcz
Quoted 6 lines · Alex Davis

Is this a bad thing? I'm guessing that it is, but I want independent confirmation before I spoke to someone I know who's doing this.

Thanks

Quoted 8 lines
     ____________________________________________________________________________________

Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Quoted 6 lines

What is the use case, why would you want to do that?
I have seen people on the list do it before, for example are you going to be utilizing both raids at the same time? If so, I would advise against it.

What is the reasoning?

I do this!

is this really bad? i would surely like a list of reasons why..

I do it because.. well.. first off, it allows me to have /boot on different raidlevel than / or /home without extra disks. secondly, it allows me to with the same disks use different filesystems.. for instance, it allows me to have /home encrypted with dm-crypt, while still raided.. Not that i would mind encrypting / and /home as 1 partition, but it creates a whole slew of issues with having to create initrd and stuff..

I realize that performance probably suffers abit from this, but well.. is there any stability or security wise risk? i mostly use raid1 and raid5 only..

Quoted 6 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

author
#5 lore raw
Quoted 57 lines · Kasper Sandberg

From: Kasper Sandberg <[email protected]>
Subject: Re: Sharing disks amoung multiple software RAIDs
To: "Justin Piszcz" <[email protected]>
Cc: "Alex Davis" <[email protected]>, [email protected], [email protected]
Date: Thursday, May 1, 2008, 9:39 PM

Quoted 4 lines · Justin Piszcz
Quoted 1 line · Alex Davis

Is this a bad thing? I'm guessing that it is,

but I want independent

Quoted 1 line
Quoted 1 line

confirmation before I spoke to someone I know

who's doing this.

Quoted 5 lines
Quoted 5 lines

Thanks

____________________________________________________________________________________

Quoted 2 lines
Quoted 2 lines

Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.

http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Quoted 2 lines
Quoted 2 lines

--
To unsubscribe from this list: send the line

"unsubscribe linux-raid" in

Quoted 1 line
Quoted 1 line

the body of a message to

[email protected]

Quoted 1 line
Quoted 1 line

More majordomo info at

http://vger.kernel.org/majordomo-info.html

Quoted 4 lines
Quoted 1 line

What is the use case, why would you want to do that? I have seen people on the list do it before, for

example are you going to

Quoted 1 line

be utilizing both raids at the same time? If so, I

would advise against

Quoted 3 lines

it.

What is the reasoning?

I do this!

is this really bad? i would surely like a list of reasons why..

I do it because.. well.. first off, it allows me to have /boot on
different raidlevel than / or /home without extra disks. secondly, it allows me to with the same disks use different filesystems.. for instance, it allows me to have /home encrypted with
dm-crypt, while still raided.. Not that i would mind encrypting /
and /home as 1 partition, but it creates a whole slew of issues with
having to create initrd and stuff..

Quoted 6 lines

I realize that performance probably suffers abit from this, but well..
is there any stability or security wise risk? i mostly use raid1 and
raid5 only..

I would guess if the RAIDs are heavily used simultaneously it could cause the disk head actuators to jump around more, causing more wear and tear.

      ____________________________________________________________________________________

Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

#6 lore raw

In a perfect world, my expectation is that sharing a disk is safe and even a reasonable thing to do. The shared disk is effectively a range of addressable blocks in the same way an individual disk or even a hardware RAID LUN is a range of blocks. From this limited perspective, the only penalty is performance related, assuming you don't mind having to explain yourself to an IT supervisor somewhere in your company.

However, consider what COULD happen in event of a drive failure, either with the shared or an unshared disk. What are the odds all of the failure scenarios have been tested for all ATA and SCSI command sets; with threaded I/Os pending; with dirty cache; bus resets when hardware dies; etc... ?

The odds are zero. Look how many problems people post to the thread on a weekly basis where people lose their data when md rebuilds go bad with non-shared disks. Why make the problem worse?

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Alex Davis
Sent: Thursday, May 01, 2008 8:52 PM
To: Justin Piszcz; Kasper Sandberg
Cc: [email protected]; [email protected]
Subject: Re: Sharing disks amoung multiple software RAIDs

Quoted 4 lines · Kasper Sandberg

From: Kasper Sandberg <[email protected]>
Subject: Re: Sharing disks amoung multiple software RAIDs
To: "Justin Piszcz" <[email protected]>
Cc: "Alex Davis" <[email protected]>, [email protected],

[email protected]

Quoted 15 lines

Date: Thursday, May 1, 2008, 9:39 PM

Quoted 4 lines · Justin Piszcz
Quoted 1 line · Alex Davis

Is this a bad thing? I'm guessing that it is,

but I want independent

Quoted 1 line
Quoted 1 line

confirmation before I spoke to someone I know

who's doing this.

Quoted 5 lines
Quoted 5 lines

Thanks

________________________________________________________________________
____________

Quoted 38 lines
Quoted 2 lines
Quoted 2 lines

Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.

http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Quoted 2 lines
Quoted 2 lines

--
To unsubscribe from this list: send the line

"unsubscribe linux-raid" in

Quoted 1 line
Quoted 1 line

the body of a message to

[email protected]

Quoted 1 line
Quoted 1 line

More majordomo info at

http://vger.kernel.org/majordomo-info.html

Quoted 4 lines
Quoted 1 line

What is the use case, why would you want to do that? I have seen people on the list do it before, for

example are you going to

Quoted 1 line

be utilizing both raids at the same time? If so, I

would advise against

Quoted 3 lines

it.

What is the reasoning?

I do this!

is this really bad? i would surely like a list of reasons why..

I do it because.. well.. first off, it allows me to have /boot on
different raidlevel than / or /home without extra disks. secondly, it allows me to with the same disks use different filesystems.. for instance, it allows me to have /home encrypted with
dm-crypt, while still raided.. Not that i would mind encrypting /
and /home as 1 partition, but it creates a whole slew of issues with
having to create initrd and stuff..

Quoted 6 lines

I realize that performance probably suffers abit from this, but well..
is there any stability or security wise risk? i mostly use raid1 and
raid5 only..

I would guess if the RAIDs are heavily used simultaneously it could cause the disk head actuators to jump around more, causing more wear and tear.

________________________________________________________________________
____________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw
Quoted 13 lines · David Lethe

In a perfect world, my expectation is that sharing a disk is safe and even a reasonable thing to do. The shared disk is effectively a range of addressable blocks in the same way an individual disk or even a hardware RAID LUN is a range of blocks. From this limited perspective, the only penalty is performance related, assuming you don't mind having to explain yourself to an IT supervisor somewhere in your company.

However, consider what COULD happen in event of a drive failure, either with the shared or an unshared disk. What are the odds all of the failure scenarios have been tested for all ATA and SCSI command sets; with threaded I/Os pending; with dirty cache; bus resets when hardware dies; etc... ?

Quoted 3 lines

The odds are zero. Look how many problems people post to the thread on a weekly basis where people lose their data when md rebuilds go bad with non-shared disks. Why make the problem worse?

What? are you saying linux md is unreliable?! in other words, would i be safer to run rsync every day to my other disk, and run in non-raid mode?!

Quoted 94 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Alex Davis
Sent: Thursday, May 01, 2008 8:52 PM
To: Justin Piszcz; Kasper Sandberg
Cc: [email protected]; [email protected]
Subject: Re: Sharing disks amoung multiple software RAIDs

Quoted 4 lines · Kasper Sandberg

From: Kasper Sandberg <[email protected]>
Subject: Re: Sharing disks amoung multiple software RAIDs
To: "Justin Piszcz" <[email protected]>
Cc: "Alex Davis" <[email protected]>, [email protected],

[email protected]

Quoted 15 lines

Date: Thursday, May 1, 2008, 9:39 PM

Quoted 4 lines · Justin Piszcz
Quoted 1 line · Alex Davis

Is this a bad thing? I'm guessing that it is,

but I want independent

Quoted 1 line
Quoted 1 line

confirmation before I spoke to someone I know

who's doing this.

Quoted 5 lines
Quoted 5 lines

Thanks

________________________________________________________________________
____________

Quoted 38 lines
Quoted 2 lines
Quoted 2 lines

Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.

http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Quoted 2 lines
Quoted 2 lines

--
To unsubscribe from this list: send the line

"unsubscribe linux-raid" in

Quoted 1 line
Quoted 1 line

the body of a message to

[email protected]

Quoted 1 line
Quoted 1 line

More majordomo info at

http://vger.kernel.org/majordomo-info.html

Quoted 4 lines
Quoted 1 line

What is the use case, why would you want to do that? I have seen people on the list do it before, for

example are you going to

Quoted 1 line

be utilizing both raids at the same time? If so, I

would advise against

Quoted 3 lines

it.

What is the reasoning?

I do this!

is this really bad? i would surely like a list of reasons why..

I do it because.. well.. first off, it allows me to have /boot on
different raidlevel than / or /home without extra disks. secondly, it allows me to with the same disks use different filesystems.. for instance, it allows me to have /home encrypted with
dm-crypt, while still raided.. Not that i would mind encrypting /
and /home as 1 partition, but it creates a whole slew of issues with
having to create initrd and stuff..

Quoted 6 lines

I realize that performance probably suffers abit from this, but well..
is there any stability or security wise risk? i mostly use raid1 and
raid5 only..

I would guess if the RAIDs are heavily used simultaneously it could cause the disk head actuators to jump around more, causing more wear and tear.

________________________________________________________________________
____________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#8 lore raw
Quoted 3 lines · Kasper Sandberg

in other words, would i be
safer to run rsync every day to my other disk, and run in non-raid mode?!

What would be safer is to run rsync every day from one redundant array to another array - preferably on another machine that is located as far away as possible from the one that you are backing up.

RAID is not the same as a backup, though unfortunately, too many people treat it as such.

-Dave

#9 lore raw
Quoted 11 lines · David Rees
Quoted 3 lines · Kasper Sandberg

in other words, would i be
safer to run rsync every day to my other disk, and run in non-raid mode?!

What would be safer is to run rsync every day from one redundant array to another array - preferably on another machine that is located as far away as possible from the one that you are backing up.

RAID is not the same as a backup, though unfortunately, too many people treat it as such.

Im not treating it as a backup, what i want, is to make sure that if 1 disk dies, the data is still intact and ill hopefully be able to run with 1 disk till the newly ordered one arrives - and while i naturally will keep offsite backups of most important data, it is certainly far easier to simply rip out a faulty disk, and put in another, instead of restoring from backup from scratch..

So my question remains.. Is md raid1 not suited for this need? would it be safer to run in non-raid1 mode and daily(maybe hourly) rsync everything over to the second disk?

Quoted 2 lines

-Dave

#10 lore raw
Quoted 3 lines · Kasper Sandberg

Im not treating it as a backup, what i want, is to make sure that if 1 disk dies, the data is still intact and ill hopefully be able to run with 1 disk till the newly ordered one arrives

Probably one of the main design objectives behind RAID/md

Quoted 3 lines

So my question remains.. Is md raid1 not suited for this need? would it be safer to run in non-raid1 mode and daily(maybe hourly) rsync everything over to the second disk?

md is 100% guaranteed perfect or your money back...
rsync is 100% guaranteed perfect or your money back...
your backups are 100% guaranteed perfect or your money back... your hard drives are 100% guaranteed perfect or your money back... your CPU and RAM are 100% guaranteed perfect or your money back... your CPU and PSU fans are 100% guaranteed perfect or your money back...

Clearly if you want to panic over reliability you have lots of choices :)

David
PS, FWIW md has saved my data* countless times over the past 'n' years in exactly the scenario you describe.

*(or more accurately has saved me from having to restore my data)

#11 lore raw
Quoted 5 lines · David Greaves
Quoted 3 lines · Kasper Sandberg

Im not treating it as a backup, what i want, is to make sure that if 1 disk dies, the data is still intact and ill hopefully be able to run with 1 disk till the newly ordered one arrives

Probably one of the main design objectives behind RAID/md

Exactly, but once people start saying: "Look how many problems people post to the thread on
a weekly basis where people lose their data when md rebuilds go bad with non-shared disks" i begin to worry..

Quoted 5 lines
Quoted 4 lines

So my question remains.. Is md raid1 not suited for this need? would it be safer to run in non-raid1 mode and daily(maybe hourly) rsync everything over to the second disk?

Quoted 8 lines

md is 100% guaranteed perfect or your money back...
rsync is 100% guaranteed perfect or your money back...
your backups are 100% guaranteed perfect or your money back... your hard drives are 100% guaranteed perfect or your money back... your CPU and RAM are 100% guaranteed perfect or your money back... your CPU and PSU fans are 100% guaranteed perfect or your money back...

Clearly if you want to panic over reliability you have lots of choices :)

I do not wish to panic, i merely wished to know if linux MD is believed to work in most cases, or believed to do all sorts of weird stuff when resyncing :)

Quoted 4 lines

David
PS, FWIW md has saved my data* countless times over the past 'n' years in exactly the scenario you describe.

It has also been useful to people i know, i just wished to be sure :) and as Keld Jørn Simonsen and Helge Hafting's comments seems to confirm, linux md IS nice and stable :)

and as said, what im looking for isnt an in-box backup solution, merely safety in case one disk burns :)

Quoted 2 lines

*(or more accurately has saved me from having to restore my data)

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#12 lore raw
Quoted 61 lines · Kasper Sandberg

From: Kasper Sandberg <[email protected]>
Subject: Re: Sharing disks amoung multiple software RAIDs
To: "David Greaves" <[email protected]>
Cc: "David Rees" <[email protected]>, "David Lethe" <[email protected]>, [email protected], "Justin Piszcz" <[email protected]>, [email protected], [email protected]
Date: Friday, May 2, 2008, 5:43 PM

Quoted 2 lines · David Greaves
Quoted 1 line · Kasper Sandberg

Im not treating it as a backup, what i want, is

to make sure that if 1

Quoted 1 line
Quoted 1 line

disk dies, the data is still intact and ill

hopefully be able to run

Quoted 2 lines
Quoted 1 line

with 1 disk till the newly ordered one arrives

Probably one of the main design objectives behind

RAID/md

Exactly, but once people start saying: "Look how many problems people
post to the thread on
a weekly basis where people lose their data when md rebuilds go bad with
non-shared disks" i begin to worry..

Quoted 2 lines
Quoted 2 lines

So my question remains.. Is md raid1 not suited

for this need? would it

Quoted 1 line
Quoted 1 line

be safer to run in non-raid1 mode and daily(maybe

hourly) rsync

Quoted 5 lines
Quoted 1 line

everything over to the second disk?

md is 100% guaranteed perfect or your money back... rsync is 100% guaranteed perfect or your money back... your backups are 100% guaranteed perfect or your money

back...

Quoted 1 line

your hard drives are 100% guaranteed perfect or your

money back...

Quoted 1 line

your CPU and RAM are 100% guaranteed perfect or your

money back...

Quoted 1 line

your CPU and PSU fans are 100% guaranteed perfect or

your money back...

Quoted 2 lines

Clearly if you want to panic over reliability you have

lots of choices :)

I do not wish to panic, i merely wished to know if linux MD is believed
to work in most cases, or believed to do all sorts of weird stuff when
resyncing :)

Quoted 3 lines

David
PS, FWIW md has saved my data* countless times over

the past 'n' years in

Quoted 1 line

exactly the scenario you describe.

It has also been useful to people i know, i just wished to be sure :)
and as Keld Jørn Simonsen and Helge Hafting's comments seems to confirm,
linux md IS nice and stable :)

Quoted 7 lines

and as said, what im looking for isnt an in-box backup solution, merely
safety in case one disk burns :)

Quoted 2 lines

*(or more accurately has saved me from having to

restore my data)

Just to add another data point, I've been using md in RAID 5 configuration for ~3 years with dedicated USB and SATA disks (not mixed) and have had disks go bad, and have yet to lose
any data. Given the 'quality' of high-capacity disks nowadays,
RAIDing them is the right thing to do.

      ____________________________________________________________________________________

Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

#13 lore raw
In reply to Kasper Sandberg

-----Original Message-----
From: Kasper Sandberg [mailto:[email protected]]
Sent: Friday, May 02, 2008 4:44 PM
To: David Greaves
Cc: David Rees; David Lethe; [email protected]; Justin Piszcz; [email protected]; [email protected]
Subject: Re: Sharing disks amoung multiple software RAIDs

Quoted 5 lines · David Greaves
Quoted 3 lines · Kasper Sandberg

Im not treating it as a backup, what i want, is to make sure that if 1 disk dies, the data is still intact and ill hopefully be able to run with 1 disk till the newly ordered one arrives

Probably one of the main design objectives behind RAID/md

Exactly, but once people start saying: "Look how many problems people post to the thread on
a weekly basis where people lose their data when md rebuilds go bad with non-shared disks" i begin to worry..

Quoted 5 lines
Quoted 4 lines

So my question remains.. Is md raid1 not suited for this need? would it be safer to run in non-raid1 mode and daily(maybe hourly) rsync everything over to the second disk?

Quoted 8 lines

md is 100% guaranteed perfect or your money back...
rsync is 100% guaranteed perfect or your money back...
your backups are 100% guaranteed perfect or your money back... your hard drives are 100% guaranteed perfect or your money back... your CPU and RAM are 100% guaranteed perfect or your money back... your CPU and PSU fans are 100% guaranteed perfect or your money back...

Clearly if you want to panic over reliability you have lots of choices :)

I do not wish to panic, i merely wished to know if linux MD is believed to work in most cases, or believed to do all sorts of weird stuff when resyncing :)

Quoted 4 lines

David
PS, FWIW md has saved my data* countless times over the past 'n' years in exactly the scenario you describe.

It has also been useful to people i know, i just wished to be sure :) and as Keld Jørn Simonsen and Helge Hafting's comments seems to confirm, linux md IS nice and stable :)

and as said, what im looking for isnt an in-box backup solution, merely safety in case one disk burns :)

Quoted 2 lines

*(or more accurately has saved me from having to restore my data)

=======================
Since I am the person that wrote that "Look how many problems people
post to the thread on a weekly basis where people lose their data when md rebuilds go bad with non-shared disks", I think need to clarify.

I was being too literal. md is a good solution (I use it myself). However, the OP wanted to "Make sure that if one disk dies, the data is still in tact".

Only way to do that is have a good offsite backup.

Nothing can prevent opportunity for data loss. I don't care what RAID level (with single redundancy) you use or whether you have software or hardware-based RAID .. rebuilds can not reconstruct data if you are in degraded mode and have an unrecoverable read error on surviving disks. It is not md's job or design point to insure data consistency check/repairs are run 24x7. As such, by definition, there is no way to insure that a md rebuild will always be successful.

David
---------

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#14 lore raw

I code, therefore I am

--- On Fri, 5/2/08, David Lethe <[email protected]> wrote:
[snipped]

Quoted 3 lines

I was being too literal. md is a good solution (I use it myself). However, the OP wanted to "Make sure that if one disk dies, the data is still in tact".

I was also concerned about performance. It seems that if the RAIDs will be used heavily and independent of each other, and performance is a concern, then dedicated disks (and possibly dedicated controllers) are the better option.

      ____________________________________________________________________________________

Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

#15 lore raw
Quoted 7 lines · Alex Davis

I code, therefore I am

--- On Fri, 5/2/08, David Lethe <[email protected]> wrote:
[snipped]

Quoted 7 lines
Quoted 3 lines

I was being too literal. md is a good solution (I use it myself). However, the OP wanted to "Make sure that if one disk dies, the data is still in tact".

I was also concerned about performance. It seems that if the RAIDs will be used heavily and independent of each other, and performance is a concern, then dedicated disks (and possibly dedicated controllers) are the better option.

My understanding of having multiple, possibly differnet types of RAID partitions say on two drives, are that performance-wise this are the same considerations as for a single drive. You can worry about head movement and seek times and transfer rates, but the problems are the same for raid and non-raid. IMHO architecturally multiple RAIDs on same disks do not introduce additional performance issues compared with single disk solutions, nor with one-raid-per-set-of-drives solutions.

The above statement on having separate disks per raid is more or less the same as saying that the more disks you have, the better.

If performance is an issue, then I am recommending my pet raid10,f2 layout, which has a 30 - 80 % increased performance over traditional RAID1, because it uses only the outer faster tracks on the disk, and it has reduced seek time only searching on half of the disk (and this the again the outer part, so that the head movement is reduced to about 1/3).

Best regards
keld

#16 lore raw
In reply to David Lethe
Quoted 2 lines · David Lethe

-----Original Message-----

<snip>

Quoted 11 lines
Quoted 1 line

*(or more accurately has saved me from having to restore my data)

=======================
Since I am the person that wrote that "Look how many problems people
post to the thread on a weekly basis where people lose their data when md rebuilds go bad with non-shared disks", I think need to clarify.

I was being too literal. md is a good solution (I use it myself). However, the OP wanted to "Make sure that if one disk dies, the data is still in tact".

Only way to do that is have a good offsite backup.

Nothing can prevent opportunity for data loss. I don't care what RAID level (with single redundancy) you use or whether you have software or hardware-based RAID .. rebuilds can not reconstruct data if you are in degraded mode and have an unrecoverable read error on surviving disks. It is not md's job or design point to insure data consistency check/repairs are run 24x7. As such, by definition, there is no way to insure that a md rebuild will always be successful.

I realize this, but the original wording really sounded like more like "well, there is a CHANCE your reconstruct will work good", rather than "well, there is a CHANCE your reconstruct will fail", if you get what i mean :)

Naturally there can always be errors or bugs, but the whole point (for me) in doing the raid1, is that i will have much lower chance of loosing my data, since a disk can suddenly die, and hopefully in this case, the other will not. and well, an extra disk doesent really cost so much.

Thanks for the clarification :)

Quoted 8 lines

David
---------

#17 lore raw
In reply to Kasper Sandberg
Quoted 19 lines · Kasper Sandberg
Quoted 11 lines · David Rees
Quoted 3 lines · Kasper Sandberg

in other words, would i be
safer to run rsync every day to my other disk, and run in non-raid mode?!

What would be safer is to run rsync every day from one redundant array to another array - preferably on another machine that is located as far away as possible from the one that you are backing up.

RAID is not the same as a backup, though unfortunately, too many people treat it as such.

Im not treating it as a backup, what i want, is to make sure that if 1 disk dies, the data is still intact and ill hopefully be able to run with 1 disk till the newly ordered one arrives - and while i naturally will keep offsite backups of most important data, it is certainly far easier to simply rip out a faulty disk, and put in another, instead of restoring from backup from scratch..

Quoted 3 lines

So my question remains.. Is md raid1 not suited for this need? would it be safer to run in non-raid1 mode and daily(maybe hourly) rsync everything over to the second disk?

I join in on this question. I have written a howto on our linux raid page, that exactly advocates a way to with 2 drives use these 2 drives for multiple partitions, of different types of RAID. The partitions include /boot / /home and swap - which are actually all allocated as RAID partitions on the same 2 drives. See
http://linux-raid.osdl.org/index.php/Preventing_against_a_failing_disk

I am trying to advocate that this be a recommended setup for normal workstations, to for the price of one extra harddisk get additional safety and performance.

My take is that Linux RAID code is so stable, including in the degarded mode, that this is robust and stable. However, there are still bugs to be found, so you can never be 100 % sure.

Best regards
keld

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#21 lore raw
Quoted 9 lines · Maurice Hilarius
Quoted 3 lines · Keld Jørn Simonsen

..
Hmm, would raid10,n2, or raid10,f2 then have these flaws too?

I do not know.
I am, however, about to do some testing to find out.
Our company routinely was using RAID1 on systems, until we discovered this. With no ability to boot from RAID5 and similar this leaves us in a bit of a bind.

As raid10,n2 is data wise equivalent to RAID1, then grub/lilo should be able to boot from raid10,n2.

raid10,n2 should have better performance than RAID10, but raid10,f2 actually should have better performance than both of the others. See http://linux-raid.osdl.org/index.php/Performance (which I wrote). That is why I advocated raid10,f2 for the system partitions, as far as possible, only having /boot as a RAID1.
I have a setup which implements this and it runs fine.

I look forward to hear about your tests on this.

Best regards
keld
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#22 lore raw
Quoted 11 lines · Keld Jørn Simonsen
Quoted 9 lines · Maurice Hilarius
Quoted 3 lines · Keld Jørn Simonsen

..
Hmm, would raid10,n2, or raid10,f2 then have these flaws too?

I do not know.
I am, however, about to do some testing to find out.
Our company routinely was using RAID1 on systems, until we discovered this. With no ability to boot from RAID5 and similar this leaves us in a bit of a bind.

Quoted 4 lines

As raid10,n2 is data wise equivalent to RAID1, then grub/lilo should be able to boot from raid10,n2.

raid10,n2 should have better performance than RAID10, but raid10,f2

I meant: raid10,n2 should have better performance than RAID1

best regards
keld
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#23 lore raw
In reply to Kasper Sandberg
Quoted 22 lines · Kasper Sandberg
Quoted 6 lines · David Rees
Quoted 4 lines · Kasper Sandberg

in other words, would i be
safer to run rsync every day to my other disk, and run in non-raid mode?!

Quoted 7 lines

What would be safer is to run rsync every day from one redundant array to another array - preferably on another machine that is located as far away as possible from the one that you are backing up.

RAID is not the same as a backup, though unfortunately, too many people treat it as such.

Im not treating it as a backup, what i want, is to make sure that if 1 disk dies, the data is still intact and ill hopefully be able to run with 1 disk till the newly ordered one arrives - and while i naturally will keep offsite backups of most important data, it is certainly far easier to simply rip out a faulty disk, and put in another, instead of restoring from backup from scratch..

Quoted 4 lines

So my question remains.. Is md raid1 not suited for this need? would it be safer to run in non-raid1 mode and daily(maybe hourly) rsync everything over to the second disk?

Raid protects against disk failure. So your use is fine.

Backup also protects against user error and virus/worm/cracker damage.
If you accidentally overwrite a file, or a virus/worm/cracker messes up the filesystem, then RAID loose because the overwiting/messing happens on both disks.
In that case you'll still be able to get stuff from a backup.

Helge Hafting

author
#24 lore raw
Quoted 10 lines
Quoted 4 lines
Quoted 1 line

Can you explain what you mean, exactly?

As an example, you have disks /dev/sd[abc]. /dev/md0 would be made from /dev/sda1, /dev/sdb1, and /dev/sdc1; /dev/md1 would be made from /dev/sda2, /dev/sdb2, and /dev/sdc2.

I've been watching this thread with interest, because I wanted clarification on what the OP meant.

If by "sharing disks", the OP meant the above, I'm surprised (and
concerned) there's any question at all. How is this anything other > than the definition of "mirror"?

md0 and md1 are both RAID 5 arrays, not mirrors.

      ____________________________________________________________________________________

Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

#25 lore raw
In reply to Alex Davis
Quoted 4 lines · Alex Davis

Is this a bad thing? I'm guessing that it is, but I want independent confirmation before I spoke to someone I know who's doing this.

Thanks

Depends what you're trying to do.

It has the potential to increase i/o contention so it's not going to be a performance win. Many systems really don't need to worry about performance. But if you have 2x250 Gb drives and 1x500 Gb drive then your data is at less risk if you partition the 500Gb into 2x250Gb and then mirror each partition with a full 250Gb disk. That would be a perfectly rational setup in many instances.

Equally, md has a mechanism to share hot spares amongst multiple RAIDs - but I doubt that's what you meant.

David

#26 lore raw
In reply to Alex Davis
Quoted 2 lines · Alex Davis

Is this a bad thing? I'm guessing that it is, but I want independent confirmation before I spoke to someone I know who's doing this.

I use it to ensure that multiple partitions are RAIDed. I have a /boot partition which is ext3 and a large LVM partition. Both of them are RAID-1 onto a second drive (md0 and md1) for redundancy. The second drive has an identical partition table to the first drive.

Nick.

Signature · 2 lines
PGP Key ID = 0x418487E7                      http://www.nick-andrew.net/
PGP Key fingerprint = B3ED 6894 8E49 1770 C24A  67E3 6266 6EB9 4184 87E7