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

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

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

단계
  1. 백업할 클러스터 노드의 수퍼유저가 되거나 그와 동등한 역할을 맡습니다.

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


    # scswitch -z -D disk-device-group[,...] -h node[,...]
    
    -z

    전환을 수행합니다.

    -D disk-device-group

    전환될 디스크 장치 그룹의 이름입니다.

    -h node

    디스크 장치 그룹을 전환할 클러스터 노드의 이름을 지정합니다. 이 노드가 새 기본 노드가 됩니다.

  3. 노드를 종료합니다.


    # shutdown -g0 -y -i0
    
  4. 비클러스터 모드로 노드를 재부트합니다.

    • SPARC:


      ok boot -x
      
    • x86:


                            <<< Current Boot Parameters >>>
      Boot path: /pci@0,0/pci8086,2545@3/pci8086,1460@1d/pci8086,341a@7,1/
      sd@0,0:a
      Boot args:
      
      Type  b [file-name] [boot-flags] <ENTER> to boot with options
      or    i <ENTER>                          to enter boot interpreter
      or    <ENTER>                            to boot with defaults
      
                        <<< timeout in 5 seconds >>>
      Select (b)oot or (i)nterpreter: b -x
      
  5. 루트(/) 파일 시스템을 백업합니다.

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


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


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

    자세한 내용은 ufsdump(1M) 설명서 페이지를 참조하십시오.

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


    # init 6
    

예 9–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