[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN109144788B - Method, device and system for reconstructing OSD - Google Patents

Method, device and system for reconstructing OSD Download PDF

Info

Publication number
CN109144788B
CN109144788B CN201811051405.2A CN201811051405A CN109144788B CN 109144788 B CN109144788 B CN 109144788B CN 201811051405 A CN201811051405 A CN 201811051405A CN 109144788 B CN109144788 B CN 109144788B
Authority
CN
China
Prior art keywords
osd
reconstruction
storage node
script
condition
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
CN201811051405.2A
Other languages
Chinese (zh)
Other versions
CN109144788A (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.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and 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 Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201811051405.2A priority Critical patent/CN109144788B/en
Publication of CN109144788A publication Critical patent/CN109144788A/en
Application granted granted Critical
Publication of CN109144788B publication Critical patent/CN109144788B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/142Reconfiguring to eliminate the error

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method, a device and a system for reconstructing OSD, wherein the method comprises the following steps: the storage node monitors the state of OSD in the node; when the storage node monitors that the OSD is in an abnormal state, determining whether the OSD meets a reconstruction condition or not by using a reconstruction judgment script; and when the storage node determines that the OSD meets the reconstruction condition, reconstructing the OSD by using a reconstruction script. The whole process of the invention is realized by automation, the judgment time can be greatly shortened, the OSD reconstruction efficiency is improved, and the problem of manual misjudgment or missed judgment can be solved by utilizing the automation to judge whether the OSD can be reconstructed, so that the OSD reconstruction accuracy is improved.

Description

Method, device and system for reconstructing OSD
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, and a system for reconstructing an OSD.
Background
Ceph is a highly available, easily managed, open source distributed storage system. The Ceph Storage Device (Object Storage Device) is the most important component of a Ceph Storage cluster, and OSD stores data in the form of objects on physical disks of each Storage node in the cluster. The processing method after the abnormal state of the OSD, such as the OSD hang-up (down), is to restart the OSD and rebuild the OSD.
For the OSD of each storage node, a corresponding OSD copy can be set on the slave node, and the user request can be processed by the OSD copy during the abnormal period of the OSD. When the OSD is restarted, the restarted OSD synchronizes the data stored in the abnormal period in the OSD copy disk into the disk of the OSD, and meanwhile, the OSD copy also stops processing the user request. If the abnormal time of the OSD state lasts for a long time and the time consumed for restarting the OSD is long, the user request can be blocked for a long time to influence the normal reading and writing of the user, and the OSD can be selected to be rebuilt in order to avoid the situation.
At present, the reconstruction of the OSD usually takes a long time by artificially judging whether the OSD meets the reconstruction condition and then determining whether the OSD is reconstructed, and the OSD reconstruction is not timely, and when the OSD meets the reconstruction condition by artificially judging, the problems of misjudgment or missed judgment and the like are easy to occur. If the OSD with abnormal state is not reconstructed in time, and the only remaining OSD copy has a disk failure, data loss will be caused. And if the OSD is not recovered for a long time, when the OSD is reconstructed again, the data recovery in the reconstruction process takes longer time. Therefore, after the OSD is abnormal, the reconstruction speed is faster, and the system performance is more stable.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a method, an apparatus, and a system for reconstructing an OSD. The technical scheme is as follows:
in a first aspect, a method for reconstructing an OSD is provided, where the method includes:
the storage node monitors the state of OSD in the node;
when the storage node monitors that the OSD is in an abnormal state, determining whether the OSD meets a reconstruction condition or not by using a reconstruction judgment script;
and when the storage node determines that the OSD meets the reconstruction condition, reconstructing the OSD by using a reconstruction script.
Optionally, when the storage node monitors that the OSD is in an abnormal state, determining whether the OSD meets the reconstruction condition by using a reconstruction judgment script, including:
when the storage node monitors that the OSD is in an abnormal state, OSD abnormal information is sent to a central node;
the central node receives the OSD abnormal information and sends reconstruction detection information to the storage node, wherein the reconstruction detection information comprises the reconstruction judgment script;
and the storage node receives the reconstruction detection information and determines whether the OSD meets the reconstruction condition or not by using the reconstruction judgment script.
Optionally, the determining, by the storage node, whether the OSD satisfies the reconstruction condition by using a reconstruction judgment script includes:
the storage node determines whether an object stored in a solitary form exists in a disk of the OSD;
if not, determining that the OSD meets the reconstruction condition;
if so, determining that the OSD does not satisfy the reconstruction condition.
Optionally, the determining, by the storage node, whether the OSD satisfies the reconstruction condition by using a reconstruction judgment script further includes:
the storage node determines whether the OSD belongs to a local computer, whether an object stored in a solitary form exists in a disk of the OSD and whether the OSD is in an abnormal state based on the reconstruction detection information;
if the OSD belongs to the local computer, no object stored in a solitary form exists in a disk of the OSD and the OSD is in an abnormal state, determining that the OSD meets the reconstruction condition, and otherwise, determining that the OSD does not meet the reconstruction condition.
Optionally, when the storage node determines that the OSD satisfies the reconstruction condition, reconstructing the OSD by using a reconstruction script includes:
when the storage node determines that the OSD meets the reconstruction condition, reconstruction information is sent to a central node;
the central node receives the reconstruction information and sends the reconstruction script to the storage node;
and the storage node receives the reconstruction script and reconstructs the OSD by using the reconstruction script.
Optionally, when the storage node determines that the OSD satisfies the reconstruction condition, after reconstructing the OSD by using a reconstruction script, the method includes:
the storage node sends a reconstruction result to the central node
In a second aspect, an apparatus for reconstructing an OSD is provided, including:
the monitoring module is used for monitoring the state of OSD in the node;
the determining module is used for determining whether the OSD meets reconstruction conditions or not by utilizing a reconstruction judging script when the OSD is in an abnormal state;
and the reconstruction module is used for reconstructing the OSD by using a reconstruction script when the OSD meets the reconstruction condition.
Optionally, the determining module is configured to:
when the OSD is in an abnormal state, sending OSD abnormal information to a central node, so that the central node sends reconstruction detection information to the storage node based on the OSD abnormal information, wherein the reconstruction detection information comprises the reconstruction judgment script;
and receiving the reconstruction detection information sent by the central node, and determining whether the OSD meets the reconstruction condition or not by using the reconstruction judgment script.
Optionally, the determining module is further configured to:
determining whether an object stored in a solitary form exists in a disk of the OSD;
if not, determining that the OSD meets the reconstruction condition;
if so, determining that the OSD does not satisfy the reconstruction condition.
Optionally, the determining module is further configured to:
determining whether the OSD belongs to a local machine, whether an object stored in a solitary form exists in a disk of the OSD and whether the OSD is in an abnormal state based on the reconstruction detection information;
if the OSD belongs to the local computer, no object stored in a solitary form exists in a disk of the OSD and the OSD is in an abnormal state, determining that the OSD meets the reconstruction condition, and otherwise, determining that the OSD does not meet the reconstruction condition.
Optionally, the reconstruction module is configured to:
when the OSD meets the reconstruction condition, reconstruction information is sent to a central node, so that the central node sends the reconstruction script to the storage node based on the reconstruction information;
and receiving the reconstruction script sent by the central node, and reconstructing the OSD by using the reconstruction script.
Optionally, the reconstruction module is further configured to:
and after the OSD is reconstructed, transmitting a reconstruction result to the central node.
In a third aspect, a system for reconstructing an OSD is provided, which includes a storage node and a central node;
said storage node comprising means for reconstructing an OSD of the first aspect;
and the central node is used for receiving the reconstruction result sent by the storage node.
Optionally, the central node is further configured to receive OSD abnormal information sent by a storage node, and send reconstruction detection information to the storage node based on the OSD abnormal information, where the reconstruction detection information includes the reconstruction judgment script, so that the storage node determines whether the OSD satisfies the reconstruction condition by using the reconstruction judgment script.
Optionally, the central node is further configured to receive reconstruction information sent by a storage node, and send a reconstruction script to the storage node based on the reconstruction information, so that the storage node reconstructs the OSD by using the reconstruction script.
The embodiment of the invention can monitor the state of the OSD in real time, when the abnormal state of the OSD is monitored, the reconstruction judgment script is used for determining whether the OSD meets the reconstruction condition, when the reconstruction condition of the OSD is determined, the reconstruction script is used for reconstructing the OSD, the whole process is realized by automation, the judgment time can be greatly shortened, the OSD reconstruction efficiency is improved, in addition, whether the OSD can be reconstructed or not is judged by automation, the problem of manual misjudgment or missed judgment can be solved, and the OSD reconstruction accuracy is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a method for reconstructing an OSD according to an embodiment of the present invention;
fig. 2 is a block diagram illustrating an apparatus for reconstructing an OSD according to an embodiment of the present invention;
fig. 3 is a block diagram of a system for reconstructing an OSD 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, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The embodiment of the invention provides a method for reconstructing OSD, which is mainly realized by a storage node. The storage node may be any storage node in a distributed storage system for processing user requests, such as data writing, data reading, and the like. The storage node may include a processor, a memory, and a transceiver, wherein the processor may be configured to perform OSD reconstruction in the following procedure, the memory may be configured to store data required and generated in the following OSD reconstruction, and the transceiver may be configured to receive and transmit related data in the following OSD reconstruction.
Referring to fig. 1, a flowchart of a method for reconstructing an OSD according to an embodiment of the present invention may specifically include the following steps.
Step 101, a storage node monitors the state of the OSD in the node.
Each storage node may include one OSD or a plurality of OSDs. The storage node can monitor the states of the OSD in the node in real time. Generally, when the OSD is in the up state, the OSD is in the normal state, and can provide services normally, and when the OSD is in the abnormal state, the OSD is in the abnormal state. And step 102, when the storage node monitors that the OSD is in an abnormal state, determining whether the OSD meets the reconstruction condition by using a reconstruction judgment script.
In implementation, the reconstruction judgment script may be stored in the storage node in advance, and when the storage node monitors that the OSD is in an abnormal state, the pre-stored reconstruction judgment script may be called to determine whether the OSD may be reconstructed. Specifically, the storage node may determine whether an object stored in an orphan form exists in a disk of the OSD, and if not, determine that the OSD satisfies the reconstruction condition, otherwise, determine that the OSD does not satisfy the reconstruction condition. The orphan is a storage object only existing in a disk of one available OSD, and if the orphan of the storage object exists in a disk of an abnormal OSD and the OSD is reconstructed, data loss may be caused, so in the OSD reconstruction process, it is necessary to determine whether the orphan exists in the OSD to be reconstructed.
When judging whether the disk of the OSD has the object stored in the form of an orphan, the judgment can be made by looking up a PG (place Group) state. The PG is the basic unit that constitutes the storage pool, and each storage object is mapped fixedly into a PG, which is similar to an index in a database. Because there are copies of the OSD, the same memory object may be stored in disks for multiple OSDs. When judging whether the storage object orphan exists in the disk of the current OSD, whether the storage object only has one available state copy is determined according to the copy state of the PG corresponding to each storage object, if yes, the storage object is the orphan, and it is determined that the storage object orphan exists in the disk of the current OSD, and the current OSD does not meet the reconstruction condition. Optionally, the OSD reconstruction condition may further specify a minimum copy number value of the storage object, and when the number of copies of the storage object remaining in the disk of the OSD is smaller than the minimum value, it indicates that the current OSD does not satisfy the reconstruction condition.
Preferably, the embodiment of the present invention may also adopt a central management mode, that is, the storage node is managed by the central node. In the central management mode, the reconstruction judgment script can be stored in the central node, and when the storage node monitors that the OSD is in an abnormal state, the reconstruction judgment script is obtained from the central node.
The process of obtaining the reconstruction judgment script from the central node and performing reconstruction judgment may include: when the storage node monitors that the OSD is in an abnormal state, OSD abnormal information is sent to a central node, the central node receives the OSD abnormal information and sends reconstruction detection information to the storage node, the reconstruction detection information comprises a reconstruction judgment script, and the storage node receives the reconstruction detection information and determines whether the OSD meets the reconstruction condition or not by using the reconstruction judgment script.
The OSD exception information sent by the storage node to the central node may include an identification of the storage node and an identification of the OSD in an exception state. The reconstruction detection information sent by the central node to the storage node may further include an identifier of the OSD in an abnormal state. The process that the storage node determines whether the OSD meets the reconstruction condition by using the reconstruction judgment script sent by the central node may include: the storage node determines whether the OSD belongs to a local computer, whether an object stored in a solitary form exists in a disk of the OSD and whether the OSD is in an abnormal state based on the reconstruction detection information; if the OSD belongs to the local computer, no object stored in a solitary form exists in a disk of the OSD and the OSD is in an abnormal state, determining that the OSD meets the reconstruction condition, and otherwise, determining that the OSD does not meet the reconstruction condition.
Optionally, the process of determining, by the storage node, whether the OSD satisfies the reconstruction condition specifically includes: the storage node determines whether the OSD belongs to a local machine or not based on the reconstruction detection information; when the storage node determines that the OSD belongs to the local computer, determining whether an object stored in a solitary form exists in a disk of the OSD or not; when the storage node determines that no object stored in a solitary form exists in a disk of the OSD, determining whether the OSD is in an abnormal state; and when the storage node determines that the OSD is in an abnormal state, determining that the OSD meets the reconstruction condition. In the process of determining whether the OSD satisfies the reconstruction condition, if any condition does not satisfy the requirement, the storage node may determine that the OSD does not satisfy the reconstruction condition, and end the process.
Optionally, when the storage node monitors that the OSD is in an abnormal state, when the reconstruction judgment script pre-stored in the storage node is used to determine whether the OSD meets the reconstruction condition, OSD abnormal information may be sent to the central node, so that the central node knows the abnormal condition of the OSD, and the central node is convenient to manage in a centralized manner.
And 103, when the storage node determines that the OSD meets the reconstruction condition, reconstructing the OSD by using a reconstruction script.
In implementation, the reconstruction script may be pre-stored in the storage node, and when the storage node determines that the OSD satisfies the reconstruction condition, the pre-stored reconstruction script may be called to reconstruct the OSD.
Preferably, in a central management manner, the reconstruction condition may be stored in the central node, and when the storage node determines that the OSD satisfies the reconstruction condition, the reconstruction judgment script may be obtained from the central node. The process of obtaining the reconstruction script from the central node and reconstructing the OSD may include: when the storage node determines that the OSD meets the reconstruction condition, reconstruction information is sent to a central node; the central node receives the reconstruction information and sends the reconstruction script to the storage node; and the storage node receives the reconstruction script and reconstructs the OSD by using the reconstruction script.
When the storage node determines that the OSD does not meet the reconstruction condition, the storage node may send information that the OSD does not meet the reconstruction condition to the central node, and after receiving the information, the central node may not send a reconstruction script to the storage node.
In the central management mode, the reconstruction judgment script required by the storage node for judging whether the OSD meets the reconstruction condition can be issued by the central node, and the reconstruction script required by the reconstruction of the OSD can also be issued by the central node, so that the central node can participate in and monitor the storage node to execute the process of reconstructing the OSD, and the central node can conveniently and centrally manage the storage node and data. In the central management mode, the problem can be solved conveniently and fundamentally by analyzing the reconstruction records of the storage nodes, for example, which storage node can be reconstructed frequently, and the operation process can be intervened manually in time, for example, for an emergency, the reconstruction judgment script is controlled between the central nodes to be transmitted temporarily or the reconstruction script is transmitted temporarily. Moreover, when the reconstruction judgment script or the reconstruction script needs to be upgraded or modified, the reconstruction judgment script or the reconstruction script in the central node can be changed without any processing on each storage node, so that the script change is more convenient and simpler.
After the storage nodes rebuild the OSD by using the rebuilding script, the rebuilding result can be sent to the central node, so that operation and maintenance personnel can know the OSD rebuilding condition of each storage node through the central node, the abnormal condition of the OSD rebuilding of the storage nodes is prevented, and the accurate execution of the OSD rebuilding is ensured.
The embodiment of the invention can monitor the state of the OSD in real time, when the abnormal state of the OSD is monitored, the reconstruction judgment script is used for determining whether the OSD meets the reconstruction condition, when the reconstruction condition of the OSD is determined, the reconstruction script is used for reconstructing the OSD, the whole process is realized by automation, the judgment time can be greatly shortened, the OSD reconstruction efficiency is improved, in addition, whether the OSD can be reconstructed or not is judged by automation, the problem of manual misjudgment or missed judgment can be solved, and the OSD reconstruction accuracy is improved.
Referring to fig. 2, a block diagram of an apparatus for reconstructing an OSD according to an embodiment of the present invention is provided, where the apparatus may be configured in a storage node or be the storage node itself, and the apparatus may include a monitoring module 201, a determining module 202, and a reconstructing module 203.
The monitoring module 201 is configured to monitor the state of the OSD in the node;
a determining module 202, configured to determine whether the OSD meets a reconstruction condition by using a reconstruction judging script when the OSD is in an abnormal state;
a rebuilding module 203, configured to rebuild the OSD using a rebuilding script when the OSD meets the rebuilding condition.
Preferably, the determining module 202 is configured to:
when the OSD is in an abnormal state, sending OSD abnormal information to a central node, so that the central node sends reconstruction detection information to the storage node based on the OSD abnormal information, wherein the reconstruction detection information comprises the reconstruction judgment script;
and receiving the reconstruction detection information sent by the central node, and determining whether the OSD meets the reconstruction condition or not by using the reconstruction judgment script.
Preferably, the determining module 202 is further configured to:
determining whether there is a solitary copy in a disk of the OSD;
if no orphan exists, determining that the OSD satisfies the reconstruction condition;
and if the OSD has the solitary copy, determining that the OSD does not meet the reconstruction condition.
Preferably, the determining module 202 is further configured to:
determining whether the OSD belongs to a local machine, whether an orphan exists in a disk of the OSD and whether the OSD is in an abnormal state based on the reconstruction detection information;
if the OSD belongs to the local computer, no solitary copy exists in a disk of the OSD and the OSD is in an abnormal state, determining that the OSD meets the reconstruction condition, and otherwise, determining that the OSD does not meet the reconstruction condition.
Preferably, the reconstruction module 203 is further configured to:
when the OSD meets the reconstruction condition, reconstruction information is sent to a central node, so that the central node sends the reconstruction script to the storage node based on the reconstruction information;
and receiving the reconstruction script sent by the central node, and reconstructing the OSD by using the reconstruction script.
Preferably, the reconstruction module 203 is further configured to:
and after the OSD is reconstructed, transmitting a reconstruction result to the central node.
The embodiment of the invention can monitor the state of the OSD in real time, when the abnormal state of the OSD is monitored, the reconstruction judgment script is used for determining whether the OSD meets the reconstruction condition, when the reconstruction condition of the OSD is determined, the reconstruction script is used for reconstructing the OSD, the whole process is realized by automation, the judgment time can be greatly shortened, the OSD reconstruction efficiency is improved, in addition, whether the OSD can be reconstructed or not is judged by automation, the problem of manual misjudgment or missed judgment can be solved, and the OSD reconstruction accuracy is improved.
It should be noted that: in the device for reconstructing an OSD according to the above embodiment, only the division of the functional modules is illustrated, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the device for reconstructing the OSD and the embodiment of the method for reconstructing the OSD provided by the above embodiment belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment and are not described herein again.
Referring to fig. 3, a block diagram of a system for reconstructing an OSD according to an embodiment of the present invention may include a storage node and a central node.
The storage node includes the above device for reconstructing OSD, and the functional modules specifically included in the storage node may refer to the above embodiment of the device for reconstructing OSD, which is not described herein again.
And the central node is used for receiving the reconstruction result sent by the storage node.
Preferably, the central node is further configured to receive OSD abnormal information sent by a storage node, and send reconstruction detection information to the storage node based on the OSD abnormal information, where the reconstruction detection information includes the reconstruction judgment script, so that the storage node determines whether the OSD satisfies the reconstruction condition by using the reconstruction judgment script.
Preferably, the central node is further configured to receive reconstruction information sent by a storage node, and send a reconstruction script to the storage node based on the reconstruction information, so that the storage node reconstructs the OSD by using the reconstruction script.
The embodiment of the invention can monitor the state of the OSD in real time, when the abnormal state of the OSD is monitored, the reconstruction judgment script is used for determining whether the OSD meets the reconstruction condition, when the reconstruction condition of the OSD is determined, the reconstruction script is used for reconstructing the OSD, the whole process is realized by automation, the judgment time can be greatly shortened, the OSD reconstruction efficiency is improved, in addition, whether the OSD can be reconstructed or not is judged by automation, the problem of manual misjudgment or missed judgment can be solved, and the OSD reconstruction accuracy is improved.
It should be noted that: the system for reconstructing OSD and the embodiment of the method for reconstructing OSD provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (13)

1. A method for reconstructing an OSD, the method comprising:
the storage node monitors the state of OSD in the node;
when the storage node monitors that the OSD is in an abnormal state, OSD abnormal information is sent to a central node; the central node receives the OSD abnormal information and sends reconstruction detection information to the storage node, wherein the reconstruction detection information comprises a reconstruction judgment script; the storage node receives the reconstruction detection information and determines whether the OSD meets reconstruction conditions or not by using the reconstruction judgment script, wherein the abnormal state is down;
and when the storage node determines that the OSD meets the reconstruction condition, reconstructing the OSD by using a reconstruction script.
2. The method of claim 1, wherein the storage node determines whether the OSD satisfies the reconstruction condition using a reconstruction determination script, comprising:
the storage node determines whether an object stored in a solitary form exists in a disk of the OSD;
if not, determining that the OSD meets the reconstruction condition;
if so, determining that the OSD does not satisfy the reconstruction condition.
3. The method of claim 1, wherein the storage node determines whether the OSD satisfies the reconstruction condition using a reconstruction determination script, further comprising:
the storage node determines whether the OSD belongs to a local computer, whether an object stored in a solitary form exists in a disk of the OSD and whether the OSD is in an abnormal state based on the reconstruction detection information;
if the OSD belongs to the local computer, no object stored in a solitary form exists in a disk of the OSD and the OSD is in an abnormal state, determining that the OSD meets the reconstruction condition, and otherwise, determining that the OSD does not meet the reconstruction condition.
4. The method of claim 1, wherein when the storage node determines that the OSD satisfies the reconstruction condition, reconstructing the OSD using a reconstruction script comprises:
when the storage node determines that the OSD meets the reconstruction condition, reconstruction information is sent to a central node;
the central node receives the reconstruction information and sends the reconstruction script to the storage node;
and the storage node receives the reconstruction script and reconstructs the OSD by using the reconstruction script.
5. The method of claim 1, wherein when the storage node determines that the OSD satisfies the reconstruction condition, after reconstructing the OSD using a reconstruction script, the method comprises:
and the storage node sends a reconstruction result to the central node.
6. An apparatus for reconstructing an OSD applied to a storage module, the apparatus comprising:
the monitoring module is used for monitoring the state of OSD in the node;
the determining module is used for sending OSD abnormal information to the central node when the OSD is in an abnormal state; the central node receives the OSD abnormal information and sends reconstruction detection information to a storage node, wherein the reconstruction detection information comprises a reconstruction judgment script; the storage node receives the reconstruction detection information and determines whether the OSD meets reconstruction conditions or not by using the reconstruction judgment script, wherein the abnormal state is down;
and the reconstruction module is used for reconstructing the OSD by using a reconstruction script when the OSD meets the reconstruction condition.
7. The apparatus of claim 6, wherein the determining module is further configured to:
determining whether an object stored in a solitary form exists in a disk of the OSD;
if not, determining that the OSD meets the reconstruction condition;
if so, determining that the OSD does not satisfy the reconstruction condition.
8. The apparatus of claim 6, wherein the determining module is further configured to:
determining whether the OSD belongs to a local machine, whether an object stored in a solitary form exists in a disk of the OSD and whether the OSD is in an abnormal state based on the reconstruction detection information;
if the OSD belongs to the local computer, no object stored in a solitary form exists in a disk of the OSD and the OSD is in an abnormal state, determining that the OSD meets the reconstruction condition, and otherwise, determining that the OSD does not meet the reconstruction condition.
9. The apparatus of claim 6, wherein the reconstruction module is configured to:
when the OSD meets the reconstruction condition, reconstruction information is sent to a central node, so that the central node sends the reconstruction script to the storage node based on the reconstruction information;
and receiving the reconstruction script sent by the central node, and reconstructing the OSD by using the reconstruction script.
10. The apparatus of claim 6, wherein the reconstruction module is further configured to:
and after the OSD is reconstructed, transmitting a reconstruction result to the central node.
11. A system for reconstructing OSD is characterized by comprising a storage node and a central node;
the storage node comprises means for reconstructing an OSD as claimed in any one of claims 6-10;
and the central node is used for receiving the reconstruction result sent by the storage node.
12. The system of claim 11,
the central node is further configured to receive OSD abnormal information sent by the storage node, and send reconstruction detection information to the storage node based on the OSD abnormal information, where the reconstruction detection information includes the reconstruction judgment script, so that the storage node determines whether the OSD satisfies the reconstruction condition by using the reconstruction judgment script.
13. The system of claim 11,
the central node is further configured to receive reconstruction information sent by the storage node, and send a reconstruction script to the storage node based on the reconstruction information, so that the storage node reconstructs the OSD by using the reconstruction script.
CN201811051405.2A 2018-09-10 2018-09-10 Method, device and system for reconstructing OSD Active CN109144788B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811051405.2A CN109144788B (en) 2018-09-10 2018-09-10 Method, device and system for reconstructing OSD

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811051405.2A CN109144788B (en) 2018-09-10 2018-09-10 Method, device and system for reconstructing OSD

Publications (2)

Publication Number Publication Date
CN109144788A CN109144788A (en) 2019-01-04
CN109144788B true CN109144788B (en) 2021-10-22

Family

ID=64824143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811051405.2A Active CN109144788B (en) 2018-09-10 2018-09-10 Method, device and system for reconstructing OSD

Country Status (1)

Country Link
CN (1) CN109144788B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515771A (en) * 2019-08-23 2019-11-29 北京浪潮数据技术有限公司 A kind of object storage device setting method, system, equipment and computer media

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102164165A (en) * 2011-02-18 2011-08-24 杭州宏杉科技有限公司 Management method and device for network storage system
CN102385537A (en) * 2011-10-25 2012-03-21 曙光信息产业(北京)有限公司 Disk failure processing method of multi-copy storage system
CN107239383A (en) * 2017-06-28 2017-10-10 郑州云海信息技术有限公司 A kind of failure monitoring method and device of OpenStack virtual machines
CN107682460A (en) * 2017-11-21 2018-02-09 郑州云海信息技术有限公司 A kind of distributed storage trunked data communication method and system
CN107832164A (en) * 2017-11-20 2018-03-23 郑州云海信息技术有限公司 A kind of method and device of the faulty hard disk processing based on Ceph

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6382454B2 (en) * 2014-11-06 2018-08-29 華為技術有限公司Huawei Technologies Co.,Ltd. Distributed storage and replication system and method
CN106559441B (en) * 2015-09-25 2020-09-04 华为技术有限公司 Virtual machine monitoring method, device and system based on cloud computing service
CN105892950A (en) * 2016-04-01 2016-08-24 浪潮电子信息产业股份有限公司 Disk array reconstruction method and disk array reconstruction system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102164165A (en) * 2011-02-18 2011-08-24 杭州宏杉科技有限公司 Management method and device for network storage system
CN102385537A (en) * 2011-10-25 2012-03-21 曙光信息产业(北京)有限公司 Disk failure processing method of multi-copy storage system
CN107239383A (en) * 2017-06-28 2017-10-10 郑州云海信息技术有限公司 A kind of failure monitoring method and device of OpenStack virtual machines
CN107832164A (en) * 2017-11-20 2018-03-23 郑州云海信息技术有限公司 A kind of method and device of the faulty hard disk processing based on Ceph
CN107682460A (en) * 2017-11-21 2018-02-09 郑州云海信息技术有限公司 A kind of distributed storage trunked data communication method and system

Also Published As

Publication number Publication date
CN109144788A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
CN108234170B (en) Monitoring method and device for server cluster
CN105718570B (en) Data migration method and device for database
US10152382B2 (en) Method and system for monitoring virtual machine cluster
CN111124850A (en) MQTT server performance testing method, system, computer equipment and storage medium
CN107015872A (en) The processing method and processing device of monitoring data
CN109144789B (en) Method, device and system for restarting OSD
JP2017201470A (en) Setting support program, setting support method, and setting support device
CN114064414A (en) High-availability cluster state monitoring method and system
CN113312153B (en) Cluster deployment method and device, electronic equipment and storage medium
CN110647460B (en) Test resource management method and device and test client
CN111339118A (en) Kubernetes-based resource change history recording method and device
CN109144788B (en) Method, device and system for reconstructing OSD
CN108733808B (en) Big data software system switching method, system, terminal equipment and storage medium
CN112260902B (en) Network equipment monitoring method, device, equipment and storage medium
CN111506388B (en) Container performance detection method, container management platform and computer storage medium
US9898490B2 (en) Systems and methods for supporting multiple database server versions on a database machine
CN110287066B (en) Server partition migration method and related device
CN114816866A (en) Fault processing method and device, electronic equipment and storage medium
CN109921963B (en) Network state inspection method and system
CN114896128A (en) Application program performance testing method and device based on block chain
CN112948377A (en) Data storage method and device, electronic equipment and computer readable medium
CN116582453B (en) Monitoring data migration method and system in multi-service cluster scene
CN118245335B (en) Hard disk lighting method, device, server and product
CN118132118B (en) Firmware upgrading method and device
CN117632559A (en) Fault disk repairing method and device, storage medium and electronic equipment

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