7.6 Mirror Disk
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 disk and the secondary server has target disk which is an exact replica of its source.
Client is only available to read/write in the source disk, changed block of this is replicated to the target disk through the TCP/IP network connection. At this point, target is in lock state and read/write is not allowed. This is to ensure data integrity by preventing the use of this.
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 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' from Resource Type lists and click 'Next' button. When add a resource from the MirrorDisk resource type name, this step will be skipped.
- Enter the resource name. If you skip enter resource name, this will given 'Mirror_value' which value is selected driver letter.(Ex: Mirror_G)
Select the source node and driver letter.
The drive letter to be used as the mirror disk should be same on the both servers.
Driver letters of external storage which both nodes are sharing are also listed up, don't select these for mirror disk.
Data will be replicated from the source node to the target node.
When this mirror set is brought online after configuration, full synchronization is initiated from source to target and existing data of target side will be deleted.
If you try to add the existing mirror disk, <mirrored> will be followed next to the driver letter.
[Figure] Adding mirror disk resourceAs 'Additional Settings', Mirror Type and Check Disk option is available and click 'OK' button.
<Mirror Type>
You cannot change the mode later for the volume. The only way to do this is that delete the mirror disk resource and add again.
<ChkDskArg>
Set the check disk command option. For more details on the function, refer to MSDN.
[Figure] Defining mirror type and check disk option
- When click OK button, following warning message will be displayed and click 'OK' button if the informations are correct.
If you select wrong sever, click cancel button.
[Figure] Alert popup message after click OK button - Click 'Finish' button to add the mirror disk resource.
Deleting
Select resource type → right click → delete resource.
(Current online mirror disk resource cannot be deleted. So it should be taken offline before delete it.)
- Click "Delete resource" and a confirming message about deleting resource will appear.
[Figure] check resource view - Click "OK" and a confirming message about deleting the mirror configuration will appear.
[Figure] Delete mirror disk view - Click "OK" and mirror disk is deleted.
State
The following table explains the state of mirror disk resource.
State | Agent command | Description | Note |
---|---|---|---|
Online Source disk is accessible to read/write. | Offline | It locks the mirror disk using LOCKVOLUME command. Both source and target disk cannot accessible from each node. | |
Monitoring | The monitoring process is also determined by the mirror disk status and roles. If the writing test is successful, it is regarded as the online state. Otherwise, it is regarded as the offline state. If a user unlocks the target disk while the mirror disk is online, MCCS will automatically lock it again. Thus, the target disk of the node with the online mirror disk cannot be unlocked. | ||
Offline Source and target disk is not fault state but locked so that cannot access both disk. | Online | Type of command is determined by the role of the mirror disk at the node. <Source role disk> <Target role disk> | |
Monitoring | Refer to the description of monitoring as above. | ||
Fault Fail on writing test in online state or fail on attempts to bring online. *Failover disabled state
| Online | Refer to the above online command. | |
Offline | It locks the mirror disk using LOCKVOLUME command. Both source and target disk cannot accessible from each node. |
Attribute
Show the specified attribute of mirror disk resource.
Attribute | Desctiption | Type | Default | Edit | Note |
AutoResolveSplitBrain | If it is set to 'true', it will automatically resolve the split brain status. | BOOLEAN | true | O | |
ChkDsk | If this is set to true, it perform the check disk command when the mirror disk is taken online. | BOOLEAN | false | O | |
ChkdskArg | It defines check disk command option when Chkdsk is true. | STRING | /F | O | |
DirtyBit | There are dirty bits in the source disk. | BOOLEAN | false | X | |
DomainMemberServer | If the node is a member server of the Windows domain, this should be set to "true". | BOOLEAN | false | O | |
DriveLetter | Drive letter that was assigned by mirror set. | STRING | X | ||
MirrorIP | The IP address used by mirror disk. | STRING | X | ||
MirrorRole | Display the disk role (Source or Target) of the node. | STRING | X | ||
MirrorState | The mirror status of the mirror disk. | STRING | X | ||
MirrorTimeout | This is the time limit for mirror role or status updates during failover or switchover. | INTEGER | 120 sec | O | |
MirrorType | This is the type of mirror. Set it to A or S. ( A - async mode, S - sync mode) | STRING | A | X | |
Password | It is the password for the designated user account. | PASSWORD | O | ||
ResyncNeed | It shows the total sum of the blocks requiring resynchronization. | INTEGER | 0 | X | |
ResyncTotal | It is the total sum of the resynchronized blocks. | INTEGER | 0 | X | |
RetryGetServiceInfo | It Show attempt number of DK connection state check in online. | INTEGER | 1 | O | |
SourceProrityLevel | It indicates SourceRole Level of each node in a cluster. Higher value of node takes Source Role. | STRING | X | ||
User | The user account to run the mirror related commands. | STRING | Administrator | O | |
forceUmount | If it is set to true, the mirror disk will be forcefully unmounted when it is taken offline even tough it has been used. | BOOLEAN | false | O |
Specified attribute values are normally entered when add the resource, This value can be edited or viewed through 'Specified Attribute' table in the Resource Attributes tab on the detailed information panel.