1 / 28

磁碟陣列與邏輯捲軸管理員

磁碟陣列與邏輯捲軸管理員. 指導老師 : 蔡德明. 組員 : 徐啟閎   林啟哲 李承鴻  李 平. 目錄. 一、實作要求 二、實作過程: RAID5 三、實作過程: LVM 四、實作過程:模擬 RAID5 錯誤 五、實作過程:新增 partition 加入原本的 lvm. 一、實作要求. 1. 新增一個 filesystem ,其中含有四個 partition 構成 software RAID5 ,並設定一個 partiton 為 spare disk ,防止系統出錯。 2. 在該 RAID 上面加設 LVM 的檔案系統,並且格式化為 EXT3 檔案系統。

lyneth
Télécharger la présentation

磁碟陣列與邏輯捲軸管理員

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 磁碟陣列與邏輯捲軸管理員 指導老師: 蔡德明 組員:徐啟閎  林啟哲 李承鴻  李 平

  2. 目錄 一、實作要求 二、實作過程:RAID5 三、實作過程: LVM 四、實作過程:模擬RAID5錯誤 五、實作過程:新增partition加入原本的lvm

  3. 一、實作要求 1.新增一個filesystem,其中含有四個partition構成software RAID5,並設定一個partiton為sparedisk,防止系統出錯。 2.在該RAID上面加設LVM的檔案系統,並且格式化為EXT3檔案系統。 3.該檔案系統要用來代替/home,所以home的內容要移動到該目錄去。 4.RAID議題:假設partiton當中有一個壞掉了,如何觀察?並將該壞掉的RAID替換掉,再進行觀察。 5.LVM議題:該RAID又不夠用了你又新增一個partition,並加入原有的lvm中,並將/home的可用容量放到最大,且使用者能夠繼續使用檔案系統不用重新格式化。

  4. 二、實作過程:RAID5(新增partition階段) • 新增hda10~14 partition

  5. 二、實作過程:RAID5(建立RAID5階段) 1.讀取新的分割表。 2.將hda10~13建立RAID5 hda14為sparedisk

  6. 二、實作過程:RAID5(觀察) 觀察結果

  7. 二、實作過程:RAID5(格式化與開機自動啟動) ---進行格式化 ---輸入 mdadm --detail /dev/md0 | grep -i uuid 取得UUID識別碼 後設定/etc/mdadm.conf

  8. 三、實作過程:LVM(觀察與建立PV) • 將md0建立成pv並觀察

  9. 三、實作過程:LVM(觀察與建立VG與PE) 將md0建立成為VG名稱為dicvg,並指定PE為16mb

  10. 實作過程:LVM(觀察與建立LV) • 將dicvg全部分配給LV名稱為diclv

  11. 三、實作過程:LVM(格式化與掛載) 1.以ext3格式化/dev/dicvg/diclv 2.先將原本/home底下的資料移出來再進行掛載 3.將資料移回去

  12. 三、實作過程:LVM(格式化與掛載) 1.設定/etc/fstab以達到開機自動掛載 2.QUOTA的部分我們使用練習二寫過的腳本來製作。

  13. 三、實作過程:LVM(格式化與掛載) -Home底下資料

  14. 三、實作過程:LVM(格式化與掛載) -檢查QUOTA有無正常執行

  15. 四、實作過程:模擬RAID5錯誤 --設定hda11為假設出錯的partition

  16. 四、實作過程:模擬RAID5錯誤(觀察) --hda14啟動了而hda11被換下來了

  17. 四、實作過程:模擬RAID5錯誤(觀察) --觀察還原情形

  18. 四、實作過程:模擬RAID5錯誤(替換錯誤的partition)四、實作過程:模擬RAID5錯誤(替換錯誤的partition) 新建新的partition為hda15

  19. 四、實作過程:模擬RAID5錯誤(替換錯誤的partition)四、實作過程:模擬RAID5錯誤(替換錯誤的partition) 將hda15加入md0並將hda11移除

  20. 四、實作過程:模擬RAID5錯誤(替換錯誤的partition)四、實作過程:模擬RAID5錯誤(替換錯誤的partition) --觀察替換後情形

  21. 五、實作過程:新增partition加入原本的lvm 新增新的partition為hda15,system name為Linux LVM (8e)

  22. 五、實作過程:新增partition加入原本的lvm 1.將hda15建立成新的pv 2.將hda15加入dicvg中

  23. 五、實作過程:新增partition加入原本的lvm 觀察有無增加新的PE

  24. 五、實作過程:新增partition加入原本的lvm 將全部的free PE加入diclv當中

  25. 五、實作過程:新增partition加入原本的lvm 觀察PE使用情形

  26. 五、實作過程:新增partition加入原本的lvm 1.使用resize2fs來更新檔案系統容量 2.使用df進行觀察容量有無改變

  27. 參考資料 • 鳥哥LINUX私房菜-基礎學習篇 第三版 -a第十五章第二節 軟體磁碟陣列 -b第十五章第三節 邏輯捲軸管理員

  28. END

More Related