This function uses to share necessary data for services between cluster nodes which are connected by networks. Mirroring enables a standby server to have the same data as an active server, by replicating data which is accessible from only local point to the standby server through network.
The replication software DRBD9 helps with such mirroring function, and a shared disk DR agent indicates the thing that manages the software.
The shared disk DR agent replicates, configures, and manages a shared disk.
이 페이지의 주요 내용
It is essential for DRBD9 to be installed in advance, the function of the internal meta data is not available.
There should be the source volume which is shared between both of two clustered nodes, an extra shared volume may be necessary in order to save meta data in case of using the way of the external meta data.
[Figure] Mirroring Configuration
Mirror Mode
Mirror mode 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.
Semi-sync mode
With semi-synchronous mirroring, each write is captured and transmitted to the target system. Local write completes in the source as soon as the replication packet has reached the target. Normally, no writes are lost in case of failover , but this may can be lost when both nodes are failed simultaneously.
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
Add the shared disk DR resource to a group.
- When add a resource from a group name, select a group → right click → 'Add Resource'.
- Select 'SharedDisk DR' from Resource Type lists and click 'Next' button.
Enter the resource name and select mirror volume of shared disk in the cluster.
[Figure] Shared Disk DR Resource Added"추가 정보"를 클릭하여 클러스터링되지 않은 원격지 호스트의 구성 정보를 확인합니다.
[Figure] Shared Disk DR Additional Setting- 공유 디스크 DR 리소스 추가 완료 버튼을 누르면 아래와 같은 경고창이 출력됩니다.
선택한 서버가 소스서버가 맞는지 다시 한번 확인합니다.
잘못 설정했다면 '취소' 버튼을 누르고 다시 설정합니다.
[그림] 공유 디스크 DR 리소스 추가 완료 버튼을 클릭 했을 때 출력되는 경고창 - 완료 버튼을 클릭하면 공유 디스크 DR 리소스가 추가 됩니다.
Deleting
※ Shared DR(SDR), Mirrored DR(MDR) 인경우 실제 DRBD에 의한 복제구성은 삭제 할수 없습니다.
해당 리소스 선택 -> 마우스 우 클릭 -> 리소스 삭제를 선택합니다.
- 리소스 삭제를 클릭하면 MCCS 에 구성된 공유 디스크 DR 리소스를 삭제할지 물어봅니다.
[그림] 리소스 확인 화면 - 확인을 클릭하면 모두 삭제 됩니다.
State
The following table explains the state of shared disk DR resource.
State | Agent command | Description | Note |
---|---|---|---|
Online Source(Primary) disk is accessible to read/write. | Offline | 복제 상태를 Secondary로 변경합니다. ※ 최종적으로 복제구성을 DOWN 합니다. | |
Monitoring | <소스 볼륨> <타깃 볼륨> ※ 복제구성이 DOWN됨 상태임을 확인 합니다. | ||
Offline 온라인, 장애 상황을 제외한 상황은 모두 오프라인 상태입니다. | Online | ※ 최우선적으로 복제구성을 up 합니다. 복제 상태를 Primary로 변경합니다. | |
Monitoring | Refer to the description of monitoring as above. | ||
Fault | Online | Refer to the above online command. | |
Offline | 위에 오프라인명령 설명 참조 |
Attribute
Show the specified attribute of mirror disk resource.
Attribute | Description | Type | Default | Edit | Note |
ChkDsk | If this is set to true, it perform the check disk command when the mirror disk is taken online. Before perform this, the mirroring will be automatically paused and this will be resumed after this is completed. | BOOLEAN | false | O | |
ChkDskArg | It defines check disk command option when Chkdsk is true. /F: Modifies the error in the disk. /R: Recovers the information of damaged sector. (Including /F) | STRING | /F | O | |
ChkDskTimeout | It is timeout limit to complete or stop the check disk of mirror disk before attaching the disk . If value is '0', MCCS waits to complete the check disk before attaching the disk. | INTEGER | 120초 | O | |
DirtyBit | There are dirty bits in the source disk. When changed block isn't transmitted to the target disk, this is marked on the block. | BOOLEAN | false | X | |
Resource | Displays the name managed by DRBD | STRING | X | ||
Connection | Display the status of connection between the mirror disk's nodes. | STRING | X | ||
Replication | Display the status of replication between the mirror disk's nodes. | STRING | X | ||
Disk | It is the volume letter actually used by mirror disk. 윈도우의 경우 드라이브레터, 리눅스의 경우는 디바이스 패스를 나타냅니다. | STRING | X | ||
DiskState | Display the status of disk managed by the mirror disk. | STRING | X | ||
Role | Display the disk role (Primary or Secondary) of the node. | STRING | X | ||
OutOfSync | 동기화가 필요한 Out Of Sync 값의 유무를 나타냅니다. Out Of Sync값이 있는 경우에는 true이며, 노드 간에 아직 복제 혹은 동기화 완료되지 않은 데이터가 존재하고 있음을 의미합니다. | BOOLEAN | false | X | |
Port | It is the communication port number used for mirror disk. | INTEGER | 7789 | X | |
Address | It is an IP address used by mirror disk. | STRING | X | ||
Device | This is a virtual device name used by mirror disk. | STRING | X | ||
|
| ||||
MetaDisk | It is the disk where meta data is saved. | STRING | X | ||
Protocol | It displays mirror type. A = Async mode B = Semi sync mode C = Sync mode | STRING | B | X |
※ DR 호스트의 정보는 각 속성에 DR 호스트 이름으로 개별 표시 됩니다.
※ 속성 값은 해당 리소스를 등록할 때에 입력된 값이며, '리소스 고유 속성'에서 값을 변경하거나 확인할 수 있습니다.