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 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.
Table of Contents
[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
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 mirror disk resource type name, this step will be skipped.
Select the mirror disk 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)
[Figure] Mirror Disk Resource AddedAs 'Additional Settings', Synchronized Mode and Check Disk option is available.
[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 buttonClick the 'Finish' button to add the mirror disk 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 viewClick "OK" and a confirming message about deleting redundancy program of mirror configuration will.
[Figure] Delete physical mirror disk viewClick "OK" and redundancy program is deleted. Click "Cancle" and only mirror disk is deleted.
The deleted resource will immediately disappear from the management web console.
Status
The following table explains the status switching of the MCCS resource caused by a user's command and the status.
The command assumes that it is generated by a user.
Mirror disk 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 disk 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 disk at the start node. <Source volume> <Target volume> |
|
Monitoring | Refer to the description of monitoring as above. |
| |
Fault 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. |
|