Solaris OS용 Sun Cluster 시스템 관리 안내서

Procedure비클러스터 모드에서 클러스터 노드를 부트하는 방법

노드가 클러스터 구성원으로 참여하지 않도록 비클러스터 모드로 부트할 수 있습니다. 클러스터 소프트웨어를 설치하거나 노드 패치와 같은 특정 관리 절차를 수행할 경우에 비클러스터 모드가 유용합니다.

이 절차에서는 장문형 Sun Cluster 명령을 제공합니다. 대부분의 명령에는 단문형도 있습니다. 명령은 명령 이름이 장문형과 단문형인 것을 제외하면 동일합니다. 명령 및 단문형 명령의 목록을 보려면 부록 A, Sun Cluster 객체 지향 명령를 참조하십시오.

  1. 비클러스터 모드에서 시작한 클러스터 노드에서 수퍼유저 또는 solaris.cluster.admin RBAC 인증을 제공하는 역할로 전환합니다.

  2. clnode evacuateshutdown 명령을 사용하여 노드를 종료합니다.

    clnode evacuate 명령은 지정된 노드에서 다음 우선 순위 노드로 모든 장치 그룹을 전환합니다. 또한, 이 명령은 지정된 노드의 전역 또는 비전역 영역에서 다른 노드의 다음 우선 순위 전역 또는 비전역 영역으로 모든 자원 그룹을 전환합니다.


    # clnode evacuate  node
    # shutdown -g0 -y
    
  3. 노드가 Solaris 기반 시스템에서 ok 프롬프트를 나타내거나 x86 기반 시스템의 GRUB 메뉴에서 계속하려면 임의 키를 누르십시오 메시지를 나타내는지 확인하십시오.

  4. 비클러스터 모드로 노드를 부트합니다.

    • SPARC 기반 시스템에서는 다음 명령을 수행하십시오.


      phys-schost# boot -xs
      
    • x86 기반 시스템에서는 다음 명령을 수행하십시오.


      phys-schost# shutdown -g -y -i0
      
      Press any key to continue
    1. GRUB 메뉴에서 화살표 키를 사용하여 적합한 Solaris 항목을 선택하고 e를 입력하여 해당 명령을 편집합니다.

      GRUB 메뉴가 다음과 같이 나타납니다.


      GNU GRUB version 0.95 (631K lower / 2095488K upper memory)
      +-------------------------------------------------------------------------+
      | Solaris 10 /sol_10_x86                                                  |
      | Solaris failsafe                                                        |
      |                                                                         |
      +-------------------------------------------------------------------------+
      Use the ^ and v 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.

      GRUB 기반 부트에 대한 내용은 System Administration Guide: Basic Administration의 11 장, GRUB Based Booting (Tasks)을 참조하십시오.

    2. 부트 매개 변수 화면에서 화살표 키를 사용하여 커널 항목을 선택하고 e를 입력하여 선택한 항목을 편집하십시오.

      다음과 같이 GRUB 부트 매개 변수 화면이 나타납니다.


      GNU GRUB version 0.95 (615K lower / 2095552K upper memory)
      +----------------------------------------------------------------------+
      | root (hd0,0,a)                                                       |
      | kernel /platform/i86pc/multiboot                                     |
      | module /platform/i86pc/boot_archive                                  |
      +----------------------------------------------------------------------+
      Use the ^ and v keys to select which entry is highlighted.
      Press 'b' to boot, 'e' to edit the selected command in the
      boot sequence, 'c' for a command-line, 'o' to open a new line
      after ('O' for before) the selected line, 'd' to remove the
      selected line, or escape to go back to the main menu.
    3. -x를 명령에 추가하여 시스템 부트를 비클러스터 모드로 지정합니다.


      [ Minimal BASH-like line editing is supported. For the first word, TAB
      lists possible command completions. Anywhere else TAB lists the possible
      completions of a device/filename. ESC at any time exits. ]
      
      grub edit> kernel /platform/i86pc/multiboot -x
    4. Enter 키를 눌러 변경 사항을 수락하고 부트 매개 변수 화면으로 복귀합니다.

      화면에 편집된 명령이 표시됩니다.


      GNU GRUB version 0.95 (615K lower / 2095552K upper memory)
      +----------------------------------------------------------------------+
      | root (hd0,0,a)                                                       |
      | kernel /platform/i86pc/multiboot -x                                  |
      | module /platform/i86pc/boot_archive                                  |
      +----------------------------------------------------------------------+
      Use the ^ and v keys to select which entry is highlighted.
      Press 'b' to boot, 'e' to edit the selected command in the
      boot sequence, 'c' for a command-line, 'o' to open a new line
      after ('O' for before) the selected line, 'd' to remove the
      selected line, or escape to go back to the main menu.-
    5. b를 입력하여 노드를 비클러스터 모드로 부트합니다.


      주 –

      커널 부트 매개 변수 명령에 대한 변경 사항은 시스템을 재부트하면 사라집니다. 다음에 노드를 재부트하면 클러스터 모드로 부트됩니다. 비클러스터 모드로 부트하려면, 이 단계를 다시 실행하여 -x 옵션을 커널 부트 매개 변수 명령에 추가합니다.



예 3–10 SPARC: 비클러스터 모드에서 클러스터 노드 부트

다음은 phys-schost-1 노드가 종료되고 비클러스터 모드에서 재시작될 때 나타나는 콘솔 출력의 예입니다. 여기서 -g0 옵션을 사용하면 유예 기간이 0으로 설정되고, -y 옵션을 사용하면 묻는 메시지에 자동으로 yes로 답하고, -i0 옵션을 사용하면 실행 수준 0을 호출합니다. 이 노드의 종료 메시지가 클러스터에 있는 다른 노드의 콘솔에 나타납니다.


# clnode evacuate phys-schost-1
# cluster shutdown -T0 -y
Shutdown started.    Wed Mar 10 13:47:32 phys-schost-1 cl_runtime: 

WARNING: CMM monitoring disabled.
phys-schost-1# 
...
rg_name = schost-sa-1 ...
offline node = phys-schost-2 ...
num of node = 0 ...
phys-schost-1# 
INIT: New run level: 0
The system is coming down.  Please wait.
System services are now being stopped.
Print services stopped.
syslogd: going down on signal 15
...
The system is down.
syncing file systems... done
WARNING: node phys-schost-1 is being shut down.
Program terminated

ok boot -x
...
Not booting as part of cluster
...
The system is ready.
phys-schost-1 console login: