Oracle® Solaris 11.2 시스템 부트 및 종료

인쇄 보기 종료

업데이트 날짜: 2014년 7월
 
 

시스템을 대화식으로 부트하는 방법

원본 파일이 손상되거나 시스템이 부트되지 않아 부트 프로세스 중 대체 커널 또는 /etc/system 파일을 지정해야 할 경우 시스템을 대화식으로 부트하는 것이 유용합니다. 시스템을 대화식으로 부트하려면 다음 절차를 사용하십시오.

다음 절차에서는 부트 환경이 하나뿐인 시스템의 대화식 부트를 수행할 때 대체 /etc/system 파일을 지정하는 방법에 대해 설명합니다. 대체 부트 환경을 부트할 수도 있습니다.

  1. /etc/systemboot/solaris/filelist.ramdisk 파일의 백업 복사본을 만든 다음 /boot/solaris/filelist.ramdisk 파일에 etc/system.bak 파일 이름을 추가합니다.
    # 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 편집 메뉴를 종료하고 방금 편집한 항목을 부트하려면 Ctrl-X를 누릅니다. UEFI 펌웨어를 사용하는 시스템이 있으며 직렬 콘솔을 사용하고 있지 않은 경우 F10 키를 눌러도 항목이 부트됩니다.
  3. 대체 파일 시스템에 대한 프롬프트가 표시되면 만든 백업 파일을 지정하고 Return 키를 누릅니다. 예를 들어, 다음과 같습니다.
    Name of system file [etc/system]: /etc/system.bak

    정보를 제공하지 않고 Return 키를 누르면 시스템 기본값이 사용됩니다.

  4. 저장소 복원 프롬프트에서 Return 키를 누르거나 /dev/null을 지정하여 무시합니다.

    주 - /etc/devices/retire_store 파일은 FMA(Fault Management Architecture)가 제거하는 장치의 보조 저장소입니다. 시스템에서는 더 이상 해당 장치를 사용하지 않습니다. 필요한 경우 /etc/devices/retire_store에 대한 대체 파일을 제공할 수 있습니다. 하지만 복구 용도로 /etc/devices/retire_store 파일의 컨텐츠를 보호하지 않고 시스템을 부트하려면 /dev/null을 지정하는 것이 가장 좋습니다.
  5. 시스템이 부트되면 /etc/system 파일과 관련된 문제를 수정합니다.
  6. 시스템을 재부트합니다.
    # reboot
예 4-16  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, 2014, 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.2 64-bit
Copyright (c) 1983, 2014, Oracle and/or its affiliates. All rights reserved.
Retire store [/etc/devices/retire_store] (/dev/null to bypass): Press Return


system-28 console login:
예 4-17  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.2                                                       *
 *                                                                          *
 *                                                                          *
 *                                                                          *
 *                                                                          *
 *                                                                          *
 *                                                                          *
 *                                                                          *
 *                                                                          *
 *                                                                          *
 *                                                                          *
 *                                                                          *
 *                                                                          *
 ****************************************************************************

      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.2'                                          |
 |                                                                          |
 | insmod part_msdos                                                        |
 | insmod part_sunpc                                                        |
 | insmod part_gpt                                                          |
 | insmod zfs                                                               |
 | search --no-floppy --fs-uuid --set=root cd03199c4187a7d7                 |
 | zfs-bootfs /ROOT/s11u2/@/ zfs_bootfs                                     |
 | set kern=/platform/i86pc/kernel/amd64/unix                               |
 | echo -n "Loading ${root}/ROOT/s11u2/@$kern: "                            |
 | $multiboot /ROOT/s11u2/@/$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/s11u2/@/platform/i86pc/kernel/amd64/unix: 0
%...done.
Loading hd0,msdos1,sunpc1/ROOT/s11u2/@/platform/i86pc/amd64/boot_archive:
0%...
.
.
.
Name of system file [/etc/system]:  /etc/system.bak
SunOS Release 5.11 Version 11.s 64-bit
Copyright (c) 1983, 2014, 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: