CN111475378B - Monitoring method, device and equipment for Expander - Google Patents
Monitoring method, device and equipment for Expander Download PDFInfo
- Publication number
- CN111475378B CN111475378B CN202010229650.9A CN202010229650A CN111475378B CN 111475378 B CN111475378 B CN 111475378B CN 202010229650 A CN202010229650 A CN 202010229650A CN 111475378 B CN111475378 B CN 111475378B
- Authority
- CN
- China
- Prior art keywords
- expander
- information
- zone
- configuration information
- storage
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 238000012544 monitoring process Methods 0.000 title claims abstract description 37
- 238000012806 monitoring device Methods 0.000 claims abstract description 15
- 238000007689 inspection Methods 0.000 claims description 11
- 238000004590 computer program Methods 0.000 claims description 9
- 239000004606 Fillers/Extenders Substances 0.000 claims description 6
- 230000002159 abnormal effect Effects 0.000 claims description 4
- 238000012795 verification Methods 0.000 claims description 4
- 238000012360 testing method Methods 0.000 claims description 2
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 230000008569 process Effects 0.000 description 10
- 238000012545 processing Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 7
- 230000000694 effects Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000013473 artificial intelligence Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000006855 networking Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000005338 heat storage Methods 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3041—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is an input/output interface
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring 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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a monitoring method of Expander, aiming at least one of Expander information such as Zone configuration information, storage configuration information, configuration version information, mounted disk information and the like, regularly acquiring the Expander information of a disk cluster JBOD after the deployment of the disk cluster JBOD is completed, the information of the expanders is checked according to the preset rules, and corresponding operation is executed according to the checking result, so that the expanders are monitored after the JBOD equipment of the disk clusters is put into use, faults occurring in the expanders can be timely prompted or solved, and the performance of the JBOD equipment of the disk clusters after being put into use is effectively maintained. The invention also discloses a monitoring device and equipment of the Expander and a computer readable storage medium, and has the beneficial effects.
Description
Technical Field
The invention relates to the technical field of storage, in particular to a monitoring method, a monitoring device, monitoring equipment and a computer readable storage medium for an Expander.
Background
JBOD (Just a Bunch Of Disks) storage field. The JBOD of the disk cluster is interconnected with other equipment through the Expander, so the development of the Expander is an important part in the design and development of the JBOD of the disk cluster, and the test acceptance of the Expander in the JBOD equipment of the disk cluster is more and more important.
However, after the deployment of the just a bunch of disks JBOD devices is completed, how to ensure the stable operation of the Expander, thereby ensuring the performance of the just a bunch of disks JBOD devices, is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a monitoring method, a device and equipment of Expander and a computer readable storage medium, which are used for monitoring the Expander after a just-in-disk (JBOD) device of a disk cluster is put into use so as to ensure the performance of the just-in-disk (JBOD) device of the disk cluster.
In order to solve the above technical problem, the present invention provides a monitoring method for an Expander, including:
after the deployment of the JBOD of the disk cluster is finished, acquiring the information of the Expander of the JBOD of the disk cluster at regular time;
checking the information of the Expander according to a preset rule, and executing corresponding operation according to a checking result;
the information of the Expander includes at least one of Zone configuration information, storage configuration information, configuration version information, and mounted disk information.
Optionally, when the information of the Expander is the Zone configuration information, the information of the Expander is checked according to a preset rule, and a corresponding operation is executed according to a check result, which specifically includes:
judging whether the Zone identifier in the configuration information of the Expander is one of the preset Zone identifiers or not;
if yes, judging whether the number of hosts actually supported by the Zone corresponding to the Zone identifier is consistent with the number of hosts preset and supported by the Zone; if the two sections are consistent, the Zone configuration information of the Expander passes the inspection;
if not, sending out an area Zone configuration information error reporting signal.
Optionally, the method further includes:
when the number of the actually supported hosts is inconsistent with the number of the preset supported hosts, judging whether the number of the actually supported hosts is greater than the number of the preset supported hosts;
if yes, sending out an error signal of the Zone configuration information;
and if not, recording the Zone configuration information error information.
Optionally, when the information of the Expander is the storage configuration information, the information of the Expander is checked according to a preset rule, and a corresponding operation is executed according to a check result, which specifically includes:
judging whether the storage equipment in the configuration information of the Expander is cold storage or hot storage;
if the data is cold storage, checking whether the number of the powered-on hard disks of the cold storage is correct in the configuration information of the Expander; if the storage configuration information is correct, the storage configuration information passes the verification; if not, sending out a storage configuration information error-reporting signal;
if the storage is hot storage, checking whether the power-on states of all the hard disks are normal after power-on; if yes, the storage configuration information passes the verification; if not, sending out a storage configuration information error reporting signal.
Optionally, the configuration version information specifically includes:
the SAS address and port number of the SAS card linked by the Expander, the logical identification of the Expander, at least one of the firmware version of the Expander and the firmware version of the complex programmable logic device CPLD of the hard disk backplane.
Optionally, the method further includes:
when wrong configuration version information exists, judging whether a preset version corresponding to the configuration version information exists or not;
and if so, replacing the error configuration version corresponding to the error configuration version information with the preset version.
Optionally, when the information of the Expander is the mounted disk information, the information of the Expander is checked according to a preset rule, and corresponding operations are executed according to a check result, which specifically includes:
judging whether the number of the hard disks recorded in the configuration information of the Expander is correct or not;
if the state is correct, judging whether each state of each hard disk is normal; if yes, the mounted disk information passes the inspection; if not, sending out an alarm signal of the hard disk with abnormal state;
if not, sending out a mounted disk information error reporting signal.
In order to solve the above technical problem, the present invention further provides a monitoring device for an Expander, including:
the acquiring unit is used for acquiring the Expander information of the JBOD at regular time after the deployment of the JBOD is completed;
the inspection unit is used for inspecting the information of the Expander according to a preset rule and executing corresponding operation according to an inspection result;
the information of the Expander includes at least one of Zone configuration information, storage configuration information, configuration version information, and mounted disk information.
In order to solve the above technical problem, the present invention further provides a monitoring device for an Expander, including:
a memory for storing instructions, said instructions including the steps of any of the above-described Expander monitoring methods;
a processor to execute the instructions.
In order to solve the above technical problem, the present invention further provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the monitoring method of the Expander as described in any one of the above.
The monitoring method of the Expander, provided by the invention, aims at least one of Expander information such as Zone configuration information, storage configuration information, configuration version information, mounted disk information and the like, regularly acquires the Expander information of the disk clusters JBOD after the deployment of the disk clusters is completed, checks the Expander information according to the preset rules, and executes corresponding operation according to the check result, so that the Expander is monitored after the disk clusters JBOD equipment is put into use, faults of the Expander can be timely prompted or solved, the performance of the disk clusters JBOD equipment after the equipment is put into use is effectively maintained, the running safety of the disk clusters JBOD equipment is improved, and the user experience is optimized. The invention also provides a monitoring device, equipment and a computer readable storage medium of the Expander, which have the beneficial effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments or technical solutions of the present invention, the drawings used in the embodiments or technical solutions of the present invention will be briefly described below, 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 that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a monitoring method for an Expander according to an embodiment of the present invention;
fig. 2 is a flowchart of a first specific implementation manner of step S102 in fig. 1 according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a second specific implementation manner of step S102 in fig. 1 according to an embodiment of the present invention;
fig. 4 is a flowchart of a third specific implementation manner of step S102 in fig. 1 according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a monitoring device of the Expander according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a monitoring device of an Expander according to an embodiment of the present invention.
Detailed Description
The core of the invention is to provide a monitoring method, a device, equipment and a computer readable storage medium of the Expander, which are used for monitoring the Expander after the JBOD equipment of the disk cluster is put into use so as to ensure the performance of the JBOD equipment of the disk cluster.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a monitoring method for an Expander according to an embodiment of the present invention.
As shown in fig. 1, a monitoring method for an Expander according to an embodiment of the present invention includes:
s101: and after the deployment of the JBOD of the disk cluster is finished, regularly acquiring the information of the Expander of the JBOD of the disk cluster.
S102: and checking the information of the Expander according to a preset rule, and executing corresponding operation according to a checking result.
The information of the Expander includes at least one of Zone configuration information, storage configuration information, configuration version information, and mounted disk information.
In specific implementation, a check period is preset, and after the deployment of the just-bunch-of-disks JBOD is completed, information of the Expander of the just-bunch-of-disks JBOD is acquired at regular time, and specifically, the required information can be acquired by acquiring a configuration page of the Expander.
According to a preset rule, such as a mode of searching keywords, positioning bytes and the like, finding out the position for describing the required information, comparing the information of the Expander with the correct information or the correct form recorded in advance to obtain a comparison result, further analyzing the comparison result to obtain a check result, and executing corresponding operation preset with the check result. If the version of some configuration items of the Expander is incorrect, the use of the configuration items may not be affected, and at this time, an Expander version error prompt may be used for processing or recording Expander version error information for a worker to view. For example, when the hard disk information recorded in the Expander does not match the hard disk information recorded in the operating system, system failure may be caused greatly, and at this time, error reporting processing needs to be performed to prompt a worker to check in time.
Since the Expander technology has developed an area Zone function, a hard disk power-on and power-off function, a function of setting a power-on amount of a hard disk, a function of detecting power consumption of a hard disk, and the like, information of the Expander to be detected includes at least one of area Zone configuration information, storage configuration information, configuration version information, and mounted disk information.
The method for monitoring the Expander provided by the embodiment of the invention aims at least one of the Expander information such as Zone configuration information, storage configuration information, configuration version information, mounted disk information and the like, regularly acquires the Expander information of the disk clusters JBOD after the deployment of the disk clusters JBOD is completed, checks the Expander information according to the preset rule, and corresponding operation is executed according to the check result, so that the Expander is monitored after the JBOD equipment of the disk cluster is put into use, faults occurring in the Expander can be timely prompted or solved, the performance of the JBOD equipment of the disk cluster after the JBOD equipment of the disk cluster is put into use is effectively maintained, the running safety of the JBOD equipment of the disk cluster is improved, and the user experience is optimized.
Fig. 2 is a flowchart of a first specific implementation manner of step S102 in fig. 1 according to an embodiment of the present invention.
On the basis of the above-described embodiment, as shown in fig. 2, when the information of the Expander to be checked is the Zone configuration information, step S102: checking the information of the Expander according to a preset rule, and executing corresponding operation according to a checking result, wherein the method specifically comprises the following steps:
s201: judging whether an area Zone identifier (namely Zone ID) in the configuration information of the Expander is one of preset area Zone identifiers or not; if yes, go to step S202; if not, the process proceeds to step S204.
S202: judging whether the number of hosts actually supported by the Zone corresponding to the Zone identifier is consistent with the number of hosts preset and supported by the Zone; if so, the process proceeds to step S203.
S203: the Zone configuration information of the Expander passes the check.
S204: and sending an error signal (error) of the Zone configuration information.
The Zone function is to allow devices to communicate with each other by configuring a specific device to join a Zone, when a Zone is configured on a switch, devices in the same Zone can communicate with each other, and a device not joining any Zone cannot communicate with other devices.
When checking the Zone function, it should be checked whether the Zone in the configuration information of the Expander is one of the preset Zone zones, and whether the number of hosts supported by the Zone is consistent with the number of hosts supported by the preset Zone.
In general, the Expander of SAS (Serial Attached SCSI interface) supports 3 Zone zones, i.e., zone 1, zone 2, and Zone 3, which respectively correspond to different Zone IDs (e.g., 3, 1, and 4), and are normally in a "one-to-one", "one-to-two", and "two-to-eight" networking format.
Wherein, zone 1 supports 4 hosts +1JBOD,4 SAS interfaces are respectively set as ZID 9-12, and the Zone and ZID 1 can be accessed; all hard disks are set to be ZID 1, and can access the hard disks and ZID 9-12; the effect is achieved that 4 hosts cannot see each other, but can access each hard disk.
Zone 2 supports 1 host + multi-JBOD cascaded networking, 4 SAS interfaces are set to be ZID 1, and each SAS interface can access the ZID 1; all hard disks are set to be ZID 1, and the ZID 1 can be accessed; the effect that 1 host and more JBODs can see each other and can access each hard disk is achieved.
Zone 3 supports 2 hosts (x 8 bandwidth), 2 SAS interfaces are set to ZID 9,2 SAS interfaces are set to ZID 11, and the Zone can access the host and ZID 1 respectively; all hard disks are set to be ZID 1, and can access the ZID 9-12; the effect that 2 hosts can not see each other but can access each hard disk is achieved, and 2 SAS interfaces are connected to the same host, and the bandwidth can be integrated into x8.
It is checked whether the area Zone in the configuration information of the extender Expander is one of the preset area zones, i.e. whether the area Zone in the configuration information of the extender Expander is one of Zone 1, zone 2, zone 3 by means of the Zone ID. And checking whether the number of the hosts supported by the Zone is consistent with the preset number of the hosts supported by the Zone, and comparing the head configuration information with the preset Zone configuration condition after checking the head configuration information according to the Zone information. If the Zone in the configuration information of the Expander is Zone 1, it is checked whether the handpiece configuration information of the Zone information contains 4 host IDs.
Further, when the number of hosts actually supported in step S202 is not consistent with the preset number of hosts supported, the method for monitoring the Expander provided in the embodiment of the present invention may further include:
s205: judging whether the number of the hosts actually supported is larger than the number of the hosts preset to be supported; if yes, go to step S204; if not, the process proceeds to step S206.
S206: recording area Zone configuration information error information.
The situation that the number of hosts actually supported by the Zone is greater than the preset number of hosts is more serious than the situation that the number of hosts actually supported by the Zone is less than the preset number of hosts, when the number of hosts actually supported by the Zone is greater than the preset number of hosts, the Zone configuration information is reported to be wrong to prompt the staff to maintain in time, when the number of the hosts actually supported by the Zone is less than the preset number of the supported hosts, recording Zone configuration information error information so that a worker can conveniently check the information, or only carrying out error prompt without carrying out error warning.
Fig. 3 is a flowchart of a second specific implementation manner of step S102 in fig. 1 according to an embodiment of the present invention.
On the basis of the above-described embodiment, as shown in fig. 3, when the information of the Expander to be checked is the storage configuration information, step S102: checking the information of the Expander according to a preset rule, and executing corresponding operation according to a checking result, wherein the method specifically comprises the following steps:
s301: judging whether the storage equipment in the configuration information of the Expander is cold storage or hot storage; if the storage is cold storage, the step S302 is entered; if it is the heat storage, the flow proceeds to step S305.
S302: checking whether the number of the cold-stored electrified hard disks is correct or not in the configuration information of the Expander; if yes, go to step S303; if not, the process proceeds to step S304.
S303: the storage configuration information is verified.
S304: and sending a storage configuration information error reporting signal.
S305: checking whether the power-on states of all the hard disks are normal after power-on; if yes, go to step S303; if not, the process proceeds to step S304.
Cold storage generally refers to storage in which data is not accessed very much. Hot storage generally refers to storage where data is more active. In a specific implementation, the hot and cold storage setting may be found in the configuration information of the Expander, and specifically may be to look at the identifier at the corresponding byte, such as "0" for cold storage and "1" for hot storage.
And (3) aiming at the difference of the cold and hot storage settings of the Expander, executing different inspection methods, namely for the cold storage, checking whether the number of the powered-on hard disks of the cold storage is correct, and for the hot storage, checking whether the powered-on states of all the hard disks after being powered on are normal.
On the basis of the above embodiment, when the information of the extender Expander to be checked is the configuration version information, the configuration version information to be checked specifically includes:
the hardware platform comprises at least one of SAS address and port number of SAS card linked with the Expander, logic identification of the Expander, firmware version of the Expander and firmware version of complex programmable logic device CPLD of the hard disk backplane.
In a specific implementation, each item of configuration version information can be found in the configuration information of the Expander.
After the SAS address and the port number of the SAS card linked with the Expander are checked in the configuration information of the Expander, the SAS address and the port number of the SAS card are compared with those checked through an Operating System (OS) end, if the SAS address and the port number are consistent, the SAS card passes the check, and if the SAS address and the port number are inconsistent, corresponding error reporting information is sent.
The logic identification of the Expander is found in the configuration information of the Expander, after the firmware version of the Expander and the firmware version of the complex programmable logic device CPLD of the hard disk backplane, may be compared to corresponding information viewed by the baseboard management controller BMC,
in order to quickly solve the fault and restore the normal operation of the system, the method for monitoring the Expander provided by the embodiment of the present invention may further include
When wrong configuration version information exists, judging whether a preset version corresponding to the configuration version information exists or not;
and if so, replacing the wrong configuration version corresponding to the wrong configuration version information with a preset version.
And for the configuration version which is preset by a user and can be automatically replaced and corrected, when the wrong configuration version information is found, directly calling the correct preset version for replacement.
Fig. 4 is a flowchart illustrating a third specific implementation manner of step S102 in fig. 1 according to an embodiment of the present invention.
On the basis of the above-described embodiment, as shown in fig. 4, when the information of the Expander to be checked is mounted disk information, step S102: checking the information of the Expander according to a preset rule, and executing corresponding operation according to a checking result, wherein the method specifically comprises the following steps:
s401: judging whether the number of the hard disks recorded in the configuration information of the Expander is correct or not; if yes, go to step S402; if not, the process proceeds to step S405.
S402: judging whether each state of each hard disk is normal or not; if yes, go to step S403; if not, the process proceeds to step S404.
S403: the mounted disk information passes the inspection.
S404: and sending out an alarm signal of the hard disk with abnormal state.
S405: and sending an error signal of the mounted disk information.
The method comprises the steps of obtaining mounted hard disk information (HDD 1 \8230; 8230; HDD n) in configuration information of the Expander, comparing the mounted hard disk information with hard disk information recorded in an operating system, and if the mounted hard disk information is inconsistent with the hard disk information, sending a mounted hard disk information error reporting signal if the number of the hard disks recorded in the configuration information of the Expander is incorrect. If the hard disk information recorded by the configuration information of the Expander is consistent with the hard disk information recorded in the operating system, the states of the hard disks recorded by the configuration information of the Expander, such as the power supply state, the indicator light state and the like, are checked, if the states of the hard disks are normal, the mounted disk information passes the inspection, and if the hard disks with abnormal states exist, an alarm signal is generated according to the fault information of the hard disks.
On the basis of the detailed description of the various embodiments corresponding to the monitoring method of the Expander, the invention also discloses a monitoring device, a monitoring device and a computer readable storage medium of the Expander corresponding to the method.
Fig. 5 is a schematic structural diagram of a monitoring device of the Expander according to an embodiment of the present invention.
As shown in fig. 5, the monitoring apparatus of the Expander according to the embodiment of the present invention includes:
an obtaining unit 501, configured to obtain information of an Expander of a just-in-disk (JBOD) cluster at regular time after the deployment of the JBOD cluster is completed;
a checking unit 502, configured to check information of the Expander according to a preset rule, and execute a corresponding operation according to a check result;
the information of the Expander includes at least one of Zone configuration information, storage configuration information, configuration version information, and mounted disk information.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
Fig. 6 is a schematic structural diagram of a monitoring device of an Expander according to an embodiment of the present invention.
As shown in fig. 6, the monitoring device of the Expander according to the embodiment of the present invention includes:
a memory 610 for storing instructions including the steps of the monitoring method of the Expander according to any one of the above embodiments;
a processor 620 for executing the instructions.
Among other things, processor 620 may include one or more processing cores, such as a 3-core processor, an 8-core processor, and so forth. The processor 620 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). Processor 620 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in a wake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 620 may be integrated with a GPU (Graphics Processing Unit) that is responsible for rendering and drawing content that the display screen needs to display. In some embodiments, the processor 620 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 610 may include one or more computer-readable storage media, which may be non-transitory. Memory 610 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 610 is at least used for storing the following computer program 611, wherein after the computer program 611 is loaded and executed by the processor 620, the relevant steps in the monitoring method of the Expander disclosed in any of the foregoing embodiments can be implemented. In addition, the resources stored by the memory 610 may also include an operating system 612, data 613, and the like, and the storage manner may be a transient storage or a permanent storage. The operating system 612 may be Windows, among others. The data 613 may include, but is not limited to, data involved in the above-described methods.
In some embodiments, the monitoring equipment of the extender may also include a display 630, a power supply 640, a communication interface 650, an input output interface 660, sensors 670, and a communication bus 680.
Those skilled in the art will appreciate that the configuration shown in FIG. 6 does not constitute a limitation of the monitoring device of the extender, and may include more or fewer components than those shown.
The monitoring device of the Expander provided by the embodiment of the application comprises the memory and the processor, and the processor can realize the monitoring method of the Expander when executing the program stored in the memory, and the effect is the same as the above.
It should be noted that the above-described embodiments of the apparatus and device are merely illustrative, for example, the division of modules is only one type of division of logical functions, and there may be other ways of dividing the modules or components in actual implementation, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be through some interfaces, indirect coupling or communication connection between devices or modules, and may be in an electrical, mechanical or other form. Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is substantially or partially contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and performs all or part of the steps of the method according to the embodiments of the present invention.
To this end, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the monitoring method such as the Expander.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The computer program contained in the computer-readable storage medium provided in this embodiment can implement the steps of the monitoring method of the Expander as described above when executed by the processor, and the effect is the same as above.
The monitoring method, device, equipment and computer readable storage medium for the Expander provided by the invention are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The apparatuses, devices and computer-readable storage media disclosed in the embodiments correspond to the methods disclosed in the embodiments, so that the description is simple, and the relevant points can be referred to the description of the method. It should be noted that, for those skilled in the art, without departing from the principle of the present invention, it is possible to make various improvements and modifications to the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
It is further noted that, in the present 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. Also, 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 phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
Claims (9)
1. A monitoring method of an Expander is characterized by comprising the following steps:
after the deployment of the JBOD of the disk cluster is finished, regularly acquiring the information of an Expander of the JBOD of the disk cluster;
checking the information of the Expander according to a preset rule, and executing corresponding operation according to a checking result;
the information of the Expander comprises at least one of Zone configuration information, storage configuration information, configuration version information and mounted disk information;
when the information of the Expander is the Zone configuration information, the information of the Expander is checked according to a preset rule, and corresponding operations are executed according to a check result, which specifically includes: judging whether the Zone identifier in the configuration information of the Expander is one of preset Zone identifiers or not; if so, judging whether the number of hosts actually supported by the Zone corresponding to the Zone identifier is consistent with the number of hosts preset and supported by the Zone; if the two areas are consistent, the Zone configuration information of the Expander passes the test; if not, sending out an error signal of the Zone configuration information.
2. The monitoring method according to claim 1, further comprising:
when the number of the actually supported hosts is inconsistent with the number of the preset supported hosts, judging whether the number of the actually supported hosts is larger than the number of the preset supported hosts;
if yes, sending out an error reporting signal of the Zone configuration information;
and if not, recording the Zone configuration information error information.
3. The monitoring method according to claim 1, wherein when the information of the Expander is the storage configuration information, the information of the Expander is checked according to a preset rule, and a corresponding operation is executed according to a check result, specifically including:
judging whether the storage equipment in the configuration information of the Expander is cold storage or hot storage;
if the expansion is cold storage, checking whether the number of the powered-on hard disks of the cold storage is correct in the configuration information of the Expander; if the storage configuration information is correct, the storage configuration information passes the verification; if not, sending out a storage configuration information error reporting signal;
if the storage is hot storage, checking whether the power-on states of all the hard disks are normal after power-on; if yes, the storage configuration information passes the verification; if not, sending out a storage configuration information error reporting signal.
4. The monitoring method according to claim 1, wherein the configuration version information specifically includes:
the system comprises at least one of an SAS address and a port number of an SAS card linked with the Expander, a logic identifier of the Expander, a firmware version of the Expander and a firmware version of a complex programmable logic device CPLD of a hard disk backplane.
5. The monitoring method according to claim 4, further comprising:
when wrong configuration version information exists, judging whether a preset version corresponding to the configuration version information exists or not;
and if so, replacing the wrong configuration version corresponding to the wrong configuration version information with the preset version.
6. The monitoring method according to claim 1, wherein when the information of the Expander is the mounted disk information, the information of the Expander is checked according to a preset rule, and a corresponding operation is executed according to a check result, specifically including:
judging whether the number of the hard disks recorded in the configuration information of the Expander is correct or not;
if the state is correct, judging whether each state of each hard disk is normal; if yes, the mounted disk information passes the inspection; if not, sending out an alarm signal of the hard disk with an abnormal state;
if not, sending out a mounted disk information error reporting signal.
7. A monitoring apparatus of an Expander, comprising:
the acquiring unit is used for acquiring the Expander information of the JBOD at regular time after the deployment of the JBOD is completed;
the inspection unit is used for inspecting the information of the Expander according to a preset rule and executing corresponding operation according to an inspection result;
the information of the Expander comprises at least one of Zone configuration information, storage configuration information, configuration version information and mounted disk information;
when the information of the Expander is the Zone configuration information, the information of the Expander is checked according to a preset rule, and corresponding operations are executed according to a check result, which specifically includes: judging whether the Zone identifier in the configuration information of the Expander is one of preset Zone identifiers or not; if so, judging whether the number of hosts actually supported by the Zone corresponding to the Zone identifier is consistent with the number of hosts preset and supported by the Zone; if the two sections are consistent, the Zone configuration information of the Expander passes the inspection; if not, sending out an error signal of the Zone configuration information.
8. A monitoring device of an Expander, comprising:
a memory for storing instructions, said instructions comprising the steps of the method for monitoring of the extender Expander of any of claims 1 to 6;
a processor to execute the instructions.
9. A computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the monitoring method of the Expander according to any of the claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010229650.9A CN111475378B (en) | 2020-03-27 | 2020-03-27 | Monitoring method, device and equipment for Expander |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010229650.9A CN111475378B (en) | 2020-03-27 | 2020-03-27 | Monitoring method, device and equipment for Expander |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111475378A CN111475378A (en) | 2020-07-31 |
CN111475378B true CN111475378B (en) | 2022-10-28 |
Family
ID=71749300
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010229650.9A Active CN111475378B (en) | 2020-03-27 | 2020-03-27 | Monitoring method, device and equipment for Expander |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111475378B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117493258B (en) * | 2023-12-28 | 2024-03-29 | 苏州元脑智能科技有限公司 | Information acquisition system, method, device and storage medium of baseboard management controller |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110580235A (en) * | 2018-06-08 | 2019-12-17 | 杭州宏杉科技股份有限公司 | SAS expander communication method and device |
-
2020
- 2020-03-27 CN CN202010229650.9A patent/CN111475378B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110580235A (en) * | 2018-06-08 | 2019-12-17 | 杭州宏杉科技股份有限公司 | SAS expander communication method and device |
Also Published As
Publication number | Publication date |
---|---|
CN111475378A (en) | 2020-07-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109471770B (en) | System management method and device | |
CN103019885B (en) | Method and system for monitoring embedded Linux-based hard disc bad track | |
US10241868B2 (en) | Server control method and server control device | |
CN109683696A (en) | Fault of server power supply detection system, method, apparatus, equipment and medium | |
US20090006745A1 (en) | Accessing snapshot data image of a data mirroring volume | |
US9594641B2 (en) | Techniques for updating memory of a chassis management module | |
JP6602354B2 (en) | Bus hang detection | |
JP2002333935A (en) | Method and system for hot-inserting controller in redundant controller system | |
CN109189627B (en) | Hard disk fault monitoring and detecting method, device, terminal and storage medium | |
US9063854B1 (en) | Systems and methods for cluster raid data consistency | |
CN103164316A (en) | Hardware monitor | |
CN115657965B (en) | Method, device and medium for configuring metadata | |
CN111475378B (en) | Monitoring method, device and equipment for Expander | |
CN114189429B (en) | Monitoring system, method, device and medium for server cluster faults | |
CN113590405A (en) | Hard disk error detection method and device, storage medium and electronic device | |
WO2024124862A1 (en) | Server-based memory processing method and apparatus, processor and an electronic device | |
CN116089139A (en) | Method, device and medium for processing serial hard disk faults | |
CN115904787A (en) | Method, device and medium for determining reason of lost disk | |
CN111124804B (en) | Test method and device | |
CN111124754A (en) | Data recovery method, device, equipment and medium | |
CN114153388B (en) | Hard disk system, hard disk configuration information refreshing method, device and medium | |
CN117687821A (en) | Method and device for processing bad blocks of cache memory and electronic equipment | |
CN115333979A (en) | Link error code processing method and device and computer readable storage medium | |
CN118331783A (en) | Disk replacement method and server | |
CN118093265A (en) | PCIE equipment fault processing method and server |
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 |