成为超级用户或同等角色。
角色包含授权和具有一定权限的命令。有关角色的更多信息,请参见 《系统管理指南:安全性服务》中的“配置 RBAC(任务列表)”。
获取现有 Oracle Solaris 内核的副本并将其重命名。
将您在步骤 2 中复制和重命名的内核添加到 /etc/boot/solaris/filelist.ramdisk 文件中。
# echo "kernel.name" >> /boot/solaris/filelist.ramdisk |
检验是否已将备用内核添加到 /etc/boot/solaris/filelist.ramdisk 文件中。
# cat > /etc/boot/solaris/filelist.ramdisk |
使用 bootadm 命令更新引导归档文件。
# bootadm update-archive |
更改为运行级别 0。
# init 0 |
此时将显示 ok PROM 提示符。
引导备用内核。
ok boot alternate-kernel |
例如:
ok boot kernel.myname/sparcv9/unix |
在引导系统后,检验是否已引导备用内核。
# prtconf -vp | grep whoami |
# cp -r /platform/sun4v/kernel /platform/sun4vu/kernel.caiobella # echo "kernel.caiobela" >> /boot/solaris/filelist.ramdisk # cat > /etc/boot/solaris/filelist.ramdisk /platform/sun4v/kernel.caiobella ^D (control D) ok setenv boot-file kernel.caiobells/sparcv9/unix ok printenv boot-file boot-file = kernel.caiobella/sparcv9/unix ok boot SC Alert: Host System has Reset SC Alert: Host system has shut down. Sun Fire T200, No KeyboardCopyright 2006 Sun Microsystems, Inc. All rights reserved. OpenBoot 4.25.0.build_01***PROTOTYPE BUILD***, 32760 MB memory available, Serial #69060038. Ethernet address 0:x:4f:x:c5:c6, Host ID: 8xxc5c6. Rebooting with command: boot Boot device: /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/disk@0,0:a File and args: kernel.caiobella/sparcv9/unix SunOS Release 5.10 Copyright 1983-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. DEBUG enabled misc/forthdebug (176650 bytes) loaded Hostname: seasonz NIS domain name is lab.domain.sun.com Reading ZFS config: done. seasonz console login: Password: Last login: Mon Nov 12 18:02:00 on console Sun Microsystems Inc. SunOS 5.10 . . . You have new mail. # # # prtconf -vp | grep whoami whoami: '/platform/sun4v/kernel.caiobella/sparcv9/unix' |