亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
最近訪問(wèn)板塊 發(fā)新帖
查看: 1833 | 回復(fù): 1
打印 上一主題 下一主題

命令行創(chuàng)建RAID5(非常感謝前人的工作!) [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2006-10-16 17:18 |只看該作者 |倒序?yàn)g覽
1.建立分區(qū)表
partition> p
Current partition table (original):
Total disk cylinders available: 4924 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
  0 unassigned    wm      18 - 4690        8.00GB    (4673/0/0) 16780743
  1 unassigned    wu       0               0         (0/0/0)           0
  2 unassigned    wm       0               0         (0/0/0)           0
  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       0 -   17       31.56MB    (18/0/0)      64638

2.傳送分區(qū)表參數(shù)到其他硬盤
prtvtoc /dev/rdsk/c0t0d0s0|fmthard -s- /dev/rdsk/c0t1d0s0
prtvtoc /dev/rdsk/c0t0d0s0|fmthard -s- /dev/rdsk/c0t2d0s0
prtvtoc /dev/rdsk/c0t0d0s0|fmthard -s- /dev/rdsk/c0t3d0s0
prtvtoc /dev/rdsk/c0t0d0s0|fmthard -s- /dev/rdsk/c0t4d0s0
prtvtoc /dev/rdsk/c0t0d0s0|fmthard -s- /dev/rdsk/c0t5d0s0

3.建立metadb
metadb -a -f -c 3 c0t0d0s7 c0t1d0s7 c0t2d0s7

4.建立raid5(5 disks)
metainit d10 -r c0t0d0s0 c0t1d0s0 c0t2d0s0 c0t3d0s0 c0t4d0s0

5.建立HSP
metainit hsp001 c0t5d0s0

6.增加HSP到raid
metaparam -h hsp001 d10

7.驗(yàn)證
# metastat
d10: RAID
    State: Initializing
    Initialization in progress: 31.8% done
    Hot spare pool: hsp001
    Interlace: 32 blocks
    Size: 67119381 blocks (32 GB)
Original device:
    Size: 67121536 blocks (32 GB)
        Device     Start Block  Dbase        State Reloc  Hot Spare
        c0t0d0s0        330        No Initializing   Yes
        c0t1d0s0        330        No Initializing   Yes
        c0t2d0s0        330        No Initializing   Yes
        c0t3d0s0        330        No Initializing   Yes
        c0t4d0s0        330        No Initializing   Yes

hsp001: 1 hot spare
        Device     Status      Length   Reloc
        c0t5d0s0   Available    16780743 blocks Yes

Device Relocation Information:
Device   Reloc  Device ID
c0t5d0   Yes    id1,ssd@w20000020370984af
c0t0d0   Yes    id1,ssd@w2000002037146e50
c0t1d0   Yes    id1,ssd@w2000002037146b7e
c0t2d0   Yes    id1,ssd@w2000002037146dff
c0t3d0   Yes    id1,ssd@w2000002037146c22
c0t4d0   Yes    id1,ssd@w20000020370d7dc5

8.投入使用
#newfs /dev/md/rdsk/d10
newfs: construct a new file system /dev/md/rdsk/d10: (y/n)? y
Warning: 1 sector(s) in last cylinder unallocated
/dev/md/rdsk/d10:       67119380 sectors in 18691 cylinders of 27 tracks, 133 sectors
        32773.1MB in 1169 cyl groups (16 c/g, 28.05MB/g, 3392 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 57632, 115232, 172832, 230432, 288032, 345632, 403232, 460832, 518432,
Initializing cylinder groups:
.......................
super-block backups for last 10 cylinder groups at:
66592544, 66650144, 66707744, 66765344, 66822944, 66880544, 66938144,
66995744, 67053344, 67110944,
#mkdir /raid5
#vi /etc/vfstab
添加一行:
/dev/md/dsk/d10 /dev/md/rdsk/d10 /raid5 ufs 2 yes -
#reboot(OR mount /dev/md/dsk/d10 /raid5)

9.維護(hù)RAID5(未測(cè)試)
壞掉一個(gè)盤的恢復(fù)方法(例c0t1d0盤壞掉)
ok boot -r
#metareplace -e d10 c0t1d0s0
#metastat d10
10.操作環(huán)境
1)硬件Sun E3000 + A5200
2)系統(tǒng)Solaris 9

[ 本帖最后由 zhumao 于 2006-10-18 08:31 編輯 ]

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2006-10-16 17:31 |只看該作者
很規(guī)范,UP一下
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過(guò)ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP