Chinaunix首页 | 论坛 | 博客
  • 博客访问: 496206
  • 博文数量: 105
  • 博客积分: 3040
  • 博客等级: 中校
  • 技术积分: 1450
  • 用 户 组: 普通用户
  • 注册时间: 2005-07-08 13:04
文章分类

全部博文(105)

文章存档

2008年(105)

我的朋友

分类:

2008-06-18 15:20:59

raid 0+1和1+0的区别
2007-04-14 23:33
raid 0+1和1+0的区别

我们现在常用的RAID10其实是1+0而并不是0+1,看似简单只是个顺序问题。其实对应用来说是非常不同的。    

RAID 0+1 - using 4 drives, two pairs are striped, and the results mirror each other. In this configuration, when one of the drives fails, it actually breaks the stipe that it belongs to, which in turn breaks the mirror... at this point, all you have is 1 stipe. At this point, if one drive fails, you are in trouble. To recover, the offending drive is removed, and the entire stipe needs to be resync'd.

RAID 1+0 - using 4 drives, two pairs are mirrored, and the results are used to create a single stripe. In this configuration, when one of the drives fails, it only breaks one mirror, without affecting the stripe... at this point, only 1/2 of the stipe is mirrored... but if a 2nd drive failure were to occur, it has a 2-in-3 chance of occuring on the last mirror... if it does, you are still OK. To recover, the offending drive is removed, and only the mirror of 1/2 the stripe needs to be resync'd.

RAID 10和RAID 0+1的区别

RAID 10和RAID0+1是完全不同的两个实现和设置方法

现在举两个例子,分别是单个盘阵2块disk和 3块disk的情况

(一)单个盘阵2块disk

RAID 10 (先作0,然后作1)

A
----]- RAID0(array 1)
B
---------------------]- RAID 1(array final)
C
----]- RAID0(array 2)
D


RAID 0+1(先作1,然后作0)

A
---]- RAID1(array 1)
B
--------------------]- RAID 0(array final)
C
---]- RAID1(array 2)
D


看上去是不是差不多?呵呵,先不要马上下结论,看三块盘以上会有啥变化

(二) 单个盘阵3块disk

RAID10

A

B-------]- RAID0

C
------------------]- RAID 1
E

F-------]- RAID0

G


RAID0+1因为是先做1,然后作0,因为RAID 1是镜像,需且只需两块硬盘,所以,在单个盘阵是2块以上的情况下,是实现不了 RAID0+1的


===============================================

上面说了 具体的配置区别

在实际的应用中,RAID10是追求在确保高速度访问情况下数据基本可靠的一种手段.

比如,在学校的FTP服务器上,一些文件被频繁的访问,但是要求这些文件本身具备一定的安全和可靠,所以,RAID10是比较理想的选择.

又比如,在财务部门等小型关键部门,需要存放一些比较重要的资料,以提供企业的其他部门,在一定的时间段(比如下班之前一个小时的结算时间,比如每个星期五上午的结算时间,而不是指在所有的时间段内)比较多的访问,所以在确保数据可靠性的情况下,采取RAID0+1的方式来稍微提高一下访问性能。


由此看出,这两种方式是完全不同的,应用的对象和场合也是完全不一样的。

在这里再次强调,如果真的想好好的设计和实施企业应用,就应该像称职的大夫一样,通过仔细甄别业务的不同特点,制定针对这种业务的解决方法,而不能随随便便的拿出RAID5一概而论,这是对用户的不负责任的工作态度。

根据我得到的反馈,对于采用精细调整的IT系统的企业,在将来漫长的运作过程中,出现问题的概率要远小于粗枝大叶胡乱部署的企业,特别是一些基本系统,比如mail,web,database等。

Linux由于其稳定和高度开放的特点,特别适合企业应用,不过前提是经过了精细的设计和调整,否则,其被应用到企业中,效果未见得比微软平台要好,甚至有可能完全抹煞了其稳定和高度开放的特性,成为企业构架IT系统中的败笔.
阅读(1414) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~