LVM (Logical Volume Mamager) 概念
使用 LVM,硬碟中的分割區必須加入『Logical Volume Group 邏輯磁區群組(簡稱 VG)』,這種分割區在 LVM 中稱為『Physical Volume 實體磁區(簡稱PV)』,各位可以把 VG 想成是一個大硬碟,然後再從其中切出一塊空間『Logical Volume 邏輯磁區(簡稱 LV)』對應至系統的檔案系統。
 
除了/boot 分割區,其餘的檔案系統皆可在 Volume Group 在這顆虛擬的大硬碟中。/boot 分割區不可以在 VG 中,因為開機管理程式將無法讀取到它。假如您想要  /  檔案系統在 VG 中,您必須另外建立一個  /boot 分割區,使其不屬於VG 的一員。
 
VG 可以分割為幾個 『Logical Volume 邏輯磁區』,將會指定它們的掛載點,例如  /opt  與  /,以及檔案系統類型,如 ext4。當某個檔案系統的容量全滿時,VG 中的剩餘空間可以增加到此檔案系統所對映的邏輯磁區以增大此檔案系統大小。
示意圖如下:

Linux LVM (Logical Volume Manager) Concept.png  

接下來我們用VMWare 來模擬實體機,一步步來安裝 Oracle Linux

Oracle Linux 的來源可從下面取得

https://edelivery.oracle.com/linux

01. 安裝前, 先定義規格

01_oracleLinuxSpec.png

02. 選擇全新安裝

02_oracleLinuxInstallSelect.png

03. 不作安裝來源的檢查

03_oracleLinuxDiskSkip.png

04. 用英文模式來安裝, 因為中文有時翻譯的可能會讓人看不懂

04_oracleLinuxLanguage.png

05. 鍵盤選擇 U.S. English

05_oracleLinuxKB.png

06. 選擇硬碟的類型

06_oracleLinuxStorage.png

07. 硬碟內的資料不保存

07_oracleLinuxDiscardData.png

08. 主機的名稱

08_oracleLinuxHostName.png

09. 時間區域 Time Zone:選亞洲/台北

09_oracleLinuxTZ.png

10. root 的密碼

10_oracleLinuxPW.png

11. 硬碟的配置, 依 LVM 的概念作分配, 選擇自行規劃

11_oracleLinuxHDLayout.png  

12. 先將實體硬碟 sdb & sdc 變成 LVM Physical Volume

12_oracleLinuxLVM01.png

13. 將這兩個LVM Physical Volume (PV):sdb & sdc 加入 Volume Group (VG) VolGroup1 裡

13_oracleLinuxVG_LV.png

14. 記得 /boot 不能放在 LV 裡, 且要將 Force to be a primary paritition 打勾, 這樣系統才開得起來

14_oracleLinuxBoot.png

15. 整個碟碟的規劃如下

15_oracleLinuxLayoutAll.png

16. boot loader 放在 /dev/sda 上, 這樣大致就設定完成

16_oracleLinuxBootLoader.png

17. 因為待會我們要安裝 Oracle Database 12c Release 1 (12.1) , 所以選擇 Customize Now 來挑選必要的 package 軟體

17_oracleLiuxPlatform.png  

The following package groups were included for this installation.

    Base System > Base
    Base System > Compatibility libraries
    Base System > Hardware monitoring utilities
    Base System > Large Systems Performance
    Base System > Network file system client
    Base System > Performance Tools
    Base System > Perl Support
    Servers > Server Platform
    Servers > System administration tools
    Desktops > Desktop
    Desktops > Desktop Platform
    Desktops > Fonts
    Desktops > General Purpose Desktop
    Desktops > Graphical Administration Tools
    Desktops > Input Methods
    Desktops > X Window System
    Applications > Internet Browser
    Development > Additional Development
    Development > Development Tools

安裝 Oracle Database 12c Release 1 (12.1.0.1)  的官方文件可以參考:

http://www.oracle-base.com/articles/12c/oracle-db-12cr1-installation-on-oracle-linux-6.php

http://www.oracle-base.com/articles/12c/oracle-db-12cr1-rac-installation-on-oracle-linux-6-using-virtualbox.php

arrow
arrow
    文章標籤
    Oracle Linux LVM Linux Oracle
    全站熱搜

    MIS 發表在 痞客邦 留言(0) 人氣()