7.13 Mirror Disk DR
Mirror Disk DR resource enables replicate a mirror disk set of a cluster to an offsite node of disaster recovery purpose.
Mirror Disk DR agent act as to mirror disk status and role.
Dynamic information like status and roll of Mirror Disk DR is logged into system event log, this is sent to MCCS by MCCS Event Module.
MCCS Event Module is activated when MCCS service starts.
Data replication software operates by creating mirror set for volumes between two nodes.
Source volume is sit on Primary node, Target volume is sit on Secondary node in a cluster and offsite DR node.
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.
Table of Contents
[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.
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 mirror disk DR resource to a 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 DR' from Resource Type lists and click 'Next' button. When add a resource from the mirror disk DR resource type name, this step will be skipped.
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)
All replicated driver letter of nodes should be assigned same driver letter.
[Drive characters in the SAN environment (shared disk) are also displayed in the list. So, make sure you select the accurate drive characters.]
Data will be copied to the target node and DR node from the source node.
Be careful when you select the drive character where data exists.
If you try to add the existing mirror volume, <mirrored> will be added to the volume letter.
[Figure] Mirror Disk DR Resource AddedSelect IP address of mirror disk and offsite DR.
Select mirror type.
Be careful that when you set to synchronous mode, this cannot be changed to asynchronous mode.
You can select the mirror type in a cluster at Local Mirror Configuration and offsite DR at Remote server.Sync mode : Write I/O will may be delayed depend to network band, but there is no data loss involved.
Async mode : Relatively faster than the synch mode but it does not guarantee that target data is identical to its source when meet disaster.As 'Additional Settings', Check Disk option is available.
<Check Disk Option>
Set the check disk command option. For more details on the function, refer to MSDN.
[Figure] 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 the 'Finish' button to add the mirror disk DR resource.
You can immediately check the result in the management web console.
Deleting
Select resource type → right click → delete resource.
- 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 DR is deleted.
The deleted resource will immediately disappear from the management web console.
Status
The command assumes that it is generated by a user.
Mirror disk DR agent: Manages the mirror disk. Copying program should be installed.
Status | Agent command | Description | Note |
---|---|---|---|
Online In this status, you can access the source volume and perform a writing test properly. | Offline | Regardless of the mirror role, the LOCKVOLUME command is used to lock the volume. | |
Monitoring | The monitoring process is also determined by the mirror volume status and roles. <Source volume> <Target volume> | ||
Offline Except for the online and trouble states, it is always offline. | Online | Type of operation is determined by the role of the mirror volume at the start node. <Source volume> <Target volume> | |
Monitoring | Refer to the description of monitoring as above. | ||
Trouble If a writing test failed online, or an attempt to go online is failed, the trouble state is displayed. *Failover deactivation state | Online | Refer to the above online command. | |
Offline | Regardless of the mirror role, the LOCKVOLUME command is used to lock the volume. |
Attribute
Show the unique attribute of resource.
Attribute | Desctiption | Type | Default | Edit | Note |
AutoResolveSplitBrain | If it is set to 'true', it will automatically resolve the split brain issues. | BOOLEAN | true | O | |
ChkDsk | When the volume is mounted, according to the 'ChkdskArg', disk is tested for errors. | BOOLEAN | false | O | |
ChkdskArg | When the Chkdsk option is set to true, the check disk command option is activated. | STRING | /F | O | |
DirtyBit | It means that dirty bits are set to the target mirror volume. | BOOLEAN | false | X | |
DomainMemberServer | If the node to configure the mirror resource is a member server of the Windows domain, you must set it to "true". | BOOLEAN | false | O | |
DriveLetter | The mirror volume is assigned to the drive character. | STRING | X | ||
MirrorDRIP | The DR IP address used to copy the volume. | STRING | X | ||
MirrorIP | The IP address used to copy the volume. | STRING | X | ||
MirrorRole | The mirror role of the mirror volume. It is renewed from an event log. | STRING | X | ||
MirrorState | The mirror status of the mirror volume. | STRING | X | ||
MirrorTimeout | This is the time limit for mirror role or status updates in the process of volume failovers or switching. | INTEGER | 120 sec | O | |
MirrorType | Determine the mirror synchronization mode. Set it to A or S. ( A - async mode, S - sync mode) * If it is set to asynch mode, data loss can occur. | STRING | A | X | |
Password | It is the password for the designated user account. | PASSWORD | O | ||
ResyncNeed | It represents the total sum of the blocks requiring resynchronization. | INTEGER | 0 | X | |
ResyncTotal | It is the total sum of the resynchronization blocks. | INTEGER | 0 | X | |
SourcePriorityLevel | It indicates SourceRole Level of each node in a cluster. Higher value of node takes Source Role. | STRING | X | ||
TargetDRIP | It is the IP address of data replication for the offsite DR. | STRING | X | ||
TargetDRLetter | It is the drive letter for the offsite DR volume. | STRING | 0 | X | |
TargetDRResyncNeed | It is the number of dirtybit blocks are needed to be resync to the offsite DR. | INTEGER | 0 | X | |
TargetDRResyncTotal | It is the number of blocks that resync was done to the offsite DR. | INTEGER | X | ||
TargetDRRole | It is the role of mirror volume of the offsite DR. | STRING | X | ||
TargetDRState | It shows data transfer state between source volume and target volume. | STRING | X | ||
TargetDRType | It shows data sync mode between mirror disk set and offsite DR. | STRING | X | ||
TotalSpace | It represents the total size of the target mirror volume. | INTEGER | X | ||
UsedSpace | It represents the available size of the target mirror volume. | INTEGER | X | ||
User | The user account to run the mirror related commands. | STRING | Administrator | O |
The attribute value is entered to register the resource, and you can change or check it in the 'Specified Attribute'.