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

단일 클러스터 노드 종료 및 부트


주 –

Solaris shutdown(1M) 명령과 함께 clnode(1CL) evacuate 명령을 사용하여 개별 노드를 종료합니다. 전체 클러스터를 종료하는 경우에만 cluster shutdown 명령을 사용합니다. 비전역 영역 종료 및 부트에 대한 자세한 내용은 System Administration Guide: Solaris Containers-Resource Management and Solaris Zones의 20 장, Installing, Booting, Halting, Uninstalling, and Cloning Non-Global Zones (Tasks)를 참조하십시오.


표 3–2 작업 맵: 클러스터 노드 종료 및 부트

작업 

도구 

지침 

클러스터 노드 중지 

clnode(1CL) evacuate 명령 및 shutdown 명령 사용

클러스터 노드를 종료하는 방법

노드 시작 

클러스터 멤버쉽을 얻으려면 클러스터 노드에 클러스터 상호 연결에 대하여 작동하는 연결이 있어야 합니다. 

boot 또는 b 명령 사용

클러스터 노드를 부트하는 방법

클러스터 노드를 중지시키고 다시 시작(재부트) 

클러스터 멤버쉽을 얻으려면 클러스터 노드에 클러스터 상호 연결에 대하여 작동하는 연결이 있어야 합니다. 

clnode evacuateshutdown 명령 사용

클러스터 노드를 재부트하는 방법

노드가 클러스터 구성원에 포함되지 않도록 노드 부트 

clnode evacuateshutdown 명령을 사용한 후 boot -x 또는 shutdown -g -y -i0 명령 사용

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

Procedure클러스터 노드를 종료하는 방법


주의 – 주의 –

클러스터 콘솔에서 send brk 명령을 사용하여 클러스터 노드를 종료하지 마십시오. 클러스터에서는 이 명령을 사용할 수 없습니다.


비전역 영역 종료에 대한 자세한 내용은 System Administration Guide: Solaris Containers-Resource Management and Solaris Zones의 20 장, Installing, Booting, Halting, Uninstalling, and Cloning Non-Global Zones (Tasks)를 참조하십시오.

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

  1. SPARC: 클러스터에서 Oracle Parallel Server 또는 Oracle RAC를 실행하는 경우 데이터베이스 인스턴스를 모두 종료합니다.

    종료 절차에 대한 내용은 Oracle Parallel Server 또는 Oracle RAC 제품 설명서를 참조하십시오.

  2. 종료된 클러스터에서 수퍼유저 또는 solaris.cluster.admin RBAC 인증을 제공하는 역할로 전환합니다.

  3. 종료하는 노드에서 모든 자원 그룹, 자원 및 장치 그룹을 다른 클러스터 구성원으로 전환합니다.

    종료할 노드에서 다음 명령을 입력하십시오. clnode evacuate 명령은 비전역 영역을 모두 포함하는 모든 자원 그룹 및 장치 그룹을 지정된 노드에서 다음 우선 순위 노드로 전환합니다.


    # clnode evacuate node
    
    node

    전환할 자원 그룹 및 장치 그룹이 있는 노드를 지정합니다.

  4. 클러스터 노드를 종료합니다.

    종료할 노드에서 다음 명령을 입력하십시오.


    # shutdown -g0 -y -i0
    

    클러스터 노드가 SPARC 기반 시스템에서 ok 프롬프트를 나타내거나 x86 기반 시스템의 GRUB 메뉴에서 계속하려면 임의 키를 누르십시오 메시지를 나타내는지 확인합니다.

  5. 필요한 경우 노드의 전원을 끕니다.


예 3–5 SPARC: 클러스터 노드 종료

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


# clnode evacuate -S -h phys-schost-1
# shutdown -T0 -y
Wed Mar 10 13:47:32 phys-schost-1 cl_runtime:
WARNING: CMM monitoring disabled.
phys-schost-1# 
INIT: New run level: 0
The system is coming down.  Please wait.
Notice: rgmd is being stopped.
Notice: rpc.pmfd is being stopped.
Notice: rpc.fed is being stopped.
umount: /global/.devices/node@1 busy
umount: /global/phys-schost-1 busy
The system is down.
syncing file systems... done
Program terminated
ok 


예 3–6 x86: 클러스터 노드 종료

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


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

Changing to init state 0 - please wait
Broadcast Message from root (console) on phys-schost-1 Wed Mar 10 13:47:32... 
THE SYSTEM phys-schost-1 IS BEING SHUT DOWN NOW ! ! !
Log off now or risk your files being damaged

phys-schost-1#
INIT: New run level: 0
The system is coming down.  Please wait.
System services are now being stopped.
/etc/rc0.d/K05initrgm: Calling scswitch -S (evacuate)
failfasts disabled on node 1
Print services already stopped.
Mar 10 13:47:44 phys-schost-1 syslogd: going down on signal 15
umount: /global/.devices/node@2 busy
umount: /global/.devices/node@1 busy
The system is down.
syncing file systems... done
WARNING: CMM: Node being shut down.
Type any key to continue 

참조

종료된 클러스터 노드를 다시 시작하려면 클러스터 노드를 부트하는 방법을 참조하십시오.

Procedure클러스터 노드를 부트하는 방법

클러스터의 다른 활성 노드를 종료하거나 재부트하려면 부트 중인 노드가 다음의 상태에 도달할 때까지 기다리십시오.

그렇지 않으면 종료하거나 재부트하는 클러스터의 다른 노드에서 서비스를 인계할 수 없습니다. 비전역 영역 부트에 대한 자세한 내용은 System Administration Guide: Solaris Containers-Resource Management and Solaris Zones의 20 장, Installing, Booting, Halting, Uninstalling, and Cloning Non-Global Zones (Tasks)를 참조하십시오.


주 –

쿼럼 구성에 따라 클러스터 노드 시작 방법이 달라질 수 있습니다. 두 개의 노드로 구성된 클러스터에서는 클러스터의 총 쿼럼 계수가 3이 되도록 쿼럼 장치가 구성되어야 합니다. 즉, 각 노드에 대한 쿼럼 수가 하나씩 구성되고 쿼럼 장치에 대한 쿼럼 수 하나가 구성되어야 합니다. 이러한 경우에 첫 번째 노드가 종료되면 두 번째 노드가 계속 쿼럼 자격을 갖고 단일 클러스터 구성원으로 실행됩니다. 첫 번째 노드가 다시 클러스터에 포함되어 클러스터 노드로 실행되려면 두 번째 노드가 계속 실행되고 있어야 합니다. 또한 필요한 쿼럼 수(2)가 유지되어야 합니다.


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

  1. 종료된 클러스터 노드를 시작하려면 노드를 부트합니다.

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


      ok boot
      
    • x86 기반 시스템에서는 다음을 수행합니다.

      GRUB 메뉴가 나타나면 적절한 Solaris 항목을 선택하고 Enter 키를 누르십시오. 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.

    클러스터 구성 요소가 활성화되면 부트된 노드의 콘솔에 메시지가 나타납니다.


    주 –

    클러스터 멤버쉽을 얻으려면 클러스터 노드에 클러스터 상호 연결에 대하여 작동하는 연결이 있어야 합니다.


  2. 노드가 오류 없이 부트되고 온라인 상태인지 확인합니다.

    cluster status 명령은 노드의 상태를 보고합니다.


    # cluster status -t node
    

    주 –

    클러스터 노드의 /var 파일 시스템이 모두 차면 해당 노드에서 Sun Cluster를 다시 시작하지 못할 수도 있습니다. 이런 문제가 발생하면 꽉 찬 /var 파일 시스템을 복구하는 방법을 참조하십시오.



예 3–7 SPARC: 클러스터 노드 부트

다음은 phys-schost-1 노드를 클러스터로 부트할 때 표시되는 콘솔 출력의 예입니다.


ok boot
Rebooting with command: boot 
...
Hostname: phys-schost-1
Booting as part of a cluster
...
NOTICE: Node phys-schost-1: attempting to join cluster
...
NOTICE: Node phys-schost-1: joined cluster
...
The system is coming up.  Please wait.
checking ufs filesystems
...
reservation program successfully exiting
Print services started.
volume management starting.
The system is ready.
phys-schost-1 console login:

Procedure클러스터 노드를 재부트하는 방법

클러스터의 다른 활성 노드를 종료하거나 재부트하려면 재부트 중인 노드가 다음의 상태에 도달할 때까지 기다리십시오.

그렇지 않으면 종료하거나 재부트하는 클러스터의 다른 노드에서 서비스를 인계할 수 없습니다. 비전역 영역 재부트에 대한 자세한 내용은 System Administration Guide: Solaris Containers-Resource Management and Solaris Zones의 20 장, Installing, Booting, Halting, Uninstalling, and Cloning Non-Global Zones (Tasks)를 참조하십시오.

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

  1. SPARC: 클러스터 노드에서 Oracle Parallel Server 또는 Oracle RAC를 실행하는 경우 데이터베이스 인스턴스를 모두 종료합니다.

    종료 절차에 대한 내용은 Oracle Parallel Server 또는 Oracle RAC 제품 설명서를 참조하십시오.

  2. 종료된 클러스터 노드에서 수퍼유저 또는 solaris.cluster.admin RBAC 인증을 제공하는 역할로 전환합니다.

  3. clnode evacuateshutdown 명령을 사용하여 클러스터 노드를 종료합니다.

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

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


      # clnode evacuate  node
      # shutdown -g0 -y -i6
      
    • x86 기반 시스템에서는 다음을 수행합니다.


      # clnode evacuate  node
      

      GRUB 메뉴가 나타나면 적절한 Solaris 항목을 선택하고 Enter 키를 누르십시오. 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.

    주 –

    클러스터 멤버쉽을 얻으려면 클러스터 노드가 현재 클러스터 상호 연결에 연결되어 있어야 합니다.


  4. 노드가 오류 없이 부트되고 온라인 상태인지 확인합니다.


    # cluster status -t node
    

예 3–8 SPARC: 클러스터 노드 재부트

다음은 phys-schost-1 노드가 재부트될 때 나타나는 콘솔 출력의 예입니다. 이 노드의 종료와 시작을 알리는 메시지가 클러스터에 있는 다른 노드의 콘솔에도 표시됩니다.


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

WARNING: CMM monitoring disabled.
phys-schost-1# 
INIT: New run level: 6
The system is coming down.  Please wait.
System services are now being stopped.
Notice: rgmd is being stopped.
Notice: rpc.pmfd is being stopped.
Notice: rpc.fed is being stopped.
umount: /global/.devices/node@1 busy
umount: /global/phys-schost-1 busy
The system is down.
syncing file systems... done
rebooting...
Resetting ... 
,,,
Sun Ultra 1 SBus (UltraSPARC 143MHz), No Keyboard
OpenBoot 3.11, 128 MB memory installed, Serial #5932401.
Ethernet address 8:8:20:99:ab:77, Host ID: 8899ab77.
...
Rebooting with command: boot
...
Hostname: phys-schost-1
Booting as part of a cluster
...
NOTICE: Node phys-schost-1: attempting to join cluster
...
NOTICE: Node phys-schost-1: joined cluster
...
The system is coming up.  Please wait.
The system is ready.
phys-schost-1 console login: 


예 3–9 x86: 클러스터 노드 재부트

다음은 phys-schost-1 노드를 재부트할 때 표시되는 콘솔 출력의 예입니다. 이 노드의 종료와 시작을 알리는 메시지가 클러스터에 있는 다른 노드의 콘솔에도 표시됩니다.


# clnode evacuate phys-schost-1
ok boot
Rebooting with command: boot 
...
Hostname: phys-schost-1
Booting as part of a cluster
...
NOTICE: Node phys-schost-1: attempting to join cluster
...
NOTICE: Node phys-schost-1: joined cluster
...
The system is coming up.  Please wait.
checking ufs filesystems
...
reservation program successfully exiting
Print services started.
volume management starting.
The system is ready.
phys-schost-1 console login: 

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: