免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: simon.cheng
打印 上一主题 下一主题

请教一个问题:SDS RAID 1+0到底能不能做到? [复制链接]

论坛徽章:
0
11 [报告]
发表于 2010-07-02 16:05 |只看该作者
0+1,和1+0 都是通过做0+1的方式实现的
easybegin 发表于 2010-07-02 15:48



    能否具体说说做法?5楼的方式应该不是.我觉得SVM做不了1+0.

论坛徽章:
0
12 [报告]
发表于 2010-07-02 16:15 |只看该作者
能否具体说说做法?5楼的方式应该不是.我觉得SVM做不了1+0.
核桃哥 发表于 2010-07-02 16:05



    就是5楼的方式

论坛徽章:
0
13 [报告]
发表于 2010-07-02 16:42 |只看该作者
5楼的对,我刚刚做过

论坛徽章:
0
14 [报告]
发表于 2010-07-02 16:57 |只看该作者
5楼的对,我刚刚做过
rmb 发表于 2010-07-02 16:42



    兄弟,我有点疑问啊,5楼的做法,如果d81里拔掉一块盘,d81是不是maintanence了,如果d91再拔一块盘呢?volume是不就挂了

论坛徽章:
0
15 [报告]
发表于 2010-07-02 17:31 |只看该作者
回复 14# 核桃哥


    SVM不支持1+0,5楼的做法2种方式都是0+1:

制作raid0+1
raid 0 +1
metainit d91 1 2 c0t2d0s2 c0t3d0s2
metainit d92 1 3 c2t460s2 c2t7d0s2
# metainit d90 -m d91
# metattach d90 d92
#newfs /dev/md/dsk/d90
#mount /dev/md/dsk/d90 /d90
制作完成.
本质是4块盘,每两块盘做条带化d91,d92,最后做镜像d90,标准0+1



制作raid 1+0

bash-2.05# metainit d81 2 1 c0t2d0s2 1 c0t3d0s2   
d81: Concat/Stripe is setup
bash-2.05# metainit d91 2 1 c2t6d0s2 1 c2t7d0s2
d91: Concat/Stripe is setup
bash-2.05# metainit d80 -m d81
d80: Mirror is setup
bash-2.05# metattach d80 d91
d80: submirror d91 is attached
metastat 查看同步状态,同步完后制作完成
本质是4块盘,每两块盘串联为d81,d91,然后做镜像d80,也是0+1,只不过性能比前一种差。

论坛徽章:
0
16 [报告]
发表于 2010-07-02 18:26 |只看该作者
我认同楼上的说法,我觉得5楼的两种方式只是stripe mirror和concat mirror的区别

论坛徽章:
1
技术图书徽章
日期:2014-04-24 15:56:22
17 [报告]
发表于 2010-07-03 02:24 |只看该作者
哈哈哈哈哈,这个我研究过,并且找到了官方说法,申请加分啊

Document Audience:
SPECTRUM

Document ID:
45222

Title:
Solstice DiskSuite[TM] - Can I create a RAID 1+0 device?

Update Date:
Tue Mar 01 00:00:00 MST 2005
  

Products:
  Solstice DiskSuite 4.2.1 Software,  Solaris Volume Manager Software
  

Technical Areas:
  RAID (Redundant Array of Independent Disks)
  



--------------------------------------------------------------------------------


--------------------------------------------------------------------------------

Keyword(s):1+0, 0+1, mirror, SDS, SVM, ODS, Disksuite, Solaris Volume Manager, Online Disksuite

Problem Statement
Top


None of the commands in DiskSuite or Solaris[TM] Volume Manager seem to allow the creation of a RAID 1+0 device. Can one be created using this software, and if so, how?

Resolution
Top


The short answer is: yes, RAID 1+0 metadevices can be created using DiskSuite/SVM.

Here are the details:

DiskSuite allows the user to create striped metadevices (RAID 0) of multiple physical disk partitions. It also allows the user to create mirrored metadevices of physical disk slices or striped metadevices.

To create a RAID 0+1 metadevice, one creates two striped metadevices and then one creates a mirror of these metadevices; this is standard practice with DiskSuite.

Creating a RAID 1+0 device (conceptually) requires creating multiple mirrors of disk partition pairs, then striping together the mirror metadevices.

The problem is that DiskSuite does not allow the striping of metadevices. Members of a striped metadevice must be physical disk slices, hence RAID 1+0 appears not to be possible with DiskSuite.

However, things are not always as they appear.

If the RAID 0+1 metadevice is created such that the number of columns in each of the mirrored stripes is the same, and the sizes of the physical disk slices in each column is the same, DiskSuite will internally convert that metadevice to a RAID 1+0 device. However, no difference in its outward appearance (for example, using the metastat command) will occur.

As an example, we give you what looks to be a RAID 0+1 metadevice:

  d0: Mirror
       Submirror 0: d10
         State: Okay         
       Submirror 1: d20
         State: Okay         
       Pass: 1
       Read option: roundrobin (default)
       Write option: parallel (default)
       Size: 7058880 blocks

   d10: Submirror of d0
       State: Okay         
       Size: 7058880 blocks
       Stripe 0: (interlace: 32 blocks)
           Device     Start Block  Dbase        State Reloc Hot Spare
           c1t0d0s0          0     No            Okay   Yes
           c1t1d0s0          0     No            Okay   Yes
           c1t2d0s0          0     No            Okay   Yes

   d20: Submirror of d0
       State: Okay         
       Size: 7058880 blocks
       Stripe 0: (interlace: 32 blocks)
           Device     Start Block  Dbase        State Reloc Hot Spare
           c2t0d0s0          0     No            Okay   Yes
           c2t1d0s0          0     No            Okay   Yes
           c2t2d0s0          0     No            Okay   Yes      


However, since DiskSuite treats this device as a RAID 1+0, non-corresponding disks in each submirror CAN fail without any resulting data loss. To illustrate this point, if the disks c1t0d0, c2t1d0, and c1t2d0 were all to fail, the data would still be accessible, despite the fact that all the metadevices are in a "Needs maintenance" state:

  d0: Mirror
Submirror 0: d10
         State: Needs maintenance
       Submirror 1: d20
         State: Needs maintenance
       Pass: 1
       Read option: roundrobin (default)
       Write option: parallel (default)
       Size: 7058880 blocks

   d10: Submirror of d0
       State: Needs maintenance
       Size: 7058880 blocks
       Stripe 0: (interlace: 32 blocks)
           Device     Start Block  Dbase        State Reloc Hot Spare
           c1t0d0s0          0     No     Maintenance   Yes
           c1t1d0s0          0     No            Okay   Yes
           c1t2d0s0          0     No     Maintenance   Yes

   d20: Submirror of d0
       State: Needs maintenance
       Size: 7058880 blocks
       Stripe 0: (interlace: 32 blocks)
           Device     Start Block  Dbase        State Reloc Hot Spare
           c2t0d0s0          0     No            Okay   Yes
           c2t1d0s0          0     No     Maintenance   Yes
           c2t2d0s0          0     No            Okay   Yes      


When replacing these disks, only the disk being replaced will need to be re-synchronized. Again, that is because this metadevice is being treated by DiskSuite as a RAID 1+0 device.

If corresponding disks in each submirror were to fail (such as c1t0d0s0 and c2t0d0s0), data loss would occur

论坛徽章:
0
18 [报告]
发表于 2010-07-03 10:42 |只看该作者
收藏

论坛徽章:
0
19 [报告]
发表于 2010-07-03 11:10 |只看该作者
学习,收藏。
虽然从来没用到过
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP