詳文解說高性能(Linux)Raid硬盤製做掛載使用
概述:
「簡單的說,RAID是一種把多塊獨立的硬盤(物理硬盤)按不一樣的方式組合起來造成一個硬盤組(邏輯硬盤),從而提供比單個硬盤更高的存儲性能和提供數據備份技術。」(詳細說明能夠百度)
測試環境:
虛擬機Red Hat或CentOS均可以ide
測試目的:
實現raid磁盤的搭建,更好的爲系統服務性能
具體實驗步驟以下:
首先給虛擬機添加須要的硬盤
![詳文解說高性能(Linux)Raid硬盤製做掛載使用](http://static.javashuo.com/static/loading.gif)
1、raid0(須要兩塊硬盤)
一、給硬盤分區且轉換格式
![詳文解說高性能(Linux)Raid硬盤製做掛載使用](http://static.javashuo.com/static/loading.gif)
二、確保硬盤更改,這裏能夠查看一下
![詳文解說高性能(Linux)Raid硬盤製做掛載使用](http://static.javashuo.com/static/loading.gif)
三、對第二塊硬盤作一樣的步驟
![詳文解說高性能(Linux)Raid硬盤製做掛載使用](http://static.javashuo.com/static/loading.gif)
四、作好兩塊硬盤後,將其作 raid0
![詳文解說高性能(Linux)Raid硬盤製做掛載使用](http://static.javashuo.com/static/loading.gif)
五、作好raid0後,爲了能正常使用,須要將其格式化並掛載到系統中
![詳文解說高性能(Linux)Raid硬盤製做掛載使用](http://static.javashuo.com/static/loading.gif)
2、作鏡像卷(須要三塊硬盤)
一、依照上面的步驟從新建立三塊硬盤且轉換格式
![詳文解說高性能(Linux)Raid硬盤製做掛載使用](http://static.javashuo.com/static/loading.gif)
二、使用命令製做鏡像卷
![詳文解說高性能(Linux)Raid硬盤製做掛載使用](http://static.javashuo.com/static/loading.gif)
三、製做完成查看硬盤狀態
![詳文解說高性能(Linux)Raid硬盤製做掛載使用](http://static.javashuo.com/static/loading.gif)
四、格式化此磁盤,並關掉其中一塊硬盤,模擬故障
![詳文解說高性能(Linux)Raid硬盤製做掛載使用](http://static.javashuo.com/static/loading.gif)
五、再次查看硬盤狀態
![詳文解說高性能(Linux)Raid硬盤製做掛載使用](http://static.javashuo.com/static/loading.gif)
3、raid5(四塊硬盤)
一、同raid0步驟給硬盤分區且轉換格式,而後製做raid5
![詳文解說高性能(Linux)Raid硬盤製做掛載使用](http://static.javashuo.com/static/loading.gif)
二、製做完成查看硬盤使用狀態
![詳文解說高性能(Linux)Raid硬盤製做掛載使用](http://static.javashuo.com/static/loading.gif)
4、raid1+0(四塊硬盤)
一、硬盤的分區與轉換同raid0步驟,這裏就直接製做了
![詳文解說高性能(Linux)Raid硬盤製做掛載使用](http://static.javashuo.com/static/loading.gif)
二、查看結果
![詳文解說高性能(Linux)Raid硬盤製做掛載使用](http://static.javashuo.com/static/loading.gif)
歡迎關注本站公眾號,獲取更多信息