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. 所有 DOSOS16(04 十六进制)类型的 fdisk 分区都将从 c0t0d0 磁盘上删除。

  2. Solaris fdisk 分区创建在 c0t0d0 磁盘上的最大连续空闲空间上。

  3. Entire Distribution 软件组 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 窗口系统手册页和系统记帐公用程序尚未安装到系统上,则会安装它们。自动升级系统上已有的所有软件包。

  7. 德语本地化软件包将被安装在系统上。



实例 23–6 从 HTTP 服务器检索 Solaris Flash 归档文件

在下面的示例中,配置文件指示定制 JumpStart 程序从 HTTP 服务器检索 Solaris Flash 归档文件。

install_type  flash_install
archive_location http installserver /flasharchive/solaris9archive
partitioning explicit
filesys c0t1d0s0 4000 /
filesys c0t1d0s1 512 swap
filesys c0t1d0s7 free /export/home


实例 23–7 从 NFS 服务器检索 Solaris Flash 归档文件

在下面的示例中,配置文件指示定制 JumpStart 程序从 NFS 服务器检索 Solaris Flash 归档文件。

install_type  flash_install
archive_location nfs installserver:/export/solaris/flasharchive/solaris9archive
partitioning explicit
filesys rootdisk.s0 6000 /
filesys rootdisk.s1 512 swap
filesys rootdisk.s7 free /export/home