7-10 Shared Disk DR
The shared disk DR resource replicate a shared disk in a cluster to an off-site DR node for disaster recovery purpose.
The shared disk DR resource is composed of three nodes that manage the shared disk. The off-site DR node is target replica, but not the member of cluster.
In other words, MCCS is not involved with automatic operation like failover, online and offline of the off-site node, so human intervention is needed to recover from a disaster at the node.
Data is replicated from the source-primary node to the off-site DR node and the source-secondary node that cannot access the shared disk recognizes the shared disk as the one having the "NONE" role.
Thus, the off-site DR node and the "NONE" node are locked and these cannot write or read the data to prevent data corruption.
Shared Disk DR resource can only register a pre-configured DRBD resource.
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.
Asynchronization 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 Synchronization 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.
Synchronization 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.
MCCS for linux support DRBD which is open source as mirror disk. Therefore, DRBD should be installed in advance.
The size of disk file system that is created by mirror disk should be created with 128MB
128M space is required to store meta data that manages replication volume service. Size of meta data can be changed according to the size of the meta data.
Please refer to DRBD meta data size(Calculation for more details).
When use both DBRB and LVM, only DRBD ON LVM is supported and LVM In DRBD is not supported.
Mirror IP address of the cluster should be assigned a virtual IP address to represent each real IP addresses of both nodes in the primary site. So the virtual IP should be added in a group in advance.
- 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 "SharedDisk DR" from Resource Type lists and click the "Next" button. When add a resource from the SharedDisk DR resource type name, this step will be skipped.
- Enter the resource name and select mirror volume of shared disk in the cluster.
[Figure] Shared Disk DR Resource Added As the "Additional Settings" button, KillBusyApps option, File System Check options are available and click the "OK" button.
<killBusyApps>
When the Shared Disk DR resource goes offline, determine whether to forcefully terminate the tasks that has used the mirror disk resource.<DoFscK>
When use this, fsck will be performed when shared disk DR resource is brought online.<FsckOpt>
Enter the option for fsck.
[Figure] Shared Disk DR Additional SettingClick the "Finish" button to add the shared disk DR, then VIP address for mirroring will depend to this.
(For more details about dependency, please refer to '5.4 Dependency Management' of this manual.)
Deleting
Select "Resource type" → right click → delete resource.
- Click the "Delete resource" button and a confirming message about deleting resource will appear.
- Click the "OK" button and mirror disk is deleted. The deleted resource will immediately disappear from the management web console.
State
The following table explains the state of shared disk DR resource.
Shared disk DR agent: Manages a mirror disk, and to use this, it is necessary to install a replication program.
State | Agent command | Description | Note |
---|---|---|---|
Online Source(Primary) disk is accessible to read/write. | Offline | If the role of mirror resource is online, Unmount (umount) the mirror disk from the mount point and the role of mirror disk demoted to secondary and offline the mirror disk resource. | |
Monitoring | MCCS consistently handles events of the replication component. | ||
Offline Source(Primary) and Target(Secondary) disks are not fault state but locked so that cannot access both disk. | Online | Online is performed as below procedure.
If the mirror disk is not defined, the command is ignored and regarded as a failure. | |
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 disabled state | Online | Refer to the above online command. | |
Offline | If the role of mirror resource is online, Unmount (umount) the mirror disk from the mount point and the role of mirror disk is demoted to secondary and offline the mirror disk resource. |
*If the mirror disk is not defined, It is regarded as the offline state.
Attribute
Show the specified attribute of the shared disk DR resource.
Attribute | Description | Type | Default | Edit | Note |
ChkDskTimeout | It is timeout limit to complete or stop the check disk of the shared disk before attaching it . If value is '0', MCCS waits to complete the check disk before attaching it. | INTEGER | 0 | O | |
DRConnectState | Display the status of connection between the mirror disk's nodes. | STRING | X | ||
DiskState | Display the status of disk managed by the mirror disk. | STRING | X | ||
DoFsck | Indicates whether the file system for the mirror disk managed by the resource is checked before the mirror source goes online in MCCS. | BOOLEAN | false | O | |
DRBDResName | Displays the name granted to help DRBD managing the mirror disk. | STRING | X | ||
DRDiskState | It shows the state of the mirror disk of off-site DR node. | STRING | X | ||
DRRole | It shows the role of the mirror disk of off-site DR node. | STRING | X | ||
DRTargetIP | It is IP address of off-site DR node for the mirror disk. | STRING | X | ||
DRVirtualDevice | It is the virtual device name using mirror disk of offsite DR node. | STRING | X | ||
DRVolume | It is disk device name using mirror disk of off-site DR node. | STRING | X | ||
FsckOpt | If the mirror disk's file system is checked, you can use the option entered in this attribute as a parameter. | STRING | -y | O | |
GI | It is an identifier used to determine whether each household's data copied by the mirror disk is of the latest version. | STRING | X | ||
Hostname | It is host name. | STRING | X | ||
KillBusyApps | When the mirror resource goes offline, determine whether to forcefully terminate the tasks that refer to the mirror resource. | BOOLEAN | true | O | |
MetaDataType | This is how the meta data is saved. Internal is used to save the meta data in the same partition as the copy volume. External is used to save the meta data in the designated device. | STRING | X | ||
MetaDisk | This is the disk where meta data is saved. | STRING | X | ||
MirrorPort | It is the communication port number used when DRBD copies the mirror disk. | STRING | X | ||
MountPoint | It is the directory where the file system can be mounted. If there is no directory or if the directory is already in use, you cannot activate it. | DIRECTORY | O | ||
OOS | It is the OutOfSync value requiring synchronization. If the value is non zero, it means that there is some data between the nodes not yet copied or synchronized. | STRING | 0 | X | |
ProtocolType | This is a data transmission protocol type. A = Async mode B = Semi-sync mode C = Sync mode | STRING | X | ||
Role | Display the role of the mirror disk. | STRING | X | ||
SharedSrcIp | The Virtual IP address for mirror disk. | STRING | X | ||
SharedVolume | It is the name of block device actually used by mirror disk. | STRING | X | ||
Synced | Display sycnrhonization job rate when volume is synchroning | INTEGER | X | ||
TotalSpace | It represents the total size of the target mirror disk. | INTEGER | 0 | X | |
UsedSpace | It represents the available size of the target mirror disk. | INTEGER | 0 | X | |
VirtualDevice | This is a virtual device name for source mirror disk | STRING | X |
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.
MCCS has function to limit input values against user's input field, and it provides function detects automatically data which is input wrong by user's mistake.