CN109144788A - A kind of method, apparatus and system for rebuilding OSD - Google Patents

A kind of method, apparatus and system for rebuilding OSD Download PDF

Info

Publication number
CN109144788A
CN109144788A CN201811051405.2A CN201811051405A CN109144788A CN 109144788 A CN109144788 A CN 109144788A CN 201811051405 A CN201811051405 A CN 201811051405A CN 109144788 A CN109144788 A CN 109144788A
Authority
CN
China
Prior art keywords
osd
reconstruction
script
memory node
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811051405.2A
Other languages
Chinese (zh)
Other versions
CN109144788B (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

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 kind of method, apparatus and system for rebuilding OSD, wherein this method comprises: memory node monitors the state of OSD in this node;When the memory node monitors that the OSD is when in an abnormal state, judge that script determines whether the OSD meets reconstruction condition using rebuilding;When the memory node determines that the OSD meets the reconstruction condition, the OSD is rebuild using script is rebuild.Can whole flow process of the invention be realized using automation, can be reduced significantly and be judged the time, improve OSD and rebuild efficiency, also, be rebuild using automatization judgement OSD, be able to solve the problem of manually judging by accident or fail to judge, and improves the accuracy that OSD is rebuild.

Description

A kind of method, apparatus and system for rebuilding OSD
Technical field
The present invention relates to field of computer technology, in particular to a kind of method, apparatus and system for rebuilding OSD.
Background technique
Ceph is a kind of High Availabitity, the distributed memory system for being easily managed, increasing income.Ceph OSD(Object Storage Device, object storage device) it is the most important component of Ceph storage cluster, OSD is by data in the form of object It stores in cluster on the physical disk of each memory node.Occur in the state of OSD it is abnormal, such as after OSD hangs (down) Processing method have restart OSD and rebuild OSD.
For the OSD of each memory node, corresponding OSD copy can be set from node, be in exception in OSD Period can use OSD replica processes user request instead.When OSD is restarted, the OSD restarted will be during exception in OSD copy disk The data of deposit are synchronized in the disk of this OSD, while OSD copy also stops handling user's request.If when OSD abnormal state Between to continue comparison long, restart OSD it is time-consuming long when, president time blocking user request influences user and normally reads and writes, to avoid Such case, which can choose, rebuilds OSD.
Artificially judge whether OSD meets reconstruction condition currently, rebuilding OSD and usually passing through, then decides whether to rebuild, meeting in this way The long time is expended, OSD is rebuild not in time, and by being easy when artificially judging whether OSD meets reconstruction condition The problems such as now judging by accident or fail to judge.If the OSD of abnormal state is not rebuild in time, magnetic is had occurred in Last OSD copy again Disk failure, it will cause loss of data.If OSD is not resumed for a long time, when rebuilding again, data are extensive in reconstruction process It resumes a session and expends the longer time.Therefore, after exception occurs in OSD, reconstruction speed is faster, and system performance is more stable.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides it is a kind of rebuild OSD method, apparatus and be System.The technical solution is as follows:
In a first aspect, providing a kind of method for rebuilding OSD, which comprises
Memory node monitors the state of OSD in this node;
When the memory node monitors that the OSD is when in an abnormal state, judge that script determines the OSD using rebuilding Whether satisfaction rebuilds condition;
When the memory node determines that the OSD meets the reconstruction condition, using described in reconstruction script reconstruction OSD。
Optionally, when the memory node monitors that the OSD is when in an abnormal state, judge script determination using rebuilding Whether the OSD meets the reconstruction condition, comprising:
When the memory node monitors that the OSD is when in an abnormal state, to central node transmission OSD exception information;
The central node receives the OSD exception information, and sends to the memory node and rebuild detection information, described Rebuilding detection information includes that the reconstruction judges script;
The memory node receives the reconstruction detection information, and judges that script determines that the OSD is using the reconstruction It is no to meet the reconstruction condition.
Optionally, the memory node judges that script determines whether the OSD meets the reconstruction condition using reconstruction, wraps It includes:
The memory node determines in the disk of the OSD with the presence or absence of the object stored in the form of only existing copy;
If it does not exist, then determining that the OSD meets the reconstruction condition;
If it is present determining that the OSD is unsatisfactory for the reconstruction condition.
Optionally, the memory node judges that script determines whether the OSD meets the reconstruction condition using reconstruction, also Include:
The memory node is based on the reconstruction detection information, determines whether the OSD belongs to the magnetic of the machine, the OSD Whether abnormality is in the presence or absence of the object and the OSD that store in the form of only existing copy in disk;
If the OSD belong to the machine, the OSD disk in there is no the objects and described stored in the form of only existing copy OSD is in abnormality, it is determined that the OSD meets the reconstruction condition, otherwise determines that the OSD is unsatisfactory for the reconstruction item Part.
Optionally, it when the memory node determines that the OSD meets the reconstruction condition, is rebuild using script is rebuild The OSD, comprising:
When the memory node determines that the OSD meets the reconstruction condition, reconstruction information is sent to central node;
The central node receives the reconstruction information, and sends the reconstruction script to the memory node;
The memory node receives the reconstruction script, rebuilds the OSD using the reconstruction script.
Optionally, it when the memory node determines that the OSD meets the reconstruction condition, is rebuild using script is rebuild After the OSD, comprising:
The memory node sends reconstructed results to central node
Second aspect provides a kind of device for rebuilding OSD, comprising:
Monitoring modular, for monitoring the state of OSD in this node;
Determining module, it is when in an abnormal state for working as the OSD, judge whether script determines the OSD using rebuilding Meet reconstruction condition;
Module is rebuild, for rebuilding the OSD using script is rebuild when the OSD meets the reconstruction condition.
Optionally, the determining module, is used for:
When the OSD is when in an abnormal state, to central node transmission OSD exception information, so that the central node base It is sent in the OSD exception information to the memory node and rebuilds detection information, the reconstruction detection information includes the reconstruction Judge script;
The reconstruction detection information that the central node is sent is received, and the utilization reconstruction judges described in script determination Whether OSD meets the reconstruction condition.
Optionally, the determining module, is also used to:
It determines in the disk of the OSD with the presence or absence of the object stored in the form of only existing copy;
If it does not exist, then determining that the OSD meets the reconstruction condition;
If it is present determining that the OSD is unsatisfactory for the reconstruction condition.
Optionally, the determining module, is also used to:
Based on the reconstruction detection information, determine the OSD whether belong to the machine, the OSD disk in whether there is Whether the object and the OSD stored in the form of only existing copy is in abnormality;
If the OSD belong to the machine, the OSD disk in there is no the objects and described stored in the form of only existing copy OSD is in abnormality, it is determined that the OSD meets the reconstruction condition, otherwise determines that the OSD is unsatisfactory for the reconstruction item Part.
Optionally, the reconstruction module, is used for:
When the OSD meets the reconstruction condition, reconstruction information is sent to central node, so that the central node base The reconstruction script is sent to the memory node in the reconstruction information;
The reconstruction script that the central node is sent is received, and rebuilds the OSD using the reconstruction script.
Optionally, the reconstruction module, is also used to:
After rebuilding the OSD, reconstructed results are sent to central node.
The third aspect provides a kind of system for rebuilding OSD, including memory node and central node;
The memory node includes the device that OSD is rebuild described in first aspect;
The central node, the reconstructed results sent for receiving the memory node.
Optionally, the central node is also used to receive the OSD exception information of memory node transmission, and is based on the OSD Exception information is sent to the memory node rebuilds detection information, and the reconstruction detection information includes that the reconstruction judges script, So that the memory node judges that script determines whether the OSD meets the reconstruction condition using the reconstruction.
Optionally, the central node is also used to receive the reconstruction information of memory node transmission, and is believed based on the reconstruction It ceases to send to the memory node and rebuilds script, so that the memory node rebuilds the OSD using the reconstruction script.
The state of OSD can be monitored in real time in the embodiment of the present invention, when having monitored that OSD is when in an abnormal state, utilizes weight It builds and judges that script determines whether the OSD meets reconstruction condition, when determining that the OSD meets reconstruction condition, utilize reconstruction script OSD is rebuild, whole flow process is realized using automation, can be reduced significantly and be judged the time, it improves OSD and rebuilds efficiency, also, It can be rebuild using automatization judgement OSD, be able to solve the problem of manually judging by accident or fail to judge, improve the accuracy that OSD is rebuild.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of flow chart of method for rebuilding OSD provided in an embodiment of the present invention;
Fig. 2 is a kind of structural block diagram of device for rebuilding OSD provided in an embodiment of the present invention;
Fig. 3 is a kind of structural block diagram of system for rebuilding OSD provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
The embodiment of the invention provides a kind of method for rebuilding OSD, this method is mainly realized by memory node.Storage section Point can be any memory node in distributed memory system, for handling the request of user, such as data write-in, data reading Take etc..Above-mentioned memory node may include processor, memory, transceiver, and processor can be used for carrying out in following processes OSD rebuild, memory can be used for storing the data of the data and generation that need in following OSD reconstruction process, transceiver It can be used for sending and receiving the related data in following OSD reconstruction process.
Referring to Fig. 1, for a kind of flow chart for the method for rebuilding OSD provided in an embodiment of the present invention, this method specifically can be with Include the following steps.
Step 101, memory node monitors the state of OSD in this node.
Each memory node may include an OSD, also may include multiple OSD.This can be monitored in real time in memory node The state of each OSD in node.Under normal circumstances, when OSD is in up, then it represents that OSD is in normal condition, can normally mention For service, when OSD is in abnormal state, illustrate that OSD is in abnormality.Step 102, when the memory node monitors institute It is when in an abnormal state to state OSD, judges that script determines whether the OSD meets the reconstruction condition using rebuilding.
In an implementation, reconstruction can judge that script is pre-stored in memory node, monitor when memory node described in OSD is when in an abnormal state, and the reconstruction prestored can be called to judge that script determines whether to rebuild the OSD.Specifically, The memory node, which can determine, whether there is the object stored in the form of only existing copy in the disk of the OSD, if it does not exist, then It determines that the OSD meets the reconstruction condition, otherwise determines that the OSD is unsatisfactory for the reconstruction condition.Wherein, only existing copy refers to only The storage object being present in the disk of an available OSD, if there are the only existing copy of storage object in the disk of exception OSD, And OSD is rebuild, will cause loss of data, so needing to judge whether deposit in OSD to be reconstructed during OSD is rebuild In only existing copy.
It, can be by checking PG when in the disk for judging the OSD with the presence or absence of the object stored in the form of only existing copy (Placement Group, put in order group) state is judged.PG is the basic unit for forming storage pool, each storage object meeting Fixation is mapped in a PG, and PG is similar to the index in database.Since there are OSD copy, the same storage object may It is stored in the disk of multiple OSD.It, can basis when whether there is the only existing copy of storage object in the disk for judging current OSD The copy state of the corresponding PG of each storage object determines whether the storage object only remains the copy of next available mode, if It is to illustrate that the storage object is only existing copy, and there are the only existing copy of storage object in the disk of determining current OSD, current OSD is unsatisfactory for Reconstruction condition.Optionally, OSD, which rebuilds condition, may further specify that the minimum number of copies magnitude of storage object, deposit when in the disk of OSD When storing up the remaining copy amount of object less than the minimum value, illustrate that current OSD is unsatisfactory for reconstruction condition.
Preferably, the embodiment of the present invention can also use centre management mode, i.e., by central node to memory node into Row management.Using in centre management mode, reconstruction can be judged that script is stored in central node, when memory node monitors It is when in an abnormal state to OSD, reconstruction, which is obtained, from central node judges script.
It obtains to rebuild from central node and judges that script and the process for carrying out rebuilding judgement may include: when the storage saves Point monitors that the OSD is when in an abnormal state, to central node transmission OSD exception information, described in the central node reception OSD exception information, and sent to the memory node and rebuild detection information, the reconstruction detection information includes the reconstruction judgement Script, the memory node receives the reconstruction detection information, and judges that script determines whether the OSD meets institute using rebuilding State reconstruction condition.
The OSD exception information that memory node is sent to central node may include the mark of the memory node and be in different The mark of the OSD of normal state.The reconstruction detection information that central node is sent to memory node can also include being in abnormality OSD mark.Memory node judges that script determines whether the OSD meets the reconstruction using the reconstruction that central node is sent The process of condition may include: that memory node is based on the reconstruction detection information, determine whether the OSD belongs to the machine, described Whether abnormality is in the presence or absence of the object and the OSD that store in the form of only existing copy in the disk of OSD;If described OSD belong to the machine, the OSD disk in there is no in the form of only existing copy store object and the OSD be in abnormality, It then determines that the OSD meets the reconstruction condition, otherwise determines that the OSD is unsatisfactory for the reconstruction condition.
Optionally, memory node determines whether the OSD meets the process of the reconstruction condition and can specifically include: described Memory node determines whether the OSD belongs to the machine based on the reconstruction detection information;Described in being determined when the memory node When OSD belongs to the machine, determine in the disk of the OSD with the presence or absence of the object stored in the form of only existing copy;When the memory node It determines to determine whether the OSD is in abnormal shape there is no when the object stored in the form of only existing copy in the disk of the OSD State;When the memory node determines that the OSD is when in an abnormal state, determine that the OSD meets the reconstruction condition.Storage Node is during determining whether the OSD meets the reconstruction condition, can be with if either condition is unsatisfactory for requiring It determines that the OSD is unsatisfactory for the reconstruction condition, and terminates the process.
Optionally, when memory node monitors that the OSD is when in an abnormal state, in the weight that utilization is pre-stored in this node It builds when judging that script determines whether the OSD meets reconstruction condition, OSD exception information can also be sent to central node, so that Central node understands the abnormal conditions of OSD, facilitates the centralized management of central node.
Step 103, when the memory node determines that the OSD meets the reconstruction condition, reconstruction script weight is utilized Build the OSD.
In an implementation, it can will rebuild script to be pre-stored in memory node, when memory node determines that the OSD is full When the foot reconstruction condition, the reconstruction script that this can be called to prestore rebuilds the OSD.
Preferably, using in centre management mode, reconstruction condition can be stored in central node, works as memory node When determining that the OSD meets the reconstruction condition, reconstruction can be obtained from central node and judges script.From central node Obtaining reconstruction script and rebuilding the process of OSD may include: when the memory node determines that the OSD meets the reconstruction item When part, reconstruction information is sent to central node;The central node receives the reconstruction information, and sends to the memory node The reconstruction script;The memory node receives the reconstruction script, rebuilds the OSD using the reconstruction script.
When memory node determines that the OSD is unsatisfactory for reconstruction condition, it is discontented the OSD can be sent to central node Lumping weight builds the information of condition, after central node receives the information, then will not send to the memory node and rebuild script.
Using in centre management mode, memory node judges that reconstruction judges foot needed for whether OSD meets reconstruction condition Originally it can be issued by central node, and reconstruction script needed for rebuilding OSD can also be issued by central node, make central node The process that memory node executes reconstruction OSD can be participated in and monitor, to facilitate central node to the collection of memory node and data Middle management.Which using in centre management mode, can be recorded by analyzing the reconstruction of memory node, such as memory node meeting Frequently rebuild, so that convenient fundamentally go to solve the problems, such as, acceptable human intervention operating process in time, such as the feelings that happen suddenly Condition can rebuild from control between central node and judge that script pause issues, or rebuild script pause and issue.Also, when reconstruction Judging that script is perhaps rebuild when script needs to upgrade or modify only can judge script or reconstruction to the reconstruction in central node Script changes, without carrying out any processing to each memory node, so script change is more convenient simple.
After memory node is using the script reconstruction OSD is rebuild, reconstructed results can be sent to central node, so that fortune The OSD that dimension personnel can understand each memory node by central node rebuilds situation, and prevents the OSD of memory node from reconstructing Existing abnormal conditions guarantee that OSD reconstruction can be executed accurately.
The state of OSD can be monitored in real time in the embodiment of the present invention, when having monitored that OSD is when in an abnormal state, utilizes weight It builds and judges that script determines whether the OSD meets reconstruction condition, when determining that the OSD meets reconstruction condition, utilize reconstruction script OSD is rebuild, whole flow process is realized using automation, can be reduced significantly and be judged the time, it improves OSD and rebuilds efficiency, also, It can be rebuild using automatization judgement OSD, be able to solve the problem of manually judging by accident or fail to judge, improve the accuracy that OSD is rebuild.
Referring to Fig. 2, for a kind of structural block diagram for the device for rebuilding OSD provided in an embodiment of the present invention, which can match It is placed in memory node, or is memory node itself, the apparatus may include monitoring modulars 201, determining module 202 and again Model block 203.
Wherein, monitoring modular 201, for monitoring the state of OSD in this node;
Determining module 202, it is when in an abnormal state for working as the OSD, judge that script determines that the OSD is using rebuilding It is no to meet reconstruction condition;
Module 203 is rebuild, for rebuilding the OSD using script is rebuild when the OSD meets the reconstruction condition.
Preferably, the determining module 202, is used for:
When the OSD is when in an abnormal state, to central node transmission OSD exception information, so that the central node base It is sent in the OSD exception information to the memory node and rebuilds detection information, the reconstruction detection information includes the reconstruction Judge script;
The reconstruction detection information that the central node is sent is received, and the utilization reconstruction judges described in script determination Whether OSD meets the reconstruction condition.
Preferably, the determining module 202, is also used to:
Determine in the disk of the OSD whether there is only existing copy;
If without only existing copy, it is determined that the OSD meets the reconstruction condition;
If there is only existing copy, it is determined that the OSD is unsatisfactory for the reconstruction condition.
Preferably, the determining module 202, is also used to:
Based on the reconstruction detection information, determine the OSD whether belong to the machine, the OSD disk in whether have orphan Whether this and the OSD are in abnormality;
If the OSD belong to the machine, the OSD disk in there is no only existing copy and the OSD to be in abnormality, It determines that the OSD meets the reconstruction condition, otherwise determines that the OSD is unsatisfactory for the reconstruction condition.
Preferably, the reconstruction module 203, is also used to:
When the OSD meets the reconstruction condition, reconstruction information is sent to central node, so that the central node base The reconstruction script is sent to the memory node in the reconstruction information;
The reconstruction script that the central node is sent is received, and rebuilds the OSD using the reconstruction script.
Preferably, the reconstruction module 203, is also used to:
After rebuilding the OSD, reconstructed results are sent to central node.
The state of OSD can be monitored in real time in the embodiment of the present invention, when having monitored that OSD is when in an abnormal state, utilizes weight It builds and judges that script determines whether the OSD meets reconstruction condition, when determining that the OSD meets reconstruction condition, utilize reconstruction script OSD is rebuild, whole flow process is realized using automation, can be reduced significantly and be judged the time, it improves OSD and rebuilds efficiency, also, It can be rebuild using automatization judgement OSD, be able to solve the problem of manually judging by accident or fail to judge, improve the accuracy that OSD is rebuild.
It should be understood that it is provided by the above embodiment rebuild OSD device when rebuilding OSD, only with above-mentioned each function The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds Block is completed, i.e., the internal structure of device is divided into different functional modules, to complete all or part of function described above Energy.In addition, the embodiment of the device provided by the above embodiment for rebuilding OSD and the method for rebuilding OSD belongs to same design, have Body realizes that process is detailed in embodiment of the method, and which is not described herein again.
Referring to Fig. 3, for a kind of structural block diagram for the system for rebuilding OSD provided in an embodiment of the present invention, which be can wrap Include memory node and central node.
Wherein, the memory node includes the device of above-mentioned reconstruction OSD, the functional module that memory node specifically includes, It can refer to the embodiment of the device of above-mentioned reconstruction OSD, details are not described herein.
The central node, the reconstructed results sent for receiving the memory node.
Preferably, the central node is also used to receive the OSD exception information of memory node transmission, and is based on the OSD Exception information is sent to the memory node rebuilds detection information, and the reconstruction detection information includes that the reconstruction judges script, So that the memory node judges that script determines whether the OSD meets the reconstruction condition using the reconstruction.
Preferably, the central node is also used to receive the reconstruction information of memory node transmission, and is believed based on the reconstruction It ceases to send to the memory node and rebuilds script, so that the memory node rebuilds the OSD using the reconstruction script.
The state of OSD can be monitored in real time in the embodiment of the present invention, when having monitored that OSD is when in an abnormal state, utilizes weight It builds and judges that script determines whether the OSD meets reconstruction condition, when determining that the OSD meets reconstruction condition, utilize reconstruction script OSD is rebuild, whole flow process is realized using automation, can be reduced significantly and be judged the time, it improves OSD and rebuilds efficiency, also, It can be rebuild using automatization judgement OSD, be able to solve the problem of manually judging by accident or fail to judge, improve the accuracy that OSD is rebuild.
It should be understood that the embodiment of the system provided by the above embodiment for rebuilding OSD and the method for rebuilding OSD belongs to Same design, specific implementation process are detailed in embodiment of the method, and which is not described herein again.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (15)

1. a kind of method for rebuilding OSD, which is characterized in that the described method includes:
Memory node monitors the state of OSD in this node;
When the memory node monitors that the OSD is when in an abnormal state, judge whether script determines the OSD using rebuilding Meet reconstruction condition;
When the memory node determines that the OSD meets the reconstruction condition, the OSD is rebuild using script is rebuild.
2. the method according to claim 1, wherein when the memory node monitors that the OSD is in abnormal When state, judge that script determines whether the OSD meets the reconstruction condition using rebuilding, comprising:
When the memory node monitors that the OSD is when in an abnormal state, to central node transmission OSD exception information;
The central node receives the OSD exception information, and sends to the memory node and rebuild detection information, the reconstruction Detection information includes that the reconstruction judges script;
The memory node receives the reconstruction detection information, and judges that script determines whether the OSD is full using the reconstruction The foot reconstruction condition.
3. method according to claim 1 or 2, which is characterized in that the memory node judges that script determines using reconstruction Whether the OSD meets the reconstruction condition, comprising:
The memory node determines in the disk of the OSD with the presence or absence of the object stored in the form of only existing copy;
If it does not exist, then determining that the OSD meets the reconstruction condition;
If it is present determining that the OSD is unsatisfactory for the reconstruction condition.
4. according to the method described in claim 2, it is characterized in that, memory node utilization reconstruction judges described in script determination Whether OSD meets the reconstruction condition, further includes:
The memory node be based on the reconstruction detection information, determine the OSD whether belong to the machine, the OSD disk in Whether abnormality is in the presence or absence of the object and the OSD stored in the form of only existing copy;
If the OSD belong to the machine, the OSD disk in there is no in the form of only existing copy store object and the OSD In abnormality, it is determined that the OSD meets the reconstruction condition, otherwise determines that the OSD is unsatisfactory for the reconstruction condition.
5. the method according to claim 1, wherein when the memory node is determined described in the OSD satisfaction When reconstruction condition, the OSD is rebuild using script is rebuild, comprising:
When the memory node determines that the OSD meets the reconstruction condition, reconstruction information is sent to central node;
The central node receives the reconstruction information, and sends the reconstruction script to the memory node;
The memory node receives the reconstruction script, rebuilds the OSD using the reconstruction script.
6. the method according to claim 1, wherein when the memory node is determined described in the OSD satisfaction When reconstruction condition, rebuild after the OSD using script is rebuild, comprising:
The memory node sends reconstructed results to central node.
7. a kind of device for rebuilding OSD, which is characterized in that be applied to memory module, described device includes::
Monitoring modular, for monitoring the state of OSD in this node;
Determining module, it is when in an abnormal state for working as the OSD, judge that script determines whether the OSD meets using rebuilding Reconstruction condition;
Module is rebuild, for rebuilding the OSD using script is rebuild when the OSD meets the reconstruction condition.
8. device according to claim 7, which is characterized in that the determining module is used for:
When the OSD is when in an abnormal state, to central node transmission OSD exception information, so that the central node is based on institute It states OSD exception information and sends reconstruction detection information to the memory node, the reconstruction detection information includes the reconstruction judgement Script;
The reconstruction detection information that the central node is sent is received, and judges that script determines the OSD using the reconstruction Whether the reconstruction condition is met.
9. device according to claim 7 or 8, which is characterized in that the determining module is also used to::
It determines in the disk of the OSD with the presence or absence of the object stored in the form of only existing copy;
If it does not exist, then determining that the OSD meets the reconstruction condition;
If it is present determining that the OSD is unsatisfactory for the reconstruction condition.
10. device according to claim 8, which is characterized in that the determining module is also used to:
Based on the reconstruction detection information, determine the OSD whether belong to the machine, the OSD disk in the presence or absence of with orphan Whether the object and the OSD of this form storage are in abnormality;
If the OSD belong to the machine, the OSD disk in there is no in the form of only existing copy store object and the OSD In abnormality, it is determined that the OSD meets the reconstruction condition, otherwise determines that the OSD is unsatisfactory for the reconstruction condition.
11. device according to claim 7, which is characterized in that the reconstruction module is used for:
When the OSD meets the reconstruction condition, reconstruction information is sent to central node, so that the central node is based on institute It states reconstruction information and sends the reconstruction script to the memory node;
The reconstruction script that the central node is sent is received, and rebuilds the OSD using the reconstruction script.
12. device according to claim 7, which is characterized in that the reconstruction module is also used to:
After rebuilding the OSD, reconstructed results are sent to central node.
13. a kind of system for rebuilding OSD, which is characterized in that including memory node and central node;
The memory node includes the device of the reconstruction OSD as described in any one of claim 7-12;
The central node, the reconstructed results sent for receiving the memory node.
14. system according to claim 13, which is characterized in that
The central node is also used to receive the OSD exception information that the memory node is sent, and is believed extremely based on the OSD It ceases to send to the memory node and rebuilds detection information, the reconstruction detection information includes that the reconstruction judges script, so that institute It states memory node and judges that script determines whether the OSD meets the reconstruction condition using the reconstruction.
15. system according to claim 13, which is characterized in that
The central node is also used to receive the reconstruction information that the memory node is sent, and is based on the reconstruction information to institute It states memory node and sends reconstruction script, so that the memory node rebuilds the OSD 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 true CN109144788A (en) 2019-01-04
CN109144788B 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)

Cited By (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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105892950A (en) * 2016-04-01 2016-08-24 浪潮电子信息产业股份有限公司 Disk array reconstruction method and disk array reconstruction system
CN106559441A (en) * 2015-09-25 2017-04-05 华为技术有限公司 It is a kind of based on the virtual machine monitoring method of cloud computing service, apparatus and system
US20170242767A1 (en) * 2014-11-06 2017-08-24 Huawei Technologies Co., Ltd. Distributed storage and replication system and method
CN107239383A (en) * 2017-06-28 2017-10-10 郑州云海信息技术有限公司 A kind of failure monitoring method and device of OpenStack virtual machines

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102164165B (en) * 2011-02-18 2013-06-12 杭州宏杉科技有限公司 Management method and device for network storage system
CN102385537B (en) * 2011-10-25 2014-12-03 曙光信息产业(北京)有限公司 Disk failure processing method of multi-copy storage system
CN107832164A (en) * 2017-11-20 2018-03-23 郑州云海信息技术有限公司 A kind of method and device of the faulty hard disk processing based on Ceph
CN107682460B (en) * 2017-11-21 2021-01-12 苏州浪潮智能科技有限公司 Distributed storage cluster data communication method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170242767A1 (en) * 2014-11-06 2017-08-24 Huawei Technologies Co., Ltd. Distributed storage and replication system and method
CN106559441A (en) * 2015-09-25 2017-04-05 华为技术有限公司 It is a kind of based on the virtual machine monitoring method of cloud computing service, apparatus and system
CN105892950A (en) * 2016-04-01 2016-08-24 浪潮电子信息产业股份有限公司 Disk array reconstruction method and disk array reconstruction system
CN107239383A (en) * 2017-06-28 2017-10-10 郑州云海信息技术有限公司 A kind of failure monitoring method and device of OpenStack virtual machines

Cited By (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

Also Published As

Publication number Publication date
CN109144788B (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN103201724B (en) Providing application high availability in highly-available virtual machine environments
CN105357038B (en) Monitor the method and system of cluster virtual machine
US9026679B1 (en) Methods and apparatus for persisting management information changes
US9092430B2 (en) Assigning shared catalogs to cache structures in a cluster computing system
CN111124850A (en) MQTT server performance testing method, system, computer equipment and storage medium
CN110807064B (en) Data recovery device in RAC distributed database cluster system
CN108566290A (en) service configuration management method, system, storage medium and server
CN109559583B (en) Fault simulation method and device
US20040015600A1 (en) Workload post-processing and parameterization for a system for performance testing of N-tiered computer systems using recording and playback of workloads
US7809690B2 (en) Performance metric-based selection of one or more database server instances to perform database recovery
WO2012033773A2 (en) Controlled automatic healing of data-center services
CN105630683B (en) A kind of cloud testing architecture
CN106933662A (en) Distributed system and its dispatching method and dispatching device
US9348685B2 (en) Intermediate database management layer
CN111240806B (en) Distributed container mirror image construction scheduling method
CN108009050A (en) A kind of memory node failure restart after service reliability test method and device
CN109558260A (en) Kubernetes troubleshooting system, method, equipment and medium
CN109144972A (en) A kind of method and back end of Data Migration
CN104573428B (en) A kind of method and system for improving server cluster resource availability
CN108897546A (en) Monitor method, apparatus, equipment and the readable storage medium storing program for executing of APK size
CN110297743B (en) Load testing method and device and storage medium
CN114154035A (en) Data processing system for dynamic loop monitoring
CN110291505A (en) Reduce the recovery time of application
CN114844809B (en) Multi-factor arbitration method and device based on network heartbeat and kernel disk heartbeat
CN110750425A (en) Database monitoring method, device and system and storage medium

Legal Events

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