In case of MCCS needed data cannot be shared among nodes in a cluster, namely NAS or DAS, may not use latest data after failover. In this case, Mirror disk is used when there is no external shared disk, and is replicated between two nodes by using replication component. MCCS provides replication function of DataKeeper from SIOS corporation (OEM Product) and Mirror Disk Agent manages this replicated data set.
It functions properly according to the state and role of mirror disk. Actions such as state and role of mirror disk are all recorded in the system event log, and this information will be sent to MCCS through event log monitor module.
MCCS Event Module is activated when MCCS service starts.
Data replication software operates by creating mirror set for volumes between two nodes.
The primary server has source volume and the secondary server has target volume which is an exact replica of source volume.
Client is only available to read/write in the source volume, changed block of the volume is replicated to the target volume through the TCP/IP network connection. At this point, target volume is in lock state and read/write is not allowed. This is to ensure data integrity by preventing the use of target volume.
이 페이지의 주요 내용
[Figure] Mirroring Configuration
Replication Mode
Replication option employs both asynchronous and synchronous mirroring schemes. Understanding the advantages and disadvantages between synchronous and asynchronous mirroring is essential to the correct operation of this.
Async Mode
With asynchronous mirroring, each write is captured and a copy of this is made. That copy is queued to be transmitted to the target system as soon as the network will allow it. Meanwhile, the original write request is committed to the underlying storage device and control is immediately returned to the application that initiated the write. At any given time, there may be write transactions waiting in the queue to be sent to the target machine. But it is important to understand that these writes reach the target volume in time order, so the integrity of the data on the target volume is always a valid snapshot of the source volume at some point in time. Should the source system fail, it is possible that the target system did not receive all of the writes that were queued up, but the data that has made it to the target volume is valid and usable.
Sync Mode
With synchronous mirroring, each write is captured and transmitted to the target system to be written on the target volume at the same time that the write is committed to the underlying storage device on the source system. Once both the local and target writes are complete, the write request is acknowledged as complete and control is returned to the application that initiated the write. With synchronous mirroring, each write is intercepted and transmitted to the target system to be written on the target volume at the same time that the write is committed to the underlying storage device on the source system. Once both the local and target writes are complete, the write request is acknowledged as complete and control is returned to the application that initiated the write.
Adding
There are two way to add a resource which one is select this from a group name and another is select this from a resource type.
Adding in Group
- When add a resource from a group name, select a group -> right click -> 'Add Resource'. Or select Edit(E) from the main menu bar -> select 'Add Resource'. Or select 'Add Resource' icon from the tool bar.
[그림] 리소스 위자드 리소스추가 화면
- Select 'MirrorDisk' from Resource Type lists and click 'Next' button. When add a resource from the mirror disk resource type name, this step will be skipped.
[Figure] Select Resource Wizard View - Next steps are same as adding in resource type.
Adding in Resource Type
- Resourcetype - Right Click - Add Resource.
[Figure] Adding resource in a Resource type - Getting disk information.
[Figure] Screen of Getting disk information. Select the mirror volume and MCCS will renew the information.
If you skip enter resource name, this will given 'Mirror_value' which value is selected driver letter.(Ex: Mirror_G)미러 디스크로 사용될 드라이브 문자는 양쪽 서버에서 같은 드라이브 문자로 되어있어야 합니다.
[SAN 환경의 드라이브 문자(공유디스크)도 목록에 보여지므로 정확한 드라이브 문자를 선택하시기 바랍니다.]
데이터는 소스로 지정 노드에서 타겟으로 지정된 노드로 복제됩니다.
데이터가 존재하는 드라이브 문자를 선택하실 때 주의하시기 바랍니다.
이미 만들어진 미러 볼륨을 추가 할 경우 볼륨레터 옆에 (mirrored)가 붙습니다.[그림] After gathering additional information screen
[그림] 미러가 미리 구성되지 않은 볼륨 선택 시 화면
[그림] 미러가 미리 구성되어 있는 볼륨 선택 시 화면
미러 디스크 리소스로 구성할 디스크가 없으면 다음과 같이 표시됩니다
[그림] 미러 디스크 리소스 디스크 없음을 나타내는 화면
As 'Additional Settings', Synchronized Mode and Check Disk option is available.
<동기화 모드>
동기화 모드는 한 번 선택하면 변경할 수 없으므로 주의해서 선택해야 합니다.
동기모드 : 응답속도는 느리지만 데이터 손실이 없습니다.
비동기모드 : 동기모드보다 응답속도는 상대적으로 빠르지만 데이터 손실이 발생할 수 있습니다.<디스크 검사 옵션>
디스크 검사 명령 실행 옵션을 지정합니다. 자세한 기능은 MSDN을 참고하십시오.
[Figure] Defining mirror type and check disk option
- When click OK button, following popup message appear.
Confirm selected server as source.
If you select wrong sever, clock cancel button.
[Figure] Alert popup message after click OK button - Click 'Finish'button and mirror disk resource is added.
[Figure] Adding mirror disk resource is completed
Deleting
Select resource type - right click - delete resource
- Select "Delete resource".
[Figure] Delete mirror disk resource view - Click "Delete resource" and a confirming message about deleting resource will appear.
[Figure] check resource view - Click "OK" and a confirming message about deleting redundancy program of mirror configuration will
[Figure] Delete physical mirror disk view - Click "OK" and redundancy program is deleted. Click "Cancle" and only mirror disk is deleted.
State
다음 테이블은 상태와 사용자 명령에 의해 발생되는 MCCS 리소스의 상태 이동에 대해 설명합니다.
명령은 사용자에 의해 발생되는 것을 전제로 합니다.
미러 디스크 에이전트: 미러 디스크를 관리하며, 복제 프로그램이 설치되어 있어야 합니다.
상태 | Agent 가능 명령 | 설명 | 비고 |
---|---|---|---|
온라인 소스 볼륨이 접근 가능하고 쓰기 테스트가 정상적으로 이루어지는 상태입니다. | 오프라인 | 미러 역할과 관계없이 LOCKVOLUME 명령으로 볼륨을 잠급니다. | |
모니터링 | 모니터 과정 또한 미러 볼륨의 상태와 역할에 따라 결정됩니다. <소스 볼륨> <타깃 볼륨> | ||
오프라인 온라인, 장애 상황을 제외한 상황은 모두 오프라인 상태입니다. | 온라인 | 시작되는 노드 상에서의 미러 볼륨 역할에 따라 동작이 결정됩니다. <소스볼륨> <타깃볼륨> | |
모니터링 | 위에 모니터링 명령 설명 참조 | ||
장애 온라인 상태에서 쓰기 테스트가 실패하거나 온라인 시도가 실패하면 장애 상태로 표시됩니다. *페일오버 비활성상태 | 온라인 | 위에 온라인 명령 설명 참조 | |
오프라인 | 미러 역할에 관계없이 LOCKVOLUME 명령으로 볼륨을 잠급니다. |
Attribute
[Figure] Mirror Disk Attribute Screen
ArgList 인수 | 설명 | 타입 | 기본값 | 수정 | 비고 |
AutoResolveSplitBrain | 'true'로 설정할 경우 자동으로 스플릿브레인을 해결합니다. | BOOLEAN | true | O | |
ChkDsk | 볼륨 마운트 시 '디스크 검사 옵션'에 따라 디스크를 검사하여 오류를 수정합니다. | BOOLEAN | false | O | |
ChkdskArg | Chkdsk가 true일 때 체크디스크 명령 옵션을 지정합니다. | STRING | /F | O | |
DirtyBit | 대상 미러 볼륨에 더티 비트가 설정되어 있음을 의미합니다. | BOOLEAN | false | X | |
DomainMemberServer | 미러 리소스를 구성할 노드가 윈도우 도메인 환경의 멤버서버일 경우 "true"로 선택하셔야 합니다. | BOOLEAN | false | O | |
DriveLetter | 미러 볼륨이 할당된 드라이버 문자입니다. | STRING | X | ||
MirrorIP | 볼륨을 복제하기 위해 사용하는 IP 입니다. | STRING | X | ||
MirrorRole | 미러 볼륨의 미러 역할입니다. 이벤트 로그로부터 갱신됩니다. | STRING | X | ||
MirrorState | 미러 볼륨의 미러 상태입니다. | STRING | X | ||
MirrorTimeout | 볼륨 페일오버, 스위치 등의 과정에서 미러 롤(Role) 또는 상태 업데이트에 대한 시간 제한 값입니다. | INTEGER | 120초 | O | |
MirrorType | 미러 동기화 모드를 결정합니다. A 또는 S로 설정합니다.( A - 비동기모드, S - 동기모드) * 비동기모드로 설정할 경우 데이터 손실이 발생할 수 있습니다. | STRING | A | X | |
Password | 지정된 사용자 계정에 대한 비밀번호입니다. | PASSWORD | O | ||
ResyncNeed | 재동기화가 필요한 블럭들의 총합을 나타냅니다. | INTEGER | 0 | X | |
ResyncTotal | 재동기화 블럭들의 총합을 나타냅니다. | INTEGER | 0 | X | |
TimeAquiredSourceRole | 해당 노드의 미러 롤이 소스로 변경된 시간입니다. | STRING | X | ||
TotalSpace | 대상 미러 볼륨의 총 크기를 나타냅니다. | INTEGER | X | ||
UsedSpace | 대상 미러 볼륨의 사용 크기를 나타냅니다. | INTEGER | X | ||
User | 미러 관련 명령을 실행할 사용자 계정입니다. | STRING | Administrator | O |
속성 값은 해당 리소스를 등록할 때에 입력된 값이며, '리소스 고유 속성'에서 값을 변경하거나 확인할 수 있습니다.