이 절에서는 구성 예에서 복제 구성을 확인하는 방법에 대해 설명합니다.
기본 클러스터가 복제 모드에 있고 자동 동기화가 켜져 있는지 확인합니다.
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 |
클라이언트 시스템에 디렉토리를 만듭니다.
기본 클러스터에서 응용 프로그램으로 디렉토리를 마운트하고 마운트된 디렉토리를 표시합니다.
보조 클러스터에서 응용 프로그램으로 디렉토리를 마운트하고 마운트된 디렉토리를 표시합니다.
기본 클러스터에서 응용 프로그램으로 디렉토리를 마운트 해제합니다.
client-machine# umount /dir |
기본 클러스터에서 응용 프로그램 자원 그룹을 오프라인화합니다.
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 "" |
기본 클러스터를 로깅 모드로 바꿉니다.
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 |
디스크의 데이터 볼륨에 기록될 때 동일한 디스크의 비트맵 파일이 업데이트됩니다. 복제는 수행되지 않습니다.
보조 클러스터에서 응용 프로그램 자원 그룹을 온라인화합니다.
nodeC# /usr/cluster/bin/scswitch -Z -g nfs-rg |
수퍼유저로 클라이언트 시스템에 액세스합니다.
다음 프롬프트가 표시됩니다.
client-machine# |
단계 2에서 만든 디렉토리를 보조 클러스터의 응용 프로그램으로 마운트합니다.
client-machine# mount -o rw lhost-nfsrg-sec:/global/mountpoint /dir |
마운트된 디렉토리를 표시합니다.
client-machine# ls /dir |
기본 클러스터의 응용 프로그램을 마운트된 디렉토리로 반환합니다.
보조 클러스터에서 응용 프로그램 자원 그룹을 오프라인화합니다.
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 "" |
전역 볼륨이 보조 클러스터에서 마운트 해제되도록 합니다.
nodeC# umount /global/mountpoint |
기본 클러스터에서 응용 프로그램 자원 그룹을 온라인화합니다.
nodeA# /usr/cluster/bin/scswitch -Z -g nfs-rg |
기본 클러스터를 복제 모드로 바꿉니다.
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 소프트웨어에 의해 업데이트됩니다.