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

인쇄 보기 종료

업데이트 날짜: 2014년 7월
 
 

시스템을 단일 사용자 상태(실행 레벨 S)로 부트하는 방법

시스템 유지 관리(예: 파일 시스템 백업 또는 기타 시스템 문제 해결)를 수행하려는 경우 시스템을 단일 사용자 상태로 부트합니다.

  1. root 역할을 맡습니다.

    Oracle Solaris 11.2의 사용자 및 프로세스 보안 의 지정된 관리 권한 사용을 참조하십시오.

  2. 플랫폼에 따라 다음 작업 중 하나를 수행합니다.
    • SPARC 플랫폼:
      1. 시스템에 ok PROM 프롬프트를 표시합니다.
        # init 0
      2. 시스템을 단일 사용자 상태로 부트합니다.
        ok boot -s
      3. 다음 메시지가 표시되면 root 암호를 입력합니다.
        SINGLE USER MODE
        
        Root password for system maintenance (control-d to bypass): xxxxxx
    • x86 플랫폼:
      1. 시스템의 표준 재부트를 수행합니다.
        # reboot -p

        기본적으로 빠른 재부트 기능이 사용으로 설정되어 있으므로 부트 시 GRUB 메뉴가 표시되도록 시스템을 재부트할 때 –p 옵션을 지정해야 합니다. –p 옵션을 지정하지 않아도 되도록 빠른 재부트 기능을 사용 안함으로 설정하려면 기본 빠른 재부트 동작 변경을 참조하십시오.

        • 시스템에 Press Any Key to Reboot(재부트하려면 아무 키나 누르십시오.) 프롬프트가 표시되면 아무 키나 눌러 시스템을 재부트합니다. 또는 이 프롬프트에서 Reset(재설정) 버튼을 사용해도 됩니다.
        • 시스템이 종료되면 전원 스위치를 눌러 시스템을 켭니다.
      2. GRUB 메뉴가 표시되면 수정할 부트 항목을 선택한 다음 e를 입력하여 해당 항목을 편집합니다.
      3. 화살표 키를 사용하여 $multiboot 행으로 이동한 다음 행 끝에 –s를 입력합니다.
      4. GRUB 편집 메뉴를 종료하고 방금 편집한 항목을 부트하려면 Ctrl-X를 누릅니다. UEFI 펌웨어를 사용하는 시스템에서 직렬 콘솔을 사용하고 있지 않은 경우 F10 키를 눌러도 항목이 부트됩니다.

        부트 시 GRUB 메뉴 편집에 대한 자세한 내용은 부트 시 GRUB 메뉴를 편집하여 커널 인수 추가를 참조하십시오.

  3. 시스템이 실행 레벨 S에 있는지 확인합니다.
    # who -r
  4. 실행 레벨 S로 변경하는 데 필요한 유지 관리 작업을 수행합니다.
  5. 시스템을 재부트합니다.
예 4-14  SPARC: 시스템을 단일 사용자 상태(실행 레벨 S)로 부트

다음 예에서는 부트 프로세스가 시작된 후 SPARC 기반 시스템을 실행 레벨 S로 부트할 때 표시되는 메시지를 보여 줍니다.

# init 0
# svc.startd: The system is coming down.  Please wait.
svc.startd: 122 system services are now being stopped.
Mar  5 10:30:33 system1 syslogd: going down on signal 15
svc.startd: Killing user processes.
umount: /ws busy
umount: /home busy
Mar  5 17:30:50 The system is down.  Shutdown took 70 seconds.
syncing file systems... done
Program terminated
{1c} ok boot -s

SC Alert: Host System has Reset
NOV 17 21:46:59 ERROR: System memory downgraded to 2-channel mode from 4-channel mode
NOV 17 21:47:00 ERROR: Available system memory is less than physically installed memory
NOV 17 21:47:00 ERROR: System DRAM  Available: 008192 MB  Physical: 016384 MB
Sun Fire T200, No Keyboard
.
.
.
Ethernet address 0:14:4f:1d:e8:da, Host ID: 841de8da.



ERROR: The following devices are disabled:
    MB/CMP0/CH2/R0/D0

Boot device: /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/disk@0,0:a 
File and args: -s

SunOS Release 5.11 Version 11.2 64-bit
Copyright (c) 1983, 2014, Oracle and/or its affiliates. All rights reserved.
NOTICE: Hypervisor does not support CPU power management
Booting to milestone "milestone/single-user:default".
Hostname: system1
Requesting System Maintenance Mode
SINGLE USER MODE
Enter root password (control-d to bypass): xxxxxx
single-user privilege assigned to root on /dev/console.
Entering System Maintenance Mode

Mar  5 10:36:14 su: 'su root' succeeded for root on /dev/console
Oracle Corporation      SunOS 5.11      11.2    July 2014
root@system1:~# who -r
run-level S  Mar  5 10:35     S      0  0
root@tsystem1:~#
예 4-15  x86: 시스템을 단일 사용자 상태(실행 레벨 S)로 부트

다음 예에서는 부트 프로세스가 시작된 후 x86 기반 시스템을 실행 레벨 S로 부트할 때 표시되는 메시지를 보여 줍니다.

root@system-04:~# init 0
root@system-04:~# svc.startd: The system is coming down.  Please wait.
svc.startd: 129 system services are now being stopped.
Apr 23 13:51:28 system-04 syslogd: going down on signal 15
svc.startd: Killing user processes.
umount: /home busy
Apr 23 13:51:36 The system is down.  Shutdown took 26 seconds.
syncing file systems... done
Press any key to reboot.
.
.
.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.14.0

 ****************************************************************************
 * 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 -s						    
 * set gfxpayload="1024x768x32;1024x768x16;800x600x16;640x480x16;640x480x1\ *
 * 5;640x480x32"                                                            **
 ****************************************************************************

      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%...
.
.
.
SunOS Release 5.11 Version 11.2 64-bit
Copyright (c) 1983, 2014, Oracle and/or its affiliates. All rights reserved.
NOTICE: kmem_io_2G arena created
Booting to milestone "milestone/single-user:default".
Hostname: system-04
Requesting System Maintenance Mode
SINGLE USER MODE


Enter user name for system maintenance (control-d to bypass): root
Enter root password (control-d to bypass): xxxxxxx
single-user privilege assigned to root on /dev/console.
Entering System Maintenance Mode

May  8 11:13:44 su: 'su root' succeeded for root on /dev/console
Oracle Corporation      SunOS 5.11      11.2    July 2014
You have new mail.

root@system-04:~# who -r
   .       run-level S  Apr 23 14:49     S      0  0