CN111813324A - Storage method and device thereof - Google Patents

Storage method and device thereof Download PDF

Info

Publication number
CN111813324A
CN111813324A CN201910291059.3A CN201910291059A CN111813324A CN 111813324 A CN111813324 A CN 111813324A CN 201910291059 A CN201910291059 A CN 201910291059A CN 111813324 A CN111813324 A CN 111813324A
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.)
Granted
Application number
CN201910291059.3A
Other languages
Chinese (zh)
Other versions
CN111813324B (en
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.)
Perabytes Technology Co ltd
Original Assignee
Perabytes Technology Co ltd
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 Perabytes Technology Co ltd filed Critical Perabytes Technology Co ltd
Priority to CN201910291059.3A priority Critical patent/CN111813324B/en
Publication of CN111813324A publication Critical patent/CN111813324A/en
Application granted granted Critical
Publication of CN111813324B publication Critical patent/CN111813324B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/062Securing storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error 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/0706Error 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/0727Error 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error 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/0793Remedial or corrective actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/065Replication mechanisms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed 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.A 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 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 equipment to be stored as second storage data; the first distributed replication equipment 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 better prevent data loss, improve the safety performance of the data storage process and enhance the disaster recovery backup capability of the data.

Description

Storage method and device thereof
Technical Field
The present invention relates to the field of information storage technologies, and in particular, to a storage method and a storage apparatus.
Background
Distributed replicated block devices, i.e. DRBDs, refer to a storage replication method implemented by software, without sharing, and mirroring the contents of block devices between servers. In a traditional storage technology method, data copying can be completed between two servers, however, when one end server or a network is abnormal, DRBD synchronous data is directly disconnected, written data is 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 may be disabled, and the external service cannot be provided all the time.
Disclosure of Invention
In view of this, the present invention provides a storage method and a storage apparatus thereof, which are used to improve the security performance of a data storage process and enhance the disaster-tolerant backup capability of data.
Based on the above purpose, the invention provides a storage method and a device thereof. A storage method, comprising: the method comprises the steps that a first main storage server continuously receives data to be stored, the received data to be stored are 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 to be stored; if the first standby storage server fails, the first distributed replication equipment sends the first storage data to at least one second standby storage server for storage;
if the first primary storage server fails, starting a second primary storage server, receiving the data to be stored by the second primary storage server instead, and sending the data to be stored to the first distributed replication equipment to be stored as the second storage data; the first distributed replication equipment 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 equipment 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 backup storage server sends the first storage data to a second distributed replication block device for storage; if the first backup storage server fails, the second backup storage server sends the first storage data to the second distributed replication block device 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 device for storage; and if the first backup storage server fails, the second backup storage server sends the first storage data and the second storage data to the second distributed replication block device for storage.
In some embodiments of the invention, the storage method further comprises:
detecting whether the first primary storage server and the second primary storage server are in failure or not through heartbeat detection between the first primary storage server and the second primary storage server;
and detecting whether the first standby storage server and the second standby storage server have faults or not through heartbeat detection between the first standby storage server and the second standby storage server.
In some embodiments of the invention, the storage method further comprises: the first distributed replication equipment 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;
if the first main storage server fails, the first distributed replication equipment 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:
redefining the first primary storage server and the second primary storage server in the at least one first backup storage server and the at least one second backup storage server if both the first primary storage server and the second primary storage server fail.
Based on the same inventive concept, the invention also provides a storage device, which comprises: the system comprises a first primary storage server, a first distributed replication device, a second primary 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 primary storage server is used for receiving the data to be stored and sending the data to be stored to the first distributed replication equipment to be stored as the second storage data when the first primary storage server fails;
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 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 configured to receive the data to be stored and store the data as the first storage data or store the data as the second storage data when the first primary 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 to 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 primary storage server fails or 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 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 primary storage server fails or to send the first storage data and the second storage data to the second backup storage server if the first backup 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, in the storage method and the storage apparatus provided by the present invention, the two main servers and the two standby servers are both provided, and the same distributed copy block storage device is adopted between the two main servers and between the two standby servers, so that data can be received, stored, and backed up better. Therefore, when one server fails, the storage method and the storage device provided by the invention can be used for taking over the data by another server in time without losing the data, so that the data loss is well prevented, the safety performance of the data storage process is improved, and the disaster-tolerant backup capability of the data is enhanced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart illustrating a storage method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a partial flow of a storage method according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to specific embodiments and the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
The embodiment provides a storage method, which is used for solving the problem of data transmission interruption or data backup failure caused by the failure of a server in the data backup process, and enhancing the disaster tolerance capability of data. A storage method, referring to fig. 1, comprising:
step 101: the first main storage server continuously receives the data to be stored, the received data to be stored are 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 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. The preset storage condition means that the first main storage server does not receive all data from the user side, the data is identified in advance through the second switch, and the storage data identified as the main storage server is sent to the first main storage server.
The first storage data is data to be stored, which is received by the first primary storage server and stored in the first distributed replication device.
Obviously, the data to be stored received by the first primary storage server is not only stored in the first distributed copy device, but also sent to the first backup storage server for backup through the first distributed copy device.
Step 102: and if the first standby storage server fails, the first distributed replication equipment sends the first storage data to at least one second standby storage server for storage.
Specifically, in this embodiment, the first standby storage server and the second standby storage server are both provided as at least one. That is, after the data to be stored is received and stored by the first primary storage server or the second primary storage server, the data can be backed up by more than one first backup storage server and more than one second backup storage server. In some embodiments, after the first backup storage server and the second backup storage server perform backup, the backup may be performed through another first backup storage server and another second backup storage server. By the mode of setting more than one first standby storage server and one second standby storage server, multiple backup places can better avoid the loss of data.
Therefore, in this embodiment, when the first backup storage server fails, the second backup storage server takes over the data, that is, in the data storage process, the data backup process is not interrupted, but the data backup process is made to have higher security and better disaster tolerance by taking over the data from the other backup server.
Specifically, in this embodiment, a heartbeat line is disposed between the first backup storage server and the second backup storage server, and a heartbeat line is disposed between the first primary storage server and the second primary storage server. Whether the first primary storage server and the second primary storage server are in failure or not is detected through heartbeat detection between the first primary storage server and the second primary storage server; whether the first standby storage server and the second standby storage server break down or not is detected through heartbeat detection between the first standby storage server and the second standby storage server. For example, the heartbeat line refers to a network cable for connecting the first primary storage server and the second primary storage server, and software installed on the servers monitors the operating state of the other party in real time through the heartbeat line. Once the system fails due to various hardware failures, such as power failure, failure of main components or failure of a boot disk, of the first primary storage server which is working, the heartbeat line is reflected to the second primary storage server which is backup for each other, and the second primary storage server can be immediately put into operation, so that the normal operation of the network can be ensured to the maximum extent.
In this embodiment, the manner in which the first distributed replication device transmits the data to the standby server is as follows: the first distributed replication equipment 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 equipment 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 mode that the first distributed replication device transmits the data to the standby server belongs to a mode of a switch, and the mode is suitable for transmitting the data 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, and is convenient and quick. Of course, in some other embodiments of the present invention, if the first primary storage server and the second primary storage server at the primary end are closer to the first secondary storage server and the second secondary storage server at the secondary end, the connection between the primary end and the secondary end may also be implemented through a network cable without setting 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, sending the data to be stored to first distributed replication equipment to be stored as second storage data, and sending the first storage data and the second storage data to a first standby storage server by the first distributed replication equipment to be stored;
and the second storage data is the data to be stored, which is received by the second main storage server and stored in the first distributed replication equipment.
Specifically, a second primary storage server is further arranged at the end where data is received firstly, and the second primary storage server can still receive continuous data to be stored when the first primary 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 both stored in the first distributed replication device, and the arrangement mode is adopted, namely the two servers simultaneously use the same set of magnetic disk, when the data are sent to the standby server for backup, the data received by the first main storage server cannot be lost due to the fact that the first main storage server is obstructed, and the disaster tolerance capability 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 storage server with respect to the first primary storage server. Specifically, the first primary storage server preferentially receives data relative to the second primary storage server, and if the first primary storage server fails, the second primary 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 have a fault, and provides data transmission guarantee, so that data to be stored can be received, stored and backed up better.
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 preferentially receives data relative to the second backup storage server, and the second primary storage server is started to receive data only when the first backup storage server fails. The setting of the first backup storage server and the second backup storage server has substantially the same effect as the setting of the first main storage server and the second main storage server, and is not repeated herein.
Step 104: and if the first standby storage server fails, the first distributed replication equipment 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 backup storage server sends the first storage data to the second distributed replication 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 equipment for storage;
specifically, the second distributed replication block corresponds to the first distributed replication block of the first primary storage server and the second primary storage server, and the second distributed replication device has the same function as the first distributed replication device, 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 backup storage server fails, the second backup storage server sends the first storage data and the second storage data to the second distributed replication block device for storage.
Therefore, by setting the two main storage servers and the two standby storage servers, when data backup is carried out, and one server is abnormal or a network is abnormal, the other server can manage the existing data receiving, transmitting and backup tasks, continue to carry out the data receiving, transmitting and backup, and use the same distributed copying equipment for storage, thereby ensuring that the data is stored without being lost. From the previous single-point fault to the support of the multi-point fault, the safety performance is high, and the disaster tolerance capability is stronger; through the redundancy and data backup of the server, the system can not be paralyzed under the condition that a single point of failure occurs at the server end, and uninterrupted service can still be provided for the outside.
In some preferred embodiments of the present invention, the first primary storage server and the second primary storage server are redefined among the at least one first backup storage server and the at least one second backup storage server if both the first primary storage server and the second primary storage server fail.
That is, if the first primary storage server and the second primary storage server both fail, the data to be stored cannot be received and the backup of the data to be stored cannot be completed if the failure is not solved in time. 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 the at least one first backup storage server and the at least one second backup storage server, and the data to be stored is received in time. Of course, at the same time, the first standby storage server and the second standby storage server may be redefined in the at least one first standby storage server and the at least one second standby storage server. Therefore, in the invention, even if all the primary storage servers are in failure, the data transmission can still be uninterrupted by redefining the first primary storage server and the second primary storage server in the whole storage process.
Based on the same inventive concept, the invention also provides a storage device, comprising: the system comprises a first primary storage server, a first distributed replication device, a second primary 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 the 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 the 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 first storage data and receiving the first storage data and second storage data when the first main storage server fails;
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 copy block device is used for receiving data to be stored and storing the data as first storage data or storing the data as 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 primary storage server fails or to 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 primary 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 primary storage server fails or to 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 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.
The apparatus of the foregoing embodiment is used to implement the corresponding method in the foregoing embodiment, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the idea of the invention, also features in the above embodiments or in different embodiments may be combined, 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.
In addition, well known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown within the provided figures for simplicity of illustration and discussion, and so as not to obscure the invention. Furthermore, 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., 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 instead of restrictive.
While the present invention has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic ram (dram)) may use the discussed embodiments.
The embodiments of the invention are intended to embrace all such alternatives, modifications and variances that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, substitutions, improvements and the like that may be made without departing from the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (10)

1. The storage method according to claim 1, comprising:
the method comprises the steps that a first main storage server continuously receives data to be stored, the received data to be stored are 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 to be stored; if the first standby storage server fails, the first distributed replication equipment sends the first storage data to at least one second standby storage server for storage;
if the first primary storage server fails, starting a second primary storage server, receiving the data to be stored by the second primary storage server instead, and sending the data to be stored to the first distributed replication equipment to be stored as the second storage data; the first distributed replication equipment 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 equipment sends the first storage data and the second storage data to the second standby storage server for storage.
2. The storage method according to claim 1, further comprising:
the first backup storage server sends the first storage data to a second distributed replication block device for storage; if the first backup storage server fails, the second backup storage server sends the first storage data to the second distributed replication block device 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 device for storage; and if the first backup storage server fails, the second backup storage server sends the first storage data and the second storage data to the second distributed replication block device for storage.
3. The storage method according to claim 1, further comprising:
detecting whether the first primary storage server and the second primary storage server are in failure or not through heartbeat detection between the first primary storage server and the second primary storage server;
and detecting whether the first standby storage server and the second standby storage server have faults or not through heartbeat detection between the first standby storage server and the second standby storage server.
4. The storage method according to claim 1, further comprising: the first distributed replication equipment 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;
if the first main storage server fails, the first distributed replication equipment 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.
5. The storage method according to 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.
6. The storage method according to claim 1, further comprising:
redefining the first primary storage server and the second primary storage server in the at least one first backup storage server and the at least one second backup storage server if both the first primary storage server and the second primary storage server fail.
7. A memory device, comprising: the system comprises a first primary storage server, a first distributed replication device, a second primary 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 primary storage server is used for receiving the data to be stored and sending the data to be stored to the first distributed replication equipment to be stored as the second storage data when the first primary storage server fails;
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 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 configured to receive the data to be stored and store the data as the first storage data or store the data as the second storage data when the first primary 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 to 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 primary storage server fails or to the second backup storage server when the first backup storage server also fails.
8. The storage device of claim 7, further comprising: 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.
9. The storage device of claim 7, further comprising: 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 primary storage server fails or to send the first storage data and the second storage data to the second backup storage server if the first backup storage server fails.
10. The storage device of claim 7, 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.
CN201910291059.3A 2019-04-11 2019-04-11 Storage method and device thereof Active CN111813324B (en)

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 true CN111813324A (en) 2020-10-23
CN111813324B 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 (7)

* Cited by examiner, † Cited by third party
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
US20050172161A1 (en) * 2004-01-20 2005-08-04 International Business Machines Corporation Managing failover of J2EE compliant middleware in a high availability system
CN103974220A (en) * 2013-01-25 2014-08-06 中兴通讯股份有限公司 Strategy generating device and working method thereof and strategy generating system and working method thereof
US20160182638A1 (en) * 2011-10-11 2016-06-23 Tianjin Surdoc Corp. Cloud serving system and cloud serving method
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
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
US20050172161A1 (en) * 2004-01-20 2005-08-04 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
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
CN111813324B (en) 2024-03-12

Similar Documents

Publication Publication Date Title
US10834186B2 (en) Disaster recovery switchover method and system, and node
US10348616B2 (en) Packet transmission method and apparatus, and interconnect interface
US7370099B2 (en) Cluster computing system and its failover method
CN102882704B (en) Link protection method in the soft reboot escalation process of a kind of ISSU and equipment
CN105554130A (en) Distributed storage system-based NameNode switching method and switching device
CN109656753B (en) Redundant hot standby system applied to rail transit comprehensive monitoring system
CN111385107B (en) Main/standby switching processing method and device for server
CN102333206A (en) Monitoring storage system and method for improving reliability of monitoring storage
CN115269248B (en) Method and device for preventing brain fracture under double-node cluster, electronic equipment and storage medium
CN102891833B (en) Network disaster tolerance method and system
CN111031341A (en) Heartbeat-based dual-computer hot standby method
CN105812161B (en) A kind of controller failure backup method and system
CN108737188B (en) Network card fault switching system
CN102055605B (en) Disaster tolerance system and method applied to AAA (authentication, authorization and accounting) server
CN107526652B (en) Data synchronization method and storage device
KR101694298B1 (en) Apparatus for electing a master in redundancy system
CN105847723A (en) Video information backup method and apparatus
CN111813324B (en) Storage method and device thereof
CN106027313B (en) Network link disaster tolerance system and method
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
CN114301763A (en) Distributed cluster fault processing method and system, electronic device and storage medium
CN104506364A (en) Master-slave switching method, main control card and network equipment
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