www. On IT Road .com
挂载 rpool
系统从 DVD 或者网络启动后,请按照以下帖子在从 DVD 启动时挂载 ZFS 根池。
我们需要挂载 ZFS 根池,以便安装与将要引导的操作系统的补丁级别对应的引导块。
从 DVD/网络/故障安全镜像启动
为了安装新的 ZFS 引导块,我们需要首先从 DVD、网络或者系统上的故障安全镜像引导。
ok> boot cdrom -s
或者
ok> boot net -s
在 x86 系统上,将 BIOS 配置为从网络或者 DVD 引导,然后从显示给 GRUB 菜单中选择适当的选项。
解决方案
这篇文章讨论了如何在运行 ZFS 根文件系统的系统上安装 ZFS 引导块。
当系统无法从包含根文件系统的磁盘引导时,这通常是必需的。
典型的错误可能包括:
The file just loaded does not appear to be executable Bootblk: can't find the boot program.
重启
安装引导块后,我们可以重新引导主机并从根磁盘引导。
# shutdown -y -i6 -g0
安装引导块
挂载数据集后,使用 installboot 或者 installgrub 安装引导块
空间研究中心
# installboot -F zfs /mnt/usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/rdsk/c1t0d0s0
带有 Solaris 10 或者 Solaris 11.0 的 x86 系统
# installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c1t1d0s0
带有 Solaris 11.1 及更高版本的 x86 系统
在带有 Solaris 11.1 及更高版本的 x86 系统上使用 bootadm。
install-bootloader 子命令安装系统引导加载程序。
它取代了 x86 上 installgrub 的功能,并支持在 x86 上安装 GRUB2 的引导加载程序。
# bootadm install-bootloader -P rpool
日期:2020-09-17 00:15:11 来源:oir作者:oir