CN111813324B - Storage method and device thereof - Google Patents
Storage method and device thereof Download PDFInfo
- Publication number
- CN111813324B CN111813324B CN201910291059.3A CN201910291059A CN111813324B CN 111813324 B CN111813324 B CN 111813324B CN 201910291059 A CN201910291059 A CN 201910291059A CN 111813324 B CN111813324 B CN 111813324B
- Authority
- CN
- China
- Prior art keywords
- storage
- data
- storage server
- server
- stored
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 230000010076 replication Effects 0.000 claims abstract description 72
- 238000001514 detection method Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 abstract description 11
- 238000011084 recovery Methods 0.000 abstract description 6
- 238000013500 data storage Methods 0.000 abstract description 4
- 230000002708 enhancing effect Effects 0.000 abstract description 3
- 230000005540 biological transmission Effects 0.000 description 6
- 230000002159 abnormal effect Effects 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 206010033799 Paralysis Diseases 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/062—Securing storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0706—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
- G06F11/0727—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a storage system, e.g. in a DASD or network based storage system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0793—Remedial or corrective actions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/065—Replication mechanisms
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/067—Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
Abstract
The invention discloses a storage method and a storage device, wherein a first main storage server continuously receives data to be stored, the received data to be stored is sent to first distributed replication equipment to be stored as first storage data, and the first distributed replication equipment sends the first storage data to at least one first standby storage server or a second standby storage server to be stored; if the first main storage server fails, starting a second main storage server, receiving data to be stored by the second main storage server instead, and sending the data to be stored to the first distributed replication device to be stored as second storage data; the first distributed replication device sends the first storage data and the second storage data to the first standby storage server or the second standby storage server for storage, and the storage device applies the method. Therefore, the storage method and the storage device provided by the invention can be used for better preventing data loss, improving the safety performance of the data storage process and enhancing the disaster recovery backup capability of the data.
Description
Technical Field
The invention relates to the technical field of information storage, in particular to a storage method and a storage device.
Background
The distributed copy block device, namely the DRBD, refers to a storage copy method of mirror block device contents between servers without sharing, which is realized by software. In the traditional storage technology method, data copying can be finished between two servers, however, when one end server or a network is abnormal, DRBD synchronous data can be directly disconnected, written data can be lost, and the like, so that the safety performance is low and the disaster tolerance capability is poor. Even in some storage processes, if a single point of failure occurs in one end server, the system is likely to be paralyzed, and the server cannot provide service for the outside all the time.
Disclosure of Invention
Therefore, the present invention is directed to a storage method and a storage device for improving the security performance of a data storage process and enhancing the disaster recovery capability of data.
Based on the above object, the present invention provides a storage method and a storage device. A storage method, comprising: the first main storage server continuously receives data to be stored, and sends the received data to be stored to first distributed replication equipment to be stored as first storage data, and the first distributed replication equipment sends the first storage data to at least one first standby storage server to be stored; if the first standby storage server fails, the first distributed replication device sends the first storage data to at least one second standby storage server for storage;
if the first main storage server fails, a second main storage server is started, the second main storage server receives the data to be stored, and the data to be stored is sent to the first distributed replication device to be stored as the second storage data; the first distributed replication device sends the first storage data and the second storage data to the first standby storage server for storage; and if the first standby storage server fails, the first distributed replication device sends the first storage data and the second storage data to the second standby storage server for storage.
In some embodiments of the invention, the storage method further comprises:
the first standby storage server sends the first storage data to a second distributed copy block device for storage; if the first standby storage server fails, the second standby storage server sends the first storage data to the second distributed replication block equipment for storage;
if the first main storage server fails, the first standby storage server receives the first storage data and the second storage data and sends the first storage data and the second storage data to the second distributed replication block equipment for storage; and if the first standby storage server fails, the second standby storage server sends the first storage data and the second storage data to the second distributed replication block equipment for storage.
In some embodiments of the invention, the storage method further comprises:
detecting whether the first main storage server and the second main storage server have faults or not through heartbeat detection between the first main storage server and the second main storage server;
and detecting whether the first backup storage server and the second backup storage server have faults or not through heartbeat detection between the first backup storage server and the second backup storage server.
In some embodiments of the invention, the storage method further comprises: the first distributed replication device sends the first storage data to a first switch, and the first switch sends the first storage data to the first standby storage server or sends the first storage data to the second standby storage server when the first standby storage server fails;
and if the first main storage server fails, the first distributed replication device sends the first storage data and the second storage data to the first switch, and the first switch sends the first storage data and the second storage data to the first standby storage server or sends the first storage data and the second storage data to the second standby storage server when the first standby storage server fails.
In some embodiments of the invention, the storage method further comprises:
the second switch receives the data to be stored, and the second switch judges whether the data to be stored meets preset storage conditions or not; and if the data to be stored meets the preset storage condition, the second switch sends the data to be stored to the first main storage server or sends the data to be stored to the second main storage server when the first main storage server fails.
In some embodiments of the invention, the storage method further comprises:
and if the first main storage server and the second main storage server are both failed, redefining the first main storage server and the second main storage server in the at least one first standby storage server and the at least one second standby storage server.
Based on the same inventive concept, the present invention also provides a storage device, including: the system comprises a first main storage server, a first distributed replication device, a second main storage server, at least one first standby storage server and at least one second standby storage server;
the first main storage server is used for continuously receiving data to be stored, and sending the received data to be stored to the first distributed replication equipment to be stored as the first storage data;
the second main storage server is used for receiving the data to be stored when the first main storage server fails, and sending the data to be stored to the first distributed replication device to be stored as the second storage data;
the first standby storage server is used for receiving the first storage data, and receiving the first storage data and the second storage data when the first main storage server fails;
the second backup storage server is configured to receive the first storage data when the first backup storage server fails, and receive the first storage data and the second storage data when the first main storage server also fails;
the first distributed replication block device is used for receiving the data to be stored and storing the data as the first storage data or the second storage data when the first main storage server fails; the first distributed replication block device is further configured to send the first storage data to the first backup storage server or send the first storage data to the second backup storage server when the first backup storage server fails; the first distributed replication block device is further configured to send the first storage data and the second storage data to the first backup storage server when the first main storage server fails, or send the first storage data and the second storage data to the second backup storage server when the first backup storage server also fails.
In some embodiments of the invention, the apparatus further comprises: a second distributed replication device;
the second distributed replication device is configured to receive the first storage data or receive the first storage data and the second storage data when the first primary storage server fails.
In some embodiments of the invention, the apparatus further comprises: a first switch; the first switch is configured to receive the first storage data and send the first storage data to the first backup storage server or send the first storage data to the second backup storage server when the first backup storage server fails; the first switch is further configured to receive the first storage data and the second storage data and send the first storage data and the second storage data to the first standby storage server if the first main storage server fails, or send the first storage data and the second storage data to the second standby storage server if the first standby storage server fails.
In some embodiments of the invention, the apparatus further comprises: a second switch; the second switch is used for judging whether the data to be stored meet preset storage conditions or not; and if the data to be stored meets the preset storage condition, the second switch sends the data to be stored to the first main storage server or sends the data to be stored to the second main storage server when the first main storage server fails.
From the above, it can be seen that the storage method and the storage device provided by the invention can better receive, store and backup data by setting two main servers and at least one standby server, and adopting the same set of distributed copy block storage equipment between the two main servers and between the two standby servers. Therefore, when one server fails, the storage method and the storage device provided by the invention can be taken over by the other server in time to store and backup the data under the condition that the data is not lost, thereby better preventing the data from being lost, improving the safety performance of the data storage process and enhancing the disaster recovery and backup capability of the data.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a storage method according to an embodiment of the invention;
fig. 2 is a flow chart illustrating a part of the flow of a storage method according to an embodiment of the invention.
Detailed Description
The present invention will be further described in detail below with reference to specific embodiments and with reference to the accompanying drawings, in order to make the objects, technical solutions and advantages of the present invention more apparent.
It should be noted that, in the embodiments of the present invention, all the expressions "first" and "second" are used to distinguish two entities with the same name but different entities or different parameters, and it is noted that the "first" and "second" are only used for convenience of expression, and should not be construed as limiting the embodiments of the present invention, and the following embodiments are not described one by one.
The embodiment provides a storage method, which is used for solving the problem that in the process of data backup, data transmission is interrupted or data backup fails due to the occurrence of faults of a server, so that the disaster recovery capability of data is enhanced. A method of storage, referring to fig. 1, comprising:
step 101: the first main storage server continuously receives data to be stored, the received data to be stored is sent to the first distributed replication equipment to be stored as first storage data, and the first distributed replication equipment sends the first storage data to at least one first standby storage server to be stored.
Specifically, in this embodiment, the second switch receives data to be stored, and the second switch determines whether the data to be stored meets a preset storage condition; and if the data to be stored meets the preset storage conditions, the second switch sends the data to be stored to the first main storage server or sends the data to the second main storage server when the first main storage server fails. The preset storage condition means that the first main storage server does not receive all data from the user side, the second switch can identify the data in advance, and the storage data which is actually required by the main storage server is identified and sent to the first main storage server.
The first storage data is data to be stored, which is received by the first main storage server and stored in the first distributed replication device.
Obviously, the data to be stored received by the first main storage server is not only stored in the first distributed replication device, but also sent to the first backup storage server for backup through the first distributed replication device.
Step 102: if the first standby storage server fails, the first distributed replication device sends the first storage data to at least one second standby storage server for storage.
Specifically, in the present embodiment, the first backup storage server and the second backup storage server are each provided as at least one. I.e. the data to be stored may be backed up by more than one first backup storage server and more than one second backup storage server after being received and stored via the first primary storage server or the second primary storage server. In some embodiments, after the first backup storage server and the second backup storage server perform backup, backup may be performed through the other first backup storage server and the other second backup storage server. By setting more than one first standby storage server and one second standby storage server, multiple backups can be realized, and data loss can be well avoided.
Therefore, in this embodiment, when the first backup storage server fails, the second backup storage server will take over, that is, in the process of data storage, the data backup process will not be interrupted, but the safety performance of the data backup process is higher and the disaster recovery performance is better by taking over the data backup process by another backup server.
Specifically, in this embodiment, a jumper is provided between the first backup storage server and the second backup storage server, and a jumper is provided between the first main storage server and the second main storage server. Detecting whether the first main storage server and the second main storage server have faults or not through heartbeat detection between the first main storage server and the second main storage server; and detecting whether the first backup storage server and the second backup storage server have faults or not through heartbeat detection between the first backup storage server and the second backup storage server. The heart jumper is used for connecting the network cable of the first main storage server and the second main storage server, and software installed on the servers monitors the running state of the other side in real time through the heart jumper. Once the first main storage server in operation fails due to various hardware faults, such as power failure, main component failure or startup disk failure, etc., the heartbeat line is reflected to the second main storage servers which are mutually backup, and the second main storage servers can immediately be put into operation, so that the normal operation of the network can be ensured to the greatest extent.
In this embodiment, the manner in which the first distributed replication device transmits data to the backup server is: the first distributed replication device sends the first storage data to a first switch, and the first switch sends the first storage data to a first standby storage server or sends the first storage data to a second standby storage server when the first standby storage server fails;
if the first main storage server fails, the first distributed replication device sends the first storage data and the second storage data to the first switch, and the first switch sends the first storage data and the second storage data to the first standby storage server or sends the first storage data and the second storage data to the second standby storage server when the first standby storage server fails.
Therefore, the data transmission mode of the first distributed replication device to the standby server belongs to a switch-passing mode, and the mode is more suitable for the data transmission through the switch when the first main storage server and the second main storage server of the main end are far away from the first standby storage server and the second standby storage server of the standby end, so that the data transmission is more convenient and quick. Of course, in other embodiments of the present invention, if the first main storage server and the second main storage server of the main end are closely spaced from the first standby storage server and the second standby storage server of the standby end, the connection between the main end and the standby end may be implemented through a network cable without providing a switch.
Step 103: if the first main storage server fails, starting a second main storage server, receiving data to be stored by the second main storage server instead, and sending the data to be stored to the first distributed replication device to be stored as second storage data, wherein the first distributed replication device sends the first storage data and the second storage data to the first standby storage server to be stored;
the second storage data is data to be stored, which is received by the second main storage server and stored in the first distributed replication device.
Specifically, at one end for receiving data at first, a second main storage server is further arranged, and the second main storage server can still receive continuous data to be stored when the first main storage server fails, so that the received data in the whole storage process cannot be interrupted. Meanwhile, the data to be stored received by the first main storage server and the data to be stored received by the second main storage server are stored in the first distributed replication device, and the setting mode is adopted, namely the two servers use the same set of magnetic discs at the same time, so that when the data are sent to the standby server for backup, the data received by the original first main storage server cannot be lost because the first main storage server is blocked, and the disaster tolerance of the data is greatly enhanced.
In this embodiment, the first primary storage server is a primary storage server with respect to the second primary storage server, and the second primary storage server is a backup primary storage server with respect to the first primary storage server. Specifically, the first main storage server preferentially receives data relative to the second main storage server, and if the first main storage server fails, the second main storage server is started to receive data to be stored. The arrangement of the second main storage server enables the first main storage server to fail to provide data transmission guarantee, so that data to be stored can be better received, stored and backed up.
Of course, the first backup storage server is a primary backup storage server with respect to the second backup storage server, and the second backup storage server is a backup storage server with respect to the first backup storage server. Specifically, the first backup storage server receives data preferentially relative to the second backup storage server, and if the first backup storage server fails, the second main storage server is started to receive data. The setting of the first backup storage server and the second backup storage server is approximately the same as the setting of the first main storage server and the second main storage server, and will not be described here again.
Step 104: if the first standby storage server fails, the first distributed replication device sends the first storage data and the second storage data to the second standby storage server for storage.
In this embodiment, referring to fig. 2, the storage method further includes:
step 401: the first standby storage server sends the first storage data to the second distributed copy block equipment for storage; if the first standby storage server fails, the second standby storage server sends the first storage data to the second distributed replication equipment for storage;
specifically, the second distributed replication block corresponds to the first main storage server and the first distributed replication block of the second main storage server, and the functions of the second distributed replication device and the first distributed replication device are the same, which is not described herein again.
Step 402: if the first main storage server fails, the first standby storage server receives the first storage data and the second storage data and sends the first storage data and the second storage data to the second distributed replication block equipment for storage; and if the first standby storage server fails, the second standby storage server sends the first storage data and the second storage data to the second distributed replication block equipment for storage.
Therefore, in the invention, by setting two main storage servers and two standby storage servers, when one server is abnormal or the network is abnormal, the other server can receive and manage the existing data receiving, transmitting and backup tasks, continue to receive, transmit and backup data, and use the same distributed copying equipment to store, thereby ensuring that the data is stored without losing. From the former single-point fault to the supporting multi-point fault, the safety performance is high, and the disaster recovery capability is stronger; through redundancy and data backup of the server, the system is ensured not to be paralyzed under the condition that a single point failure occurs at the server end, and uninterrupted service can be provided for the outside.
In some preferred embodiments of the present invention, if both the first primary storage server and the second primary storage server fail, the first primary storage server and the second primary storage server are redefined in the at least one first backup storage server and the at least one second backup storage server.
If the first main storage server and the second main storage server are both failed, the data to be stored cannot be received from the server if the failure is not solved in time, and the backup of the data to be stored cannot be completed. In this embodiment, if the first primary storage server and the second primary storage server fail, the first primary storage server and the second primary storage server are redefined in at least one first backup storage server and at least one second backup storage server, and the data to be stored is timely received. Of course, at the same time, the first backup storage server and the second backup storage server may also be redefined in the at least one first backup storage server and the at least one second backup storage server. Therefore, in the invention, even if all the main storage servers fail, the data transmission can be kept uninterrupted by redefining the first main storage server and the second main storage server in the whole storage process.
Based on the same inventive concept, the present invention also provides a storage device, including: the system comprises a first main storage server, a first distributed replication device, a second main storage server, at least one first standby storage server and at least one second standby storage server;
the first main storage server is used for continuously receiving data to be stored and sending the received data to be stored to the first distributed replication equipment to be stored as first storage data;
the second main storage server is used for receiving data to be stored when the first main storage server fails, and sending the data to be stored to the first distributed replication equipment to be stored as second storage data;
the first standby storage server is used for receiving the first storage data, and when the first main storage server fails, the first storage data and the second storage data are received;
the second standby storage server is used for receiving the first storage data when the first standby storage server fails, and receiving the first storage data and the second storage data when the first main storage server also fails;
the first distributed replication block device is used for receiving data to be stored and storing the data as first storage data or second storage data when a first main storage server fails; the first distributed replication block device is further used for sending the first storage data to the first standby storage server or sending the first storage data to the second standby storage server when the first standby storage server fails; the first distributed replication block device is further configured to send the first storage data and the second storage data to the first backup storage server when the first main storage server fails, or send the first storage data and the second storage data to the second backup storage server when the first backup storage server also fails.
In this embodiment, the storage device further includes: a second distributed replication device;
the second distributed replication device is used for receiving the first storage data or receiving the first storage data and the second storage data when the first main storage server fails.
In this embodiment, the storage device further includes: a first switch; the first switch is used for receiving the first storage data and sending the first storage data to the first standby storage server or sending the first storage data to the second standby storage server when the first standby storage server fails; the first switch is further configured to receive the first storage data and the second storage data and send the first storage data and the second storage data to the first backup storage server if the first main storage server fails, or send the first storage data and the second storage data to the second backup storage server if the first backup storage server fails.
In this embodiment, the storage device further includes: a second switch; the second switch is used for judging whether the data to be stored meet preset storage conditions or not; and if the data to be stored meets the preset storage conditions, the second switch sends the data to be stored to the first main storage server or sends the data to the second main storage server when the first main storage server fails.
The device of the foregoing embodiment is configured to implement the corresponding method in the foregoing embodiment, and has the beneficial effects of the corresponding method embodiment, which is not described herein.
Those of ordinary skill in the art will appreciate that: the discussion of any of the embodiments above is merely exemplary and is not intended to suggest that the scope of the disclosure, including the claims, is limited to these examples; the technical features of the above embodiments or in the different embodiments may also be combined within the idea of the invention, the steps may be implemented in any order and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity.
Additionally, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown within the provided figures, in order to simplify the illustration and discussion, and so as not to obscure the invention. Furthermore, the devices may be shown in block diagram form in order to avoid obscuring the invention, and also in view of the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform within which the present invention is to be implemented (i.e., such specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the invention, it should be apparent to one skilled in the art that the invention can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative in nature and not as restrictive.
While the invention has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of those embodiments will be apparent to those skilled in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
The embodiments of the invention are intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims. Therefore, any omission, modification, equivalent replacement, improvement, etc. of the present invention should be included in the scope of the present invention.
Claims (8)
1. A storage method, comprising:
the first main storage server continuously receives data to be stored, and sends the received data to be stored to first distributed replication block equipment to be stored as first storage data, and the first distributed replication block equipment sends the first storage data to at least one first standby storage server to be stored; if the first standby storage server fails, the first distributed replication block equipment sends the first storage data to at least one second standby storage server for storage;
if the first main storage server fails, a second main storage server is started, the second main storage server receives the data to be stored, and the data to be stored is sent to the first distributed replication block equipment to be stored as second storage data; the first distributed replication block device sends the first storage data and the second storage data to the first standby storage server for storage; if the first standby storage server fails, the first distributed replication block device sends the first storage data and the second storage data to the second standby storage server for storage;
the first standby storage server sends the first storage data to a second distributed copy block device for storage; if the first standby storage server fails, the second standby storage server sends the first storage data to the second distributed replication block equipment for storage;
if the first main storage server fails, the first standby storage server receives the first storage data and the second storage data and sends the first storage data and the second storage data to the second distributed replication block equipment for storage; and if the first standby storage server fails, the second standby storage server sends the first storage data and the second storage data to the second distributed replication block equipment for storage.
2. The storage method of claim 1, further comprising:
detecting whether the first main storage server and the second main storage server have faults or not through heartbeat detection between the first main storage server and the second main storage server;
and detecting whether the first backup storage server and the second backup storage server have faults or not through heartbeat detection between the first backup storage server and the second backup storage server.
3. The storage method of claim 1, further comprising: the first distributed replication block device sends the first storage data to a first switch, and the first switch sends the first storage data to the first standby storage server or sends the first storage data to the second standby storage server when the first standby storage server fails;
and if the first main storage server fails, the first distributed replication block device sends the first storage data and the second storage data to the first switch, and the first switch sends the first storage data and the second storage data to the first standby storage server or sends the first storage data and the second storage data to the second standby storage server when the first standby storage server fails.
4. The storage method of claim 1, further comprising:
the second switch receives the data to be stored, and the second switch judges whether the data to be stored meets preset storage conditions or not; and if the data to be stored meets the preset storage condition, the second switch sends the data to be stored to the first main storage server or sends the data to be stored to the second main storage server when the first main storage server fails.
5. The storage method of claim 1, further comprising:
and if the first main storage server and the second main storage server are both failed, redefining the first main storage server and the second main storage server in the at least one first standby storage server and the at least one second standby storage server.
6. A memory device, comprising: the system comprises a first main storage server, a first distributed replication block device, a second main storage server, at least one first standby storage server, at least one second standby storage server and a second distributed replication block device;
the first main storage server is used for continuously receiving data to be stored, and sending the received data to be stored to the first distributed replication block equipment to be stored as the first storage data;
the second main storage server is used for receiving the data to be stored when the first main storage server fails, and sending the data to be stored to the first distributed replication block equipment to be stored as the second storage data;
the first standby storage server is used for receiving the first storage data, and receiving the first storage data and the second storage data when the first main storage server fails;
the second backup storage server is configured to receive the first storage data when the first backup storage server fails, and receive the first storage data and the second storage data when the first main storage server also fails;
the first distributed replication block device is used for receiving the data to be stored and storing the data as the first storage data or the second storage data when the first main storage server fails; the first distributed replication block device is further configured to send the first storage data to the first backup storage server or send the first storage data to the second backup storage server when the first backup storage server fails; the first distributed replication block device is further configured to send the first storage data and the second storage data to the first backup storage server when the first main storage server fails, or send the first storage data and the second storage data to the second backup storage server when the first backup storage server also fails; the second distributed replication block device is configured to receive the first storage data or receive the first storage data and the second storage data when the first primary storage server fails.
7. The storage device of claim 6, further comprising: a first switch; the first switch is configured to receive the first storage data and send the first storage data to the first backup storage server or send the first storage data to the second backup storage server when the first backup storage server fails; the first switch is further configured to receive the first storage data and the second storage data and send the first storage data and the second storage data to the first standby storage server if the first main storage server fails, or send the first storage data and the second storage data to the second standby storage server if the first standby storage server fails.
8. The storage device of claim 6, further comprising: a second switch; the second switch is used for judging whether the data to be stored meet preset storage conditions or not; and if the data to be stored meets the preset storage condition, the second switch sends the data to be stored to the first main storage server or sends the data to be stored to the second main storage server when the first main storage server fails.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910291059.3A CN111813324B (en) | 2019-04-11 | 2019-04-11 | Storage method and device thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910291059.3A CN111813324B (en) | 2019-04-11 | 2019-04-11 | Storage method and device thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111813324A CN111813324A (en) | 2020-10-23 |
CN111813324B true CN111813324B (en) | 2024-03-12 |
Family
ID=72843816
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910291059.3A Active CN111813324B (en) | 2019-04-11 | 2019-04-11 | Storage method and device thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111813324B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20030048503A (en) * | 2001-12-12 | 2003-06-25 | 주식회사 엘지이아이 | Communication system and method for data synchronization of duplexing server |
CN103974220A (en) * | 2013-01-25 | 2014-08-06 | 中兴通讯股份有限公司 | Strategy generating device and working method thereof and strategy generating system and working method thereof |
CN106357787A (en) * | 2016-09-30 | 2017-01-25 | 郑州云海信息技术有限公司 | Storage disaster tolerant control system |
CN106855834A (en) * | 2015-12-08 | 2017-06-16 | 华为技术有限公司 | A kind of data back up method, device and system |
CN108063832A (en) * | 2018-02-06 | 2018-05-22 | 上海地面通信息网络股份有限公司 | A kind of cloud storage system and its storage method |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7246256B2 (en) * | 2004-01-20 | 2007-07-17 | International Business Machines Corporation | Managing failover of J2EE compliant middleware in a high availability system |
US20160182638A1 (en) * | 2011-10-11 | 2016-06-23 | Tianjin Surdoc Corp. | Cloud serving system and cloud serving method |
-
2019
- 2019-04-11 CN CN201910291059.3A patent/CN111813324B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20030048503A (en) * | 2001-12-12 | 2003-06-25 | 주식회사 엘지이아이 | Communication system and method for data synchronization of duplexing server |
CN103974220A (en) * | 2013-01-25 | 2014-08-06 | 中兴通讯股份有限公司 | Strategy generating device and working method thereof and strategy generating system and working method thereof |
CN106855834A (en) * | 2015-12-08 | 2017-06-16 | 华为技术有限公司 | A kind of data back up method, device and system |
CN106357787A (en) * | 2016-09-30 | 2017-01-25 | 郑州云海信息技术有限公司 | Storage disaster tolerant control system |
CN108063832A (en) * | 2018-02-06 | 2018-05-22 | 上海地面通信息网络股份有限公司 | A kind of cloud storage system and its storage method |
Also Published As
Publication number | Publication date |
---|---|
CN111813324A (en) | 2020-10-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200233762A1 (en) | Method and Apparatus for Redundancy in Active-Active Cluster System | |
CN109032849B (en) | Hot backup system, hot backup method and computer equipment | |
US20060143497A1 (en) | System, method and circuit for mirroring data | |
CN109656753B (en) | Redundant hot standby system applied to rail transit comprehensive monitoring system | |
US20170026280A1 (en) | Packet Transmission Method and Apparatus, and Interconnect Interface | |
CN102882704B (en) | Link protection method in the soft reboot escalation process of a kind of ISSU and equipment | |
CN103560922A (en) | Disaster recovery method and system | |
CN111385107B (en) | Main/standby switching processing method and device for server | |
CN105554130A (en) | Distributed storage system-based NameNode switching method and switching device | |
CN107276839B (en) | Self-monitoring method and system of cloud platform | |
CN101908980A (en) | Network management upgrading method and system | |
CN111031341A (en) | Heartbeat-based dual-computer hot standby method | |
CN105812161B (en) | A kind of controller failure backup method and system | |
CN106850255A (en) | A kind of implementation method of multi-computer back-up | |
CN115269248B (en) | Method and device for preventing brain fracture under double-node cluster, electronic equipment and storage medium | |
CN107526652B (en) | Data synchronization method and storage device | |
CN111813324B (en) | Storage method and device thereof | |
KR101694298B1 (en) | Apparatus for electing a master in redundancy system | |
CN111756826B (en) | Lock information transmission method of DLM and related device | |
CN106027313B (en) | Network link disaster tolerance system and method | |
CN112929438A (en) | Business processing method and device of double-site distributed database | |
CN114598594B (en) | Method, system, medium and equipment for processing application faults under multiple clusters | |
KR20030048503A (en) | Communication system and method for data synchronization of duplexing server | |
CN112948484A (en) | Distributed database system and data disaster recovery drilling method | |
CN110321261B (en) | Monitoring system and monitoring method |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |