songyupo 回复于:2005-02-25 10:50:44 |
我先顶了,谢谢了
看着眼熟 |
fishsample2 回复于:2005-02-25 11:04:09 |
以前有DX帖过了,不过再看看也好 |
天涯明月刀 回复于:2005-02-25 12:08:14 |
今天刚做的:mrgreen:
创建镜像 c0t0d0s1 ===c0t1d0s2 c0t1d0s1 ===c0t0d0s2 分区 c0t0d0 partition> p Current partition table (original): Total disk cylinders available: 4924 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 root wm 0 - 2566 4.40GB (2567/0/0) 9218097 1 stand wm 2567 - 2852 501.48MB (286/0/0) 1027026 2 unassigned wm 2859 - 3201 601.42MB (343/0/0) 1231713 3 unassigned wm 0 0 (0/0/0) 0 4 unassigned wm 0 0 (0/0/0) 0 5 unassigned wm 0 0 (0/0/0) 0 6 unassigned wm 0 0 (0/0/0) 0 7 unassigned wm 2853 - 2858 10.52MB (6/0/0) 21546 c0t1d0 partition> p Current partition table (original): Total disk cylinders available: 2733 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 root wm 0 - 134 100.20MB (135/0/0) 205200 1 stand wm 1104 - 1777 500.23MB (674/0/0) 1024480 2 unassigned wm 135 - 943 600.43MB (809/0/0) 1229680 3 unassigned wm 0 0 (0/0/0) 0 4 unassigned wm 0 0 (0/0/0) 0 5 unassigned wm 0 0 (0/0/0) 0 6 unassigned wm 0 0 (0/0/0) 0 7 unassigned wm 1778 - 1791 10.39MB (14/0/0) 21280 首先创建状态数据库 创建metadb状态数据库: # /metadb -a -f dev_name1 dev_name2 ... -a: 增加状态数据库 -d: 删除状态数据库 -f: 强制执行状态数据库的操作 -e count: 一个分区建立多个状态数据库 #metadb -c 3 -a -f /dev/dsk/c0t0d0s7 /dev/dsk/c0t1d0s7 创建元设备 # metainit d21 1 1 /dev/dsk/c0t0d0s1 d21: Concat/Stripe is setup # metainit d22 1 1 /dev/dsk/c0t1d0s1 d22: Concat/Stripe is setup # metainit d50 1 1 /dev/dsk/c0t0d0s2 d51: Concat/Stripe is setup # metainit d51 1 1 /dev/dsk/c0t1d0s2 d51: Concat/Stripe is setup 然后 # metainit d20 -m d21 d20: Mirror is setup # metainit d25 -m d22 d25: Mirror is setup 向里边加其他的文件系统 # metattach d20 d51 d20: submirror d51 is attached # metattach d25 d50 d25: submirror d50 is attached d20 加上c0t1d0s2 = d51 d25 加上c0t0d0s2 = d50 查看状态 # metastat d25: Mirror Submirror 0: d22 State: Okay Submirror 1: d50 State: Okay Pass: 1 Read option: roundrobin (default) Write option: parallel (default) Size: 1024480 blocks (500 MB) d25下两个mirror,d22和d50 d22: Submirror of d25 State: Okay Size: 1024480 blocks (500 MB) Stripe 0: Device Start Block Dbase State Reloc Hot Spare c0t1d0s1 0 No Okay Yes d50: Submirror of d25 State: Okay Size: 1231713 blocks (601 MB) Stripe 0: Device Start Block Dbase State Reloc Hot Spare c0t0d0s2 0 No Okay Yes d20: Mirror Submirror 0: d21 State: Okay Submirror 1: d51 State: Okay Pass: 1 Read option: roundrobin (default) Write option: parallel (default) Size: 1027026 blocks (501 MB) d20下两个mirror,d21和d51 d21: Submirror of d20 State: Okay Size: 1027026 blocks (501 MB) Stripe 0: Device Start Block Dbase State Reloc Hot Spare c0t0d0s1 0 No Okay Yes d51: Submirror of d20 State: Okay Size: 1229680 blocks (600 MB) Stripe 0: Device Start Block Dbase State Reloc Hot Spare c0t1d0s2 0 No Okay Yes Device Relocation Information: Device Reloc Device ID c0t1d0 Yes id1,sd@SSEAGATE_ST32550W_SUN2.1G01607789 c0t0d0 Yes id1,sd@SSEAGATE_ST39173W_SUN9.0GLMA4090100007916H66Z 创建文件系统 #newfs /dev/md/rdsk/d20 #newfs /dev/md/rdsk/d25 # mkdir /d20 # mkdir /d25 # mount /dev/md/dsk/d20 /d20 # mount /dev/md/dsk/d25 /d25 # df -h Filesystem size used avail capacity Mounted on /dev/dsk/c0t0d0s0 4.3G 1.1G 3.2G 25% / /proc 0K 0K 0K 0% /proc mnttab 0K 0K 0K 0% /etc/mnttab fd 0K 0K 0K 0% /dev/fd swap 515M 24K 515M 1% /var/run swap 516M 296K 515M 1% /tmp /dev/md/dsk/d20 472M 1.0M 423M 1% /d20 /dev/md/dsk/d25 470M 1.0M 422M 1% /d25 |
alfee 回复于:2005-02-25 12:11:11 |
一个赛一个呀,
顶顶顶。 |
songyupo 回复于:2005-02-25 12:47:11 |
楼上的老刀你又厉害了:) |
天涯明月刀 回复于:2005-02-25 13:32:42 |
谢谢鼓励
创建swap 查看当前swap文件 # swap -l No swap devices configured 创建 # mkdir /sw # mkfile 500000k /sw/swap 添加 # swap -a /sw/swap operating system crash dump was previously disabled -- invoking dumpadm(1M) -d swap to select new dump device 查看 # swap -l swapfile dev swaplo blocks free /sw/swap - 16 999984 999984 |
60133056 回复于:2005-02-25 14:50:01 |
真是个顶个的棒 个顶个的强啊 |
clearcase/" target="_blank" >ccei 回复于:2005-02-25 16:29:57 |
-e count: 一个分区建立多个状态数据库
应该是:-c 吧! |
albeta 回复于:2005-02-28 10:24:14 |
问一个问题,是不是Raid5的速度比较慢?我们做了一个,16K每个块的时候,速度只有4M Bytes / s, 32k的块只有1.5M Bytes / s,是不是速度慢了点? |