Go to main content
Oracle® Solaris 11.3 システムのブートとシャットダウン

印刷ビューの終了

更新: 2016 年 11 月
 
 

システムを対話式でブートする方法

対話式でのシステムのブートは、元のファイルが破損しているか、システムがブートしないために、ブートプロセス中に代替カーネルまたは /etc/system ファイルを指定する必要がある場合に役立ちます。システムを対話式でブートするには、次の手順を使用します。

次の手順では、ブート環境が 1 つしかないシステムの対話式のブート時に、代替の /etc/system ファイルを指定する方法について説明します。または、代替ブート環境をブートできます。

  1. /etc/system ファイルおよび boot/solaris/filelist.ramdisk ファイルのバックアップコピーを作成し、/etc/system.bak のファイル名を /boot/solaris/filelist.ramdisk ファイルに追加します。
    # cp /etc/system /etc/system.bak
    # cp /boot/solaris/filelist.ramdisk /boot/solaris/filelist.ramdisk.orig
    # echo "etc/system.bak" >> /boot/solaris/filelist.ramdisk
  2. プラットフォームに応じて、次のいずれかを実行します。
    • SPARC プラットフォームの場合:
      1. システムを ok PROM プロンプトにします。
        # init 0
      2. システムを対話式でブートします。
        ok boot -a
    • x86 プラットフォームの場合:
      1. システムの標準リブートを実行します。
        # reboot -p
      2. GRUB メニューが表示されたら、対話式でブートするブートエントリを選択し、e を入力してそのエントリを編集します。
      3. $multiboot 行の末尾に –a と入力します。
      4. GRUB 編集メニューを終了し、編集したばかりのエントリをブートするには、Control-X を押します。UEFI ファームウェアを搭載するシステムがあり、シリアルコンソールを使用していない場合、F10 キーを押すことによってもエントリがブートします。
  3. 代替ファイルシステムを要求されたら、作成したバックアップファイルを指定し、Return キーを押します。例:
    Name of system file [etc/system]: /etc/system.bak

    情報を指定せずに Return キーを押すと、システムのデフォルトが受け入れられます。

  4. リタイアストアプロンプトで、Return キーを押すか、/dev/null を指定してバイパスします。

    注 - /etc/devices/retire_store ファイルは、障害管理アーキテクチャー (FMA) によってリタイアされるデバイスのバッキングストアです。システムはこれらのデバイスを使用しなくなりました。必要に応じて、/etc/devices/retire_store の代替ファイルを提供できます。ただし、復旧のために /dev/null を指定することは、 /etc/devices/retire_store ファイルの内容に関係なく、システムをブートするもっとも有益な選択肢です。
  5. システムのブート後に、/etc/system ファイルの問題を修正します。
  6. システムをリブートします。
    # reboot
使用例 33  SPARC: システムを対話式でブートする

次の例では、システムのデフォルト (角かっこ [] で示す) が受け入れられます。

# init 0
# svc.startd: The system is coming down.  Please wait.
svc.startd: 121 system services are now being stopped.
Apr 22 00:34:25 system-28 syslogd: going down on signal 15
svc.startd: Killing user processes.
umount: /home busy
Apr 22 06:34:37 The system is down.  Shutdown took 18 seconds.
syncing file systems... done
Program terminated
{11} ok boot -a

SC Alert: Host System has Reset

Sun Fire T200, No Keyboard
Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
OpenBoot 4.30.4.d, 16256 MB memory available, Serial #74139288.
Ethernet address 0:14:4f:6b:46:98, Host ID: 846b4698.

Boot device: /pci@780/pci@0/pci@9/scsi@0/disk@0,0:a  File and args: -a
Name of system file [/etc/system]:  /etc/system.bak
SunOS Release 5.11 Version 11.3 64-bit
Copyright (c) 1983, 2015, Oracle and/or its affiliates. All rights reserved.
Retire store [/etc/devices/retire_store] (/dev/null to bypass): Press Return


system-28 console login:
使用例 34  x86: システムを対話式でブートする

次の例では、x86 ベースのシステムが対話式でブートされます。

root@system-04:~# reboot -p
Apr 23 15:37:04 system-04 reboot: initiated by user1 on /dev/consoleTerminated
system-04% syncing file systems... done
rebooting...
.
.
.LSI Corporation MPT SAS BIOS
MPTBIOS-6.26.00.00 (2008.10.14)
Copyright 2000-2008 LSI Corporation.

Initializing..|Press F2 to runS POPUP  (CTRL+P on Remote Keyboard)
Press F12 to boot from the network (CTRL+N on Remote Keyboard)
System Memory : 8.0 GB , Inc.
Auto-Detecting Pri Master..ATAPI CDROM                              0078
            Ultra DMA Mode-2 
GNU GRUB  version 1.99,5.11.0.175.1.0.0.14.0

 ****************************************************************************
 *Oracle Solaris 11.3                                                       *
 *                                                                          *
 *                                                                          *
 *                                                                          *
 *                                                                          *
 *                                                                          *
 *                                                                          *
 *                                                                          *
 *                                                                          *
 *                                                                          *
 *                                                                          *
 *                                                                          *
 *                                                                          *
 ****************************************************************************

      Use the * and * 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.

 GNU GRUB  version 1.99,5.11.0.175.1.0.0.15.1

 +--------------------------------------------------------------------------+
 | setparams 'Oracle Solaris 11.3'                                          |
 |                                                                          |
 | insmod part_msdos                                                        |
 | insmod part_sunpc                                                        |
 | insmod part_gpt                                                          |
 | insmod zfs                                                               |
 | search --no-floppy --fs-uuid --set=root cd03199c4187a7d7                 |
 | zfs-bootfs /ROOT/s11.3/@/ zfs_bootfs                                     |
 | set kern=/platform/i86pc/kernel/amd64/unix                               |
 | echo -n "Loading ${root}/ROOT/s11./@$kern: "                            |
 | $multiboot /ROOT/s11.3/@/$kern $kern -B $zfs_bootfs -a                   |
 | set gfxpayload="1024x768x32;1024x768x16;800x600x16;640x480x16;640x480x1\ |
 +--------------------------------------------------------------------------+

      Minimum Emacs-like screen editing is supported. TAB lists
      completions. Press Ctrl-x or F10 to boot, Ctrl-c or F2 for
      a command-line or ESC to discard edits and return to the GRUB menu.

 Booting a command list

Loading hd0,msdos1,sunpc1/ROOT/s11.3/@/platform/i86pc/kernel/amd64/unix: 0
%...done.
Loading hd0,msdos1,sunpc1/ROOT/s11.3/@/platform/i86pc/amd64/boot_archive:
0%...
.
.
.
Name of system file [/etc/system]:  /etc/system.bak
SunOS Release 5.11 Version 11.3 64-bit
Copyright (c) 1983, 2015, Oracle and/or its affiliates. All rights reserved.: 0
Retire store [/etc/devices/retire_store] (/dev/null to bypass): Press Return 

NOTICE: kmem_io_2G arena created
Hostname: system-04

system-04 console login: