首页 > 硬件 > solaris制作raid0

solaris制作raid0

2005年2月5日 2,001 views 发表评论 阅读评论

solaris制作raid0

——————————————————————————————Raid 0 ————————————————————————————
In a production environment, you should distribute the replicas across multiple disks.
If insufficient state database replicas are available, you must boot into single-user mode and delete enough of the corrupt replicas to achieve a majority consensus.
A minimum of three state database replicas are recommended. The following guidelines are recommended:
For a system with only a single drive: put all three replicas in one slice.
For a system with two to four drives: put two replicas on each drive.
For a system with five or more drives: put one replica on each drive.
root@msl117 # metadb -ac 3 /dev/dsk/c0t0d0s7
root@msl117 # metadb
        flags           first blk       block count
a        u         16              8192            /dev/dsk/c0t0d0s7
a        u         8208            8192            /dev/dsk/c0t0d0s7
a        u         16400           8192            /dev/dsk/c0t0d0s7
root@msl117 # metainit d11 1 4 c0t1d0s0 c0t2d0s0 c0t1d0s1 c0t2d0s1
root@msl117 #  metainit d12 1 6 c0t1d0s4 c0t2d0s4 c0t1d0s3 c0t2d0s3  c0t1d0s5 c0t2d0s5
root@msl117 # metastat
d11: Concat/Stripe
Size: 112960000 blocks (53 GB)
Stripe 0: (interlace: 32 blocks)
Device     Start Block  Dbase   Reloc
c0t1d0s0          0     No      Yes
c0t2d0s0       2824     No      Yes
c0t1d0s1          0     No      Yes
c0t2d0s1          0     No      Yes
d12: Concat/Stripe
Size: 169454120 blocks (80 GB)
Stripe 0: (interlace: 32 blocks)
Device     Start Block  Dbase   Reloc
c0t1d0s4          0     No      Yes
c0t2d0s4          0     No      Yes
c0t1d0s3          0     No      Yes
c0t2d0s3          0     No      Yes
c0t1d0s5          0     No      Yes
c0t2d0s5          0     No      Yes
Device Relocation Information:
Device   Reloc  Device ID
c0t1d0   Yes    id1,sd@SSEAGATE_ST373454LC______3KP10PYP00007623RXC7
c0t2d0   Yes    id1,sd@SSEAGATE_ST373454LC______3KP1A1K8000076095TRK
root@msl117 # metaclear d11
d11: Concat/Stripe is cleared
root@msl117 # metaclear d12
d12: Concat/Stripe is cleared
root@msl117 # metastat
root@msl117 #
root@msl117 # metainit d11 4 1 c0t1d0s0 1 c0t2d0s0 1 c0t1d0s1 1 c0t2d0s1
d11: Concat/Stripe is setup
root@msl117 # metastat
d11: Concat/Stripe
Size: 112968472 blocks (53 GB)
Stripe 0:
Device     Start Block  Dbase   Reloc
c0t1d0s0          0     No      Yes
Stripe 1:
Device     Start Block  Dbase   Reloc
c0t2d0s0       2824     No      Yes
Stripe 2:
Device     Start Block  Dbase   Reloc
c0t1d0s1          0     No      Yes
Stripe 3:
Device     Start Block  Dbase   Reloc
c0t2d0s1          0     No      Yes
Device Relocation Information:
Device   Reloc  Device ID
c0t1d0   Yes    id1,sd@SSEAGATE_ST373454LC______3KP10PYP00007623RXC7
c0t2d0   Yes    id1,sd@SSEAGATE_ST373454LC______3KP1A1K8000076095TRK
-p                      Display the list of active  metadev-
ices and hot spare pools in the same
format as md.tab. See md.tab(4).
-i interlace
Specifies the interlace size. This value tells  Volume
Manager how much data to place on a slice of a striped
or RAID level 5 metadevice before  moving  on  to  the
next  slice.
root@msl117 # metastat -p
d11 4 1 c0t1d0s0 \
1 c0t2d0s0 \
1 c0t1d0s1 \
1 c0t2d0s1
root@msl117 #  metainit d12 6 1  c0t1d0s4 1  c0t2d0s4 1 c0t1d0s3 1 c0t2d0s3 1  c0t1d0s5 1 c0t2d0s5
root@msl117 # metastat -p
d12 6 1 c0t1d0s4 \
1 c0t2d0s4 \
1 c0t1d0s3 \
1 c0t2d0s3 \
1 c0t1d0s5 \
1 c0t2d0s5
d11 4 1 c0t1d0s0 \
1 c0t2d0s0 \
1 c0t1d0s1 \
1 c0t2d0s1
root@msl117 # metastat
d12: Concat/Stripe
Size: 169456944 blocks (80 GB)
Stripe 0:
Device     Start Block  Dbase   Reloc
c0t1d0s4          0     No      Yes
Stripe 1:
Device     Start Block  Dbase   Reloc
c0t2d0s4          0     No      Yes
Stripe 2:
Device     Start Block  Dbase   Reloc
c0t1d0s3          0     No      Yes
Stripe 3:
Device     Start Block  Dbase   Reloc
c0t2d0s3          0     No      Yes
Stripe 4:
Device     Start Block  Dbase   Reloc
c0t1d0s5          0     No      Yes
Stripe 5:
Device     Start Block  Dbase   Reloc
c0t2d0s5          0     No      Yes
d11: Concat/Stripe
Size: 112968472 blocks (53 GB)
Stripe 0:
Device     Start Block  Dbase   Reloc
c0t1d0s0          0     No      Yes
Stripe 1:
Device     Start Block  Dbase   Reloc
c0t2d0s0       2824     No      Yes
Stripe 2:
Device     Start Block  Dbase   Reloc
c0t1d0s1          0     No      Yes
Stripe 3:
Device     Start Block  Dbase   Reloc
c0t2d0s1          0     No      Yes
Device Relocation Information:
Device   Reloc  Device ID
c0t1d0   Yes    id1,sd@SSEAGATE_ST373454LC______3KP10PYP00007623RXC7
c0t2d0   Yes    id1,sd@SSEAGATE_ST373454LC______3KP1A1K8000076095TRK
root@msl117 # metaclear d11
d11: Concat/Stripe is cleared
root@msl117 # metaclear d12
d12: Concat/Stripe is cleared
root@msl117 # metastat
 » 转载保留版权:老陈 » 《solaris制作raid0》
 » 如果喜欢可以: 点此订阅本站
分类: 硬件 标签: ,
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.