CN114443446B - Hard disk indicator lamp control method, system, terminal and storage medium - Google Patents

Hard disk indicator lamp control method, system, terminal and storage medium Download PDF

Info

Publication number
CN114443446B
CN114443446B CN202210072361.1A CN202210072361A CN114443446B CN 114443446 B CN114443446 B CN 114443446B CN 202210072361 A CN202210072361 A CN 202210072361A CN 114443446 B CN114443446 B CN 114443446B
Authority
CN
China
Prior art keywords
control
controller
hard disk
control time
sequence
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
CN202210072361.1A
Other languages
Chinese (zh)
Other versions
CN114443446A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210072361.1A priority Critical patent/CN114443446B/en
Publication of CN114443446A publication Critical patent/CN114443446A/en
Application granted granted Critical
Publication of CN114443446B publication Critical patent/CN114443446B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/325Display of status information by lamps or LED's
    • 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
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The invention relates to the technical field of storage equipment, and particularly provides a method, a system, a terminal and a storage medium for controlling a hard disk indicator lamp, wherein the method comprises the following steps: identifying all controllers of the hard disk indicator lamp, and generating a control time sequence by setting control time and control sequence of each controller in a control period, wherein the control time sequence comprises a plurality of control periods; and according to the control time sequence, each controller sequentially controls the state of the hard disk indicator lamp according to the state of the hard disk. The indicator light control logic can be used in a multi-control and single-control environment, has a self-adaptive function, can automatically switch the controller of the indicator light, and can enable a server maintainer to quickly position a hard disk with a problem.

Description

Hard disk indicator lamp control method, system, terminal and storage medium
Technical Field
The invention relates to the technical field of storage equipment, in particular to a method, a system, a terminal and a storage medium for controlling a hard disk indicator lamp.
Background
On the back plate of the storage server, each hard disk slot is provided with an in-place indicator light for indicating whether the hard disk is in place or not. However, the indicator light has a very limited effect, and if the hard disk is inserted into the slot, the indicator light will illuminate, indicating that the hard disk is in place. But the following problems are encountered during actual use:
during the use process of the hard disk, firmware damage may occur, so that the operating system cannot identify the hard disk, and thus, the hard disk cannot be read and written. In this case, however, the indicator light of the hard disk will also show a green color indicating that the hard disk is still inserted on the back plate. At this time, it cannot be judged by the indicator lamp that the hard disk has failed at this time.
In a dual-control or multi-control environment, several control units share a storage system, but not all control units can correctly detect the hard disk and read and write the hard disk normally. For example, in such a case, the main board a is operating normally in the dual-control environment, the main board B is in a waiting state, the main board a detects that the hard disk is in place, so that the in-place indicator light of the hard disk displays green, but the main board B does not detect the hard disk. When the main board A stops working due to the fault, the main board B takes over the working of the main board A, but the main board B does not detect the hard disk at the moment, so that the hard disk cannot work.
Disclosure of Invention
The invention provides a method, a system, a terminal and a storage medium for controlling a hard disk indicator lamp to solve the technical problems.
In a first aspect, the present invention provides a method for controlling a hard disk indicator lamp, including:
identifying all controllers of the hard disk indicator lamp, and generating a control time sequence by setting control time and control sequence of each controller in a control period, wherein the control time sequence comprises a plurality of control periods;
and according to the control time sequence, each controller sequentially controls the state of the hard disk indicator lamp according to the state of the hard disk.
Further, all controllers of the hard disk indicator lamp are identified, and a control time sequence is generated by setting the control time and the control sequence of each controller in a control period, wherein the control time sequence comprises a plurality of control periods and comprises the following steps:
selecting a main controller from all controllers, wherein the main controller receives identity information sent by other controllers;
the main controller gathers the received identity information and caches the gathered identity information and the local identity information as the identity information of all controllers;
the main controller uses a random function to sort the identity information of all controllers, and takes the sorting result as the control sequence of each controller in a control period;
the master controller distributes control time to each controller evenly according to the set control period duration, and the control time of the controllers is arranged according to the control sequence to obtain a control period;
the main controller distributes the timing composed of the cyclic control periods as control timing to other controllers.
Further, all controllers of the hard disk indicator lamp are identified, and a control time sequence is generated by setting the control time and the control sequence of each controller in a control period, wherein the control time sequence comprises a plurality of control periods and comprises the following steps:
the main controller sets a waiting period and adds the waiting period between adjacent control periods in a time sequence formed by the cyclic control periods;
the main controller distributes the timing to which the waiting period is added as control timing to other controllers.
Further, according to the control timing sequence, each controller sequentially controls the state of the hard disk indicator lamp according to the state of the hard disk, including:
the controller splits a sub-control time sequence corresponding to the controller from the control time sequence according to the control sequence, the control time and the control period duration in the control period;
and the controller starts timing when receiving a hard disk indicator lamp control program starting signal, and controls the state of the hard disk indicator lamp when the timing time is within the control time range of the sub-control time sequence.
Further, the controller starts timing when receiving the start signal of the hard disk indicator lamp control program, and controls the state of the hard disk indicator lamp when the timing time is within the control time range of the sub-control time sequence, including:
the controller collects the state of the managed hard disk, if the state of the hard disk is normal, the hard disk indicator lamp is turned on within the control time range of the sub-control time sequence, and if the state of the hard disk is abnormal, the hard disk indicator lamp is turned off within the control time range of the sub-control time sequence.
In a second aspect, the present invention provides a hard disk indicator lamp control system, including:
the time sequence generating unit is used for identifying all controllers of the hard disk indicator lamp and generating a control time sequence by setting the control time and the control sequence of each controller in a control period, wherein the control time sequence comprises a plurality of control periods;
and the time sequence control unit is used for enabling each controller to control the state of the hard disk indicator lamp according to the state of the hard disk in sequence according to the control time sequence.
Further, the timing generation unit includes:
the control election module is used for electing a main controller from all controllers, and the main controller receives identity information sent by other controllers;
the information summarizing module is used for summarizing the received identity information by the main controller and caching the summarized identity information and the local identity information into the identity information of all the controllers;
the sequence generation module is used for sequencing the identity information of all the controllers by using a random function by the main controller, and taking the sequencing result as the control sequence of each controller in a control period;
the period generation module is used for enabling the main controller to evenly distribute control time to each controller according to the set control period duration and arranging the control time of the controllers according to the control sequence to obtain a control period;
and the time sequence generation module is used for distributing the time sequence formed by the cycle control periods to other controllers as a control time sequence by the main controller.
Further, the timing generation unit is further configured to:
the main controller sets a waiting period and adds the waiting period between adjacent control periods in a time sequence formed by the cyclic control periods;
the main controller distributes the timing to which the waiting period is added as control timing to other controllers.
Further, the timing control unit includes:
the time sequence splitting module is used for splitting the sub-control time sequence corresponding to the controller from the control time sequence according to the control sequence, the control time and the control period duration in the control period;
and the state control module is used for starting timing when the controller receives the starting signal of the control program of the hard disk indicator lamp, and controlling the state of the hard disk indicator lamp when the timing time is within the control time range of the sub-control time sequence.
Further, the state control module is further configured to:
the controller collects the state of the managed hard disk, if the state of the hard disk is normal, the hard disk indicator lamp is turned on within the control time range of the sub-control time sequence, and if the state of the hard disk is abnormal, the hard disk indicator lamp is turned off within the control time range of the sub-control time sequence.
In a third aspect, a terminal is provided, including:
a processor, a memory, wherein,
the memory is used for storing a computer program,
the processor is configured to call and run the computer program from the memory, so that the terminal performs the method of the terminal as described above.
In a fourth aspect, there is provided a computer storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the method of the above aspects.
The method, the system, the terminal and the storage medium for controlling the hard disk indicator lamp have the beneficial effects that the control time sequence is generated for a plurality of controllers to form a periodic control, and the identification result of the plurality of controllers on the hard disk can be displayed in the same period. The indicator light control logic can be used in a multi-control and single-control environment, has a self-adaptive function, can automatically switch the controller of the indicator light, and can enable a server maintainer to quickly position a hard disk with a problem.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic flow chart of a method of one embodiment of the invention.
FIG. 2 is a schematic hardware architecture diagram of a method of one embodiment of the invention.
FIG. 3 is a schematic block diagram of a system of one embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the technical solution of the present invention better understood by those skilled in the art, the technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
The following explains key terms appearing in the present invention.
BMC, execution server remote management controller, english name Baseboard Management controller. The method can perform firmware upgrade, check machine equipment and other operations on the machine in a state that the machine is not started. Fully implementing IPMI functionality in a BMC requires a powerful 16-bit or 32-bit microcontroller and RAM for data storage, flash memory for non-volatile data storage, and firmware to provide basic remote manageability in terms of secure remote reboot, secure re-power-up, LAN alerting, and system health monitoring. In addition to the basic IPMI and system operation monitoring functions, the mBMC can also enable BIOS flash element selection and protection by storing the previous BIOS using one of the 2 flash memories. For example, when the system fails to boot after a remote BIOS upgrade, the remote administrator may switch back to the previously-working BIOS image to boot the system. Once BIOS is upgraded, the BIOS image can be locked, so as to effectively prevent virus from invading it.
The CPLD complex programmable logic device mainly comprises three parts, namely a logic block, a programmable interconnection channel and an I/O block.
FIG. 1 is a schematic flow chart of a method of one embodiment of the invention. The execution body of fig. 1 may be a hard disk indicator light control system.
As shown in fig. 1, the method includes:
step 110, identifying all controllers of the hard disk indicator lamp, and generating a control time sequence by setting the control time and the control sequence of each controller in a control period, wherein the control time sequence comprises a plurality of control periods;
and step 120, according to the control time sequence, enabling each controller to control the state of the hard disk indicator lamp according to the state of the hard disk in sequence.
In order to facilitate understanding of the present invention, the principle of the method for controlling a hard disk indicator lamp according to the present invention is used to further describe the method for controlling a hard disk indicator lamp according to the present invention in combination with the process of controlling a hard disk indicator lamp in the embodiment.
In order to improve the reliability of the equipment, the storage server generally adopts a multi-control design, namely a plurality of control units, only one control unit works in normal operation, and when the main control unit in operation breaks down and is down, the redundant control unit can immediately enter into a working state to replace the working of the main control unit, so that the whole storage server is prevented from being stopped. Just like a computer has two mainboards, only one of the mainboards works in normal operation, and the other is in a waiting state, when the working mainboard breaks down, the waiting mainboard immediately takes over the working of the working mainboard, so that the system operates normally. However, in one storage node, only one storage system at the back end is provided, that is, a plurality of controllers share one storage system, and the control unit is connected with the hard disk at the back end through the back plate. Just like the two main boards described above share one hard disk. But often there are up to tens of hard disks on the back end in the storage server.
Specifically, referring to fig. 2, the present invention is described by taking two controllers, which are a controller a and a controller B, respectively, where the controller a and the controller B each include a set of respective BMCs and CPLDs, and the hard disk indicator light control method includes:
s1, identifying all controllers of the hard disk indicator lamp, and generating a control time sequence by setting control time and control sequence of each controller in a control period, wherein the control time sequence comprises a plurality of control periods.
And selecting a master controller from all controllers, wherein the master controller receives identity information sent by other controllers, for example, selecting a first controller as the master controller, and sending the identity information to the first controller by a second controller. After the first controller receives the identity information of the first controller, the first controller caches the second controller identity information and the local first controller identity information, wherein the identity information can be a controller identity ID. The first controller sorts the identity information of all controllers by utilizing a random function, and takes the sorting result as the control sequence of each controller in a control period; the first controller distributes control time for each controller averagely according to the set control period duration, and arranges the control time of the controllers according to the control sequence to obtain a control period; the first controller transmits the timing composed of the cyclic control periods as a control timing to the second controller.
For example, the controller a acquires the identity ID of the controller B, and sets the control time of the controller to 1s. The control sequence of the random generation is that the controller A is in front and the controller B is in back. The controller a generates a control period t= [ a (1 s), B (1 s) ], representing that one control period has a duration of 2s, the former 1s being the control time of the controller a and the latter 1s being the control time of the controller B. The control timing is generated based on the control period T, i.e., the loop execution control period T.
For ease of observation, a waiting period 2s may be set. The waiting period is added between adjacent control periods among timings composed of the cyclic control periods, and the timing to which the waiting period is added is regarded as a control timing when the control timing is [ a (1 s), B (1 s), (2 s), … ].
At this time, the controller a first selects the first half sequence, and generates a first control time [0:00-0:01,0:02-0:03,0:04-0:05, … ] assuming that the current time is 0:00. The BMC of the controller A sends the first control time to the BMC of the controller B, and the BMC of the controller B selects the second half section sequence based on the first control time to obtain a second control time [0:01-0:02,0:03-0:04,0:05-0:06, … ].
S2, according to the control time sequence, enabling each controller to control the state of the hard disk indicator lamp according to the state of the hard disk in sequence.
The controller splits a sub-control time sequence corresponding to the controller from the control time sequence according to the control sequence, the control time and the control period duration in the control period; the controller starts timing when receiving the hard disk indicator lamp control program starting signal, and controls the state of the hard disk indicator lamp when the timing time is within the control time range of the sub-control time sequence.
For example, at this time, the controller a first selects the first half sequence, and assuming that the moment of receiving the start signal is 0:00, the sub-control sequence of the controller a is split from the control sequence to be [0:00-0:01,0:02-0:03,0:04-0:05, … ]. The sub-control time sequence of the controller B is [0:01-0:02,0:03-0:04,0:05-0:06, … ]. The controller A and the controller B start timing at 0:00, and when the timing time of the controller A starts to control the hard disk indicator lamp at 0:00 and the timing time reaches 0:01, the control is stopped; and when the timing time of the controller B is 0:01, the hard disk indicator lamp is controlled, and the control is stopped when the timing time reaches 0:02.
The BMCs of the two controllers can acquire signals from the hard disk slots to judge whether the hard disk is in place, and when the hard disk is detected to be in place, the BMCs read the information of the idle area of the hard disk and judge whether the hard disk can be read and written normally by judging whether the information can be read. When the BMC of the controller knows the state of the hard disk, the corresponding state code is sent to the CPLD, and the CPLD controls the hard disk indicator lamp through the information from the hard disk.
When only one controller can identify that the hard disk works normally and the other controller does not identify that the hard disk works normally, at the moment, both controllers control the hard disk indicating lamp at the control time of the controller, the controller identifying that the hard disk works normally turns green at the control time of the controller, the indicating lamp not identifying that the hard disk works normally turns dark at the control time of the controller, and at the moment, the indicating lamp of the hard disk flashes to indicate that the controller does not identify the hard disk correctly. Only when both controllers recognize that the state of the hard disk is normal, the respective control times of both controllers are normally bright green, so the indicator lamp will always be normally bright green.
The control logic of the invention also has self-adaptive capability under the multi-control environment, when three controllers exist, the BMCs of the three controllers only need to mutually negotiate when starting up to determine the control time of the indicator lamp, so that the control logic can be used in the three-control environment. At this time, the control time in one control period is 3, and each controller controls the indicator lamp in turn in the own control time. When there is only one controller, there is only one control time and the control logic is degraded to ordinary hard disk indicator light control logic.
As shown in fig. 3, the system 300 includes:
a timing generation unit 310 for identifying all controllers of the hard disk indicator lamp and generating a control timing by setting a control time and a control order of each controller in a control period, the control timing including a plurality of control periods;
the time sequence control unit 320 is configured to enable each controller to control the status of the hard disk indicator lamp according to the status of the hard disk in sequence according to the control time sequence.
Optionally, as an embodiment of the present invention, the timing generating unit includes:
the control election module is used for electing a main controller from all controllers, and the main controller receives identity information sent by other controllers;
the information summarizing module is used for summarizing the received identity information by the main controller and caching the summarized identity information and the local identity information into the identity information of all the controllers;
the sequence generation module is used for sequencing the identity information of all the controllers by using a random function by the main controller, and taking the sequencing result as the control sequence of each controller in a control period;
the period generation module is used for enabling the main controller to evenly distribute control time to each controller according to the set control period duration and arranging the control time of the controllers according to the control sequence to obtain a control period;
and the time sequence generation module is used for distributing the time sequence formed by the cycle control periods to other controllers as a control time sequence by the main controller.
Optionally, as an embodiment of the present invention, the timing generating unit is further configured to:
the main controller sets a waiting period and adds the waiting period between adjacent control periods in a time sequence formed by the cyclic control periods;
the main controller distributes the timing to which the waiting period is added as control timing to other controllers.
Alternatively, as an embodiment of the present invention, the timing control unit includes:
the time sequence splitting module is used for splitting the sub-control time sequence corresponding to the controller from the control time sequence according to the control sequence, the control time and the control period duration in the control period;
and the state control module is used for starting timing when the controller receives the starting signal of the control program of the hard disk indicator lamp, and controlling the state of the hard disk indicator lamp when the timing time is within the control time range of the sub-control time sequence.
Optionally, the state control module according to an embodiment of the present invention is further configured to:
the controller collects the state of the managed hard disk, if the state of the hard disk is normal, the hard disk indicator lamp is turned on within the control time range of the sub-control time sequence, and if the state of the hard disk is abnormal, the hard disk indicator lamp is turned off within the control time range of the sub-control time sequence.
Fig. 4 is a schematic structural diagram of a terminal 400 according to an embodiment of the present invention, where the terminal 400 may be used to execute the hard disk indicator lamp control method according to the embodiment of the present invention.
The terminal 400 may include: processor 410, memory 420, and communication unit 430. The components may communicate via one or more buses, and it will be appreciated by those skilled in the art that the configuration of the server as shown in the drawings is not limiting of the invention, as it may be a bus-like structure, a star-like structure, or include more or fewer components than shown, or may be a combination of certain components or a different arrangement of components.
The memory 420 may be used to store instructions for execution by the processor 410, and the memory 420 may be implemented by any type of volatile or nonvolatile memory terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk. The execution of the instructions in memory 420, when executed by processor 410, enables terminal 400 to perform some or all of the steps in the method embodiments described below.
The processor 410 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by running or executing software programs and/or modules stored in the memory 420, and invoking data stored in the memory. The processor may be comprised of an integrated circuit (Integrated Circuit, simply referred to as an IC), for example, a single packaged IC, or may be comprised of a plurality of packaged ICs connected to the same function or different functions. For example, the processor 410 may include only a central processing unit (Central Processing Unit, simply CPU). In the embodiment of the invention, the CPU can be a single operation core or can comprise multiple operation cores.
And a communication unit 430 for establishing a communication channel so that the storage terminal can communicate with other terminals. Receiving user data sent by other terminals or sending the user data to other terminals.
The present invention also provides a computer storage medium in which a program may be stored, which program may include some or all of the steps in the embodiments provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a random-access memory (random access memory, RAM), or the like.
Therefore, the invention forms a periodic control by generating the control time sequence for the plurality of controllers, and can display the identification result of the plurality of controllers to the hard disk in the same period. The control logic of the indicator lamp can be used in a multi-control and single-control environment, has a self-adaptive function, can automatically switch the control time of the indicator lamp, can enable a server maintainer to locate a hard disk with a problem faster, and can achieve the technical effects described above without redundant description.
It will be apparent to those skilled in the art that the techniques of embodiments of the present invention may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solution in the embodiments of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium such as a U-disc, a mobile hard disc, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, etc. various media capable of storing program codes, including several instructions for causing a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the method described in the embodiments of the present invention.
The same or similar parts between the various embodiments in this specification are referred to each other. In particular, for the terminal embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference should be made to the description in the method embodiment for relevant points.
In the several embodiments provided by the present invention, it should be understood that the disclosed systems and methods may be implemented in other ways. For example, the system embodiments described above are merely illustrative, e.g., the division of the elements is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, system or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
Although the present invention has been described in detail by way of preferred embodiments with reference to the accompanying drawings, the present invention is not limited thereto. Various equivalent modifications and substitutions may be made in the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and it is intended that all such modifications and substitutions be within the scope of the present invention/be within the scope of the present invention as defined by the appended claims. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (4)

1. A method for controlling a hard disk indicator lamp, comprising:
identifying all controllers of the hard disk indicator lamp, and generating a control time sequence by setting control time and control sequence of each controller in a control period, wherein the control time sequence comprises a plurality of control periods;
according to the control time sequence, each controller sequentially controls the state of the hard disk indicator lamp according to the state of the hard disk;
according to the control time sequence, each controller sequentially controls the state of the hard disk indicator lamp according to the state of the hard disk, and the method comprises the following steps:
the controller splits a sub-control time sequence corresponding to the controller from the control time sequence according to the control sequence, the control time and the control period duration in the control period;
the controller starts timing when receiving a hard disk indicator lamp control program starting signal, and controls the state of the hard disk indicator lamp when the timing time is within the control time range of the sub-control time sequence;
the controller starts timing when receiving the hard disk indicator lamp control program start signal, and controls the state of the hard disk indicator lamp when the timing time is within the control time range of the sub-control time sequence, and the method comprises the following steps:
the controller collects the state of the managed hard disk, if the state of the hard disk is normal, the hard disk indicator lamp is turned on within the control time range of the sub-control time sequence, and if the state of the hard disk is abnormal, the hard disk indicator lamp is turned off within the control time range of the sub-control time sequence;
identifying all controllers of the hard disk indicator lamp, and generating a control time sequence by setting control time and control sequence of each controller in a control period, wherein the control time sequence comprises a plurality of control periods and comprises the following steps:
the controller A acquires the identity ID of the controller B, and the control time of the controller is set to be 1s; the control sequence generated randomly is that the controller A is in front and the controller B is in back; the controller a generates a control period t= [ a (1 s), B (1 s) ], representing that one control period has a duration of 2s, the former 1s being the control time of the controller a, and the latter 1s being the control time of the controller B; generating a control time sequence based on the control period T, wherein the control time sequence is used for circularly executing the control period T;
setting a waiting period 2s; adding a waiting period between adjacent control periods among timings composed of cyclic control periods, the timings to which the waiting period is added being regarded as control timings, where the control timings are [ a (1 s), B (1 s), (2 s), … ];
at this time, the controller a first selects the first half segment order, and if the current time is 0:00, generates a first control time [0:00-0:01,0:02-0:03,0:04-0:05, … ]; the BMC of the controller A sends the first control time to the BMC of the controller B, and the BMC of the controller B selects the second half section sequence based on the first control time to obtain a second control time [0:01-0:02,0:03-0:04,0:05-0:06, … ].
2. A hard disk indicator light control system, comprising:
the time sequence generating unit is used for identifying all controllers of the hard disk indicator lamp and generating a control time sequence by setting the control time and the control sequence of each controller in a control period, wherein the control time sequence comprises a plurality of control periods;
the time sequence control unit is used for enabling each controller to control the state of the hard disk indicator lamp according to the state of the hard disk in sequence according to the control time sequence;
the timing control unit includes:
the time sequence splitting module is used for splitting the sub-control time sequence corresponding to the controller from the control time sequence according to the control sequence, the control time and the control period duration in the control period;
the state control module is used for starting timing when the controller receives a hard disk indicator lamp control program starting signal and controlling the state of the hard disk indicator lamp when the timing time is within the control time range of the sub-control time sequence;
the controller starts timing when receiving the hard disk indicator lamp control program start signal, and controls the state of the hard disk indicator lamp when the timing time is within the control time range of the sub-control time sequence, and the method comprises the following steps:
the controller collects the state of the managed hard disk, if the state of the hard disk is normal, the hard disk indicator lamp is turned on within the control time range of the sub-control time sequence, and if the state of the hard disk is abnormal, the hard disk indicator lamp is turned off within the control time range of the sub-control time sequence;
identifying all controllers of the hard disk indicator lamp, and generating a control time sequence by setting control time and control sequence of each controller in a control period, wherein the control time sequence comprises a plurality of control periods and comprises the following steps:
the controller A acquires the identity ID of the controller B, and the control time of the controller is set to be 1s; the control sequence generated randomly is that the controller A is in front and the controller B is in back; the controller a generates a control period t= [ a (1 s), B (1 s) ], representing that one control period has a duration of 2s, the former 1s being the control time of the controller a, and the latter 1s being the control time of the controller B; generating a control time sequence based on the control period T, wherein the control time sequence is used for circularly executing the control period T;
setting a waiting period 2s; adding a waiting period between adjacent control periods among timings composed of cyclic control periods, the timings to which the waiting period is added being regarded as control timings, where the control timings are [ a (1 s), B (1 s), (2 s), … ];
at this time, the controller a first selects the first half segment order, and if the current time is 0:00, generates a first control time [0:00-0:01,0:02-0:03,0:04-0:05, … ]; the BMC of the controller A sends the first control time to the BMC of the controller B, and the BMC of the controller B selects the second half section sequence based on the first control time to obtain a second control time [0:01-0:02,0:03-0:04,0:05-0:06, … ].
3. A terminal, comprising:
a processor;
a memory for storing execution instructions of the processor;
wherein the processor is configured to perform the method of claim 1.
4. A computer readable storage medium storing a computer program, which when executed by a processor implements the method of claim 1.
CN202210072361.1A 2022-01-21 2022-01-21 Hard disk indicator lamp control method, system, terminal and storage medium Active CN114443446B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210072361.1A CN114443446B (en) 2022-01-21 2022-01-21 Hard disk indicator lamp control method, system, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210072361.1A CN114443446B (en) 2022-01-21 2022-01-21 Hard disk indicator lamp control method, system, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN114443446A CN114443446A (en) 2022-05-06
CN114443446B true CN114443446B (en) 2024-02-20

Family

ID=81368709

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210072361.1A Active CN114443446B (en) 2022-01-21 2022-01-21 Hard disk indicator lamp control method, system, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN114443446B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205263794U (en) * 2015-12-28 2016-05-25 浪潮电子信息产业股份有限公司 Pilot lamp control system among two accuse memory system of two work
CN112486740A (en) * 2020-11-27 2021-03-12 苏州浪潮智能科技有限公司 Master-slave relationship confirmation method and system among multiple controllers and related device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205263794U (en) * 2015-12-28 2016-05-25 浪潮电子信息产业股份有限公司 Pilot lamp control system among two accuse memory system of two work
CN112486740A (en) * 2020-11-27 2021-03-12 苏州浪潮智能科技有限公司 Master-slave relationship confirmation method and system among multiple controllers and related device

Also Published As

Publication number Publication date
CN114443446A (en) 2022-05-06

Similar Documents

Publication Publication Date Title
WO2022198972A1 (en) Method, system and apparatus for fault positioning in starting process of server
CN109471770B (en) System management method and device
CN110162435B (en) Method, system, terminal and storage medium for starting and testing PXE of server
CN114116280B (en) Interactive BMC self-recovery method, system, terminal and storage medium
WO2018095107A1 (en) Bios program abnormal processing method and apparatus
CN109189627B (en) Hard disk fault monitoring and detecting method, device, terminal and storage medium
CN109032888A (en) A kind of server start-up course fault detection method, device and controlled terminal
CN116107819A (en) Server start-up fault detection system, method, device and medium
CN111966380A (en) BMC (baseboard management controller) firmware upgrading method, system, terminal and storage medium
CN114003445B (en) BMC I2C monitoring function test method, system, terminal and storage medium
CN111176897A (en) Closed BIOS self-repairing method, system, terminal and storage medium
CN113641537A (en) Starting system, method and medium for server
US7315940B1 (en) Recovery of a network element after a restart
CN111352662B (en) Server starting sequence control method, system, terminal and storage medium
CN114443446B (en) Hard disk indicator lamp control method, system, terminal and storage medium
CN115098342A (en) System log collection method, system, terminal and storage medium
CN116010141A (en) Method, device and medium for positioning starting abnormality of multipath server
CN114996069A (en) Mainboard test method, device and medium
CN111400113B (en) Complete machine self-checking method, device and system of computer system
CN114116276A (en) BMC hang-up self-recovery method, system, terminal and storage medium
CN114153503A (en) BIOS control method, device and medium
CN114253573A (en) PCIe device firmware batch upgrading method, system, terminal and storage medium
CN113900934B (en) Multi-mirror hybrid refresh test method, system, terminal and storage medium
CN114385379B (en) Method, system, terminal and storage medium for detecting on-board information refreshing
CN114138536A (en) Server fault positioning method, system, terminal and storage medium

Legal Events

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