跳過導航連結 | |
結束列印檢視 | |
![]() |
Oracle Solaris 10 1/13 安裝指南:基本安裝 Oracle Solaris 10 1/13 Information Library (繁體中文) |
1. 規劃從 CD 或 DVD 媒體安裝 Oracle Solaris (作業)
2. 使用 Oracle Solaris 安裝程式安裝 UFS 檔案系統 (作業)
3. 使用 Oracle Solaris 互動式文字介面安裝程式安裝 ZFS 根集區 (規劃與作業)
x86: 使用 Oracle Solaris 互動式文字介面安裝程式執行 ZFS 的初始安裝
x86: 如何使用具備 GRUB 之 Oracle Solaris 互動式文字介面安裝程式安裝 ZFS
本程序說明如何使用 CD 或 DVD 媒體,安裝獨立式 SPARC 系統。
開始之前
如果您要安裝 Oracle Solaris 作業系統的機器或網域沒有直接連接的 DVD-ROM 或 CD-ROM 光碟機,您可以使用已連接至其他機器的光碟機。如需詳細指示,請參閱「Oracle Solaris 10 1/13 安裝指南:網路安裝」中的附錄 B「遠端安裝或升級 (作業)」。
確定您已準備好所需媒體。
對於 DVD 安裝,需要有 SPARC 平台專用的 Oracle Solaris 作業系統 DVD。
對於 CD 安裝,需要以下媒體:
Oracle Solaris 軟體 CD。
Oracle Solaris Languages for SPARC Platforms CD – 安裝程式會在必要時提示您使用這些 CD,以支援特定地區語言。
備註 - 從 Oracle Solaris 10 8/11 發行版本開始,僅提供 DVD。不再提供 Oracle Solaris 軟體 CD。
如果您希望保留所有現存資料或應用程式,請備份系統。如需備份 ZFS 根集區的資訊,請參閱「Oracle Solaris ZFS Administration Guide」中的「Recovering the ZFS Root Pool or Root Pool Snapshots」。
螢幕上會顯示 ok 提示。
ok boot cdrom - text
指定在桌面階段作業中執行文字介面安裝程式。使用此選項來改寫預設的 GUI 安裝程式。
您不能執行安裝 GUI 來安裝 ZFS 根集區。如果作業系統找不到可自我識別的鍵盤,將會顯示鍵盤配置選取畫面。
備註 - PS/2 鍵盤無法自我識別。安裝期間系統會要求您選取鍵盤配置。
系統會配置裝置和介面,然後搜尋配置檔案。可能會顯示語言選項清單。如果沒有顯示此畫面,請跳至步驟 6。
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 安裝畫面。
如需詳細資訊,請參閱「Oracle Solaris 10 1/13 安裝指南:網路安裝」中的第 2 章「預先配置系統配置資訊 (作業)」。
使用安裝檢查清單可以幫助您回答配置問題。
若有需要,安裝完成之後可以使用 netservices open 指令啟用網路服務,或是使用 SMF 指令啟用個別服務。請參閱「Oracle Solaris 10 1/13 安裝指南:安裝與升級規劃」中的「安裝後修訂安全性設定」。
在回答配置問題並設定 Root 密碼後,便會顯示 Oracle Solaris 互動式安裝畫面。
Oracle 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 Oracle 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_Standard F4_Flash F5_Exit F6_Help | +----------------------------------------------------------------------------+
如需這些選項的進一步資訊,請參閱「Oracle Solaris 10 1/13 安裝指南:安裝與升級規劃」中的「規劃網路安全性」。
如需有關安裝 ZFS Flash 歸檔的逐步說明,請參閱「Oracle Solaris ZFS Administration Guide」。
備註 - 如果要在安裝後且重新啟動之前停用「自動註冊」,請取消選取自動重新啟動。
如果您的系統已有 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 檔案系統,則會顯示此畫面。如果沒有顯示此畫面,請跳至步驟 13。
會顯示選擇地理區域、語言環境及其他產品的畫面。
會顯示 [選擇檔案系統類型] 畫面。
Choose a Filesystem Type +---------------------------------------------------------------------------+ | Select the filesystem to use for your Oracle 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 | +---------------------------------------------------------------------------+
會顯示 [選取磁碟] 畫面。
選取要安裝的軟體後,系統會提示您選取要用來建立 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.
請注意下列資訊:
如果您選取單一磁碟,並且希望在稍後配置鏡像,請參閱「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 F5_Exit 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 設定的畫面。
您可以變更 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 | +------------------------------------------------------------------------- --+
會顯示掛載遠端檔案系統的畫面。
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 | +------------------------------------------------------------------------- --+
如需使用 auto_reg 關鍵字的資訊,請參閱「Oracle Solaris 10 1/13 安裝指南:網路安裝」中的「auto_reg 關鍵字」。
備註 - 如果您希望在安裝或升級結束時停用自動註冊,請勿輸入任何資訊,繼續完成自動註冊畫面。
使用箭頭鍵移動至選項方塊。按 Return 以標示選項方塊,選擇以您的支援憑證進行註冊。按 Esc–2 鍵繼續。
如果選擇以您的支援資訊註冊,會提示您輸入 My Oracle Support 使用者名稱和密碼。如果您使用代理伺服器,可提供伺服器主機名稱和連接埠號碼,以及代理伺服器使用者名稱和密碼。
若選擇匿名註冊,此畫面只會詢問代理伺服器資訊。
使用箭頭鍵在各行之間移動。輸入支援憑證和選用的代理伺服器項目。按 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 | +------------------------------------------------------------------------- --+
當 Oracle Solaris 互動文字程式完成了 Oracle Solaris 軟體的安裝之後,系統將自動重新啟動或提示您手動重新啟動。
如果您要安裝附加產品,系統會提示您插入這些產品的 DVD 或 CD。如需安裝程序的說明,請參閱適當的安裝說明文件。
安裝完成後,安裝記錄會儲存在檔案中。您可以在 /var/sadm/system/logs 和 /var/sadm/install/logs 目錄中找到安裝記錄。
安裝完成。如果您取消選取在安裝後自動重新開機,請繼續前往步驟 24。
# reboot
![]() | 注意 - 如果系統自動重新開機,則無法使用下列步驟停用自動註冊。請改為在自動重新啟動之後,使用 Oracle Configuration Manager (OCM) 停用「自動註冊」。請參閱「Oracle Solaris Administration: Basic Administration」中的第 17 章「Working With Oracle Configuration Manager」。 |
# rm /a/var/tmp/autoreg_config
# reboot
您的系統會啟動至所安裝的 ZFS 根集區。
您可以使用 boot 指令搭配 -L 選項,顯示可用啟動環境清單。如需 SPARC 啟動的詳細資訊,請參閱「Oracle Solaris Administration: Basic Administration」中的「Booting From a Specified ZFS Root File System on a SPARC Based System」。
範例 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」。