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

Procedure재부트 패치 적용 방법(클러스터)

이 절자에서는 패치를 적용하기 전에 먼저 클러스터를 종료하고 boot -sx 또는 shtudown -g -y -i0 명령을 사용하여 단일 사용자 모드로 각 노드를 부트해야 합니다.

  1. 패치를 적용하기 전에 Sun Cluster 제품 웹 사이트에서 특별한 설치 전후 지침이 있는지 확인합니다.

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

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


    # cluster shutdown -y -g grace-period message
    
    -y

    확인 프롬프트에 대해 yes로 응답하도록 지정합니다.

    -g grace-period

    시스템을 종료하기 전에 대기할 시간을 초 단위로 지정합니다. 기본 종료 시간은 60초입니다.

    message

    브로드캐스트할 경고 메시지를 지정합니다. message에 여러 단어를 포함하려면 따옴표를 사용하십시오.

  4. 비클러스터의 각 노드를 단일 사용자 모드로 부트합니다.

    각 노드의 콘솔에서 다음 명령을 실행하십시오.

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


      ok boot -sx
      
    • 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. -sx를 명령에 추가하여 시스템 부트를 비클러스터 모드로 지정합니다.


      [ 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를 입력하여 노드를 비클러스터 모드로 부트합니다.


      주 –

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


  5. 소프트웨어 또는 펌웨어 패치를 적용합니다.

    한 번에 한 노드씩 다음 명령을 실행하십시오.


     # patchadd -M patch-dir patch-id
    
    patch-dir

    패치의 디렉토리 위치를 지정합니다.

    patch-id

    주어진 패치의 패치 번호를 지정합니다.


    주 –

    항상 이 장의 절차 대신 패치 디렉토리의 지시 사항을 우선적으로 따르십시오.


  6. 각 노드에 패치가 제대로 설치되었는지 확인합니다.


     # showrev -p | grep patch-id
    
  7. 모든 노드에 패치를 적용한 후에 클러스터 모드로 노드를 재부트합니다.

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


    # reboot
    
  8. 패치가 적용되고 노드와 클러스터가 정상적으로 작동하는지 확인합니다.


예 10–2 재부트하는 패치 적용(클러스터)

다음은 재부트하는 Sun Cluster 패치를 클러스터에 적용하는 예입니다.


# cluster shutdown -g0 -y
...

노드를 비클러스터 및 단일 사용자 모드로 부트합니다.


...
# patchadd -M /var/tmp/patches 234567-05
(다른 클러스터 노드에 패치 적용)
...
# showrev -p | grep 234567-05
# reboot

참조

패치를 제거하려면 Sun Cluster 패치 변경을 참조하십시오.