CN107577564A - A kind of method that dual-active system is realized based on block simultaneous techniques - Google Patents

A kind of method that dual-active system is realized based on block simultaneous techniques Download PDF

Info

Publication number
CN107577564A
CN107577564A CN201710607424.8A CN201710607424A CN107577564A CN 107577564 A CN107577564 A CN 107577564A CN 201710607424 A CN201710607424 A CN 201710607424A CN 107577564 A CN107577564 A CN 107577564A
Authority
CN
China
Prior art keywords
computer room
quorum
quorum disk
disk
dual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710607424.8A
Other languages
Chinese (zh)
Inventor
刘金龙
李建辉
熊中哲
魏兴华
臧冰凌
李春
陈栋
张文件
罗春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Wo Qu Polytron Technologies Inc
Original Assignee
Hangzhou Wo Qu Polytron Technologies Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Wo Qu Polytron Technologies Inc filed Critical Hangzhou Wo Qu Polytron Technologies Inc
Priority to CN201710607424.8A priority Critical patent/CN107577564A/en
Publication of CN107577564A publication Critical patent/CN107577564A/en
Pending legal-status Critical Current

Links

Landscapes

  • Hardware Redundancy (AREA)

Abstract

The present invention relates to database technical field, discloses a kind of method that dual-active system is realized based on block simultaneous techniques, comprises the following steps:A storage server is selected in (1) first computer room and the second computer room respectively, and the memory space of formed objects is distributed in storage server, they are made up to two pieces of quorum disks of mirror image each other of block device simultaneous techniques;(2) quorum disk of the two mirror images each other is made to share quorum disk for the cluster of the first computer room and the second computer room;(3) request of data of write-in is issued by network the quorum disk of another computer room, is consistent two quorum disk data contents;(4) there are abnormal conditions in the first computer room or the second computer room, another normal computer room can access the quorum disk of normal computer room and the shared quorum disk of normal computer room.The present invention will not be affected when a block device goes wrong and can still be operated storage and data and back up for another piece, ensure that the continuity of work.

Description

A kind of method that dual-active system is realized based on block simultaneous techniques
Technical field
The present invention relates to database technical field, more particularly to a kind of side that dual-active system is realized based on block simultaneous techniques Method.
Background technology
ORACLE RAC are a kind of parallel schemas in database, it is ensured that all members of cluster can connect simultaneously The request of client is received, Oracle RAC mainly support Oracle9i, 10g, 11g, 12c version, can support that 24x 7 is effective Database application system, high availability data-base system, and free application deployment are built on inexpensive server, without repairing Change code.Under Oracle RAC environment, Oracle companies are integrated to provide clustered software and storage management software, when application is advised When mould needs to expand, user can extend system on demand, to ensure the performance of system.
Dual-active system is done using Oracle RAC RAC different nodes are stored in different computer rooms, so can be with Accomplish that another computer room normally can also externally provide service after a computer room powers off, it is possible to prevente effectively from because computer room power-off is led The problem of causing database external service disruption.Although the dual-active framework based on Oracle RAC is very perfect, wherein there is one very Strong limitation, the quorum disk quantity that voting effect is played when cluster fissure must be odd number block (2n+1), and this It is all shared to all nodes of cluster that storage under kind framework, which all must be, i.e., each machine has to that one can be had access to In the shared storage of individual or multiple identicals.And need to ensure that the disk in voting disk group keeps more than half available, it Voting function, which could normally be provided, prevents cluster from fissure occurs.Based on this limitation, at present for the quorum disk of dual-active framework The solution of storage mode has two kinds, the first, two computer rooms difference quorum disk of dual-active system, but due to arbitrating magnetic Disk quantity is odd number, so necessarily having a computer room (n+1) to store one piece of quorum disk than another computer room (n) more.But In this case the defects of is exactly the computer room power-off or damage when storage n+1 block quorum disks, then whole cluster can all be hung The service that can not externally provide is played, and another computer room will due to that can only have access to n blocks quorum disk before this computer room is replied It can not be pulled up always, this will have a strong impact on the high availability of dual-active system.Second, two computer rooms of dual-active system are being set The quorum disk of identical quantity is deposited respectively, opens up third party's either the 3rd computer room storage independent one piece or polylith arbitration magnetic Disk.This scheme can effectively solve the defects of the first scheme, but due to having opened up the 3rd computer room and it also requires matching somebody with somebody Shared storage is put, this framework ancillary cost can be extremely expensive.
The content of the invention
The present invention is directed to the shortcomings that framework in existing dual-active architecture technology is complicated and expensive, dual-active availability is low, there is provided A kind of method that dual-active system is realized based on block simultaneous techniques, quorum disk is individually deposited not opening up the 3rd extra computer room On the premise of, make to realize that whichever computer room of two computer rooms of dual-active occurs in the case of powering off or being disabled, another machine Room is all without being affected, so as to realize dual-active framework truly.
In order to solve the above-mentioned technical problem, the present invention is addressed by following technical proposals.
A kind of method that dual-active system is realized based on block simultaneous techniques, is comprised the following steps:
(1) the first computer room and the second computer room are provided with local cluster server, in the first computer room and the second computer room respectively A storage server is selected, and the memory space of formed objects is distributed in storage server, is driven by a block device It is dynamic, and the space for respectively distributing them generates block device, they are made by mirror image each other by block device simultaneous techniques Two pieces of quorum disks;
(2) two pieces of quorum disks convey cluster server of the data to local computer room by iscsi technologies, make the two mutual Quorum disk for mirror image is the shared quorum disk of cluster of the first computer room and the second computer room;
(3) when the first computer room or the second computer room receive request write-in quorum disk, data only write local arbitration magnetic In disk, then the request of data of write-in is issued by network the quorum disk of another computer room, make two quorum disk data Content is consistent;
(4) there are abnormal conditions in the first computer room or the second computer room, another normal computer room can access normal computer room Quorum disk and normal computer room shared quorum disk, the quorum disk having access to exceedes half, according to oracle database The rule of cluster is normal externally to provide service.
Preferably, in step (1), when two computer room synchronizing networks used in this two pieces each other quorum disk of mirror image Go wrong, the quorum disk of one of computer room is carried out to be set to the state that can not be read and write.
The present invention has significant technique effect as a result of above technical scheme:By at two of different computer rooms Storage server distributes certain space, the two spaces is generated into block device respectively by Block Device Driver, then by this Two block devices are only conveyed to the RAC clustered node servers of local computer room as the quorum disk in Oracle RAC respectively, When a block device goes wrong, another piece will not be affected and can still be operated storage and data and back up, So it can also ensure that another computer room cluster also has n+1 blocks quorum disk to access in the case where a computer room powers off So as to ensure that Oracle RAC can work on, the continuity of work ensure that.
Brief description of the drawings
Fig. 1 is the schematic diagram of operating structure in a kind of method that dual-active system is realized based on block simultaneous techniques of the present invention.
Embodiment
The present invention is described in further detail with embodiment below in conjunction with the accompanying drawings.
As shown in figure 1, a kind of method that dual-active system is realized based on block simultaneous techniques, is comprised the following steps:
(1) the first computer room and the second computer room are provided with local cluster server, in the first computer room and the second computer room respectively A storage server is selected, and the memory space of formed objects is distributed in storage server, is driven by a block device It is dynamic, and the space for respectively distributing them generates block device, they are made by mirror image each other by block device simultaneous techniques Two pieces of quorum disks;
(2) two pieces of quorum disks convey cluster server of the data to local computer room by iscsi technologies, make the two mutual Quorum disk for mirror image is the shared quorum disk of cluster of the first computer room and the second computer room;
(3) when the first computer room or the second computer room receive request write-in quorum disk, data only write local arbitration magnetic In disk, then the request of data of write-in is issued by network the quorum disk of another computer room, make two quorum disk data Content is consistent;
(4) there are abnormal conditions in the first computer room or the second computer room, another normal computer room can access normal computer room Quorum disk and normal computer room shared quorum disk, the quorum disk having access to exceedes half, according to oracle database The rule of cluster is normal externally to provide service.
When two computer room synchronizing networks used in this two pieces each other quorum disk of mirror image go wrong, by one of them The quorum disk of computer room carries out being set to the state that can not be read and write.
Distribute certain space by two storage servers in different computer rooms, by Block Device Driver by the two Space generates block device respectively, is then only conveyed to this respectively using the two block devices as the quorum disk in Oracle RAC The RAC clustered node servers of ground computer room, when a block device goes wrong, another piece will not be affected and still may be used To be operated storage data and back up, so another computer room collection can be also ensured in the case where a computer room powers off Group also has n+1 blocks quorum disk to access so as to ensure that Oracle RAC can work on, and ensure that the continuity of work.
Embodiment 1
Dual-active system such as Fig. 1 frameworks, two computer rooms store 6 servers altogether, wherein two as two nodes Oracle clusters (NODE1 and NODE2).Oracle cluster regulation quorum disk is odd number block (2n+1) and available arbitration Number of disks could normal work when needing to be more than n.So 4 quorum disks can be deposited in other four storage servers, and And vote2 and vote3 is made to the state for turning into mirror image each other, that is, node1 and node2 think what is each had access to Vote2 and vote3 is same quorum disk, and oracle clusters are believed that current only 3 pieces to oracle in this state Quorum disk, it can thus meet the basic demand of oracle clusters.
When computer room power-off occurs for A computer rooms, then all servers can all power off in A computer rooms, it is impossible to normal use. At this moment vote1 and vote2 can not play arbitration effect, then this when B computer rooms NODE2 calculate nodes, be still able to visit Two pieces of quorum disks (vote3 and vote4) are asked, half quorum disk is had more than and can use, so B computer rooms will not be because of A computer rooms Power-off and be affected, so as to realize real dual-active.
In a word, presently preferred embodiments of the present invention, all equalizations made according to scope of the present invention patent be the foregoing is only Change and modification, it should all belong to the covering scope of patent of the present invention.

Claims (2)

  1. A kind of 1. method that dual-active system is realized based on block simultaneous techniques, it is characterised in that comprise the following steps:
    (1) the first computer room and the second computer room are provided with local cluster server, are selected respectively in the first computer room and the second computer room One storage server, and in storage server distribute formed objects memory space, by a Block Device Driver, and And the space for respectively distributing them generates block device, they are made into mirror image each other by block device simultaneous techniques two pieces are secondary Cut out disk;
    (2) two pieces of quorum disks convey cluster server of the data to local computer room by iscsi technologies, make the two mirrors each other The quorum disk of picture is the shared quorum disk of cluster of the first computer room and the second computer room;
    (3) when the first computer room or the second computer room receive request write-in quorum disk, data are only write in local quorum disk, Then the request of data of write-in is issued by network the quorum disk of another computer room, protects two quorum disk data contents Hold consistent;
    (4) there are abnormal conditions in the first computer room or the second computer room, another normal computer room can access the secondary of normal computer room The shared quorum disk of disk and normal computer room is cut out, the quorum disk having access to exceedes half, according to oracle database cluster Rule, it is normal that service is externally provided.
  2. A kind of 2. method that dual-active system is realized based on block simultaneous techniques according to claim 1, it is characterised in that:Step (1) in, when two computer room synchronizing networks used in this two pieces each other quorum disk of mirror image go wrong, by one of machine The quorum disk in room carries out being set to the state that can not be read and write.
CN201710607424.8A 2017-07-24 2017-07-24 A kind of method that dual-active system is realized based on block simultaneous techniques Pending CN107577564A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710607424.8A CN107577564A (en) 2017-07-24 2017-07-24 A kind of method that dual-active system is realized based on block simultaneous techniques

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710607424.8A CN107577564A (en) 2017-07-24 2017-07-24 A kind of method that dual-active system is realized based on block simultaneous techniques

Publications (1)

Publication Number Publication Date
CN107577564A true CN107577564A (en) 2018-01-12

Family

ID=61034015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710607424.8A Pending CN107577564A (en) 2017-07-24 2017-07-24 A kind of method that dual-active system is realized based on block simultaneous techniques

Country Status (1)

Country Link
CN (1) CN107577564A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108647117A (en) * 2018-04-26 2018-10-12 郑州云海信息技术有限公司 A kind of method of data backup, main system, equipment and computer readable storage medium
CN109947601A (en) * 2018-11-21 2019-06-28 北京中科同向信息技术有限公司 A kind of dual-active storage system
CN113094354A (en) * 2021-04-08 2021-07-09 浪潮商用机器有限公司 Database architecture method and device, database all-in-one machine and storage medium
CN115794499A (en) * 2023-02-03 2023-03-14 创云融达信息技术(天津)股份有限公司 Method and system for double-live replication of data among distributed block storage clusters

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8060776B1 (en) * 2003-03-21 2011-11-15 Netapp, Inc. Mirror split brain avoidance
CN104168323A (en) * 2013-08-26 2014-11-26 天津书生投资有限公司 Cloud service system and method
CN105843713A (en) * 2016-04-01 2016-08-10 杭州沃趣网络科技有限公司 Method for realizing Oracle RAC (real application cluster) through shared-nothing storage of dual system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8060776B1 (en) * 2003-03-21 2011-11-15 Netapp, Inc. Mirror split brain avoidance
CN104168323A (en) * 2013-08-26 2014-11-26 天津书生投资有限公司 Cloud service system and method
CN105843713A (en) * 2016-04-01 2016-08-10 杭州沃趣网络科技有限公司 Method for realizing Oracle RAC (real application cluster) through shared-nothing storage of dual system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108647117A (en) * 2018-04-26 2018-10-12 郑州云海信息技术有限公司 A kind of method of data backup, main system, equipment and computer readable storage medium
CN109947601A (en) * 2018-11-21 2019-06-28 北京中科同向信息技术有限公司 A kind of dual-active storage system
CN113094354A (en) * 2021-04-08 2021-07-09 浪潮商用机器有限公司 Database architecture method and device, database all-in-one machine and storage medium
CN115794499A (en) * 2023-02-03 2023-03-14 创云融达信息技术(天津)股份有限公司 Method and system for double-live replication of data among distributed block storage clusters

Similar Documents

Publication Publication Date Title
CN102214205B (en) For the system and method for the logic copy in the Database Systems of cluster
US7565503B2 (en) Method and apparatus implementing virtualization for data migration with volume mapping based on configuration information and with efficient use of old assets
US7152076B2 (en) System and method for efficient multi-master replication
CN107577564A (en) A kind of method that dual-active system is realized based on block simultaneous techniques
CN104395898B (en) Virtual memory facilities gateway
US7870234B2 (en) Highly scalable and highly available cluster system management scheme
US8856091B2 (en) Method and apparatus for sequencing transactions globally in distributed database cluster
CN102402395B (en) Quorum disk-based non-interrupted operation method for high availability system
US20070061379A1 (en) Method and apparatus for sequencing transactions globally in a distributed database cluster
US9652346B2 (en) Data consistency control method and software for a distributed replicated database system
JP2011530127A (en) Method and system for maintaining data integrity between multiple data servers across a data center
CN104994168A (en) distributed storage method and distributed storage system
CN107273440A (en) Computer application, date storage method, micro services and microdata storehouse
CN205620984U (en) Data layering storage device
US20160306550A1 (en) Constructing a scalable storage device, and scaled storage device
WO2020259086A1 (en) Distributed architecture
CN105635311A (en) Method for synchronizing resource pool information in cloud management platform
US6804710B1 (en) Configuration information management system, method, program, and program storage device
CN107291821A (en) A kind of method that same city dual-active framework is switched fast
CN104410531A (en) Redundant system architecture approach
CN108810150A (en) The data copy method of cooperative office system application layer disaster recovery and backup systems
CN108964986A (en) Cooperative office system application layer dual-active disaster recovery and backup systems
US7080197B2 (en) System and method of cache management for storage controllers
Vallath Oracle real application clusters
CN110362590A (en) Data managing method, device, system, electronic equipment and computer-readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180112