以下的設定檔範例展示如何使用不同的設定檔關鍵字和設定檔值來控制將 Solaris 軟體安裝在系統上的方式。設定檔關鍵字和值中包含設定檔關鍵字和值的說明。
# profile keywords profile values # ----------------- ----------------- install_type initial_install1 system_type standalone2 partitioning default3 filesys any 512 swap # specify size of /swap cluster SUNWCprog4 package SUNWman delete5 cluster SUNWCacc |
每個設定檔都需要關鍵字 install_type。
關鍵字 system_type 將要安裝的系統定義成獨立的系統。
以 default 值安裝的系統可決定檔案系統磁碟片段。swap 的大小設為 512 MB,可安裝在任何磁碟上,其值為 any。
開發者 Solaris 軟體群組 (SUNWCprog) 已安裝在系統上。
如果標準線上援助頁從檔案伺服器 s_ref 裝載在網路上,則線上援助頁套裝軟體並不會安裝在系統上。包含「系統會計」公用程式的套裝軟體會選出來安裝在系統上。
# profile keywords profile values # ---------------- ------------------- install_type initial_install system_type standalone partitioning explicit1 filesys c0t0d0s0 auto / filesys c0t3d0s1 auto swap filesys any auto usr cluster SUNWCall2 |
檔案系統片段由關鍵字 filesys 決定,其值為 explicit。root (/) 的大小是以選定的軟體為基礎,其值為 auto,並安裝在 c0t0d0s0 之上。swap 的大小會設成必要的大小,並安裝在 c0t3d0s1 上。usr 以選定的軟體為基礎,並且安裝程式根據 any 的值決定安裝 usr 的位置。
完整 Solaris 軟體群組 (SUNWCall) 已安裝在系統上。
# profile keywords profile values # ---------------- ------------------- install_type initial_install system_type standalone fdisk c0t0d0 0x04 delete1 fdisk c0t0d0 solaris maxfree2 cluster SUNWCall3 cluster SUNWCacc delete4 |
從 c0t0d0 磁碟刪除所有 DOSOS 16(04 十六進位)類型的 fdisk 分割區。
在 c0t0d0 磁碟的最大連續可用空間建立 Solaris fdisk 分割區。
完整 Solaris 軟體群組 (SUNWCall) 已安裝在系統上。
不打算在系統上安裝系統的會計公用程式 SUNWCacc。
# profile keywords profile values # ---------------- ------------------- install_type upgrade1 root_device c0t3d0s22 backup_media remote_filesystem timber:/export/scratch3 layout_constraint c0t3d0s2 changeable 1004 layout_constraint c0t3d0s4 changeable layout_constraint c0t3d0s5 movable package SUNWbcp delete5 package SUNWxwman add6 cluster SUNWCacc add locale de7 |
設定檔可藉由重新配置磁碟空間來升級系統。在此範例中,由於系統上的一些檔案系統並沒有足夠的空間來進行升級,因此必須重新配置磁碟空間。
c0t3d0s2 上的根檔案系統已完成更新。
名為 timber 的遠端系統可用來在磁碟空間的重新配置期間備份資料。有關備份媒體關鍵字的值,請參閱backup_media 設定檔關鍵字。
當自動版面配置要重新配置磁碟空間以進行升級時,關鍵字 layout_constraint 可指定自動版面配置執行下列事項。
變更磁碟片段 2 和 磁碟片段 4。 這些磁碟片段可移動到另一個位置,大小也可以變更。
移動磁碟片段 5。 此磁碟片段可移動到另一個位置,但無法變更其大小。
二進制相容性套裝軟體,SUNWbcp,在升級後不會安裝在系統上。
如果「 X Window 系統」線上援助頁和「系統會計公用程式」並未安裝在系統上,此程式碼可確定將其進行安裝。系統上的所有套裝軟體都會自動升級。
系統上將會安裝德文本土化套裝軟體。
下面範例中的設定檔會顯示出,自訂 JumpStart 程式會擷取 HTTP 伺服器的 Solaris Flash 歸檔檔案。
# profile keywords profile values # ---------------- ------------------- install_type flash_install1 archive_location http installserver /flasharchive/solaris9archive2 partitioning explicit3 filesys c0t1d0s0 4000 / filesys c0t1d0s1 512 swap filesys c0t1d0s7 free /export/home
該設定檔在複製系統上安裝 Solaris Flash 歸檔檔案。與初始化安裝中一樣,所有檔案將被覆寫。
可從 HTTP 伺服器中擷取 Solaris Flash 歸檔檔案。
檔案系統片段由關鍵字 filesys 決定,其值為 explicit。root (/) 的大小以選取的軟體為基礎,並安裝在 c0t1d0s0 上。 swap 的大小要設定為所需的大小,並安裝在 c0t1d0s1 上。/export/home 以選取的軟體為基礎,並安裝在 c0t1d0s7 上。
下面範例中的設定檔會顯示出,自訂 JumpStart 程式會擷取 NFS 伺服器的 Solaris Flash 歸檔檔案。關鍵字 flash_update 表示這是一個差動歸檔檔案。差動歸檔檔案僅安裝兩個系統影像之間的差異。
# profile keywords profile values # ---------------- ------------------- install_type flash_update1 archive_location nfs installserver:/export/solaris/flasharchive \ /solaris9diffarchive2 no_master_check3
該設定檔在複製系統上安裝 Solaris Flash 差動歸檔檔案。僅安裝該歸檔檔案指定的檔案。
可從 NFS 伺服器中擷取 Solaris Flash 歸檔檔案。
對複製系統不會檢查是否包含有效的系統影像。有效的系統影像可能已從原始主系統中建立。
在下面的範例中,設定檔表示自訂 JumpStart 程式會建立非作用中的空啟動環境。稍後,系統會將 Solaris Flash 歸檔檔案移入此啟動環境中。
# profile keywords profile values # ---------------- ------------------- install_type initial_install system_type standalone partitioning explicit1 filesys c0t0d0s0 auto / filesys c0t3d0s1 auto swap filesys any auto usr cluster SUNWCall2 bootenv createbe bename second_BE \3 filesystem /:/dev/dsk/c0t1d0s0:ufs \ filesystem -:/dev/dsk/c0t1d0s0:swap \ filesystem /export:shared:ufs |
檔案系統片段由關鍵字 filesys 決定,其值為 explicit。root (/) 的大小是以選定的軟體為基礎,其值為 auto,並安裝在 c0t0d0s0 之上。swap 的大小會設成必要的大小,並安裝在 c0t3d0s1 上。usr 以選定的軟體為基礎,並且安裝程式根據 any 的值決定安裝 usr 的位置。
完整 Solaris 軟體群組 (SUNWCall) 已安裝在系統上。
非作用中的空啟動環境在 c0t1d0 磁碟上設定。將建立 root (/)、交換以及 /export 的檔案系統,但均保留為空系統。以後,可以使用 Solaris Flash 歸檔檔案安裝此第二個啟動環境。然後,可以啟動新的啟動環境使之成為作業環境。
如需有關關鍵字值和使用此關鍵字的背景,請參閱以下參考內容:
如需有關關鍵字值的說明,請參閱設定檔關鍵字和值。
如需有關使用 Solaris Live Upgrade 建立、升級和啟動非作用中的啟動環境的資訊,請參閱第 30章, Solaris Live Upgrade (概述)。
如需有關使用 Solaris Flash 歸檔檔案的背景,請參閱第 17章, Solaris Flash(概述與規劃)。