本章介绍了如何使用 Solaris Operating System DVD 或 Solaris Software - 1 CD 上的 Solaris 交互式安装程序来执行 ZFS 根池的初始安装。
本章包含以下主题:
您可以使用 Solaris 交互式文本安装程序来执行初始安装,以创建一个包含可引导 ZFS 根池的 ZFS 存储池。您不能使用标准的 GUI 安装程序来安装 ZFS 根池。
Solaris 交互式文本安装过程与以前的 Solaris 发行版类似。区别是您可以选择安装 UFS ( /) 根文件系统或 ZFS 根池。UFS 仍然是缺省文件系统。要创建和安装 ZFS 存储池,必须选择 ZFS 选项。
如果系统中已经有 ZFS 存储池,它们会保持不变,除非您选择现有池中的磁盘来创建新的存储池。如果您已经有要用于 ZFS 根文件系统的 ZFS 存储池,则必须使用 Solaris Live Upgrade 将现有的 UFS 根 (/) 文件系统迁移到 ZFS 根池。Solaris Live Upgrade 还提供了升级 ZFS 根池的方法。有关更多信息,请参见《Oracle Solaris 10 9/10 安装指南:Solaris Live 升级和升级规划》中的第 11 章 “Solaris Live Upgrade 和 ZFS(概述)”。
在开始初始安装以创建 ZFS 存储池之前,请参见《Oracle Solaris 10 9/10 安装指南:规划安装和升级》中的第 6 章 “ZFS 根文件系统安装(规划)”。
安装至 SPARC 和·x86 系统的 ZFS 根文件系统最低需要 768 MB 内存。建议使用 1 GB 内存。
从 Solaris 10 10/09 发行版开始,您可以设置 JumpStart 配置文件,以标识 ZFS 根池的 Flash 归档文件。
可以在运行 UFS 根文件系统或 ZFS 根文件系统的系统中创建 Flash 归档文件。ZFS 根池的 Flash 归档文件包含整个池分层结构,但交换卷和转储卷以及任何已排除的数据集除外。交换卷和转储卷是在安装 Flash 归档文件时创建的。
您可以按如下方式使用 Flash 归档文件安装方法:
生成一个 Flash 归档文件,该归档文件可用于安装和引导具有 ZFS 根文件系统的系统。
使用 ZFS Flash 归档文件执行系统的 JumpStart 安装。
创建 ZFS Flash 归档文件会备份整个根池,而不是各个引导环境。可以使用 flarcreate 命令和 flar 命令的 - D 选项排除池内的各个数据集。
有关详细说明及限制,请参见《Oracle Solaris ZFS 管理指南》中的“安装 ZFS 根文件系统(Oracle Solaris Flash 归档文件安装)”。
本过程说明如何从 CD 或 DVD 介质安装独立的基于 SPARC 的系统。
 SPARC: 如何安装 ZFS 根池
SPARC: 如何安装 ZFS 根池如果要在没有直接连接 DVD-ROM 或 CD-ROM 驱动器的计算机或域上安装 Solaris OS,您可以使用已连接到其他计算机上的 DVD-ROM 或 CD-ROM 驱动器。有关详细说明,请参阅《Oracle Solaris 10 9/10 安装指南:基于网络的安装》中的附录 B “远程安装或升级(任务)”。
确保您有所需的介质。
对于 DVD 安装,需要 Solaris Operating System for SPARC Platforms DVD。
对于 CD 安装:
需要以下介质。
Solaris Software CD。
Solaris Languages for SPARC Platforms CD-如有必要,安装程序会提示您插入这些 CD,以支持特定地理区域的语言。
从 Oracle Solaris 10 9/10 发行版开始,只提供 DVD。不再提供 Solaris Software CD。
如果想保留任何现有数据或应用程序,请备份系统。
有关备份 UFS 文件系统的信息,请参见 《系统管理指南:设备和文件系统》中的第 24 章 “备份和恢复文件系统(概述)”
有关备份 ZFS 根池的信息,请参见《Oracle Solaris ZFS 管理指南》中的“发送和接收 ZFS 数据”
插入 Solaris Operating System for SPARC Platforms DVD 或 Solaris Software for SPARC Platforms - 1 CD。
将显示 ok 提示符。
启动 Solaris 交互式文本安装程序。不能运行安装 GUI 来安装 ZFS 根池。要从本地 DVD 或 CD 引导并在桌面会话中启动文本安装程序,请键入以下命令:
| ok boot cdrom - text | 
指定在桌面会话中运行文本安装程序。使用此选项可改写缺省的 GUI 安装程序。
如果操作系统无法定位自识别键盘,下一个屏幕将显示键盘布局选择。
PS/2 键盘不是自识别键盘。在安装期间将会要求您选择键盘布局。
(可选的)从下面的屏幕中选择所需的键盘布局,然后按 F2 键继续。
| Configure Keyboard Layout +---------------------------------------------------------------------------+ | Please specify the keyboard layout from the list below. | | | | To make a selection, use the arrow keys to highlight the option and | | press Return to mark it [X]. | | | | Keyboard Layout | | ----------------------- | | [ ] Serbia-And Montenegro | | [ ] Slovenian | | [ ] Slovakian | | [ ] Spanish | | [ ] Swedish | | [ ] Swiss-French | | [ ] Swiss-German | | [ ] Taiwanese | | [ ] TurkishQ | | [ ] TurkishF | | [ ] UK-English | | [ X] US-English | | | | F2_Continue F6_Help | +---------------------------------------------------------------------------+ | 
系统会配置设备和接口,并搜索配置文件。可能会显示语言选项列表。如果未显示此屏幕,请跳至步骤 6。
(可选的)您可以看到一个用于选择语言的屏幕。选择要在安装期间使用的语言,然后按 F2 键。
| 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 | +---------------------------------------------------------------------------+ | 
按 F2 键开始安装。如果有提示,请回答其余的配置问题。
预配置系统信息。
根据下面所列情况,选择其中之一:
如果您已预配置了所有的系统信息,则安装程序不会提示您键入任何配置信息。有关更多信息,请参见《Oracle Solaris 10 9/10 安装指南:基于网络的安装》中的第 2 章 “预配置系统配置信息(任务)”。
如果您没有预配置所有的系统信息,安装程序会在多个屏幕中提示您输入此信息。使用安装核对表可帮助您回答配置问题。
网络配置。
一个配置问题会询问您是否要启用网络服务以供远程客户机使用。缺省响应为“是,我要启用网络服务以供远程客户机使用”。
选择“否”可提供较安全的配置,在该配置下,安全 Shell 是向远程客户机提供的唯一网络服务。选择“是”会像以前的 Solaris 发行版一样,将启用为数较多的一组服务。您可以放心地选择“否”,因为在安装后可启用所有程序。有关这些选项的详细信息,请参见《Oracle Solaris 10 9/10 安装指南:规划安装和升级》中的“规划网络安全性”。
可以在安装后,使用 netservices open 命令,或通过使用 SMF 命令启用各个服务来启用网络服务。请参见《Oracle Solaris 10 9/10 安装指南:规划安装和升级》中的“在安装后修改安全性设置”。
在回答配置问题并设置超级用户口令之后,将显示 "Solaris Interactive Installation" 屏幕。
| Solaris Interactive Installation +---------------------------------------------------------------------------+ |On the following screens, you can accept the defaults or you can customize | | how Solaris software will be install 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 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_Continue F6_Help | +---------------------------------------------------------------------------+ | 
决定是否要自动重新引导系统,以及是否要自动弹出光盘。按 F2 键。
重要:如果要在安装之后且重新引导之前禁用自动注册,请取消选定自动重新引导。
如果系统中已经有 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. | 
“许可证”屏幕会出现。
接受许可证协议以便继续安装。按 F2 键。
此时将显示 "Select Upgrade or Initial Install" 屏幕。如果您具有可以升级的 UFS 文件系统,则会显示此屏幕。如果没有显示此屏幕,请跳至步骤 10。
要执行 ZFS 安装,则必须按 F4 键进行初始安装。
将显示用于选择地理区域、语言环境和其他产品的各个屏幕。
选择所需的地理区域、语言环境和其他产品。
此时将显示 "Choose a Filesystem Type" 屏幕。
要创建 ZFS 根池,请选择 "ZFS" 选项,然后按 F2 键。
| Choose a Filesystem Type +---------------------------------------------------------------------------+ | Select the filesystem to use for your Solaris installation | | | | [ ] UFS | | [X] ZFS | | | | F2_Continue F6_Help | +---------------------------------------------------------------------------+ | 
此时将显示 "Select Software" 屏幕。
选择要执行的安装类型。按 F2 键。
要执行缺省安装,请接受所提供的缺省值。要执行自定义安装,请在文本安装程序屏幕中编辑值。在本示例屏幕中,为安装选中了缺省值 "Entire Distribution Software Group"。
有关软件组的更多信息,请参见软件组的磁盘空间建议。
| 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 ......5838.00 MB | | [X] Entire Distribution........................5830.00 MB | | [ ] Developer System Support...................5695.00 MB | | [ ] End User System Support....................4747.00 MB | | [ ] Core System Support........................1558.00 MB | | [ ] Reduced Networking Core System Support.....1512.00 MB | | | | F2_Continue F6_Help | +---------------------------------------------------------------------------+ | 
此时将显示 "Select Disks" 屏幕。
在选择要安装的软件之后,系统将提示您选择用来创建 ZFS 存储池的磁盘。此屏幕与以前的 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. | 
您可以选择要用于 ZFS 根池的一个或多个磁盘。
如果您选择了一个磁盘并希望稍后配置镜像,请参见《Oracle Solaris ZFS 管理指南》中的“管理 ZFS 存储池中的设备”中的 zpool attach 命令。
如果选择两个磁盘,则会为根池设置镜像双磁盘配置。镜像的双磁盘或三磁盘池是最优配置。
如果您有八个磁盘并选择了全部八个磁盘,则这八个磁盘将作为一个大的镜像用于根池。这不是最优配置。
不支持根池的 RAID-Z 池配置。有关配置 ZFS 存储池的更多信息,请参见《Oracle Solaris ZFS 管理指南》中的“ZFS 存储池的复制功能”。
| 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: xx denotes the current boot disk | | | |Disk Device Available Space | |========================================================================== | | | |[X]xx c0t0d0 29164 MB (F4 to edit) | | | | Maximum Root Size: 29164 MB | | Suggested Minimum: 5838 MB | | | | F2_Continue F6_Help | +---------------------------------------------------------------------------+ | 
此时将显示 "Preserve Data" 屏幕。
(可选)保留用来安装软件的磁盘上的数据。
如果您选择用于安装软件的磁盘中包含文件系统或具有要保存的未命名片,则可以立即保存这些文件系统或未命名片。
| 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 键来保存数据,则会显示用于保存数据的屏幕。
(可选)选择要保存的数据。
| Preserve Data +---------------------------------------------------------------------------+ |On this screen you can perserve the data on some or all disk slices. Any | |slice you preserve will not be touched when Solaris software is installed | |If you preserve data on / (root), /usr, or /var you must rename them | |because new versions of these file systems are created when Solaris | |software is installed. | | | |Warning: Preserving an 'overlap' slice will not preserve any data within | |it. To preserve this data, you must explicitly set the mount point name. | | | |Mount Point or Pool State Disk/Slice Size | |========================================================================== | |[ ] zfs: rpool Online c0t0d0s0 27133 MB | |[ ]swap c0t1d0s1 2047 MB | |[X]overlap c0t2d0s2 29188 MB | | | | | | F2_Continue F6_Help | +---------------------------------------------------------------------------+ | 
此时将显示用于配置 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: szboot_0507 | | ZFS Pool Size in (MB): 17270 | | Size of swap area in (MB): 1024 | | Size of dump area in (MB): 1024 | | (Pool size must be between 9472 MB and 17270 MB) | | | | [X] Keep / and /var combined | | [ ] Put /var on a separate dataset | | | | F2_Continue 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 | +------------------------------------------------------------------------- --+ | 
如果有提示,请回答其余的配置问题。
如果在安装或升级之前已使用 sysidcfg 文件中的 auto_reg 关键字来设置自动注册首选项,则安装程序不会作为一个配置问题来提示该信息。
有关使用 auto_reg 关键字的信息,请参见《Oracle Solaris 10 9/10 安装指南:基于网络的安装》中的“auto_reg 关键字”。
如果未在 sysidcfg 文件中包含 auto_reg 则作为多个配置问题之一,安装程序会提示您提供自动注册信息。
如果要在安装或升级结束时禁用自动注册,可以按这些自动注册屏幕继续进行,而无需输入任何信息。
选择使用支持凭证注册或匿名发送数据。
 
在此屏幕中,使用方向键导航至选项框。按回车键标记选项框,以选择使用支持凭证注册。按 Esc_2 键继续。
提供要求的代理服务器和凭证信息。
如果已选择在之前的屏幕中注册,则会提示您提供 My Oracle Support 用户名和口令。如果使用代理服务器,可以提供服务器主机名和端口号,以及代理服务器用户名和口令。
如果在之前的屏幕中选择匿名注册,此屏幕只会要求输入代理服务器信息。
 
在此屏幕中,使用方向键在各行之间移动。键入支持凭证和可选代理服务器条目。按 Esc_2 键继续。
此时将显示 "Profile" 屏幕。
查看用来显示您选择的安装选项的 "Profile" 屏幕。如果需要,可以更改安装配置文件。以下示例显示的是最终的 "Profile" 安装屏幕。
| 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: c1t2d0 | | Root File System Type: ZFS | | Client Services: None | | | | Regions: North America | | System Locale: C ( C ) | | | | Software: Solaris 10, Entire Distribution | | Pool Name: rpool | | Boot Environment Name: szboot_0507 | | Pool Size: 17270 MB | | Devices in Pool: c1t2d0 | | | | | | F2_Continue F6_Help | +------------------------------------------------------------------------- --+ | 
要安装 Solaris 软件,请按 F2 键。按照屏幕上的说明安装 Solaris 软件。
当 Solaris 交互式文本程序完成 Solaris 软件的安装后,系统会自动重新引导或提示您手动重新引导。
如果要安装其他产品,系统会提示您插入这些产品的 DVD 或 CD。关于安装过程,请参阅相应的安装文档。
安装完成后,安装日志会保存在一个文件中。您可以在 /var/sadm/system/logs 和 /var/sadm/install/logs 目录中找到安装日志。
安装完成。如果在安装后取消选定自动重新引导,继续步骤 21。
如果之前取消选定了自动重新引导,请选择以下两个选项中的其中一个:
如果不希望禁用自动注册,弹出所有安装介质,然后按如下所示手动重新引导系统:
| # reboot | 
如果希望禁用自动注册,以使得在重新引导时不向 Oracle 发送任何配置数据,请在手动重新引导系统之前执行下列步骤。
 注意 –
注意 – 要使用以下过程禁用自动注册,必须在较早出现的安装屏幕中取消选定自动重新引导。
如果系统自动重新引导,则无法使用下列步骤禁用“注册”。相反,在自动重新引导之后,可以通过使用 regadm 命令禁用自动注册。请参见《系统管理指南:基本管理》中的第 17 章 “使用 Oracle Solaris 自动注册的 regadm 命令(任务)”。
安装完成后,在手动重新引导之前,按“!”以打开终端窗口。
在命令行中,删除 /a/var/tmp/autoreg_config 文件。
保存文件。
弹出所有安装介质并手动重新引导系统。
| # reboot | 
您的系统将引导至您安装的 ZFS 根池。
您可以使用带 -L 选项的 boot 命令来显示可用引导环境的列表。有关基于 SPARC 的引导的更多信息,请参见《系统管理指南:基本管理》中的“在基于 SPARC 的系统上从指定的 ZFS 根文件系统引导”。
(可选的)您可以查看生成的 ZFS 存储池和文件系统信息,如以下示例所示。
ZFS 根池是一种特殊的池,不需要进行管理。zfs list 输出样例标识了根池组件(如 rpool/ROOT 项),缺省情况下,这些项是无法访问的。
| # zpool status
  pool: rpool
 state: ONLINE
 scrub: none requested
config:
        NAME        STATE     READ WRITE CKSUM
        rpool       ONLINE       0     0     0
        c1t2d0s0  ONLINE       0     0     0
errors: No known data errors
# zfs list
NAME                     USED  AVAIL  REFER  MOUNTPOINT
rpool                   6.83G  9.66G    62K  /rpool
rpool/ROOT              5.82G  9.66G    18K  legacy
rpool/ROOT/szboot_0507  5.82G  9.66G  5.82G  
rpool/dump               512M  9.66G   512M  -
rpool/swap               518M  9.66G   518M  - | 
如果您最初使用一个磁盘创建了 ZFS 存储池,您可以在安装之后将此磁盘转换为镜像 ZFS 配置。有关添加或附加磁盘的更多信息,请参见《Oracle Solaris ZFS 管理指南》中的“管理 ZFS 存储池中的设备”。
如果您在安装过程中遇到任何问题,请参见《Oracle Solaris 10 9/10 安装指南:自定义 JumpStart 和高级安装》中的附录 A “故障排除(任务)”。
您可以通过使用 Solaris 交互式文本安装程序来执行 Solaris OS 的初始安装。初始安装将覆盖要在上面安装软件的磁盘上的数据。本节提供了有关如何从 DVD 或 CD 介质安装 Solaris OS 的详细说明。
 x86: 针对 ZFS 使用具有 GRUB 的 Solaris 交互式文本安装程序进行安装
x86: 针对 ZFS 使用具有 GRUB 的 Solaris 交互式文本安装程序进行安装基于 x86 的系统的 Solaris 安装程序将使用 GRUB 引导装载程序。本过程介绍如何使用 GRUB 引导装载程序从 CD 或 DVD 介质安装基于 x86 的独立系统。有关 GRUB 引导装载程序的概述信息,请参见《系统管理指南:基本管理》中的“通过在引导时编辑 GRUB 菜单修改引导行为”。
如果要在没有直接连接 DVD-ROM 或 CD-ROM 驱动器的计算机或域上安装 Solaris OS,您可以使用已连接到其他计算机上的 DVD-ROM 或 CD-ROM 驱动器。有关详细说明,请参阅《Oracle Solaris 10 9/10 安装指南:基于网络的安装》中的附录 B “远程安装或升级(任务)”。
根据下面所列情况,选择其中之一:
如果要在非 Sun Microsystems, Inc. 生产的系统上安装 Solaris OS,请在开始安装前检查 http://www.sun.com/bigadmin/hcl 上的 Solaris 硬件兼容性列表。
(可选)备份系统。
如果想保留任何现有数据或应用程序,请备份系统。
有关备份 UFS 文件系统的信息,请参见《系统管理指南:设备和文件系统》中的第 24 章 “备份和恢复文件系统(概述)”
有关备份 ZFS 根池的信息,请参见《Oracle Solaris ZFS 管理指南》中的“发送和接收 ZFS 数据”。
将相应介质插入系统中。
如果从 Solaris Operating System DVD 或 Solaris Software - 1 CD 引导,请插入磁盘。系统的 BIOS 必须支持从 DVD 或 CD 引导。
您可能需要手动设置 BIOS,以便从 DVD 或 CD 引导。请参见您的硬件文档,获取更多有关如何设置 BIOS 的信息。
如果您需要手动设置 BIOS 以便从 CD 或 DVD 引导,请键入相应的组合键来中断系统的引导过程。
在 BIOS 中修改引导优先级,然后退出 BIOS,返回到安装程序。
执行内存测试和硬件检测。屏幕刷新。将会显示 GRUB 菜单。
| GNU GRUB version 0.95 (631K lower / 2095488K upper memory) +-------------------------------------------------------------------------+ | Solaris | | Solaris Serial Console ttya | | Solaris Serial Console ttyb (for lx50, v60x and v65x) | | | | | +-------------------------------------------------------------------------+ Use the ^ and v keys to select which entry is highlighted. Press enter to boot the selected OS, 'e' to edit the commands before booting, or 'c' for a command-line. | 
选择 "Solaris",然后按 Enter 键。
Solaris 安装程序程序根据安装或升级系统的要求,检查缺省引导盘。如果安装程序无法检测到系统配置,程序会提示您输入所有缺少的信息。
检查完毕后,会显示安装选择屏幕。
选择安装类型。要在桌面会话中使用交互式文本安装程序安装 Solaris OS,请键入 3,然后按 Enter 键。
选择此安装类型可覆盖缺省的 GUI 安装程序,然后运行文本安装程序进行 ZFS 安装。
|       Select the type of installation you want to perform:
         1 Solaris Interactive
         2 Custom JumpStart
         3 Solaris Interactive Text (Desktop session)
         4 Solaris Interactive Text (Console session)
         5 Apply driver updates
         6 Single user shell
         Enter the number of your choice followed by the <ENTER> key.
         Alternatively, enter custom boot arguments directly.
         If you wait 30 seconds without typing anything,
         an interactive installation will be started. | 
系统会配置设备和接口,并搜索配置文件。如果操作系统无法定位自识别键盘,下一个屏幕将显示键盘布局选择。如果系统可以定位自识别键盘,请跳至步骤 7。
(可选的)从以下屏幕中选择所需的键盘布局,然后按 F2 键以继续。
| Configure Keyboard Layout +---------------------------------------------------------------------------+ | Please specify the keyboard layout from the list below. | | | | To make a selection, use the arrow keys to highlight the option and | | press Return to mark it [X]. | | | | Keyboard Layout | | ----------------------- | | [ ] Serbia-And Montenegro | | [ ] Slovenian | | [ ] Slovakian | | [ ] Spanish | | [ ] Swedish | | [ ] Swiss-French | | [ ] Swiss-German | | [ ] Taiwanese | | [ ] TurkishQ | | [ ] TurkishF | | [ ] UK-English | | [ X] US-English | | | | F2_Continue F6_Help | +---------------------------------------------------------------------------+ | 
系统会配置设备和接口,并搜索配置文件。您可能会看到两个用来确认窗口正在运行的屏幕。确认接下来的两个屏幕,并继续以文本模式进行操作。
(可选的)在下面的屏幕中,按 Enter 键。
| Starting Solaris Interactive (graphical user interface) Installation +------------------------------------------------------------+ | You must respond to the first question within 30 seconds | | or the installer proceeds in a non-window environment | | (console mode). | | | | If the screen becomes blank or unreadable the installer | | proceeds in console mode. | | | | If the screen does not properly revert to console mode, | | restart the installation and make the following selection: | | | | Solaris Interactive Text (Console session) | -------------------------------------------------------------+ | 
进度消息结束后,将显示另一个确认屏幕。
(可选的)将光标移动到下面的文本屏幕中,并按 Enter 键。
| +------------------------------------------------------------+ |If the screen is legible, press ENTER in this window. | | | | | | | |-------------------------------------------------------------+ | 
可能会显示语言选项列表。如果没有显示此屏幕,请跳至步骤 10。
(可选的)在下面的屏幕中,选择要在安装过程中使用的语言,然后按 F2 键。
| 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 | +---------------------------------------------------------------------------+ | 
按 F2 键开始安装。如果有提示,请回答其余的配置问题。
预配置系统信息。
根据下面所列情况,选择其中之一:
如果您已预配置了所有的系统信息,则安装程序不会提示您键入任何配置信息。有关更多信息,请参见《Oracle Solaris 10 9/10 安装指南:基于网络的安装》中的第 2 章 “预配置系统配置信息(任务)”。
如果您没有预配置所有的系统信息,安装程序会在多个屏幕中提示您输入此信息。使用安装核对表可帮助您回答配置问题。
网络配置。
一个配置问题会询问您是否要启用网络服务以供远程客户机使用。缺省响应为“是,我要启用网络服务以供远程客户机使用”。
选择“否”可提供较安全的配置,在该配置下,安全 Shell 是向远程客户机提供的唯一网络服务。选择“是”会像以前的 Solaris 发行版一样,将启用为数较多的一组服务。您可以放心地选择“否”,因为在安装后可启用所有程序。有关这些选项的详细信息,请参见《Oracle Solaris 10 9/10 安装指南:规划安装和升级》中的“规划网络安全性”。
可以在安装后,使用 netservices open 命令,或通过使用 SMF 命令启用各个服务来启用网络服务。请参见《Oracle Solaris 10 9/10 安装指南:规划安装和升级》中的“在安装后修改安全性设置”。
在回答配置问题并设置超级用户口令之后,将显示 "Solaris Interactive Installation" 屏幕。
| Solaris Interactive Installation +---------------------------------------------------------------------------+ |On the following screens, you can accept the defaults or you can customize | | how Solaris software will be install 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 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_Continue F6_Help | +---------------------------------------------------------------------------+ | 
决定是否要自动重新引导系统,以及是否要自动弹出光盘。按 F2 键。
重要:如果要在重新引导系统之前禁用自动注册,请取消选定自动重新引导。
如果系统中已经有 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. | 
“许可证”屏幕会出现。
接受许可证协议以便继续安装。按 F2 键。
此时将显示 "Select Upgrade or Initial Install" 屏幕。如果您具有可以升级的 UFS 文件系统,则会显示此屏幕。如果没有显示此屏幕,请跳至步骤 14。
要执行 ZFS 安装,则必须按 F4 键进行初始安装。
将显示用于选择地理区域、语言环境和其他产品的各个屏幕。
选择所需的地理区域、语言环境和其他产品。
此时将显示 "Choose a Filesystem Type" 屏幕。
要创建和安装 ZFS 根池,请选择 "ZFS" 选项。
| Choose a Filesystem Type +---------------------------------------------------------------------------+ | Select the filesystem to use for your Solaris installation | | | | [ ] UFS | | [X] ZFS | | | | F2_Continue F6_Help | +---------------------------------------------------------------------------+ | 
此时将显示 "Select Software" 屏幕。
选择要执行的安装类型。按 F2 键。
要执行缺省安装,请接受所提供的缺省值。要执行自定义安装,请在文本安装程序屏幕中编辑值。在本示例屏幕中,为安装选中了缺省值 "Entire Distribution Software Group"。
有关软件组的更多信息,请参见软件组的磁盘空间建议。
| 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 ......5838.00 MB | | [X] Entire Distribution........................5830.00 MB | | [ ] Developer System Support...................5695.00 MB | | [ ] End User System Support....................4747.00 MB | | [ ] Core System Support........................1558.00 MB | | [ ] Reduced Networking Core System Support.....1512.00 MB | | | | F2_Continue F6_Help | +---------------------------------------------------------------------------+ | 
此时将显示 "Select Disks" 屏幕。
在选择要安装的软件之后,系统将提示您选择用来创建 ZFS 存储池的磁盘。此屏幕与以前的 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. | 
您可以选择要用于 ZFS 根池的一个或多个磁盘。
如果您选择了一个磁盘并希望稍后配置镜像,请参见《Oracle Solaris ZFS 管理指南》中的“管理 ZFS 存储池中的设备”中的 zpool attach 命令。
如果您选择了两个磁盘,则为根池设置镜像的双磁盘配置。镜像的双磁盘或三磁盘池是最优配置。
如果您有八个磁盘并选择了全部八个磁盘,则这八个磁盘将作为一个大的镜像用于根池。这不是最优配置。
不支持根池的 RAID-Z 池配置。有关配置 ZFS 存储池的更多信息,请参见《Oracle Solaris ZFS 管理指南》中的“ZFS 存储池的复制功能”。
| 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: xx denotes the current boot disk | | | |Disk Device Available Space | |========================================================================== | | | |[X]xx c0d0 29164 MB (F4 to edit) | | | | Maximum Root Size: 29164 MB | | Suggested Minimum: 5838 MB | | | | F2_Continue F6_Help | +---------------------------------------------------------------------------+ | 
此时将显示 "Preserve Data" 屏幕。
(可选)保留用来安装软件的磁盘上的数据。
如果您选择用于安装软件的磁盘中包含文件系统或具有要保存的未命名片,则可以立即保存这些文件系统或未命名片。
| 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 键来保存数据,则会显示用于保存数据的屏幕。
(可选)选择要保存的数据。
| Preserve Data +---------------------------------------------------------------------------+ |On this screen you can perserve the data on some or all disk slices. Any | |slice you preserve will not be touched when Solaris software is installed | |If you preserve data on / (root), /usr, or /var you must rename them | |because new versions of these file systems are created when Solaris | |software is installed. | | | |Warning: Preserving an 'overlap' slice will not preserve any data within | |it. To preserve this data, you must explicitly set the mount point name. | | | |Mount Point or Pool State Disk/Slice Size | |========================================================================== | |[ ] zfs: rpool Online c0d0s0 27133 MB | |[ ]swap c0d0s1 2047 MB | |[X]overlap c0d0s2 29188 MB | | | | | | F2_Continue F6_Help | +---------------------------------------------------------------------------+ | 
此时将显示用于配置 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: szboot_0507 | | ZFS Pool Size in (MB): 17270 | | Size of swap area in (MB): 1024 | | Size of dump area in (MB): 1024 | | (Pool size must be between 9472 MB and 17270 MB) | | | | [X] Keep / and /var combined | | [ ] Put /var on a separate dataset | | | | F2_Continue 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 | +------------------------------------------------------------------------- --+ | 
如果有提示,请回答其余的配置问题。
如果在安装或升级之前已使用 sysidcfg 文件中的 auto_reg 关键字来设置自动注册首选项,则安装程序不会作为一个配置问题来提示该信息。
有关自动注册的信息,请参见《Oracle Solaris 10 9/10 安装指南:规划安装和升级》中的“Oracle Solaris 自动注册”。
如果未在 sysidcfg 文件中包含 auto_reg 则作为多个配置问题之一,安装程序会提示您提供自动注册信息。
如果要在安装或升级结束时禁用自动注册,可以按这些自动注册屏幕继续进行,而无需输入任何信息。
选择使用支持凭证注册或匿名发送数据。
 
在文本屏幕中,使用方向键导航至选项框。按回车键标记选项框,以选择使用支持凭证注册。按 Esc_2 键继续。
提供要求的代理服务器和凭证信息。
如果已选择在之前的屏幕中注册,则会提示您提供 My Oracle Support 用户名和口令。如果使用代理服务器,可以提供服务器主机名和端口号,以及代理服务器用户名和口令。
如果在之前的屏幕中选择匿名注册,此屏幕只会要求输入代理服务器信息。
 
使用方向键在各行之间移动。键入支持凭证和可选代理服务器条目。按 Esc_2 键继续。
此时将显示 "Profile" 屏幕。
查看用来显示您选择的安装选项的 "Profile" 屏幕。如果需要,可以更改安装配置文件。以下示例显示的是最终的 "Profile" 安装屏幕。
| 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: c0d0 | | Root File System Type: ZFS | | Client Services: None | | | | Regions: North America | | System Locale: C ( C ) | | | | Software: Solaris 10, Entire Distribution | | Pool Name: rpool | | Boot Environment Name: szboot_0507 | | Pool Size: 17270 MB | | Devices in Pool: c1t2d0 | | | | | | F2_Continue F6_Help | +------------------------------------------------------------------------- --+ | 
要安装 Solaris 软件,请按 F2 键。按照屏幕上的说明安装 Solaris 软件。
当 Solaris 交互式文本程序完成 Solaris 软件的安装后,系统会自动重新引导或提示您手动重新引导。
如果要安装其他产品,系统会提示您插入这些产品的 DVD 或 CD。关于安装过程,请参阅相应的安装文档。
安装完成后,安装日志会保存在一个文件中。您可以在 /var/sadm/system/logs 和 /var/sadm/install/logs 目录中找到安装日志。
安装完成。如果之前已在安装程序屏幕中取消选定自动重新引导,继续步骤 25。
如果之前取消选定了自动重新引导,请选择以下两个选项中的其中一个:
如果不希望禁用自动注册,弹出所有安装介质,然后按如下所示手动重新引导系统:
| # reboot | 
如果希望禁用自动注册,以使得在重新引导时不向 Oracle 发送任何配置数据,请在手动重新引导系统之前执行下列步骤。
 注意 –
注意 – 要使用以下过程禁用自动注册,必须在较早出现的安装屏幕中取消选定自动重新引导。
如果系统自动重新引导,则无法使用下列步骤禁用“注册”。相反,在自动重新引导之后,可以通过使用 regadm 命令禁用自动注册。请参见《系统管理指南:基本管理》中的第 17 章 “使用 Oracle Solaris 自动注册的 regadm 命令(任务)”。
选择要引导的操作系统。
如果您没有做出其他选择,将装入缺省选择。
此时将显示 GRUB 菜单列表。
| GNU GRUB version 0.95 (637K lower / 3144640K upper memory)
+----------------------------------------------------------------------------+
|szboot_0507                                                                 |
|szboot_0507 Failsafe                                                        |
|                                                                            |
|+---------------------------------------------------------------------------+
     Use the ^ and v keys to select which entry is highlighted.
     Press enter to boot the selected OS, .e. to edit the
     commands before booting, or .c. for a command-line. | 
显示 GRUB 菜单后,请按 Enter 键引导缺省的操作系统实例。缺省为新安装的根池。
在此示例中,引导环境名称是 szboot_0507。如果您在 10 秒钟内没有选择任何一项,系统将自动引导。
安装完成后,请查看生成的 ZFS 存储池和文件系统信息,如以下示例所示。
ZFS 根池是一种特殊的池,不需要进行管理。zfs list 输出样例标识了根池组件(如 rpool/ROOT 项),缺省情况下,这些项是无法访问的。
| # zpool status
  pool: rpool
 state: ONLINE
 scrub: none requested
config:
        NAME        STATE     READ WRITE CKSUM
        rpool       ONLINE       0     0     0
        c1d0s0  ONLINE       0     0     0
errors: No known data errors
# zfs list
NAME                     USED  AVAIL  REFER  MOUNTPOINT
rpool                   6.83G  9.66G    62K  /rpool
rpool/ROOT              5.82G  9.66G    18K  legacy
rpool/ROOT/szboot_0507  5.82G  9.66G  5.82G  
rpool/dump               512M  9.66G   512M  -
rpool/swap               518M  9.66G   518M  - | 
如果您最初使用一个磁盘创建了 ZFS 存储池,您可以在安装之后将此磁盘转换为镜像 ZFS 配置。有关添加或附加磁盘的更多信息,请参见《Oracle Solaris ZFS 管理指南》中的“管理 ZFS 存储池中的设备”。
要在您的计算机上安装多个操作系统,您需要指示 GRUB 引导装载程序识别这些操作系统以便进行引导。有关更多信息,请参见《系统管理指南:基本管理》中的“通过在引导时编辑 GRUB 菜单修改引导行为”。
如果您在安装过程中遇到任何问题,请参见《Oracle Solaris 10 9/10 安装指南:自定义 JumpStart 和高级安装》中的附录 A “故障排除(任务)”。