跳過導航連結 | |
結束列印檢視 | |
Oracle Solaris 10 8/11 安裝指南:基本安裝 Oracle Solaris 10 8/11 Information Library (繁體中文) |
1. 準備從 CD 或 DVD 媒體進行 Solaris 安裝 (作業)
2. 使用 Solaris 安裝程式安裝 UFS 檔案系統 (作業)
3. 使用 Solaris 互動式文字介面安裝程式安裝 ZFS 根池 (規劃與作業)
Oracle Solaris 10 8/11 發行版本中的新增功能
Oracle Solaris 10 10/09 發行版本中的新增功能
您可以使用 Solaris 互動式文字介面安裝程式執行 Oracle Solaris 作業系統 的初始安裝。初始安裝會覆寫將安裝軟體之磁碟上的資料。本節提供有關如何使用 DVD 或 CD 媒體安裝 Oracle Solaris 作業系統 的詳細說明。
基於 x86 系統的 Solaris 安裝程式會使用 GRUB 開機管理程式。此程序說明如何使用 CD 或 DVD 媒體中的 GRUB 開機管理程式安裝獨立式基於 x86 的系統。如需 GRUB 開機管理程式的簡介資訊,請參閱「System Administration Guide: Basic Administration」中的「Modifying Boot Behavior by Editing the GRUB Menu at Boot Time」。
開始之前
如果您要安裝 Oracle Solaris 作業系統 的機器或網域沒有直接連接的 DVD-ROM 或 CD-ROM 光碟機,您可以使用已連接至其他機器的 DVD-ROM 或 CD-ROM 光碟機。如需詳細指示,請參閱「Oracle Solaris 10 8/11 安裝指南:網路安裝」中的附錄 B「遠端安裝或升級 (作業)」。
依據下列所列情況,請選取其中之一:
如果您是使用 DVD 進行安裝,請使用 Oracle Solaris Operating System for x86 Platforms DVD。
如果從 CD 媒體安裝:
需要以下媒體。
Oracle Solaris 軟體 CD。
Solaris Languages for x86 Platforms CDs – 安裝程式會在必要時提示您使用這些 CD,以支援特定地區語言。
備註 - 從 Oracle Solaris 10 8/11 發行版本開始,僅提供 DVD。不再提供 Oracle Solaris 軟體 CD。
如果要在不是由 Oracle Coporation 製造的系統上安裝 Oracle Solaris 作業系統,在您開始安裝之前,請先參閱位於 http://www.oracle.com/webfolder/technetwork/hcl/index.html 的「Solaris Hardware Compatibility List」。
(可選擇) 備份您的系統。
如果您希望保留所有現存資料或應用程式,請備份系統。
如果您要從 Oracle Solaris Operating System DVD 或 Solaris Software - 1 CD 啟動,請插入光碟片。系統的 BIOS 必須支援從 DVD 或 CD 啟動。
您可能需要手動設定 BIOS 從 DVD 或 CD 啟動。有關如何設定 BIOS 的詳細資訊,請參閱您的硬體說明文件。
在 BIOS 中修改啟動優先權,然後退出 BIOS 以返回安裝程式。
這時會執行硬體檢測及記憶體測試。螢幕會更新。會顯示 GRUB 功能表。
GNU GRUB version 0.95 (631K lower / 2095488K upper memory) +-------------------------------------------------------------------------+ | Solaris | | Solaris Serial Console ttya | | 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.
Solaris 安裝程式會檢查預設啟動磁碟,確定是否符合安裝或升級系統的需求。如果安裝程式無法偵測系統配置,程式會提示您所缺少的資訊。
完成檢查之後,螢幕上會顯示安裝選項畫面。
選取此安裝類型將會置換預設的 GUI 安裝程式,並執行文字介面安裝程式來進行 ZFS 安裝。
Select the type of installation you want to perform: 1 Solaris Interactive 2 Custom JumpStart 3 Solaris Interactive Text (Desktop session) 4 Solaris Interactive Text (Console session) 5 Apply driver updates 6 Single user shell Enter the number of your choice followed by the <ENTER> key. Alternatively, enter custom boot arguments directly. If you wait 30 seconds without typing anything, an interactive installation will be started.
系統會配置裝置及介面並搜尋配置檔案。如果作業系統找不到可自我識別的鍵盤,下一個畫面會顯示鍵盤配置選取。如果系統找到可自我識別的鍵盤,請跳至步驟 7。
Configure Keyboard Layout +---------------------------------------------------------------------------+ | Please specify the keyboard layout from the list below. | | | | To make a selection, use the arrow keys to highlight the option and | | press Return to mark it [X]. | | | | Keyboard Layout | | ----------------------- | | [ ] Serbia-And Montenegro | | [ ] Slovenian | | [ ] Slovakian | | [ ] Spanish | | [ ] Swedish | | [ ] Swiss-French | | [ ] Swiss-German | | [ ] Taiwanese | | [ ] TurkishQ | | [ ] TurkishF | | [ ] UK-English | | [ X] US-English | | | | F2_Continue F6_Help | +---------------------------------------------------------------------------+
系統會配置裝置和介面,然後搜尋配置檔案。您可能會看到確認視窗正在運作中的兩個畫面。確認接下來的兩個畫面,並在文字模式下繼續操作。
Starting 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: | | | | Solaris Interactive Text (Console session) | -------------------------------------------------------------+
進度訊息結束之後,會顯示另一個確認畫面。
+------------------------------------------------------------+ |If the screen is legible, press ENTER in this window. | | | | | | | |-------------------------------------------------------------+
可能會顯示語言選項清單。如果沒有顯示此畫面,請跳至步驟 10。
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 | +---------------------------------------------------------------------------+
回答任何顯示的配置提示。
重新配置系統資訊。
依據下列所列情況,請選取其中之一:
如果您已經預先配置所有系統資訊,安裝程式便不會提示您鍵入任何配置資訊。如需更多資訊,請參閱「Oracle Solaris 10 8/11 安裝指南:網路安裝」中的第 2 章「預先配置系統配置資訊 (作業)」。
如果您沒有預先配置所有系統資訊,安裝程式會顯示數個畫面提示您輸入配置資訊。使用安裝檢核清單可以幫助您回答配置問題。
網路配置。
一個配置問題詢問您是否啟用網路服務供遠端用戶端使用。預設的回應為「是,我要啟用網路服務供遠端用戶端使用」。
選取「否」提供更安全的配置,其中 Secure Shell 是提供給遠端用戶端的唯一網路服務。選取「是」可像在先前的 Solaris 發行版本中那樣啟用大量的服務。您可以放心地選取「否」,因為您可以在安裝之後啟用任何服務。如需這些選項的進一步資訊,請參閱「Oracle Solaris 10 8/11 安裝指南:安裝與升級規劃」中的「規劃網路安全性」。
安裝完成之後,可以使用 netservices open 指令啟用網路服務,或是使用 SMF 指令啟用個別服務。請參閱「Oracle Solaris 10 8/11 安裝指南:安裝與升級規劃」中的「安裝後修訂安全性設定」。
在回答配置問題並設定 Root 密碼後,便會顯示 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 | +----------------------------------------------------------------------------+
若要安裝 ZFS Flash 歸檔,請按 F4。如需有關安裝 ZFS Flash 歸檔的逐步說明,請參閱「Oracle Solaris ZFS Administration Guide」。
若要執行 ZFS 根檔案系統的初始安裝,請按 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 鍵以繼續。
會出現 [授權] 畫面。
會出現 [選取升級或初始安裝] 畫面。如果您有可升級的 UFS 檔案系統,則會顯示此畫面。如果沒有顯示此畫面,請跳至步驟 14。
會顯示選擇地理區域、語言環境及其他產品的畫面。
會顯示 [選擇檔案系統類型] 畫面。
Choose a Filesystem Type +---------------------------------------------------------------------------+ | Select the filesystem to use for your Solaris installation | | | | [ ] UFS | | [X] ZFS | | | | F2_Continue F6_Help | +---------------------------------------------------------------------------+
會顯示 [選取軟體] 畫面。
若要執行預設安裝,請接受系統提供的預設值。若要執行自訂安裝,請編輯顯示在文字介面安裝程式畫面中的值。在此畫面範例中,選取了預設的 [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 | +---------------------------------------------------------------------------+
會顯示 [選取磁碟] 畫面。
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.
您可以選取一個或多個磁碟,將其用於 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 | +---------------------------------------------------------------------------+
會顯示 [保留資料] 畫面。
如果您選取要用於安裝的磁碟含有檔案系統,或有您想要儲存的未命名磁碟片段,則您可以現在儲存這些檔案系統或未命名磁碟片段。
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 鍵來儲存資料,便會顯示儲存資料的畫面。
若要管理檔案系統的 ZFS 根,請提供磁碟片段的整個磁碟大小。例如,提供磁碟片段 0 的大小。共用同一磁碟上的不同根檔案系統可能會難以管理。
若要從要安裝為根檔案系統的磁碟複製資料,請結束安裝程式並將此磁碟上您要保存的資料備份,然後重新啟動安裝程式。
# install-solaris
會顯示配置 ZFS 設定的畫面。
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 | +------------------------------------------------------------------------- --+
會顯示掛載遠端檔案系統的畫面。
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 | +------------------------------------------------------------------------- --+
備註 - 如果您希望在安裝或升級結束時停用自動註冊,請勿輸入任何資訊,繼續完成自動註冊畫面。
圖 3-3 文字自動註冊畫面
在文字畫面中,請使用箭頭鍵移動至選項方塊。按 Return 以標示選項方塊,選擇以您的支援憑證進行註冊。按 Esc_2 鍵繼續。
如果您選擇在先前的畫面註冊,會提示您輸入 My Oracle Support 使用者名稱和密碼。如果您使用代理伺服器,可提供伺服器主機名稱和連接埠號碼,以及代理伺服器使用者名稱和密碼。
如果您選擇在先前畫面匿名註冊,此畫面只會問您代理伺服器資訊。
圖 3-4 文字自動註冊資料輸入畫面
使用箭頭鍵在各行之間移動。輸入支援憑證和選用的代理伺服器項目。按 Esc_2 鍵繼續。
會顯示 [設定檔] 畫面。
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 | +------------------------------------------------------------------------- --+
當 Solaris 互動文字程式完成了 Solaris 軟體的安裝之後,系統將自動重新啟動或提示您手動重新啟動。
如果您要安裝附加產品,系統會提示您插入這些產品的 DVD 或 CD。如需安裝程序的說明,請參閱適當的安裝說明文件。
安裝完成後,安裝記錄會儲存在檔案中。您可以在 /var/sadm/system/logs 和 /var/sadm/install/logs 目錄中找到安裝記錄。
安裝完成。如果您在先前的安裝程式畫面中取消選取自動重新開機,請繼續前往步驟 25。
# reboot
注意 - 若要使用下列程序停用自動註冊,必須在稍早的安裝畫面中取消選取自動重新開機。 如果系統自動重新開機,則無法使用下列步驟停用自動註冊。而必須在自動重新開機之後,使用 regadm 指令停用自動註冊。請參閱「System Administration Guide: Basic Administration」中的第 17 章「Working With the Oracle Solaris Auto Registration regadm Command (Tasks)」。 |
# reboot
系統重新啟動之後,GRUB 功能表會列出已經安裝的作業系統 (包括新安裝的 Oracle Solaris 作業系統)。
如果未做其他選取,會載入預設選項。
會顯示 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.
在此範例中,開機環境名稱為 szboot_0507。如果在 10 秒內沒有選取任何項目,系統就會自動啟動。
範例 zpool status 和 zfs 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 開機管理程式如何辨識這些作業系統,以利開機作業的進行。如需更多資訊,請參閱「System Administration Guide: Basic Administration」中的「Modifying Boot Behavior by Editing the GRUB Menu at Boot Time」。
疑難排解
如果在安裝期間發生任何問題,請參閱「Oracle Solaris 10 8/11 安裝指南:自訂 JumpStart 及進階安裝」中的附錄 A「疑難排解 (作業)」。