JavaScript is required to for searching.
跳過導航連結
結束列印檢視
Oracle Solaris 10 1/13 安裝指南:基本安裝     Oracle Solaris 10 1/13 Information Library (繁體中文)
search filter icon
search icon

文件資訊

前言

1.  規劃從 CD 或 DVD 媒體安裝 Oracle Solaris (作業)

2.  使用 Oracle Solaris 安裝程式安裝 UFS 檔案系統 (作業)

3.  使用 Oracle Solaris 互動式文字介面安裝程式安裝 ZFS 根集區 (規劃與作業)

ZFS 根集區安裝 (規劃)

使用 Oracle Solaris 互動式文字介面安裝程式執行 ZFS 的初始安裝

SPARC: 如何安裝 ZFS 根集區

x86: 使用 Oracle Solaris 互動式文字介面安裝程式執行 ZFS 的初始安裝

x86: 如何使用具備 GRUB 之 Oracle Solaris 互動式文字介面安裝程式安裝 ZFS

4.  在 iSCSI 目標磁碟上安裝 Oracle Solaris 10 作業系統

索引

x86: 使用 Oracle Solaris 互動式文字介面安裝程式執行 ZFS 的初始安裝

您可以使用 Oracle Solaris 互動式文字介面安裝程式執行 Oracle Solaris 作業系統的初始安裝。初始安裝會覆寫將安裝軟體之磁碟上的資料。本節提供有關如何使用 DVD 或 CD 媒體安裝 Oracle Solaris 作業系統的詳細說明。

x86: 如何使用具備 GRUB 之 Oracle Solaris 互動式文字介面安裝程式安裝 ZFS

x86 系統的 Oracle Solaris 安裝程式會使用 GRUB 開機管理程式。此程序說明如何使用 CD 或 DVD 媒體中的 GRUB 開機管理程式安裝獨立式 x86 系統。如需 GRUB 開機管理程式的簡介資訊,請參閱「Oracle Solaris Administration: Basic Administration」中的「Modifying Boot Behavior by Editing the GRUB Menu at Boot Time」

開始之前

在開始安裝之前,請先執行下列作業。

  1. 在您的系統中插入適當的媒體。

    如果您要從 Oracle Solaris 作業系統 DVD 或 Oracle Solaris 軟體 - 1 CD 啟動,請插入光碟片。系統的 BIOS 必須支援從 DVD 或 CD 啟動。

    您可能需要手動將 BIOS 設定成從 DVD 或 CD 啟動。有關如何設定 BIOS 的詳細資訊,請參閱您的硬體說明文件。

  2. 請透過關機,然後關閉電源再開啟電源的方式啟動系統。
  3. 如果您需要手動將 BIOS 設定成從 CD 或 DVD 啟動,請鍵入適當的按鍵順序,以中斷系統啟動程序。

    在 BIOS 中修改啟動優先權,然後退出 BIOS 以返回安裝程式。

    這時會執行硬體檢測及記憶體測試。螢幕會更新。隨即顯示 GRUB 功能表。

    GNU GRUB version 0.95 (631K lower / 2095488K upper memory)
    +-------------------------------------------------------------------------+
    | Oracle Solaris                                                          |
    | Oracle Solaris Serial Console ttya                                      |
    | Oracle Solaris Serial Console ttyb (for lx50, v60x and v65x)            |
    |                                                                         |
    |                                                                         |
    +-------------------------------------------------------------------------+
    Use the ^ and v keys to select which entry is highlighted.
    Press enter to boot the selected OS, 'e' to edit the
    commands before booting, or 'c' for a command-line.
  4. 選取 [Solaris],然後按 Enter 鍵。

    Oracle Solaris 安裝程式會檢查預設啟動磁碟,確定是否符合安裝或升級系統的需求。如果安裝程式無法偵測系統配置,程式會提示您所缺少的資訊。

    完成檢查之後,螢幕上會顯示安裝選項畫面。

  5. 請鍵入 3,在桌面階段作業中選取互動式文字介面安裝程式進行安裝,再按 Enter 鍵。

    選取此安裝類型將會改寫預設的 GUI 安裝程式,並執行文字介面安裝程式來進行 ZFS 安裝。

    系統會配置裝置及介面並搜尋配置檔案。如果作業系統找不到可自我識別的鍵盤,將會顯示鍵盤配置選取畫面。如果系統找到可自我識別的鍵盤,請跳至步驟 7

  6. (可選擇) 若出現列示鍵盤配置的畫面,請選取所需的鍵盤配置,然後按 F2 鍵繼續執行。

    系統會配置裝置和介面,然後搜尋配置檔案。您可能會看到確認視窗正在運作中的兩個畫面。確認接下來的兩個畫面,並在文字模式下繼續操作。

  7. 若顯示以下畫面,請按 Enter。
    Starting Oracle Solaris Interactive (graphical user interface) 
    Installation
    +------------------------------------------------------------+
    | You must respond to the first question within 30 seconds   |
    | or the installer proceeds in a non-window environment      |
    | (console mode).                                            |
    |                                                            |
    | If the screen becomes blank or unreadable the installer    |
    | proceeds in console mode.                                  |
    |                                                            |
    | If the screen does not properly revert to console mode,    |
    | restart the installation and make the following selection: |
    |                                                            |
    |      Oracle Solaris Interactive Text (Console session)     |
    -------------------------------------------------------------+

    進度訊息結束之後,會顯示另一個確認畫面。

  8. 將游標移至下列文字畫面,然後按 Enter 鍵。
    +------------------------------------------------------------+
    |If the screen is legible, press ENTER in this window.       |
    |                                                            |
    |                                                            |
    |                                                            |
    |-------------------------------------------------------------+

    可能會顯示語言選項清單。如果沒有顯示此畫面,請跳至步驟 10

  9. 若顯示語言選項,請選取安裝期間所要使用的語言,然後按 F2 鍵。
    Select a Language
    +---------------------------------------------------------------------------+
    |   Please specify the the language from the list below.                    |
    |                                                                           |
    |   To make a selection, use the arrow keys to highlight the option and     |
    |   press Return to mark it [X].                                            |
    |                                                                           |
    |       [  ] English                                                        |
    |       [  ] French                                                         |
    |       [  ] German                                                         |
    |       [  ] Italian                                                        |
    |       [  ] Japanese                                                       |
    |       [  ] Korean                                                         |
    |       [  ] Simplified Chinese                                             |
    |       [  ] Spanish                                                        |
    |       [  ] Swedish                                                        |
    |       [  ] Traditional Chinese                                            |
    |       [  ] UK-English                                                     |
    |                                                                           |
    |    F2_Continue      F6_Help                                               |
    +---------------------------------------------------------------------------+
  10. 按 F2。

    會顯示 Oracle Solaris 安裝畫面。

  11. 如果出現提示,提供系統配置資訊。
  12. 若出現提示,請指示是否要啟用遠端用戶端所使用的網路服務。

    如需這些選項的進一步資訊,請參閱「Oracle Solaris 10 1/13 安裝指南:安裝與升級規劃」中的「規劃網路安全性」

    在回答配置問題並設定 Root 密碼後,便會顯示 Oracle Solaris 互動式安裝畫面。

    Solaris Interactive Installation
    +----------------------------------------------------------------------------+
    |On the following screens, you can accept the defaults or you can customize  |
    | how Solaris software will be installed by:                                 |
    |  - Selecting the type of Solaris software to install                       |
    |  - Selecting disks to hold the software you've selected                    |
    |  - Selecting unbundled products to be installed with Solaris               |
    |  - Specifying how file systems are laid out on the disks                   |
    |                                                                            |
    |After completing these tasks, a summary of your selections                  |
    |(called a profile) will be displayed.                                       |
    |                                                                            |
    |There are two ways to install your Solaris software:                        |
    |                                                                            |
    |  - 'Standard' installs your system from a standard Solaris Distribution.   |
    |     Selecting 'standard' allows you to choose between initial install      |
    |     and upgrade, if your system is upgradeable.                            |
    |                                                                            |
    |  - 'Flash' installs your system from one or more Flash Archives.           |
    |                                                                            |
    |    F2_Continue       F4-Flash       F5-Exit      F6_Help                   |
    +----------------------------------------------------------------------------+
  13. 選擇安裝方法。
  14. 指示是否自動重新啟動系統,以及是否自動退出光碟。按 F2。

    備註 - 如果要在重新啟動系統前停用「自動註冊」,請取消選取自動重新啟動。

    如果您的系統已有 ZFS 儲存集區,下列訊息會確認這些儲存集區,它們會維持不變,除非您選取現有集區中的磁碟來建立新儲存集區。


    There are existing ZFS pools available on this system.
    However, they can only be upgraded using the Live Upgrade tools.
    The following screens will only allow you to install a ZFS root system,
    not upgrade one.

    看到系統上已經有 ZFS 儲存集區的訊息時,請按 F2 鍵以繼續。

    會顯示 [授權] 畫面。

  15. 接受授權合約後才可繼續安裝。按 F2。

    會顯示 [選取升級或初始安裝] 畫面。如果有可升級的 UFS 檔案系統,則會顯示此畫面。如果沒有顯示此畫面,請跳至步驟 17

  16. 若要執行 ZFS 安裝,請按 F4 鍵進行初始安裝。

    會顯示選擇地理區域、語言環境及其他產品的畫面。

  17. 請選擇您要的地理區域、語言環境和其他產品。

    會顯示 [選擇檔案系統類型] 畫面。

  18. 若要建立並安裝 ZFS 根集區,請選取 ZFS 選項。
    Choose a Filesystem Type
    +---------------------------------------------------------------------------+
    |   Select the filesystem to use for your Solaris installation              |
    |                                                                           |
    |           [ ] UFS                                                         |
    |           [X] ZFS                                                         |
    |                                                                           |
    |    F2_Continue      F6_Help                                               |
    +---------------------------------------------------------------------------+

    會顯示 [選取軟體] 畫面。

  19. 選取您想要執行的安裝類型。按 F2。

    若要執行預設安裝,請接受系統提供的預設值。若要執行自訂安裝,請編輯顯示在文字介面安裝程式畫面中的值。在此畫面範例中,選取了預設的 [Entire Distribution] 軟體群組進行安裝。

    如需軟體群組的更多資訊,請參閱軟體群組的磁碟空間建議

    Select Software
    +---------------------------------------------------------------------------+
    |Select the Solaris software to install on the system                       |
    |                                                                           |
    |Note: After selecting a software group, you can add or remove              |
    |software by customizing it. However this requires understanding of         |
    |software dependencies and how Solaris software is packaged.                |
    |                                                                           |
    |  [ ] Entire Distribution plus OEM support ......8575.00 MB                |
    |  [X] Entire Distribution........................8529.00 MB                |
    |  [ ] Developer System Support...................8336.00 MB                |
    |  [ ] End User System Support....................7074.00 MB                |
    |  [ ] Core System Support........................3093.00 MB                |
    |  [ ] Reduced Networking Core System Support.....3035.00 MB                |
    |                                                                           |
    |                                                                           |
    |    F2_Continue      F6_Help                                               |
    +---------------------------------------------------------------------------+

    會顯示 [選取磁碟] 畫面。

    選取要安裝的軟體後,系統會提示您選取要用來建立 ZFS 儲存集區的磁碟。除以下文字之外,此畫面類似於先前的 Oracle Solaris 發行版本:

    For ZFS, multiple disks will be configured as mirrors, so the disk you choose, 
    or the slice within the disk must exceed the Suggested Minimum value.
  20. 選取一個或多個磁碟,將其用於 ZFS 根集區。

    請注意下列資訊:

    • 如果您選取單一磁碟,並且希望在稍後配置鏡像,請參閱「Oracle Solaris ZFS Administration Guide」中的「Managing Devices in ZFS Storage Pools」zpool attach 指令。

    • 如果選取兩個磁碟,系統會為根集區設定鏡像雙磁碟配置。雙磁碟或三磁碟鏡像集區都是最合適的配置。

    • 如果您有八個磁碟,並且選取了全部的八個磁碟,這八個磁碟會以一個大型鏡像用於根集區。這並非是最合適的配置。

    根集區不支援 AID-Z 集區配置。如需配置 ZFS 儲存集區的更多資訊,請參閱「Oracle Solaris ZFS Administration Guide」中的「Replication Features of a ZFS Storage Pool」

    Select Disks
    +---------------------------------------------------------------------------+
    |On this screen you must select the disks for installing Solaris            |
    |software. Start by looking at the Suggested Minimum Field;                 |
    |this value is the approximate space needed to install the software         |
    |you've selected. For ZFS, multiple disks will be configured as mirrors,    |
    |so the disk you choose on the slice within the disk must exceed            |
    |the Suggested Minimum Value.                                               |
    |                                                                           |
    |  Note: ** denotes the current boot disk                                   |
    |                                                                           |
    |Disk Device                                        Available Space         |
    |========================================================================== |
    |                                                                           |
    |[X]** c0t0d0                                        69994 MB (F4 to edit)  |
    |[X]   c0t1d0                                            69994 MB           |
    |[-]   c0t2d0                                                0 MB           |
    |[-]   c0t3d0                                                0 MB           |
    |                                                                           |
    |                                 Maximum Root Size: 69994 MB               |
    |                                 Suggested Minimum: 8529 MB                |
    |                                                                           |
    |    F2_Continue      F3_Go Back      F4_Edit      F6_Help                  |
    +---------------------------------------------------------------------------+

    會顯示 [保留資料] 畫面。

  21. (可選擇) 在您要安裝軟體的磁碟上保留資料。

    如果您選取要用於安裝的磁碟含有檔案系統,或有您想要儲存的未命名磁碟片段,則您可以現在儲存這些檔案系統或未命名磁碟片段。

    Preserve Data?
    +---------------------------------------------------------------------------+
    |Do you want to preserve existing data? At least one of the disks you've    |
    |selected for installing Solaris software has file systems or unnamed slices|
    |that you may want to save                                                  |
    |                                                                           |
    |                                                                           |
    |    F2_Continue      F4_Preserve    F6_Help                                |
    +---------------------------------------------------------------------------+

    如果您按下 F4 鍵來儲存資料,便會顯示儲存資料的畫面。

  22. (可選擇) 選取要儲存的資料。

    若要管理檔案系統的 ZFS 根,請提供磁碟片段的整個磁碟大小。例如,提供磁碟片段 0 的大小。共用同一磁碟上的不同根檔案系統可能會難以管理。

    若要從要安裝為根檔案系統的磁碟複製資料,請結束安裝程式並將此磁碟上您要保存的資料備份,然後重新啟動安裝程式。

    # install-solaris

    會顯示配置 ZFS 設定的畫面。

  23. 您可以接受預設值或加以修改。

    您可以變更 ZFS 集區的名稱、資料集名稱、集區大小、交換空間和傾印。此外,您還可以修改建立及掛載 /var 檔案系統的方式。

    Configure ZFS Settings
    +-------------------------------------------------------------------------- -+
    |Specify the name of the pool to be created from the disk(s) you have chosen.|
    |Also specify the name of the dataset to be created within the pool that is  |
    |to be used as the root directory for the filesystem.                        |
    |                                                                            |
    |                                                                            |
    |              ZFS Pool Name: rpool                                          |
    |      ZFS Root Dataset Name: s10ZfsBE                                       |
    |          ZFS Pool Size in (MB): 69995                                      |
    |          Size of swap area in (MB): 2048                                   |
    |          Size of dump area in (MB): 1024                                   |
    |        (Pool size must be between 6481 MB and 69995 MB)                    |
    |                                                                            |
    |                         [X] Keep / and /var combined                       |
    |                         [ ] Put /var on a separate dataset                 |
    |                                                                            |
    |    F2_Continue     F3_Go Back     F5_Exit      F6_Help                     |
    +------------------------------------------------------------------------- --+

    會顯示掛載遠端檔案系統的畫面。

  24. 指示是否要掛載遠端檔案系統。
    Mount Remote File System
    +-------------------------------------------------------------------------- -+
    |Do you want to mount a software from a remote file server? This may         |
    |be necessary if you had to remove software because of disk space problems.  |
    |                                                                            |
    |                                                                            |
    |    F2_Continue      F6_Help                                                |
    +------------------------------------------------------------------------- --+
  25. 若出現提示,請提供「自動註冊」資訊。
    • 如果您在安裝或升級之前,已使用 auto_reg 關鍵字在 sysidcfg 檔案中設定自動註冊喜好設定,安裝程式不會在安裝過程中要求您填寫配置問題。
    • 如果您未於 sysidcfg 檔案中包含 auto_reg 關鍵字,安裝程式會提示您回答配置問題,以提供自動註冊所需資訊。

      備註 - 如果您希望在安裝或升級結束時停用自動註冊,請勿輸入任何資訊,繼續完成自動註冊畫面。


      1. 選取選項可使用您的支援憑證註冊,或取消選取選項以匿名傳送資料。
        image:文字畫面可讓您選擇匿名使用,或使用自動註冊註冊。

        使用箭頭鍵移動至選項方塊。按 Return 以標示選項方塊,選擇以您的支援憑證進行註冊。按 Esc–2 鍵繼續。

      2. 提供所需的代理和憑證資訊。

        如果選擇以您的支援資訊註冊,會提示您輸入 My Oracle Support 使用者名稱和密碼。如果您使用代理伺服器,可提供伺服器主機名稱和連接埠號碼,以及代理伺服器使用者名稱和密碼。

        若選擇匿名註冊,此畫面只會詢問代理伺服器資訊。


        圖 3-1 文字自動註冊資料輸入畫面

        image:此畫面可讓您輸入自動註冊的代理伺服器和憑證資訊。

        使用箭頭鍵在各行之間移動。輸入支援憑證和選用的代理伺服器項目。按 Esc–2 鍵繼續。

        會顯示 [設定檔] 畫面。

  26. 檢視顯示您針對安裝所做選擇的設定檔畫面。

    如有必要,您可以變更 安裝設定檔。以下畫面是最後的安裝設定檔畫面範例。

    Profile
    +-------------------------------------------------------------------------- -+
    |The information shown below is your profile for installing Solaris software.|
    |It reflects the choices you've made on previous screens.                    |
    |                                                                            |
    |============================================================================|
    |                                                                            |
    |                Installation Option: Initial                                |
    |                        Boot Device: c0t0d0                                 |
    |              Root File System Type: ZFS                                    |
    |                    Client Services: None                                   |
    |                      System Locale: C ( C )                                |
    |                                                                            |
    |                           Software: Solaris 10, Entire Distribution        |
    |                          Pool Name: rpool                                  |
    |              Boot Environment Name: s10ZfsBE                               |
    |                          Pool Size: 69995 MB                               |
    |                    Devices in Pool: c0t0d0                                 |
    |                                     c0t1d0                                 |
    |                                                                            |
    |    F2_Begin Installation    F4_Change    F5_Exit              F6_Help      |
    +------------------------------------------------------------------------- --+
  27. 若要安裝 Oracle Solaris 軟體,請按 F2 並遵循指示進行。

    當 Oracle Solaris 互動文字程式完成了 Oracle Solaris 軟體的安裝之後,系統將自動重新啟動或提示您手動重新啟動。

    如果您要安裝附加產品,系統會提示您插入這些產品的 DVD 或 CD。如需安裝程序的說明,請參閱適當的安裝說明文件。

    安裝完成後,安裝記錄會儲存在檔案中。您可以在 /var/sadm/system/logs/var/sadm/install/logs 目錄中找到安裝記錄。

    安裝完成。如果您在先前的安裝程式畫面中取消選取自動重新開機,請繼續前往步驟 28

  28. 如果您先前取消選取自動重新開機,請選擇下列一或兩個選項:
    • 如果您不希望停用自動註冊,請退出安裝媒體,依下列方式手動重新開機:
      # reboot
    • 如果您希望停用自動註冊,不要在重新開機時將配置資料傳送到 Oracle,請先執行下列步驟,然後再手動重新開機。

      注意

      注意 - 如果系統自動重新開機,則無法使用下列步驟停用自動註冊。請改為在自動重新啟動之後,使用 Oracle Configuration Manager (OCM) 停用「自動註冊」。請參閱「Oracle Solaris Administration: Basic Administration」中的第 17 章「Working With Oracle Configuration Manager」


      1. 安裝完成且尚未手動重新開機前,按「!」以開啟終端機視窗。
      2. 在指令行上,移除 /a/var/tmp/autoreg_config 檔案。
        # rm /a/var/tmp/autoreg_config
      3. 儲存該檔案。
      4. 退出所有安裝媒體,手動重新開機。
        # reboot

        系統重新啟動之後,GRUB 功能表會列出已經安裝的作業系統 (包括新安裝的 Oracle Solaris 作業系統)。

  29. 選取您要啟動的作業系統。

    如果未做其他選取,會載入預設選項。

    會顯示 GRUB 功能表清單。

    GNU GRUB version 0.95 (637K lower / 3144640K upper memory)
    +----------------------------------------------------------------------------+
    |Oracle Solaris 10 8/11 s10zfsBE                                             |
    |Solaris Failsafe                                                            |
    |                                                                            |
    |+---------------------------------------------------------------------------+
    
         Use the ^ and v keys to select which entry is highlighted.
         Press enter to boot the selected OS, .e. to edit the
         commands before booting, or .c. for a command-line.
  30. 顯示 GRUB 功能表時,請按 Enter 鍵來啟動預設作業系統實例。預設值是新安裝的根集區。

    在此範例中,開機環境名稱為 szboot_0507。如果在 10 秒內沒有選取任何項目,系統就會自動啟動。

  31. 在完成安裝之後,請查閱產生的 ZFS 儲存集區和檔案系統資訊。

    在此範例中,範例 zpool statuszfs list 輸出識別的是根集區元件。

    # zpool status
      pool: rpool
     state: ONLINE
     scan: none requested
    config:
    
            NAME        STATE     READ WRITE CKSUM
            rpool       ONLINE       0     0     0
             mirror-0  ONLINE        0     0     0
              c0t0d0s0 ONLINE        0     0     0
              c0t1d0s0 ONLINE        0     0     0
    
    errors: No known data errors
    # zfs list
    NAME                     USED  AVAIL  REFER  MOUNTPOINT
    rpool                   7.15G  59.4G    106K  /rpool
    rpool/ROOT              4.45G  59.4G     31K  legacy
    rpool/ROOT/s10zfsBE     4.45G  59.4G   4.45G  /
    rpool/dump              1.00G  59.4G   1.00G  -
    rpool/export              63K  59.4G     32K  /export
    rpool/export/home         31K  59.4G     31K  /export/home
    rpool/swap              2.06G  61.5G     16K  -

    如果您一開始是使用單磁碟建立 ZFS 儲存集區,則您可以在安裝之後將該磁碟轉換為鏡像 ZFS 配置。如需增加或附加磁碟的更多資訊,請參閱「Oracle Solaris ZFS Administration Guide」中的「Managing Devices in ZFS Storage Pools」

後續步驟

在機器上安裝多個作業系統時,必須指示 GRUB 開機管理程式如何辨識這些作業系統,以利開機作業的進行。如需詳細資訊,請參閱「Oracle Solaris Administration: Basic Administration」中的「Modifying Boot Behavior by Editing the GRUB Menu at Boot Time」