Solaris 9 安裝指南

設定檔範例

以下的設定檔範例展示如何使用不同的設定檔關鍵字和設定檔值來控制將 Solaris 軟體安裝在系統上的方式。設定檔關鍵字和值中包含設定檔關鍵字和值的說明。


範例 23–2 裝載遠端檔案系統與增加和刪除套裝軟體

 
# 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
  1. 每個設定檔都需要關鍵字 install_type。

  2. 關鍵字 system_type 將要安裝的系統定義成獨立的系統。

  3. 以 default 值安裝的系統可決定檔案系統磁碟片段。swap 的大小設為 512 MB,可安裝在任何磁碟上,其值為 any。

  4. Developer Solaris Software Group (SUNWCprog) 已安裝在系統上。

  5. 如果標準線上援助頁從檔案伺服器 s_ref 裝載在網路上,則線上援助頁套裝軟體並不會安裝在系統上。包含「系統會計」公用程式的套裝軟體會選出來安裝在系統上。



範例 23–3 指定安裝檔案系統的位置

# 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
  1. 檔案系統磁碟片段由關鍵字 filesys 決定,其值為 explicit。根 (/) 的大小以選定的軟體為基礎,其值為 auto,並安裝在 c0t0d0s0 上。swap 的大小會設成必要的大小,並安裝在 c0t3d0s1 上。usr 以選定的軟體為基礎,並且安裝程式根據 any 的值決定安裝 usr 的位置。

  2. Entire Solaris Software Group,SUNWCall,已安裝在系統上。



範例 23–4 x86: 使用 fdisk 關鍵字

# profile keywords      profile values
# ----------------      -------------------
  install_type          initial_install
  system_type           standalone

  fdisk                 c0t0d0 0x04 delete1
  fdisk                 c0t0d0 solaris maxfree2
  cluster               SUNWCall3
  cluster               SUNWCacc delete4
  1. 從 c0t0d0 磁碟刪除所有 DOSOS 16(04 十六進位)類型的 fdisk 分割區。

  2. 在 c0t0d0 磁碟的最大連續可用空間建立 Solaris fdisk 分割區。

  3. Entire Solaris Software Group,SUNWCall,已安裝在系統上。

  4. 不打算在系統上安裝系統的會計公用程式 SUNWCacc。



範例 23–5 重新配置磁碟空間以進行升級

# 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
  1. 設定檔可藉由重新配置磁碟空間來升級系統。在此範例中,由於系統上的一些檔案系統並沒有足夠的空間來進行升級,因此必須重新配置磁碟空間。

  2. c0t3d0s2 上的根檔案系統已完成升級。

  3. 名為 timber 的遠端系統可用來在磁碟空間的重新配置期間備份資料。有關備份媒體關鍵字的值,請參閱 backup_media 設定檔關鍵字。

  4. 當自動版面配置要重新配置磁碟空間以進行升級時,關鍵字 layout_constraint 可指定自動版面配置執行下列事項。

    • 變更磁碟片段 2 和 磁碟片段 4。 這些磁碟片段可移動到另一個位置,大小也可以變更。

    • 移動磁碟片段 5。 此磁碟片段可移動到另一個位置,但無法變更其大小。

  5. 二進制相容性套裝軟體,SUNWbcp,在升級後不會安裝在系統上。

  6. 如果「 X Window 系統」線上援助頁和「系統會計公用程式」並未安裝在系統上,此程式碼可確定將其進行安裝。系統上的所有套裝軟體都會自動升級。

  7. 系統上將會安裝德文本土化套裝軟體。



範例 23–6 從 HTTP 伺服器擷取 Solaris Flash 歸檔檔案

下面範例中的設定檔會顯示出,自訂 JumpStart 程式會擷取 HTTP 伺服器的 Solaris Flash 歸檔檔案。

install_type  flash_install1
archive_location http installserver /flasharchive/solaris9archive2
partitioning explicit3
filesys c0t1d0s0 4000 /
filesys c0t1d0s1 512 swap
filesys c0t1d0s7 free /export/home
  1. 該設定檔在複製系統上安裝 Solaris Flash 歸檔檔案。與初始化安裝中一樣,所有檔案將被覆寫。

  2. 可從 HTTP 伺服器中擷取 Solaris Flash 歸檔檔案。

  3. 檔案系統磁碟片段由關鍵字 filesys 決定,其值為 explicit。根 (/) 的大小以選取的軟體為基礎,並安裝在 c0t1d0s0 上。 swap 的大小要設定為所需的大小,並安裝在 c0t1d0s1 上。/export/home 以選取的軟體為基礎,並安裝在 c0t1d0s7 上。



範例 23–7 從 NFS 伺服器擷取 Solaris Flash 歸檔檔案

下面範例中的設定檔會顯示出,自訂 JumpStart 程式會擷取 NFS 伺服器的 Solaris Flash 歸檔檔案。 flash_update 關鍵字表示這為差動歸檔檔案。差動歸檔檔案僅安裝兩個系統影像之間的差異。

install_type  flash_update1
archive_location nfs installserver:/export/solaris/flasharchive/solaris9archive2
no_master_check3
root_device c0t0d0s64
  1. 該設定檔在複製系統上安裝 Solaris Flash 差動歸檔檔案。僅安裝該歸檔檔案指定的檔案。

  2. 可從 NFS 伺服器中擷取 Solaris Flash 歸檔檔案。

  3. 對複製系統不會檢查是否包含有效的系統影像。有效的系統影像可能已從原始主系統中建立。

  4. 請指定要更新 c0t0d0s6 上的根檔案系統。