Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. 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.
  2. Select '"MirrorDisk' " from Resource Type lists and click 'the "Next' " button. When add a resource from the MirrorDisk resource type name, this step will be skipped.

  3. Enter the resource name.
  4. Select the source server and mirror volume, and enter the mount point.
  5. The virtual device, mirror ip and mirror port will be set automatically.

    Info

    If mirror disk is already configured on the volume, "mirrored" will be followed next to the volume name. This case you cannot edit the its attributes.


    [Figure] Mirror Disk Added


  6. As 'As  the "Additional Settings'", Mirror Type option is available and click 'the "OK' " button. Default is Asynchronous Mode.

    [Figure] Mirror Disk Additional Setting

  7. When click the "OK" button, following warning message will be displayed and click 'the "OK' " button if the informations are correct.

    [Figure] Alert popup message after click OK button

  8. Click the '"Finish' " button to add the mirror disk resource 

...

Select resource type → right click → delete resource.
(Current online mirror disk resource cannot be deleted. So it should be taken offline before delete it.)

  1. Click the "Delete resource" button and a confirming message about deleting resource will appear.

    [Figure] Check resource view

  2. Click the "OK" button and a confirming message about deleting the mirror configuration will appear.

    [Figure] Deleting mirror disk view

  3. Click the "OK" button and mirror disk is deleted.

...

The following table explains the state of mirror disk resource.

미러 디스크 에이전트: 미러 디스크를 관리하며, 복제 프로그램이 설치되어 있어야 합니다. Mirror disk agent: Manages a mirror disk, and to use this, it is necessary to install a replication program.

StateAgent commandDescriptionNote

Online

Source disk is accessible to read/write.

Offline

It unmounts (umount) the mirror disk from the mount point and the role of mirror disk is demoted to Secondary.


Monitoring

MCCS consistently handles events of the replication service.
The MCCS event monitor is registered as an event receiver when starting the MCCS service. When a system event occurs, it will be automatically informed and it will detect the mirror disk status and role changes.
If the mirror disk's role is primary and it is mounted in the designated mount point, it is deemed to be online.
In other cases, it is recognized as an offline state.
In addition, when you register a new mirror disk, if it is in the primary condition where mounting is not yet to be done, the mirror disk's role is demoted to secondary.


Offline

Source and target disk is not fault state but locked so that cannot access both disk.

Online

Type of operation is determined by the role of the mirror disk at the node.
 
<Source role disk>
After setting the role of mirror disk to Primary, mount it in the designated mount point.

<Target role disk>
If you want to go online at the node where the mirror role is target, the following conditions should be met.
1. Both nodes' mirror network conditions are connected.
2. Both nodes' disk states are UpToDate.
3. Peer node's mirror disk role is secondary.

If the mirror disk is not defined, it is processed as a failure without any operation.


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
When a mirror network communication failure, target node or target disk failure occurs, the mirror status is changed from 'MIRRORING' to other, such as 'MIRROR_PAUSED'.
If failover takes place while the mirror status is not 'MIRRORING', it may cause data losses or corruptions.
To prevent from this, MCCS disabled the failover mode in this case.
If the failover mode is disabled, no failover will take place even if fault occurs or attempt to switchover.
If mirror network communication failures are recovered, and it is re-established, MCCS will automatically perform RESYNC. When the mirror status is changed to MIRRORING, the failover mode will be also automatically enabled.

Online

Refer to the above online command.


Offline

It unmounts (umount) the mirror disk from the mount point and the role of mirror disk is demoted to Secondary.


 

*미러 볼륨이 정의되지 않은 경우

오프라인 상태로 판단합니다.



Attribute

Show the specified attribute of mirror disk resource.

Attribute

Description

TypeDefaultEditNote
ChkDskTimeoutIt 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.INTEGER0O

ConnectState

Display the status of connection between the mirror disk's nodes.

STRING
X
DiskStateDisplay the status of disk managed by the mirror disk.STRING
X
DoFsck

If this is set to true, it perform the check disk command when the mirror disk is taken online.
( Default=false )

BOOLEANfalseO
DRBDVolumeNameDisplays the name managed by DRBDSTRING
X
FilesystemType

Displays file system type of the mirror disk.
(MCCS only supports ext type file systems. ex: ext2, ext3, ext4)
Used for the -t option of the mounting command.

STRING
X
FsckOpt

Defines fsck options.
(Default= -y)

STRING-yO
GIIt is an identifier used to determine whether each household's data copied by the mirror disk is of the latest version.STRING
X
GIStateIt is the status value that compares each node's GI (Generation Identifier) values.STRING
X
KillBusyAppsWhen the mirror resource goes offline, determine whether to forcefully terminate the tasks that refer to the mirror resource.BOOLEANtrueO
LastMirrorOnlineTime

Record the system time where the mirror disk went online most recently.

System time is used for recording, it is not the absolute value that can determine whether the data is latest.
STRING
XLastPrimary

Display the role of the last mirror disk before connected to the network.

True: The last role was primary.False: The last role was secondary.

This value is valid only if a split brain occurs.

BOOLEAN

X
MetaDataTypeThis is how the meta data is saved.
Internal is used to save the meta data in the same partition as the mirror disk.
External is used to save the meta data in the designated device.
STRING
X
MetaDiskIt is the disk where meta data is saved.STRING
X
MirrorIPIt is an IP address used by mirror disk.STRING
X
MirrorNetConnectStatus

Display the connection status of the physical mirror network.

True: Mirror network connection.
False: Mirror network disconnection.

(Disconnection by a user's command does not affect the attribute.)

BOOLEANtrueX
MirrorPortIt is the communication port number used for mirror disk.STRING7789X

RoleState


Display the disk role (Primary or Secondary) of the node.

STRING

X

MirrorVolumeIt is the name of block device  actually used by mirror disk.STRING
X
MountPointIt is the absolute path for the mounting point.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 replicated or synchronized.
Thus, if the value is zero, a failover is prohibited. 

STRING0X
ProtocolTypeIt displays mirror type.
A = Async mode
B = Semi sync mode
C = Sync mode 
STRINGBX
ReayncRateThe ratio of resynchronization between the disk.INTEGER
X
RoleStateDisplay the role status of the mirror disk.STRING
X
SB0PolicyIf every member within a cluster is secondary, this split-brain recovery policy is automatically executed.STRING
X
SB1PolicyIf a member within a cluster is primary, this split-brain recovery policy is automatically executed.STRING
X
SB2PolicyIf every member within a cluster is secondary, this split-brain recovery policy is automatically executed.STRING
X
SyncedIt represents the progress of volume synchronization.INTEGER0X
TotalSpaceIt represents the total size of the target mirror disk.INTEGER0X
UsedSpaxeIt represents the available size of the target mirror disk.INTEGER0X
VirtualDeviceThis is a virtual device name used by 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.

Info

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.