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

Procedure루트(/) 파일 시스템을 백업하는 방법

클러스터 노드의 루트(/) 파일 시스템을 백업하려면 이 절차를 사용하십시오. 백업 절차를 수행하기 전에 클러스터가 오류 없이 실행되는지 확인하십시오.

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

  1. 수퍼유저 또는 백업할 클러스터 노드에 solaris.cluster.modify RBAC 인증을 제공하는 역할로 전환합니다.

  2. 백업할 노드에서 실행하는 데이터 서비스를 클러스터의 다른 노드로 전환합니다.


    # clnode evacuate node
    
    node

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

  3. 노드를 종료합니다.


    # shutdown -g0 -y -i0
    
  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. 루트(/) 파일 시스템을 백업합니다.

    • 루트 디스크가 캡슐화되지 않은 경우에는 다음 명령을 사용합니다.


      # ufsdump 0ucf dump-device /
      
    • 루트 디스크가 캡슐화된 경우에는 다음 명령을 사용하십시오.


      # ufsdump 0ucf dump-device /dev/vx/rdsk/rootvol
      

    자세한 내용은 ufsdump(1M) 매뉴얼 페이지를 참조하십시오.

  6. 클러스터 모드로 노드를 재부트합니다.


    # init 6
    

예 11–3 루트(/) 파일 시스템 백업

다음은 루트(/) 파일 시스템을 테이프 장치 /dev/rmt/0에 백업하는 예입니다.


# ufsdump 0ucf /dev/rmt/0 /
  DUMP: Writing 63 Kilobyte records
  DUMP: Date of this level 0 dump: Tue Apr 18 18:06:15 2000
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/rdsk/c0t0d0s0 (phys-schost-1:/) to /dev/rmt/0
  DUMP: Mapping (Pass I) [regular files]
  DUMP: Mapping (Pass II) [directories]
  DUMP: Estimated 859086 blocks (419.48MB).
  DUMP: Dumping (Pass III) [directories]
  DUMP: Dumping (Pass IV) [regular files]
  DUMP: 859066 blocks (419.47MB) on 1 volume at 2495 KB/sec
  DUMP: DUMP IS DONE
  DUMP: Level 0 dump on Tue Apr 18 18:06:15 2000