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

Procedure클러스터에서 시간을 다시 설정하는 방법

Sun Cluster 소프트웨어에서는 네트워크 시간 프로토콜(Network Time Protocol, NTP)을 사용하여 클러스터 노드 간에 시간 동기화를 유지합니다. 노드가 시간을 동기화할 때 클러스터 조정은 필요에 따라 자동으로 수행됩니다. 자세한 내용은 Sun Cluster Concepts Guide for Solaris OSNetwork Time Protocol User's Guide를 참조하십시오.


주의 – 주의 –

NTP를 사용할 경우에 클러스터가 실행되고 있을 때는 클러스터를 조정하지 마십시오. date(1), rdate(1M), xntpd(1M) 또는 svcadm(1M) 명령을 대화식으로 사용하거나 cron(1M) 스크립트를 사용하여 시간을 조정하지 마십시오.


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

  1. 임의의 클러스터의 노드에서 수퍼유저로 전환합니다.

  2. 클러스터를 종료합니다.


    # cluster shutdown -g0 -y -i 0
    
  3. 해당 노드가 SPARC 기반 시스템에서 ok 프롬프트를 표시하거나 x86 기반 시스템에서 GRUB 메뉴에 Press any key to continue 메시지를 표시하는지 확인합니다.

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

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


      ok boot -x
      
    • 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 옵션을 커널 부트 매개 변수 명령에 추가합니다.


  5. 단일 노드에서는 date 명령을 실행하여 시간을 설정합니다.


    # date HHMM.SS
    
  6. 다른 시스템에서 rdate(1M) 명령을 실행하여 시간을 위의 노드와 동기화합니다.


    # rdate hostname
    
  7. 각 노드를 부트하여 클러스터를 다시 시작합니다.


    # reboot
    
  8. 모든 클러스터 노드에서 변경되었는지 확인합니다.

    각 노드에서 date 명령을 실행하십시오.


    # date