CN108063832B - Cloud storage system and storage method thereof - Google Patents

Cloud storage system and storage method thereof Download PDF

Info

Publication number
CN108063832B
CN108063832B CN201810116071.6A CN201810116071A CN108063832B CN 108063832 B CN108063832 B CN 108063832B CN 201810116071 A CN201810116071 A CN 201810116071A CN 108063832 B CN108063832 B CN 108063832B
Authority
CN
China
Prior art keywords
data
storage
stored
storage server
ethernet switch
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
Application number
CN201810116071.6A
Other languages
Chinese (zh)
Other versions
CN108063832A (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.)
Shanghai Dimiantong Information Network Co ltd
Original Assignee
Shanghai Dimiantong Information Network 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 Shanghai Dimiantong Information Network Co ltd filed Critical Shanghai Dimiantong Information Network Co ltd
Priority to CN201810116071.6A priority Critical patent/CN108063832B/en
Publication of CN108063832A publication Critical patent/CN108063832A/en
Application granted granted Critical
Publication of CN108063832B publication Critical patent/CN108063832B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a cloud storage system and a storage method thereof. The system comprises: the system comprises a user side, a main storage server, a block synchronous storage server and an Ethernet switch; the system comprises a main storage server, a block synchronous storage server, a user side and a block synchronous storage server, wherein the user side is used for sending data to be stored to the main storage server and the block synchronous storage server; the main storage server is used for storing the data to be stored into first storage data and sending the first storage data to the Ethernet switch; wherein the first storage data comprises: equipment identification of a main storage server and data to be stored; the block synchronous storage server is used for storing the data to be stored into second storage data and sending the second storage data to the Ethernet switch; wherein the second storage data comprises: the method comprises the steps that equipment identification and data to be stored of a block synchronization storage server are obtained; and the Ethernet switch is used for receiving the first storage data and the second storage data and storing the first storage data or the second storage data.

Description

Cloud storage system and storage method thereof
Technical Field
The embodiment of the invention relates to the technical field of cloud storage, in particular to a cloud storage system and a storage method thereof.
Background
Cloud storage is an emerging network storage technology, and refers to a system which integrates a large number of different types of storage devices in a network through application software to cooperatively work through functions such as cluster application, network technology or a distributed file system, and provides data storage and service access functions to the outside. When the core of operation and processing of the cloud computing system is storage and management of a large amount of data, a large amount of storage devices need to be configured in the cloud computing system, and then the cloud computing system is converted into a cloud storage system, so that the cloud storage is the cloud computing system taking the data storage and management as the core. Briefly, cloud storage is an emerging solution for putting storage resources on the cloud for human access. The user can conveniently access data at any time and any place through connecting to the cloud through any internet-connected device.
Fig. 1 is a schematic structural diagram of a cloud storage system in the prior art. As shown in fig. 1, the cloud storage system may include: a user terminal 101, a cloud storage server 102 and an ethernet switch 103; the user side 101 is configured to send service requests for uploading data, deleting data, sharing data, and the like; the cloud storage server 102 is used for receiving and processing the service request; the ethernet switch 103 is used to receive and store service requests.
Therefore, to realize the high availability HA of the service, the high availability of the storage must be ensured; or, absent a high availability storage system, true high availability cannot be achieved. In order to ensure high availability of the cloud storage system, currently, when an enterprise client builds the cloud storage system, the cloud storage server generally needs to select a high-performance and high-price dedicated storage device, for example: FC-SAN, EMC or Netpapp, etc. And when the cloud storage server breaks down, the high availability of the cloud storage system cannot be ensured.
Disclosure of Invention
In view of this, embodiments of the present invention provide a cloud storage system and a storage method thereof, which can implement high availability of the cloud storage system.
In a first aspect, an embodiment of the present invention provides a cloud storage system, where the system includes: the system comprises a user side, a main storage server, a block synchronous storage server and an Ethernet switch; wherein the content of the first and second substances,
the user side is used for sending data to be stored to the main storage server and the block synchronous storage server;
the main storage server is used for storing the data to be stored into first storage data and sending the first storage data to the Ethernet switch; wherein the first storage data comprises: the device identification of the main storage server and the data to be stored;
the block synchronous storage server is used for storing the data to be stored into second storage data and sending the second storage data to the Ethernet switch; wherein the second storage data comprises: the device identification of the block synchronous storage server and the data to be stored;
the ethernet switch is configured to receive the first storage data and the second storage data, and store the first storage data or the second storage data.
In the above embodiment, the ethernet switch is specifically configured to determine whether data to be stored in the first storage data is the same as data to be stored in the second storage data; and when the data to be stored in the first storage data is the same as the data to be stored in the second storage data, storing the first storage data or the second storage data.
In the above embodiment, the ethernet switch is further configured to record, when the primary storage server fails, a first failure time period in which the primary storage server fails; when the main storage server recovers to be normal, sending the data to be stored in the first failure time period to the main storage server; or, the system is further configured to record a second failure time period when the block synchronous storage server fails; when the block synchronous storage server is recovered to be normal, sending the data to be stored in the second failure time period to the block synchronous storage server; wherein the Ethernet switch receives only the second stored data during the first failure time period; the Ethernet switch receives only the first stored data during the second failure time period.
In the above embodiment, the block synchronous storage server is specifically configured to send the data to be stored to a distributed replication block device DRBD corresponding to the block synchronous storage server;
the distributed replication block device is configured to store the data to be stored as the second storage data, and send the second storage data to the ethernet switch.
In the above embodiment, the system further includes: a network switch; wherein the content of the first and second substances,
the user side is specifically used for sending the data to be stored to the network switch;
the network switch is used for judging whether the data to be stored meet preset storage conditions or not; and when the data to be stored meets the preset storage condition, sending the data to be stored to the main storage server and the block synchronous storage server.
In a second aspect, an embodiment of the present invention provides a cloud storage method, where the method includes:
the user side sends the data to be stored to the main storage server and the block synchronous storage server;
the main storage server stores the data to be stored as first storage data and sends the first storage data to an Ethernet switch; wherein the first storage data comprises: the device identification of the main storage server and the data to be stored;
the block synchronous storage server stores the data to be stored as second storage data and sends the second storage data to the Ethernet switch; wherein the second storage data comprises: the device identification of the block synchronous storage server and the data to be stored;
and the Ethernet switch receives the first storage data and the second storage data and stores the first storage data or the second storage data.
In the above embodiment, the receiving, by the ethernet switch, the first storage data and the second storage data, and storing the first storage data or the second storage data includes:
the Ethernet switch judges whether the data to be stored in the first storage data is the same as the data to be stored in the second storage data;
and when the data to be stored in the first storage data is the same as the data to be stored in the second storage data, storing the first storage data or the second storage data.
In the above embodiment, the method further comprises:
when the primary storage server fails, the Ethernet switch records a first failure time period of the primary storage server; when the primary storage server is recovered to be normal, the Ethernet switch sends the data to be stored in the first failure time period to the primary storage server;
or when the block synchronous storage server fails, the Ethernet switch records a second failure time period of the block synchronous storage server; when the block synchronous storage server is recovered to be normal, the Ethernet switch sends the data to be stored in the second failure time period to the block synchronous storage server; wherein the Ethernet switch receives only the second stored data during the first failure time period; the Ethernet switch receives only the first stored data during the second failure time period.
In the above embodiment, the block synchronous storage server stores the data to be stored as second storage data, and sends the second storage data to an ethernet switch, including:
the block synchronous storage server sends the data to be stored to distributed replication block equipment corresponding to the block synchronous storage server;
and the distributed copy block equipment stores the data to be stored as the second storage data and sends the second storage data to the Ethernet switch.
In the above embodiment, the sending, by the user side, data to be stored to the main storage server and the block synchronous storage server includes:
the user side sends the data to be stored to the network switch;
the network switch judges whether the data to be stored meet preset storage conditions or not; and when the data to be stored meets the preset storage condition, sending the data to be stored to the main storage server and the block synchronous storage server.
The embodiment of the invention provides a cloud storage system and a storage method thereof.A user side firstly sends data to be stored to a main storage server and a block synchronous storage server; the main storage server stores the data to be stored as first storage data and sends the first storage data to the Ethernet switch; the block synchronous storage server stores the data to be stored as second storage data and sends the second storage data to the Ethernet switch; the Ethernet switch receives the first storage data and the second storage data and stores the first storage data or the second storage data. That is to say, in the technical solution of the present invention, the primary storage server and the block synchronous storage server may store the data to be stored as the first storage data and the second storage data, respectively, and then the primary storage server and the block synchronous storage server send the first storage data and the second storage data to the ethernet switch, respectively. And the existing cloud storage system includes: the system comprises a user side, a cloud storage server and an Ethernet switch; when the cloud storage server fails, the high availability of the cloud storage system cannot be guaranteed. Therefore, compared with the prior art, the cloud storage system and the storage method thereof provided by the embodiment of the invention can realize high availability of the cloud storage system; moreover, the technical scheme of the embodiment of the invention is simple and convenient to realize, convenient to popularize and wider in application range.
Drawings
Fig. 1 is a schematic structural diagram of a cloud storage system in the prior art;
fig. 2 is a schematic structural diagram of a cloud storage system according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a cloud storage system according to a second embodiment of the present invention;
fig. 4 is a flowchart of a cloud storage method according to a third embodiment of the present invention;
fig. 5 is a flowchart of a cloud storage method according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings.
Example one
Fig. 2 is a schematic structural diagram of a cloud storage system according to an embodiment of the present invention. As shown in fig. 2, the cloud storage system may include: a user terminal 201, a main storage server 202, a block synchronization storage server 203 and an Ethernet switch 204; wherein the content of the first and second substances,
the user side 201 is used for sending data to be stored to the main storage server 202 and the block synchronous storage server 203;
the primary storage server 202 is configured to store data to be stored as first storage data, and send the first storage data to the ethernet switch 204; wherein the first storage data comprises: device identification of the primary storage server 202 and data to be stored;
the block synchronous storage server 203 is configured to store data to be stored as second storage data, and send the second storage data to the ethernet switch 204; wherein the second storage data comprises: the device identification and the data to be stored of the block synchronization storage server 203;
the ethernet switch 204 is configured to receive the first storage data and the second storage data, and store the first storage data or the second storage data.
Specifically, in an embodiment of the present invention, the user terminal 201 may send the data to be stored to the primary storage server 202 through the first data link; meanwhile, the user terminal 201 may further send the data to be stored to the block synchronization storage server 203 through a second data link. The primary storage server 202 stores the data to be stored as first storage data, and sends the first storage data to the ethernet switch 204 through a third data link; the block synchronous storage server 203 stores the data to be stored as second storage data, and transmits the second storage data to the ethernet switch 204 through a fourth data link. After the ethernet switch 204 receives the first storage data sent by the primary storage server 202 and the second storage data sent by the block synchronization storage server 203, the ethernet switch 204 may first parse the first storage data and the second storage data, and obtain the device identifier and the data to be stored of the primary storage server 202 from the first storage data; meanwhile, acquiring the device identifier of the block synchronous storage server 203 and the data to be stored in the second storage data; then, the ethernet switch 204 may determine whether the data to be stored in the first storage data is the same as the data to be stored in the second storage data; when the data to be stored in the first storage data is the same as the data to be stored in the second storage data, the ethernet switch 204 may store the first storage data or the second storage data. That is, when the data to be stored in the first storage data is the same as the data to be stored in the second storage data, the ethernet switch 204 stores either the first storage data sent by the primary storage server 202 or the second storage data sent by the block synchronization storage server 203, instead of storing the first storage data and the second storage data at the same time. When the data to be stored in the first storage data is different from the data to be stored in the second storage data, the ethernet switch 204 stores the first storage data and the second storage data at the same time.
In particular embodiments of the present invention, when the primary storage server 202 fails, the ethernet switch 204 may record a first failure time period for which the primary storage server 202 fails; when the primary storage server 202 returns to normal, the ethernet switch 204 may send the data to be stored within the first failure time to the primary storage server 202; alternatively, when the block synchronization storage server 203 fails, the ethernet switch 204 may record a second failure time period in which the block synchronization storage server 203 fails; when the block synchronous storage server 203 returns to normal, the ethernet switch 204 may send the data to be stored in the second failure time to the block synchronous storage server 203; wherein the Ethernet switch receives only the second stored data during the first failure time period; the ethernet switch receives only the first stored data during the second failure time period.
In an embodiment of the present invention, the block synchronization storage server 203 may manage a plurality of distributed replication block devices DRBD, which are: distributed replication block device 1, distributed replication block devices 2, …, distributed replication block device M; wherein M is a natural number of 1 or more. When the block synchronous storage server 203 stores the data to be stored as the second storage data, the block synchronous storage server may first send the data to be stored to the distributed replication block device corresponding to the block synchronous storage server, then the distributed replication block device stores the data to be stored as the second storage data, and sends the second storage data to the ethernet switch 204. Preferably, in the embodiment of the present invention, the block synchronous storage server 203 may analyze the received data to be stored, extract a feature value corresponding to the data to be stored, and then send the data to be stored to the distributed copy block device corresponding to the feature value according to the feature value.
According to the cloud storage system provided by the embodiment of the invention, a user side firstly sends data to be stored to a main storage server and a block synchronous storage server; the main storage server stores the data to be stored as first storage data and sends the first storage data to the Ethernet switch; the block synchronous storage server stores the data to be stored as second storage data and sends the second storage data to the Ethernet switch; the Ethernet switch receives the first storage data and the second storage data and stores the first storage data or the second storage data. That is to say, in the technical solution of the present invention, the primary storage server and the block synchronous storage server may store the data to be stored as the first storage data and the second storage data, respectively, and then the primary storage server and the block synchronous storage server send the first storage data and the second storage data to the ethernet switch, respectively. And the existing cloud storage system includes: the system comprises a user side, a cloud storage server and an Ethernet switch; when the cloud storage server fails, the high availability of the cloud storage system cannot be guaranteed. Therefore, compared with the prior art, the cloud storage system provided by the embodiment of the invention can realize high availability of the cloud storage system; moreover, the technical scheme of the embodiment of the invention is simple and convenient to realize, convenient to popularize and wider in application range.
Example two
Fig. 3 is a schematic structural diagram of a cloud storage system according to a second embodiment of the present invention. As shown in fig. 3, the cloud storage system may include: a user side 201, a main storage server 202, a block synchronization storage server 203, an Ethernet switch 204 and a network switch 205; wherein the content of the first and second substances,
the user side is used for sending the data to be stored to the network switch 205;
the network switch 205 is configured to determine whether the data to be stored meets a preset storage condition; when the data to be stored meets the preset storage condition, sending the data to be stored to the main storage server 202 and the block synchronous storage server 203;
the primary storage server 202 is configured to store data to be stored as first storage data, and send the first storage data to the ethernet switch 204; wherein the first storage data comprises: device identification of the primary storage server 202 and data to be stored;
the block synchronous storage server 203 is used for storing the data to be stored as second storage data and sending the second storage data to the ethernet switch; wherein the second storage data comprises: the device identification and the data to be stored of the block synchronization storage server 203;
the ethernet switch 204 is configured to receive the first storage data and the second storage data, and store the first storage data or the second storage data.
Specifically, in the embodiment of the present invention, the user side 201 may first send the data to be stored to the network switch 205 through the firewall; the network switch 205 may determine whether the data to be stored satisfies a preset storage condition; for example, the network switch 205 may determine whether the data format of the data to be stored is the same as a preset data storage format. When the data to be stored meets the preset storage condition, the network switch 205 may send the data to be stored to the primary storage server 202 and the block synchronous storage server 203; when the data to be stored does not satisfy the preset storage condition, the network switch 205 may discard the data to be stored.
Specifically, in a specific embodiment of the present invention, after the primary storage server 202 receives the data to be stored sent by the network switch 205, the primary storage server 202 may store the data to be stored as the first storage data and send the first storage data to the ethernet server 204; after the block synchronous storage server 203 receives the data to be stored sent by the network switch 205, the block synchronous storage server 203 may store the data to be stored as second storage data and send the second storage data to the ethernet server 204. After the ethernet switch 204 receives the first storage data sent by the primary storage server 202 and the second storage data sent by the block synchronization storage server, the ethernet switch 204 may first parse the first storage data and the second storage data, and obtain the device identifier and the data to be stored of the primary storage server 202 from the first storage data; meanwhile, acquiring the device identifier of the block synchronous storage server 203 and the data to be stored in the second storage data; then, the ethernet switch 204 may determine whether the data to be stored in the first storage data is the same as the data to be stored in the second storage data; when the data to be stored in the first storage data is the same as the data to be stored in the second storage data, the ethernet switch 204 may store the first storage data or the second storage data. That is, when the data to be stored in the first storage data is the same as the data to be stored in the second storage data, the ethernet switch 204 stores either the first storage data sent by the primary storage server 202 or the second storage data sent by the block synchronization storage server 203, instead of storing the first storage data and the second storage data at the same time. When the data to be stored in the first storage data is different from the data to be stored in the second storage data, the ethernet switch 204 stores the first storage data and the second storage data at the same time.
In particular embodiments of the present invention, when the primary storage server 202 fails, the ethernet switch 204 may record a first failure time period for which the primary storage server 202 fails; when the primary storage server 202 returns to normal, the ethernet switch 204 may send the data to be stored within the first failure time to the primary storage server 202; alternatively, when the block synchronization storage server 203 fails, the ethernet switch 204 may record a second failure time period in which the block synchronization storage server 203 fails; when the block synchronous storage server 203 returns to normal, the ethernet switch 204 may send the data to be stored in the second failure time to the block synchronous storage server 203; wherein the ethernet switch 204 receives only the second stored data during the first failure time; the ethernet switch 204 receives only the first stored data during the second failure time period. That is, in a specific embodiment of the present invention, when the primary storage server 202 fails, the ethernet switch 204 may receive the second storage data through the block synchronization storage server 203; when the block synchronous storage server 203 fails, the ethernet switch 204 may receive the first storage data through the primary storage server 202. When the primary storage server 202 returns to normal, the ethernet switch 204 sends the data to be stored in the first failure time to the primary storage server 202; when the block synchronous storage server 203 returns to normal, the ethernet switch 204 sends the data to be stored in the second failure time to the block synchronous storage server 202.
According to the cloud storage system provided by the embodiment of the invention, a user side firstly sends data to be stored to a main storage server and a block synchronous storage server; the main storage server stores the data to be stored as first storage data and sends the first storage data to the Ethernet switch; the block synchronous storage server stores the data to be stored as second storage data and sends the second storage data to the Ethernet switch; the Ethernet switch receives the first storage data and the second storage data and stores the first storage data or the second storage data. That is to say, in the technical solution of the present invention, the primary storage server and the block synchronous storage server may store the data to be stored as the first storage data and the second storage data, respectively, and then the primary storage server and the block synchronous storage server send the first storage data and the second storage data to the ethernet switch, respectively. And the existing cloud storage system includes: the system comprises a user side, a cloud storage server and an Ethernet switch; when the cloud storage server fails, the high availability of the cloud storage system cannot be guaranteed. Therefore, compared with the prior art, the cloud storage system provided by the embodiment of the invention can realize high availability of the cloud storage system; moreover, the technical scheme of the embodiment of the invention is simple and convenient to realize, convenient to popularize and wider in application range.
EXAMPLE III
Fig. 4 is a flowchart of a cloud storage method provided by the third embodiment of the present invention. As shown in fig. 4, the cloud storage method may include the steps of:
s401, the user side sends the data to be stored to the main storage server and the block synchronous storage server.
In an embodiment of the present invention, the user side may send the data to be stored to the main storage server and the block synchronization storage server through the firewall. Specifically, the user side can send the data to be stored to the main storage server through the first data link; meanwhile, the user side can also send the data to be stored to the block synchronous storage server through a second data link.
S402, the primary storage server stores the data to be stored into first storage data and sends the first storage data to the Ethernet switch.
In a specific embodiment of the present invention, after receiving data to be stored sent by a user side, a primary storage server may store the data to be stored as first storage data, and send the first storage data to an ethernet switch through a third data link; wherein the first storage data comprises: device identification of the primary storage server and data to be stored.
S403, the block synchronous storage server stores the data to be stored as second storage data and sends the second storage data to the Ethernet switch.
In a specific embodiment of the present invention, after the block synchronous secondary storage server receives the data to be stored sent by the user side, the block synchronous storage server may store the data to be stored as second storage data, and send the second storage data to the ethernet switch through a fourth data link; wherein the second storage data comprises: and the block synchronization storage server identifies the equipment and the data to be stored.
S404, the Ethernet switch receives the first storage data and the second storage data and stores the first storage data or the second storage data.
In a specific embodiment of the present invention, after receiving first storage data sent by a primary storage server and second storage data sent by a block synchronization storage server, an ethernet switch may first parse the first storage data and the second storage data, and obtain, in the first storage data, an equipment identifier of the primary storage server and data to be stored; simultaneously acquiring the equipment identification of the block synchronous storage server and the data to be stored in the second storage data; then the ethernet switch can judge whether the data to be stored in the first storage data is the same as the data to be stored in the second storage data; when the data to be stored in the first storage data is the same as the data to be stored in the second storage data, the ethernet switch may store the first storage data or the second storage data. That is, when the data to be stored in the first storage data is the same as the data to be stored in the second storage data, the ethernet switch stores either the first storage data sent by the primary storage server or the second storage data sent by the block synchronization storage server, instead of storing the first storage data and the second storage data at the same time. When the data to be stored in the first storage data is different from the data to be stored in the second storage data, the Ethernet switch stores the first storage data and the second storage data at the same time.
In a specific embodiment of the present invention, when the primary storage server fails, the ethernet switch may record a first failure time period in which the primary storage server fails; when the primary storage server recovers to be normal, the Ethernet switch can send the data to be stored in the first failure time to the primary storage server; or, when the block synchronous storage server fails, the ethernet switch may record a second failure time period in which the block synchronous storage server fails; when the block synchronous storage server is recovered to be normal, the ethernet switch may send the data to be stored in the second failure time to the block synchronous storage server.
According to the cloud storage method provided by the embodiment of the invention, a user side firstly sends data to be stored to a main storage server and a block synchronous storage server; the main storage server stores the data to be stored as first storage data and sends the first storage data to the Ethernet switch; the block synchronous storage server stores the data to be stored as second storage data and sends the second storage data to the Ethernet switch; the Ethernet switch receives the first storage data and the second storage data and stores the first storage data or the second storage data. That is to say, in the technical solution of the present invention, the primary storage server and the block synchronous storage server may store the data to be stored as the first storage data and the second storage data, respectively, and then the primary storage server and the block synchronous storage server send the first storage data and the second storage data to the ethernet switch, respectively. And the existing cloud storage system includes: the system comprises a user side, a cloud storage server and an Ethernet switch; when the cloud storage server fails, the high availability of the cloud storage system cannot be guaranteed. Therefore, compared with the prior art, the cloud storage method provided by the embodiment of the invention can realize high availability of the cloud storage system; moreover, the technical scheme of the embodiment of the invention is simple and convenient to realize, convenient to popularize and wider in application range.
Example four
Fig. 5 is a flowchart of a cloud storage method according to a fourth embodiment of the present invention. As shown in fig. 5, the cloud storage method may include the steps of:
s501, the user side sends the data to be stored to a network switch.
In an embodiment of the present invention, the user side may send the data to be stored to the network switch through the firewall.
And S502, when the data to be stored meet the preset storage condition, the network switch sends the data to be stored to the main storage server and the block synchronous storage server.
In the specific embodiment of the invention, after the network switch receives the data to be stored sent by the user side, the network switch can firstly judge whether the data to be stored meets the preset storage condition; for example, the network switch may determine whether the data format of the data to be stored is the same as a preset data storage format. When the data to be stored meets the preset storage condition, the network switch can send the data to be stored to the main storage server and the block synchronous storage server; when the data to be stored does not meet the preset storage condition, the network switch may discard the data to be stored.
S503, the primary storage server stores the data to be stored as first storage data and sends the first storage data to the Ethernet switch.
In a specific embodiment of the present invention, after receiving the data to be stored sent by the network switch, the primary storage server may store the data to be stored as the first storage data, and send the first storage data to the ethernet switch through the third data link.
S504, the block synchronous storage server stores the data to be stored as second storage data and sends the second storage data to the Ethernet switch.
In a specific embodiment of the present invention, after the block synchronous storage server receives the data to be stored sent by the network switch, the block synchronous storage server may store the data to be stored as second storage data, and send the second storage data to the ethernet switch through a fourth data link.
S505, the Ethernet switch receives the first storage data and the second storage data and stores the first storage data or the second storage data.
In a specific embodiment of the present invention, after receiving first storage data sent by a primary storage server and second storage data sent by a block synchronization storage server, an ethernet switch may first parse the first storage data and the second storage data, and obtain, in the first storage data, an equipment identifier of the primary storage server and data to be stored; simultaneously acquiring the equipment identification of the block synchronous storage server and the data to be stored in the second storage data; then the ethernet switch can judge whether the data to be stored in the first storage data is the same as the data to be stored in the second storage data; when the data to be stored in the first storage data is the same as the data to be stored in the second storage data, the ethernet switch may store the first storage data or the second storage data. That is, when the data to be stored in the first storage data is the same as the data to be stored in the second storage data, the ethernet switch stores either the first storage data sent by the primary storage server or the second storage data sent by the block synchronization storage server, instead of storing the first storage data and the second storage data at the same time. When the data to be stored in the first storage data is different from the data to be stored in the second storage data, the Ethernet switch stores the first storage data and the second storage data at the same time.
According to the cloud storage method provided by the embodiment of the invention, a user side firstly sends data to be stored to a main storage server and a block synchronous storage server; the main storage server stores the data to be stored as first storage data and sends the first storage data to the Ethernet switch; the block synchronous storage server stores the data to be stored as second storage data and sends the second storage data to the Ethernet switch; the Ethernet switch receives the first storage data and the second storage data and stores the first storage data or the second storage data. That is to say, in the technical solution of the present invention, the primary storage server and the block synchronous storage server may store the data to be stored as the first storage data and the second storage data, respectively, and then the primary storage server and the block synchronous storage server send the first storage data and the second storage data to the ethernet switch, respectively. And the existing cloud storage system includes: the system comprises a user side, a cloud storage server and an Ethernet switch; when the cloud storage server fails, the high availability of the cloud storage system cannot be guaranteed. Therefore, compared with the prior art, the cloud storage method provided by the embodiment of the invention can realize high availability of the cloud storage system; moreover, the technical scheme of the embodiment of the invention is simple and convenient to realize, convenient to popularize and wider in application range.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A cloud storage system, the system comprising: the system comprises a user side, a main storage server, a block synchronous storage server and an Ethernet switch; wherein the content of the first and second substances,
the user side is used for sending data to be stored to the main storage server and the block synchronous storage server;
the main storage server is used for storing the data to be stored into first storage data and sending the first storage data to the Ethernet switch; wherein the first storage data comprises: the device identification of the main storage server and the data to be stored;
the block synchronous storage server is used for storing the data to be stored into second storage data and sending the second storage data to the Ethernet switch; wherein the second storage data comprises: the device identification of the block synchronous storage server and the data to be stored;
the ethernet switch is configured to receive the first storage data and the second storage data, and store the first storage data or the second storage data.
2. The system according to claim 1, wherein the ethernet switch is specifically configured to determine whether data to be stored in the first stored data is the same as data to be stored in the second stored data; and when the data to be stored in the first storage data is the same as the data to be stored in the second storage data, storing the first storage data or the second storage data.
3. The system of claim 1, wherein the ethernet switch is further configured to record a first failure time period of the primary storage server failure when the primary storage server fails; when the main storage server recovers to be normal, sending the data to be stored in the first failure time period to the main storage server; or, the system is further configured to record a second failure time period when the block synchronous storage server fails; when the block synchronous storage server is recovered to be normal, sending the data to be stored in the second failure time period to the block synchronous storage server; wherein the Ethernet switch receives only the second stored data during the first failure time period; the Ethernet switch receives only the first stored data during the second failure time period.
4. The system according to claim 1, wherein the block synchronous storage server is specifically configured to send the data to be stored to a distributed replication block device DRBD corresponding thereto;
the distributed replication block device is configured to store the data to be stored as the second storage data, and send the second storage data to the ethernet switch.
5. The system of claim 1, further comprising: a network switch; wherein the content of the first and second substances,
the user side is specifically used for sending the data to be stored to the network switch;
the network switch is used for judging whether the data to be stored meet preset storage conditions or not; and when the data to be stored meets the preset storage condition, sending the data to be stored to the main storage server and the block synchronous storage server.
6. A cloud storage method, the method comprising:
the user side sends the data to be stored to the main storage server and the block synchronous storage server;
the main storage server stores the data to be stored as first storage data and sends the first storage data to an Ethernet switch; wherein the first storage data comprises: the device identification of the main storage server and the data to be stored;
the block synchronous storage server stores the data to be stored as second storage data and sends the second storage data to the Ethernet switch; wherein the second storage data comprises: the device identification of the block synchronous storage server and the data to be stored;
and the Ethernet switch receives the first storage data and the second storage data and stores the first storage data or the second storage data.
7. The method of claim 6, wherein the Ethernet switch receiving the first stored data and the second stored data and storing the first stored data or the second stored data comprises:
the Ethernet switch judges whether the data to be stored in the first storage data is the same as the data to be stored in the second storage data;
and when the data to be stored in the first storage data is the same as the data to be stored in the second storage data, storing the first storage data or the second storage data.
8. The method of claim 6, further comprising:
when the primary storage server fails, the Ethernet switch records a first failure time period of the primary storage server; when the primary storage server is recovered to be normal, the Ethernet switch sends the data to be stored in the first failure time period to the primary storage server;
or when the block synchronous storage server fails, the Ethernet switch records a second failure time period of the block synchronous storage server; when the block synchronous storage server is recovered to be normal, the Ethernet switch sends the data to be stored in the second failure time period to the block synchronous storage server; wherein the Ethernet switch receives only the second stored data during the first failure time period; the Ethernet switch receives only the first stored data during the second failure time period.
9. The method of claim 6, wherein the block synchronous storage server stores the data to be stored as second storage data and sends the second storage data to an Ethernet switch, and comprises:
the block synchronous storage server sends the data to be stored to distributed replication block equipment corresponding to the block synchronous storage server;
and the distributed copy block equipment stores the data to be stored as the second storage data and sends the second storage data to the Ethernet switch.
10. The method of claim 6, wherein the sending the data to be stored to the primary storage server and the block synchronization storage server by the user side comprises:
the user side sends the data to be stored to a network switch;
the network switch judges whether the data to be stored meet preset storage conditions or not; and when the data to be stored meets the preset storage condition, sending the data to be stored to the main storage server and the block synchronous storage server.
CN201810116071.6A 2018-02-06 2018-02-06 Cloud storage system and storage method thereof Active CN108063832B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810116071.6A CN108063832B (en) 2018-02-06 2018-02-06 Cloud storage system and storage method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810116071.6A CN108063832B (en) 2018-02-06 2018-02-06 Cloud storage system and storage method thereof

Publications (2)

Publication Number Publication Date
CN108063832A CN108063832A (en) 2018-05-22
CN108063832B true CN108063832B (en) 2021-04-30

Family

ID=62134639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810116071.6A Active CN108063832B (en) 2018-02-06 2018-02-06 Cloud storage system and storage method thereof

Country Status (1)

Country Link
CN (1) CN108063832B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108776648A (en) * 2018-05-28 2018-11-09 郑州云海信息技术有限公司 Data transmission method, system and FPGA isomeries accelerator card and storage medium
CN109240616B (en) * 2018-08-30 2022-02-22 重庆富民银行股份有限公司 Construction method of storage device
CN109101200B (en) * 2018-08-30 2022-02-22 重庆富民银行股份有限公司 Disk storage system of cross-network real-time bidirectional synchronization
CN111813324B (en) * 2019-04-11 2024-03-12 北京鲸鲨软件科技有限公司 Storage method and device thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571686A (en) * 2010-12-09 2012-07-11 中国科学院沈阳计算技术研究所有限公司 Method for realizing cloud conference system
CN103763383A (en) * 2014-01-27 2014-04-30 西安雷迪维护系统设备有限公司 Integrated cloud storage system and storage method thereof
CN106170014A (en) * 2016-07-11 2016-11-30 安徽斗转星移信息科技有限公司 A kind of cloud storage system and method
CN206743298U (en) * 2017-06-09 2017-12-12 贵州财经大学 A kind of big data specialty cloud storage service device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI476586B (en) * 2011-07-13 2015-03-11 Inst Information Industry Cloud-based test system, method and computer readable storage medium storing thereof
US9690671B2 (en) * 2013-11-01 2017-06-27 Cloudera, Inc. Manifest-based snapshots in distributed computing environments

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571686A (en) * 2010-12-09 2012-07-11 中国科学院沈阳计算技术研究所有限公司 Method for realizing cloud conference system
CN103763383A (en) * 2014-01-27 2014-04-30 西安雷迪维护系统设备有限公司 Integrated cloud storage system and storage method thereof
CN106170014A (en) * 2016-07-11 2016-11-30 安徽斗转星移信息科技有限公司 A kind of cloud storage system and method
CN206743298U (en) * 2017-06-09 2017-12-12 贵州财经大学 A kind of big data specialty cloud storage service device

Also Published As

Publication number Publication date
CN108063832A (en) 2018-05-22

Similar Documents

Publication Publication Date Title
CN108063832B (en) Cloud storage system and storage method thereof
US20210036907A1 (en) Methods and apparatuses for pushing a message
EP2563062B1 (en) Long connection management apparatus and link resource management method for long connection communication
WO2020147331A1 (en) Micro-service monitoring method and system
CN109547512B (en) NoSQL-based distributed Session management method and device
CN108322358B (en) Method and device for sending, processing and consuming multi-live distributed messages in different places
US11218541B2 (en) Data storage method, storage server, and storage medium and system
CN109218349A (en) A kind of method and device of management server cluster
CN106100914B (en) Cloud AC alarm information pushing method and system
CN106959820B (en) Data extraction method and system
US20230042747A1 (en) Message Processing Method and Device, Storage Medium, and Electronic Device
CN112052227A (en) Data change log processing method and device and electronic equipment
CN110601891B (en) Alarm processing method and related device
CN109710502B (en) Log transmission method, device and storage medium
CN111225003B (en) NFS node configuration method and device
CN107276857A (en) A kind of method and device for monitoring flow
CN112835978A (en) Data storage method and device and computer equipment
CN100423514C (en) Data synchronization method in distributed equipment according to address resolution protocol
CN109510730A (en) Distributed system and its monitoring method, device, electronic equipment and storage medium
US20190124162A1 (en) Automatic server cluster discovery
US10860580B2 (en) Information processing device, method, and medium
CN111106966B (en) Information processing method and device, equipment and storage medium
CN103795810A (en) Data distribution system and method and central server of data distribution system
CN110191346B (en) Cloud management method and device and computer readable storage medium
CN110324293B (en) Traffic data processing system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant