軟raid5 試驗(rhel 5)
RAID 0 | 存取速度最快 沒有容錯 |
RAID 1 | 完全容錯 成本高,硬碟使用率低. |
RAID 3 | 寫入效能最好 沒有多工功能 |
RAID 4 | 具備多工及容錯功能 Parity 磁碟驅動器造成效能瓶頸 |
RAID 5 | 具備多工及容錯功能 寫入時有overhead |
RAID 0+1 | 速度快、完全容錯 成本高 |
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): n #按n建立新分割槽
Command action
e extended
p primary partition (1-4) #輸入p 選擇建立主分割槽
p
Partition number (1-4): 1 #輸入 1 建立第一個主分割槽
First cylinder (1-130, default 1): #直接回車,選擇分割槽開始柱面這裡就從 1 開始
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-102, default 130):
Using default value 130
Command (m for help): w #然後輸入w寫盤
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@flyer/]# fdisk
-l
Disk /dev/sdb: 1073
MB,
1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device
Boot
Start
End Blocks Id System
/dev/sdb1
1 130
1044193+ 83 Linux
Disk /dev/sdc: 1073
MB,
1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device
Boot
Start
End Blocks Id System
/dev/sdc1
1 130
1044193+ 83 Linux
Disk /dev/sdd: 1073
MB,
1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device
Boot
Start
End Blocks Id System
/dev/sdd1
1 130
1044193+ 83 Linux
Disk /dev/sde: 1073
MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units
= cylinders of 16065 * 512 = 8225280 bytes
Device Boot
Start End Blocks Id System
/dev/sde1
1 130 1044193+ 83 Linux
mdadm不採用/etc/mdadm.conf作為主要配置檔案,它可以完全不依賴該檔案 而不會影響陣列的正常工作。
該配置檔案的主要作用是方便跟蹤軟RAID的配置。對該配置檔案進行配置是有好處的,但不是必須的。推薦對該檔案進行配置。
DEVICE 參與陣列的裝置
ARRAY 陣列的描述
通常可以這樣來建立:
[root@flyer /]# mdadm --detail --scan >> /etc/mdadm.conf
結果如下:
DEVICE /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1
ARRAY /dev/md0 level=raid5 num-devices=4 UUID=8ba81579:e20fb0e8:e040da0e:f0b3fec8
devices=/dev/sdb1,/dev/sdc1,/dev/sdd1,/dev/sde1
/dev/md0:
Version : 00.90.01
Creation Time : Fri Aug 3 13:53:34 2007
Raid Level : raid5
Array Size : 2088192 (2039.25 MiB 2138.31 MB)
Device Size : 1044096 (1019.63 MiB 1069.15 MB)
Raid Devices : 3
Total Devices : 4
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time :
Fri
Aug 3 13:54:02 2007
State : clean
Active Devices : 3
Working Devices : 4
Failed Devices : 0
Spare Devices : 1
Layout : left-symmetric
Chunk Size : 64K
Number Major Minor RaidDevice State
0
8
1 0
active sync /dev/sdb1
1
8
17 1
active sync /dev/sdc1
2
8
33 2
active sync /dev/sdd1
3
8 49
-1 spare /dev/sde1
UUID :
e62a8ca6:2033f8a1:f333e527:78b0278a
因為找md系統在讀入fstab之前,如果找不到md,根本不可能寫進fstab裡面的
1、mdadm: no such device: /dev/md0:
解決方法:需要重新建立軟RAID5陣列
2、mdadm: md device /dev/md0 does not appear to be active.
啟動指定的陣列,重新陣列裝配 到系統中(--assemble)::
[root@flyer ~]# mdadm --assemble --scan /dev/md0 //配置檔案錯誤/dev/mdadm.conf
mdadm: Unknown keyword devices
mdadm: no devices found for /dev/md0
[root@flyer ~]# vi /etc/mdadm.conf
DEVICE /dev/sdb1 /dev/sdc1 /dev/sdd1 //應 該是device,這是一個細節,有好多網頁教程裡是都是devices
ARRAY /dev/md0 level=raid5 num-devices=3 UUID=e62a8ca6:2033f8a1:f333e527:78b0278a
[root@flyer ~]# mdadm -Av /dev/md0 /dev/sd[b,c,d]1 //指定裝置啟動可 以,沒有問題
mdadm: looking for devices for /dev/md0
mdadm: /dev/sdb1 is identified as a member of /dev/md0, slot 0.
mdadm: /dev/sdc1 is identified as a member of /dev/md0, slot 1.
mdadm: /dev/sdd1 is identified as a member of /dev/md0, slot 2.
mdadm: added /dev/sdc1 to /dev/md0 as 1
mdadm: added /dev/sdd1 to /dev/md0 as 2
mdadm: added /dev/sdb1 to /dev/md0 as 0
mdadm: /dev/md0 has been started with 3 drives.
解決方法:修改/ect/mdadm.conf檔案
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/27042095/viewspace-739785/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Rhel5 軟raid5的實驗AI
- 如何提升電腦使用體驗?試試這5款免費軟體吧
- raid5建立(轉)AI
- MD5碰撞試驗
- RHEL 5 DNS 配置DNS
- 【伺服器資料恢復】5盤RAID5中4塊盤重建RAID5後恢復原RAID5資料的案例伺服器資料恢復AI
- 實驗3:軟體測試
- 實驗三-軟體測試
- 實驗三——軟體測試
- 實驗三:軟體測試
- 實驗3——軟體測試
- 實驗三 軟體測試
- RAID5讀寫過程AI
- raid概述與CentOS7.4中raid5的搭建與測試AICentOS
- 伺服器資料恢復—raid5成員盤(少一塊盤)新建raid5如何恢復原raid5資料?伺服器資料恢復AI
- 軟體測試實驗三單元測試
- 軟體測試實驗二 | 白盒測試
- 軟體驗收測試 第三方軟體測試 軟體功能測試 軟體資訊保安測試
- Raid5資料恢復演算法原理+raid5資料恢復方法AI資料恢復演算法
- RHEL5SELinux:AbenchmarkLinux
- RHEL5下載地址
- 軟體測試之功能測試、效能測試經驗談
- 軟體產品驗收測試流程有哪些?如何獲取軟體驗收測試報告測試報告
- redhat5(rhel5)_ipcs詳解_轉Redhat
- SELinux has to be disabled on RHEL/OEL 5Linux
- 軟體測試---單元、整合、系統、驗收測試
- 伺服器raid5資料恢伺服器AI
- 軟體驗收測試有哪些測試方法?北京權威軟體測試機構安利
- 軟體專案測試管理經驗談
- 軟體測試的驗證和確認
- 軟體驗收測試是什麼?第三方軟體驗收測試有什麼意義?
- 金融軟體測試前景分析,與其他軟體測試的5大區別!
- rhel5如何配置自有的gssftpFTP
- rhel5 學用export 及unsetExport
- Keep an eye on these 5 new features in RHEL 7
- 剖析RHEL5 日誌系統
- 軟體驗收測試之α測試和β測試分別是什麼?
- raid5故障重建後無法掛載AI