系统管理指南:基本管理

ProcedureSPARC: 如何强制实施崩溃转储和系统重新引导

使用以下过程可以强制实施系统崩溃转储。该示例遵循以下过程,说明如何使用 halt -d 命令强制实施系统崩溃转储。运行此命令后,您需要以手动方式重新引导系统。

  1. 为系统键入 Stop 组合键。

    特定的 Stop 组合键取决于您的键盘类型。例如,您可以按 Stop-A 或 L1-A。终止时,请按 Break 键。

    PROM 将显示 ok 提示符。

  2. 同步文件系统并写入故障转储。


    > n
    ok sync
    

    将崩溃转储写入磁盘后,系统将继续重新引导。

  3. 确认系统引导至运行级别 3。

    引导过程成功完成后,将显示登录提示。


    hostname console login:

示例 14–2 SPARC: 使用 halt -d 命令强制实施崩溃转储和系统重新引导

本示例说明如何使用 halt -dboot 命令强制实施崩溃转储和 jupiter 系统重新引导。使用此方法可以强制实施崩溃转储和系统重新引导。


# halt -d
Jul 21 14:13:37 jupiter halt: halted by root

panic[cpu0]/thread=30001193b20: forced crash dump initiated at user request

000002a1008f7860 genunix:kadmin+438 (b4, 0, 0, 0, 5, 0)
  %l0-3: 0000000000000000 0000000000000000 0000000000000004 0000000000000004
  %l4-7: 00000000000003cc 0000000000000010 0000000000000004 0000000000000004
000002a1008f7920 genunix:uadmin+110 (5, 0, 0, 6d7000, ff00, 4)
  %l0-3: 0000030002216938 0000000000000000 0000000000000001 0000004237922872
  %l4-7: 000000423791e770 0000000000004102 0000030000449308 0000000000000005

syncing file systems... 1 1 done
dumping to /dev/dsk/c0t0d0s1, offset 107413504, content: kernel
100% done: 5339 pages dumped, compression ratio 2.68, dump succeeded
Program terminated
ok boot
Resetting ... 

Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 333MHz), No Keyboard
OpenBoot 3.15, 128 MB memory installed, Serial #10933339.
Ethernet address 8:0:20:a6:d4:5b, Host ID: 80a6d45b.

Rebooting with command: boot
Boot device: /pci@1f,0/pci@1,1/ide@3/disk@0,0:a
File and args: kernel/sparcv9/unix
SunOS Release 5.10 Version s10_60 64-bit
Copyright 1983-2004 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
configuring IPv4 interfaces: hme0.
add net default: gateway 172.20.27.248
Hostname: jupiter
The system is coming up.  Please wait.
NIS domain name is example.com
.
.
.
System dump time: Wed Jul 21 14:13:41 2004
Jul 21 14:15:23 jupiter savecore: saving system crash dump
in /var/crash/jupiter/*.0
Constructing namelist /var/crash/jupiter/unix.0
Constructing corefile /var/crash/jupiter/vmcore.0
100% done: 5339 of 5339 pages saved

Starting Sun(TM) Web Console Version 2.1-dev...
.
.
.