CN111625189B - Method, device, equipment and medium for detecting data re-balance state - Google Patents

Method, device, equipment and medium for detecting data re-balance state Download PDF

Info

Publication number
CN111625189B
CN111625189B CN202010424518.3A CN202010424518A CN111625189B CN 111625189 B CN111625189 B CN 111625189B CN 202010424518 A CN202010424518 A CN 202010424518A CN 111625189 B CN111625189 B CN 111625189B
Authority
CN
China
Prior art keywords
disk
target
node
data
attribute information
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
CN202010424518.3A
Other languages
Chinese (zh)
Other versions
CN111625189A (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.)
Huayun Data Holding Group Co ltd
Original Assignee
Huayun Data Holding Group 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 Huayun Data Holding Group Co ltd filed Critical Huayun Data Holding Group Co ltd
Priority to CN202010424518.3A priority Critical patent/CN111625189B/en
Publication of CN111625189A publication Critical patent/CN111625189A/en
Application granted granted Critical
Publication of CN111625189B publication Critical patent/CN111625189B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3034Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a storage system, e.g. DASD based or network based
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0653Monitoring storage devices or systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a detection method of a data re-balance state, which comprises the steps of sending a query instruction to each node to acquire the working state of each disk in a cluster when a preset detection starting condition is met; acquiring node attribute information of a target node and disk attribute information of a target disk; determining a target working state corresponding to a target disk in the working states of all disks according to the node attribute information and the disk attribute information; when the target working state is the data re-balance state, generating feedback information for prompting that the target disk is in the data re-balance state, and sending the feedback information to prompting equipment. Therefore, the invention does not need operation and maintenance personnel to manually input the inquiry command, and unnecessary resource waste such as manpower, time and the like is avoided; and the accuracy and efficiency of the detection result are improved. In addition, the detection device and the storage medium for the data re-balance state correspond to the method.

Description

Method, device, equipment and medium for detecting data re-balance state
Technical Field
The present invention relates to the field of data storage technologies, and in particular, to a method, an apparatus, a device, and a medium for detecting a data equilibrium state.
Background
Today, traffic on information networks is increasing rapidly, and as massive traffic will flow into data centers, nodes or disks in the storage clusters also need to be continuously expanded or updated to better meet usage needs. When new nodes and disks are added in the storage clusters or the nodes and disks are in fault, the corresponding cluster mapping table is updated, and the storage position of object data is correspondingly adjusted, namely, a data rebalancing process occurs, and accordingly, the working state of the disks in the data rebalancing process is taken as a data rebalancing state. If the disk in the cluster is replaced or the hardware in the cluster is replaced in a data re-balance state, the data can be lost or damaged, and even the whole cluster is abnormal.
In the prior art, when a disk needs to be replaced, in order to avoid abnormal situations such as data loss, a professional operation and maintenance personnel needs to manually input a query command to query the working state of each disk, and whether each disk is in a data rebalancing process is analyzed from a feedback query result; if not, performing operations such as disk capacity expansion, replacement, hardware replacement in the disk, and the like.
However, in the prior art, the work can be completed only by means of manual inquiry, so that resources such as manpower, time and the like are wasted; and the inquiry result is manually analyzed by operation and maintenance personnel, so that misjudgment is easy to cause, the error probability is improved, and the situations of capacity expansion or data loss and the like are further caused by misjudgment.
Disclosure of Invention
The invention aims to provide a method, a device, equipment and a medium for detecting a data balance state, which can automatically determine whether a target disk is in a data re-balance state when a preset detection starting condition is met; the operation and maintenance personnel are not required to manually input the query instruction, so that unnecessary resource waste such as manpower, time and the like is avoided; and the accuracy and efficiency of the detection result are improved, and the safety of data during capacity expansion or disk replacement is ensured.
In order to solve the above technical problems, the present invention provides a method for detecting a data re-balance state, including:
when a preset detection starting condition is met, sending a query instruction to each node to acquire the working state of each disk in the cluster;
acquiring node attribute information of a target node and disk attribute information of a target disk;
determining a target working state corresponding to the target disk in the working states of the disks according to the node attribute information and the disk attribute information;
when the target working state is a data re-balance state, generating feedback information for prompting that the target disk is in the data re-balance state, and sending the feedback information to prompting equipment.
Preferably, the sending the feedback information to the prompting device specifically includes:
and sending the feedback information to a display to control the display to prompt a target on an interface.
Preferably, the sending the feedback information to the prompting device specifically includes:
and sending the feedback information to the target node and the target disk through a calling interface so as to control the node indicator lamp corresponding to the target node and the disk indicator lamp corresponding to the target disk to work in a preset flashing mode.
Preferably, the acquiring node attribute information of the target node specifically includes:
and issuing an acquisition instruction according to the IP address of the target node to acquire the node attribute information.
Preferably, the node attribute information is specifically an identification number of the target node.
Preferably, the query instruction is specifically a ceph instruction or a maxta instruction.
Preferably, the detection starting condition is specifically: the current time reaches a preset target time.
In order to solve the above technical problems, the present invention further provides a device for detecting a data re-balance state, including:
the sending module is used for sending a query instruction to each node to acquire the working state of each disk in the cluster when the preset detection starting condition is met;
the acquisition module is used for acquiring node attribute information of the target node and disk attribute information of the target disk;
the determining module is used for determining a target working state corresponding to the target disk in the working states of the disks according to the node attribute information and the disk attribute information;
and the generating module is used for generating feedback information for prompting that the target disk is in the data re-balance state when the target working state is the data re-balance state, and sending the feedback information to prompting equipment.
In order to solve the technical problem, the invention also provides a detection device for the data re-balance state, which comprises a memory for storing a computer program;
a processor for implementing the steps of the method for detecting a data re-balance state as described in any one of the above when executing the computer program.
To solve the above technical problem, the present invention further provides a computer readable storage medium, where a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for detecting a data re-balance state according to any one of the above claims.
The invention provides a method for detecting a data re-balance state, which comprises the following steps: when a preset detection starting condition is met, sending a query instruction to each node to acquire the working state of each disk in the cluster; acquiring node attribute information of a target node and disk attribute information of a target disk; determining a target working state corresponding to a target disk in the working states of all disks according to the node attribute information and the disk attribute information; when the target working state is the data re-balance state, generating feedback information for prompting that the target disk is in the data re-balance state, and sending the feedback information to prompting equipment. Therefore, when the preset detection starting condition is met, the method can automatically detect the target disk to determine whether the target disk is in a data re-balance state; the operation and maintenance personnel are not required to manually input the query instruction, so that unnecessary resource waste such as manpower, time and the like is avoided; and the accuracy and efficiency of the detection result are improved, and the safety of data during capacity expansion or disk replacement is ensured.
In addition, the detection device and the storage medium for the data re-balance state, which are provided by the invention, correspond to the method and have the same beneficial effects.
Drawings
For a clearer description of embodiments of the present invention, the drawings that are required to be used in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
FIG. 1 is a flowchart of a method for detecting a data rebalancing state according to an embodiment of the present invention;
FIG. 2 is a block diagram of a device for detecting a data re-balance state according to an embodiment of the present invention;
fig. 3 is a block diagram of a detection device for data re-balance status according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without making any inventive effort are within the scope of the present invention.
The core of the invention is to provide a method, a device, equipment and a medium for detecting the data balance state, and the method can automatically determine whether a target disk is in a data re-balance state when the preset detection starting condition is met; the operation and maintenance personnel are not required to manually input the query instruction, so that unnecessary resource waste such as manpower, time and the like is avoided; and the accuracy and efficiency of the detection result are improved, and the safety of data during capacity expansion or disk replacement is ensured.
In order to better understand the aspects of the present invention, the present invention will be described in further detail with reference to the accompanying drawings and detailed description.
FIG. 1 is a flowchart of a method for detecting a data rebalancing state according to an embodiment of the present invention; as shown in fig. 1, the method for detecting a data re-balance state provided by the embodiment of the invention includes steps S101 to S104:
step S101: when a preset detection starting condition is met, sending a query instruction to each node to acquire the working state of each disk in the cluster;
in one embodiment, the detection start condition for turning on the data re-balance state detection may be set in advance. For example, the detection can be performed once every five minutes, and the detection starting condition is that the current time reaches each time meeting the time interval requirement; likewise, the current time can be taken as a detection starting condition when the current time reaches a preset target time, a person skilled in the art can set any time as the target time according to actual needs, and the detection operation can be started when the current time reaches the target time; when the usage amount of the magnetic disk reaches 95%, the magnetic disk can be set as a detection starting condition, and in order to perform capacity expansion operation on the magnetic disk, whether the magnetic disk is in a data re-balance state or not is detected first. Those skilled in the art may set other detection starting conditions according to practical application conditions, and the embodiments of the present invention are not limited.
In a specific implementation, when the current situation meets a preset detection starting condition, a query instruction can be sent to each node, so that the working state of each disk in the cluster is obtained. Specifically, the query instruction is specifically a ceph instruction or a maxta instruction, and different query instructions can be corresponding to the cluster types. For example, for a ceph cluster, the working state of each disk in the cluster can be obtained through a ceph-s instruction; for a maxta cluster, the working state of each disk in the cluster can be obtained through an 'mxServices-L' instruction. Those skilled in the art may use other instructions stored in correspondence to query the working state of each disk according to the actual application situation, and the embodiments of the present invention are not limited.
Step S102: acquiring node attribute information of a target node and disk attribute information of a target disk;
step S103: determining a target working state corresponding to a target disk in the working states of all disks according to the node attribute information and the disk attribute information;
step S104: when the target working state is the data re-balance state, generating feedback information for prompting that the target disk is in the data re-balance state, and sending the feedback information to prompting equipment.
In one embodiment, a disk that needs to be queried for whether it is in a data re-equilibrium state is taken as a target disk, and a node where the target disk is located is taken as a target node. In a specific implementation, acquiring node attribute information of the target node is specifically to issue an acquisition instruction according to an IP address of the target node to acquire the node attribute information. Specifically, the node attribute information may be an identification number of the target node. It will be appreciated that the node attribute information may also be the storage location of the target node. Those skilled in the art may set specific contents of the node attribute information according to actual application conditions, and embodiments of the present invention are not limited. In a specific implementation, disc attribute information of the target disc is obtained, where the disc attribute information may be an identification number of the target disc.
In specific implementation, the working state of each disk corresponding to the target disk can be determined in the working states of each disk through the node attribute information and the disk attribute information, specifically, the working state of each disk in the target node can be queried through an "op_status-n-I node_id" instruction, the target working state of the target disk is determined according to the disk attribute information, and whether the target disk is in a data re-balance state or not is judged through the target working state. Further, the target node and the target disk may be plural.
In specific implementation, when the target working state is the data re-balance state, feedback information for prompting that the target disk is in the data re-balance state is generated. In order to enable operation and maintenance personnel to clearly and clearly know the target working condition of the target disk, feedback information can be sent to prompt equipment for prompting.
The invention provides a method for detecting a data re-balance state, which comprises the following steps: when a preset detection starting condition is met, sending a query instruction to each node to acquire the working state of each disk in the cluster; acquiring node attribute information of a target node and disk attribute information of a target disk; determining a target working state corresponding to a target disk in the working states of all disks according to the node attribute information and the disk attribute information; when the target working state is the data re-balance state, generating feedback information for prompting that the target disk is in the data re-balance state, and sending the feedback information to prompting equipment. Therefore, when the preset detection starting condition is met, the method can automatically detect the target disk to determine whether the target disk is in a data re-balance state; the operation and maintenance personnel are not required to manually input the query instruction, so that unnecessary resource waste such as manpower, time and the like is avoided; and the accuracy and efficiency of the detection result are improved, and the safety of data during capacity expansion or disk replacement is ensured.
In one embodiment, the sending of the feedback information to the prompting device is specifically:
and sending feedback information to the display to control the display to prompt a target on the interface.
In particular, the prompting device may be a display. When the display receives feedback information through the upper layer application interface, the target disk can be determined to be in a data rebalancing state currently, and target prompt in the rebalancing state can be carried out on the interface of the display. The target prompt is used for indicating that the target disk is in a data re-balance state, so that an operation and maintenance person can quickly and clearly know the working state of the target disk, the workload of the operation and maintenance person is greatly saved, and the accuracy of a detection result is improved.
In one embodiment, the sending of the feedback information to the prompting device is specifically:
and sending the feedback information to the target node and the target disk through the calling interface so as to control the node indicator lamp corresponding to the target node and the disk indicator lamp corresponding to the target disk to work according to a preset flashing mode.
Specifically, the indicator light on the target node and the target disk may be directly employed by the indicator device. And presetting a flashing mode of the corresponding node indicator lamp and the corresponding disk indicator lamp when the target node and the target disk receive the feedback information. For example, the node indicator light of the target node can be set to indicate in a yellow-blue flash manner; the disk indicator lamp of the set target disk indicates in a way that the blue lamp is always on. Other blinking patterns may be set by those skilled in the art, and embodiments of the present invention are not limited. In the specific implementation, after the feedback information is sent to the target node and the target disk through the calling interface, the node indicator lamp works according to a preset flashing mode with the disk indicator lamp to prompt the target node and the target disk to have a work state bit data re-balance state, so that an operation and maintenance person can quickly and clearly know the work state of the target disk, and unnecessary time resource and manpower resource waste are avoided.
The invention also provides a device for detecting the data re-balance state and a corresponding embodiment of the device for detecting the data re-balance state. It should be noted that the present invention describes the embodiments from two angles, one based on the functional module and the other based on the hardware.
FIG. 2 is a block diagram of a device for detecting a data re-balance state according to an embodiment of the present invention; as shown in fig. 2, a device for detecting a data re-balance state according to an embodiment of the present invention includes:
the sending module 10 is configured to send a query instruction to each node to obtain a working state of each disk in the cluster when a preset detection starting condition is satisfied;
an obtaining module 11, configured to obtain node attribute information of a target node and disk attribute information of a target disk;
the determining module 12 is configured to determine, according to the node attribute information and the disk attribute information, a target working state corresponding to the target disk from the working states of the disks;
and the generating module 13 is used for generating feedback information for prompting that the target disk is in the data re-balance state when the target working state is the data re-balance state, and sending the feedback information to the prompting equipment.
Since the embodiments of the present section and the embodiments of the method section correspond to each other, the embodiments of the present section refer to the description of the embodiments of the method section, and are not repeated herein.
According to the detection device for the data re-balance state, when the preset detection starting condition is met, query instructions are sent to all nodes to obtain the working state of all disks in the cluster; acquiring node attribute information of a target node and disk attribute information of a target disk; determining a target working state corresponding to a target disk in the working states of all disks according to the node attribute information and the disk attribute information; when the target working state is the data re-balance state, generating feedback information for prompting that the target disk is in the data re-balance state, and sending the feedback information to prompting equipment. Therefore, when the preset detection starting condition is met, the method can automatically detect the target disk to determine whether the target disk is in a data re-balance state; the operation and maintenance personnel are not required to manually input the query instruction, so that unnecessary resource waste such as manpower, time and the like is avoided; and the accuracy and efficiency of the detection result are improved, and the safety of data during capacity expansion or disk replacement is ensured.
FIG. 3 is a block diagram of a device for detecting a data re-balance state according to an embodiment of the present invention; as shown in fig. 3, a device for detecting a data re-balance state according to an embodiment of the present invention includes a memory 20 for storing a computer program;
a processor 21 for implementing the steps of the method for detecting a data re-equilibrium state according to any one of the above when executing a computer program.
Processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 21 may also comprise a main processor, which is a processor for processing data in an awake state, also called CPU (Central Processing Unit ); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
Memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing a computer program 201, where the computer program, after being loaded and executed by the processor 21, can implement relevant steps in the method for detecting a data re-balance state disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may further include an operating system 202, data 203, and the like, where the storage manner may be transient storage or permanent storage. The operating system 202 may include Windows, unix, linux, among others.
In some embodiments, the detection device for data re-balance status may further include an input/output interface 22, a communication interface 23, a power supply 24, and a communication bus 25.
Those skilled in the art will appreciate that the structure shown in fig. 3 does not constitute a limitation of the detection apparatus for the data re-equilibrium state and may include more or less components than those illustrated.
Since the embodiments of the present section and the embodiments of the method section correspond to each other, the embodiments of the present section refer to the description of the embodiments of the method section, and are not repeated herein. In some embodiments of the invention, the processor and memory may be connected by a bus or other means.
The detection equipment for the data re-balance state provided by the invention can realize the following method: when a preset detection starting condition is met, sending a query instruction to each node to acquire the working state of each disk in the cluster; acquiring node attribute information of a target node and disk attribute information of a target disk; determining a target working state corresponding to a target disk in the working states of all disks according to the node attribute information and the disk attribute information; when the target working state is the data re-balance state, generating feedback information for prompting that the target disk is in the data re-balance state, and sending the feedback information to prompting equipment. Therefore, when the preset detection starting condition is met, the method can automatically detect the target disk to determine whether the target disk is in a data re-balance state; the operation and maintenance personnel are not required to manually input the query instruction, so that unnecessary resource waste such as manpower, time and the like is avoided; and the accuracy and efficiency of the detection result are improved, and the safety of data during capacity expansion or disk replacement is ensured.
Finally, the invention also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps as described in the method embodiments above.
It will be appreciated that the methods of the above embodiments, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored on a computer readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium for performing all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The method, the device, the equipment and the medium for detecting the data balance state provided by the invention are described in detail. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the invention can be made without departing from the principles of the invention and these modifications and adaptations are intended to be within the scope of the invention as defined in the following claims.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A method for detecting a data re-equilibrium state, comprising:
when a preset detection starting condition is met, sending a query instruction to each node to acquire the working state of each disk in the cluster;
acquiring node attribute information of a target node and disk attribute information of a target disk;
determining a target working state corresponding to the target disk in the working states of the disks according to the node attribute information and the disk attribute information;
when the target working state is a data re-balance state, generating feedback information for prompting that the target disk is in the data re-balance state, and sending the feedback information to prompting equipment;
when a preset detection starting condition is met, sending a query instruction to each node to acquire the working state of each disk in the cluster, wherein the method comprises the following steps: when a disk reaching the preset disk usage amount exists in the cluster, sending a query instruction to each node to acquire the working state of each disk in the cluster;
the determining, according to the node attribute information and the disk attribute information, a target working state corresponding to the target disk from the working states of the disks includes: inquiring the working state of each disk in the target node corresponding to the node attribute information through an op_status-n-I node_id instruction; and determining the target working state of the target disk according to the disk attribute information.
2. The method for detecting a data re-balance state according to claim 1, wherein the sending the feedback information to the prompting device specifically includes:
and sending the feedback information to a display to control the display to prompt a target on an interface.
3. The method for detecting a data re-balance state according to claim 1, wherein the sending the feedback information to the prompting device specifically includes:
and sending the feedback information to the target node and the target disk through a calling interface so as to control the node indicator lamp corresponding to the target node and the disk indicator lamp corresponding to the target disk to work in a preset flashing mode.
4. The method for detecting a data re-balance state according to claim 1, wherein the acquiring node attribute information of the target node specifically includes:
and issuing an acquisition instruction according to the IP address of the target node to acquire the node attribute information.
5. The method according to claim 4, wherein the node attribute information is specifically an identification number of the target node.
6. The method according to claim 1, wherein the query instruction is a ceph instruction or a maxta instruction.
7. The method for detecting a data re-balance state according to claim 1, wherein the detection start condition specifically includes: the current time reaches a preset target time.
8. A device for detecting a data re-balance state, comprising:
the sending module is used for sending a query instruction to each node to acquire the working state of each disk in the cluster when the preset detection starting condition is met;
the acquisition module is used for acquiring node attribute information of the target node and disk attribute information of the target disk;
the determining module is used for determining a target working state corresponding to the target disk in the working states of the disks according to the node attribute information and the disk attribute information;
the generation module is used for generating feedback information for prompting that the target disk is in the data re-balance state when the target working state is the data re-balance state, and sending the feedback information to prompting equipment;
the sending module is further used for sending a query instruction to each node to obtain the working state of each disk in the cluster when the disk reaching the preset disk usage amount exists in the cluster;
the determining module is further configured to query a working state of each disk in the target node corresponding to the node attribute information through an op_status-n-I node_id instruction; and determining the target working state of the target disk according to the disk attribute information.
9. A data re-balance state detection apparatus comprising a memory for storing a computer program;
a processor for implementing the steps of the method for detecting a data re-balance status according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the method for detecting a data re-equilibrium state according to any one of claims 1 to 7.
CN202010424518.3A 2020-05-19 2020-05-19 Method, device, equipment and medium for detecting data re-balance state Active CN111625189B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010424518.3A CN111625189B (en) 2020-05-19 2020-05-19 Method, device, equipment and medium for detecting data re-balance state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010424518.3A CN111625189B (en) 2020-05-19 2020-05-19 Method, device, equipment and medium for detecting data re-balance state

Publications (2)

Publication Number Publication Date
CN111625189A CN111625189A (en) 2020-09-04
CN111625189B true CN111625189B (en) 2023-07-28

Family

ID=72259869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010424518.3A Active CN111625189B (en) 2020-05-19 2020-05-19 Method, device, equipment and medium for detecting data re-balance state

Country Status (1)

Country Link
CN (1) CN111625189B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106406754A (en) * 2016-08-31 2017-02-15 北京小米移动软件有限公司 Data migration method and device
CN108197229A (en) * 2017-12-29 2018-06-22 北京搜狐新媒体信息技术有限公司 The balance method and system of a kind of data in magnetic disk
CN110196688A (en) * 2019-05-30 2019-09-03 深信服科技股份有限公司 A kind of disk detection method, device, equipment and medium
CN110334079A (en) * 2019-06-21 2019-10-15 腾讯科技(深圳)有限公司 A kind of data migration method and device
CN110377228A (en) * 2019-06-19 2019-10-25 深圳壹账通智能科技有限公司 Automatic expansion method, device, O&M terminal and the storage medium of block chain node
CN110489062A (en) * 2019-08-27 2019-11-22 浪潮云信息技术有限公司 A kind of disk expansion method and system based on OpenStack environment
CN111158608A (en) * 2019-12-31 2020-05-15 云和恩墨(北京)信息技术有限公司 Hard disk fault processing method and device and distributed system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8281071B1 (en) * 2010-02-26 2012-10-02 Symantec Corporation Systems and methods for managing cluster node connectivity information
CN109583223B (en) * 2017-09-29 2021-08-13 北京国双科技有限公司 Detection method and device for big data safety deployment
CN107728773A (en) * 2017-10-17 2018-02-23 北京腾凌科技有限公司 Magnetic disc control method and device
CN110825542B (en) * 2018-08-07 2023-06-23 深圳爱捷云科技有限公司 Method, device and system for detecting fault disc in distributed system
CN109324765A (en) * 2018-11-01 2019-02-12 郑州云海信息技术有限公司 A kind of Disk State detection method, device, equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106406754A (en) * 2016-08-31 2017-02-15 北京小米移动软件有限公司 Data migration method and device
CN108197229A (en) * 2017-12-29 2018-06-22 北京搜狐新媒体信息技术有限公司 The balance method and system of a kind of data in magnetic disk
CN110196688A (en) * 2019-05-30 2019-09-03 深信服科技股份有限公司 A kind of disk detection method, device, equipment and medium
CN110377228A (en) * 2019-06-19 2019-10-25 深圳壹账通智能科技有限公司 Automatic expansion method, device, O&M terminal and the storage medium of block chain node
CN110334079A (en) * 2019-06-21 2019-10-15 腾讯科技(深圳)有限公司 A kind of data migration method and device
CN110489062A (en) * 2019-08-27 2019-11-22 浪潮云信息技术有限公司 A kind of disk expansion method and system based on OpenStack environment
CN111158608A (en) * 2019-12-31 2020-05-15 云和恩墨(北京)信息技术有限公司 Hard disk fault processing method and device and distributed system

Also Published As

Publication number Publication date
CN111625189A (en) 2020-09-04

Similar Documents

Publication Publication Date Title
US9917641B2 (en) Optical power data processing method, device and computer storage medium
CN111818159A (en) Data processing node management method, device, equipment and storage medium
CN111008075A (en) Load balancing system, method, device, equipment and medium
CN111628941A (en) Network traffic classification processing method, device, equipment and medium
CN110865835A (en) Configuration file updating method and device, computer equipment and storage medium
CN112380089A (en) Data center monitoring and early warning method and system
JP2007334580A (en) Support device, program, information processing system and support method
CN112351035A (en) Industrial control security situation sensing method, device and medium
CN112286755A (en) Cluster server out-of-band data acquisition method and device and computer equipment
CN104320285A (en) Website running status monitoring method and device
CN115442209A (en) Fault detection method and device, electronic equipment and storage medium
CN111597676A (en) System and method for checking system requirements of an cyber-physical system
CN111625189B (en) Method, device, equipment and medium for detecting data re-balance state
CN108897667A (en) A kind of memory temperature alarm method, device and equipment
CN110733037B (en) Signal processing method and device, storage medium and processor
CN116643906B (en) Cloud platform fault processing method and device, electronic equipment and storage medium
CN102986151A (en) Monitoring system and data transfer device and method thereof
CN109491882B (en) Case data processing method and system, equipment case and readable storage medium
CN116401109A (en) Control method, device and medium of chassis management system
CN110752972A (en) Network card state monitoring method, device, equipment and medium
CN111008119A (en) Method, device, equipment and medium for updating hard disk prediction model
CN107885575B (en) Virtual machine migration method and device
CN113706739B (en) Remote fault diagnosis processing method, platform and system
CN114356063A (en) Power supply rapid alarm response method, server, device and medium
CN109144788B (en) Method, device and system for reconstructing OSD

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 214100 No. 6, science and education software park, Binhu District, Wuxi City, Jiangsu Province

Applicant after: Huayun data holding group Co.,Ltd.

Address before: 214000 No. 6, zone B, science and education software park, Huize West Road, Binhu District, Wuxi City, Jiangsu Province

Applicant before: WUXI CHINAC DATA TECHNICAL SERVICE Co.,Ltd.

GR01 Patent grant
GR01 Patent grant