本节提供了 ZFS 特定的 JumpStart 配置文件示例。
以下配置文件在标识为 pool newpool 的新池(其大小由 auto 关键字自动确定为指定磁盘的大小)中,通过 install_type initial_install 执行指定的初始安装。在磁盘镜像配置中(使用 mirror 关键字,磁盘指定为 c0t0d0s0 和 c0t1d0s0),交换区域和转储设备的大小通过 auto 关键字自动确定。使用 bootenv 关键字将引导环境特征设置为通过关键字 installbe 安装新 BE,并创建名为 s10-xx 的 bename。
install_type initial_install pool newpool auto auto auto mirror c0t0d0s0 c0t1d0s0 bootenv installbe bename s10-xx |
以下配置文件在称为 newpool(大小为 80 GB)的新池中,通过 SUNWCall 元簇的关键字 install_type initial_install 执行初始安装。该池是在由任意两个可用设备(足够大,可创建 80 GB 的池)组成的镜像配置中使用 2 GB 的交换卷和 2 GB 的转储卷创建的。如果两个这样的设备不可用,则安装会失败。使用 bootenv 关键字将引导环境特征设置为通过关键字 installbe 安装新 BE,并创建名为 s10–xx 的 bename。
install_type initial_install cluster SUNWCall pool newpool 80g 2g 2g mirror any any bootenv installbe bename s10-xx |
JumpStart 安装语法确保您能在同样包括 ZFS 根池的磁盘上保留或创建 UFS 文件系统。对于生产系统,不推荐使用该配置,但是该配置可以用于小型系统(例如膝上型电脑)上的转换或迁移。