Solaris OS용 Sun Cluster 소프트웨어 설치 안내서

복제가 올바로 구성되어 있는지 확인하는 방법의 예

이 절에서는 구성 예에서 복제 구성을 확인하는 방법에 대해 설명합니다.

복제가 올바로 구성되어 있는지 확인하는 방법
  1. 기본 클러스터가 복제 모드에 있고 자동 동기화가 켜져 있는지 확인합니다.


    nodeA# /usr/opt/SUNWesm/sbin/sndradm -P
    

    다음과 같이 출력됩니다.


    /dev/vx/rdsk/devicegroup/vol01 ->
    lhost-reprg-sec:/dev/vx/rdsk/devicegroup/vol01
    autosync: on, max q writes:4194304, max q fbas:16384, mode:sync,ctag:
    devicegroup, state: replicating

    복제 모드에서 상태는 replicating이고 자동 동기화의 활성 상태는 on입니다. 기본 볼륨에 기록할 때 보조 볼륨은 Sun StorEdge Availability Suite 소프트웨어에 의해 업데이트됩니다.

    기본 클러스터가 복제 모드에 있지 않으면 다음을 수행하여 복제 모드로 바꿉니다.


    nodeA# /usr/opt/SUNWesm/sbin/sndradm -n -u lhost-reprg-prim \
    /dev/vx/rdsk/devicegroup/vol01 \
    /dev/vx/rdsk/devicegroup/vol04 lhost-reprg-sec \
    /dev/vx/rdsk/devicegroup/vol01 \
    /dev/vx/rdsk/devicegroup/vol04 ip sync
    
  2. 클라이언트 시스템에 디렉토리를 만듭니다.

    1. 수퍼유저로 클라이언트 시스템에 로그인합니다.

      다음 프롬프트가 표시됩니다.


      client-machine#
    2. 클라이언트 시스템에 디렉토리를 만듭니다.


      client-machine# mkdir /dir
      
  3. 기본 클러스터에서 응용 프로그램으로 디렉토리를 마운트하고 마운트된 디렉토리를 표시합니다.

    1. 기본 클러스터에서 응용 프로그램으로 디렉토리를 마운트합니다.


      client-machine# mount -o rw lhost-nfsrg-prim:/global/mountpoint /dir
      
    2. 마운트된 디렉토리를 표시합니다.


      client-machine# ls /dir
      
  4. 보조 클러스터에서 응용 프로그램으로 디렉토리를 마운트하고 마운트된 디렉토리를 표시합니다.

    1. 기본 클러스터에서 응용 프로그램으로 디렉토리를 마운트 해제합니다.


      client-machine# umount /dir
      
    2. 기본 클러스터에서 응용 프로그램 자원 그룹을 오프라인화합니다.


      nodeA# /usr/cluster/bin/scswitch -n -j nfs-rs
      nodeA# /usr/cluster/bin/scswitch -n -j nfs-dg-rs
      nodeA# /usr/cluster/bin/scswitch -n -j lhost-nfsrg-prim
      nodeA# /usr/cluster/bin/scswitch -z -g nfs-rg -h ""
      
    3. 기본 클러스터를 로깅 모드로 바꿉니다.


      nodeA# /usr/opt/SUNWesm/sbin/sndradm -n -l lhost-reprg-prim \
      /dev/vx/rdsk/devicegroup/vol01 \
      /dev/vx/rdsk/devicegroup/vol04 lhost-reprg-sec \
      /dev/vx/rdsk/devicegroup/vol01 \
      /dev/vx/rdsk/devicegroup/vol04 ip sync
      

      디스크의 데이터 볼륨에 기록될 때 동일한 디스크의 비트맵 파일이 업데이트됩니다. 복제는 수행되지 않습니다.

    4. 보조 클러스터에서 응용 프로그램 자원 그룹을 온라인화합니다.


      nodeC# /usr/cluster/bin/scswitch -Z -g nfs-rg
      
    5. 수퍼유저로 클라이언트 시스템에 액세스합니다.

      다음 프롬프트가 표시됩니다.


      client-machine#
    6. 단계 2에서 만든 디렉토리를 보조 클러스터의 응용 프로그램으로 마운트합니다.


      client-machine# mount -o rw lhost-nfsrg-sec:/global/mountpoint /dir
      
    7. 마운트된 디렉토리를 표시합니다.


      client-machine# ls /dir
      
  5. 단계 3에 표시되는 디렉토리는 단계 4에 표시되는 디렉토리와 같아야 합니다.

  6. 기본 클러스터의 응용 프로그램을 마운트된 디렉토리로 반환합니다.

    1. 보조 클러스터에서 응용 프로그램 자원 그룹을 오프라인화합니다.


      nodeC# /usr/cluster/bin/scswitch -n -j nfs-rs
      nodeC# /usr/cluster/bin/scswitch -n -j nfs-dg-rs
      nodeC# /usr/cluster/bin/scswitch -n -j lhost-nfsrg-sec
      nodeC# /usr/cluster/bin/scswitch -z -g nfs-rg -h ""
      
    2. 전역 볼륨이 보조 클러스터에서 마운트 해제되도록 합니다.


      nodeC# umount /global/mountpoint
      
    3. 기본 클러스터에서 응용 프로그램 자원 그룹을 온라인화합니다.


      nodeA# /usr/cluster/bin/scswitch -Z -g nfs-rg
      
    4. 기본 클러스터를 복제 모드로 바꿉니다.


      nodeA# /usr/opt/SUNWesm/sbin/sndradm -n -u lhost-reprg-prim \
      /dev/vx/rdsk/devicegroup/vol01 \
      /dev/vx/rdsk/devicegroup/vol04 lhost-reprg-sec \
      /dev/vx/rdsk/devicegroup/vol01 \
      /dev/vx/rdsk/devicegroup/vol04 ip sync
      

      기본 볼륨에 기록할 때 보조 볼륨은 Sun StorEdge Availability Suite 소프트웨어에 의해 업데이트됩니다.