Extended Chip Management Method, Device, Storage Medium and Electronic Device
By monitoring the status of the expansion chip and automatically switching the port configuration, the business interruption problem caused by expansion chip failure in the JBOD system is solved, achieving seamless data access and high reliability.
Patent Information
- Application Number
- CN202310071561.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-30
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2043-01-30
AI Technical Summary
In the JBOD system, when the expansion chip fails, the host side cannot access the hard disk connected to the expansion chip, resulting in data loss and business interruption, and the existing technology cannot realize automatic switching, so it requires human remote operation to change the configuration.
By obtaining the monitoring signal of each expansion chip, we determine whether it has a fault, and when the fault occurs, the reserved downlink port of the normal expansion chip is updated from the closed state to the startup state, taking over the devices connected to the faulty chip to ensure that the host side can continue to access these devices.
It realizes seamless switching when the expansion chip fails, avoids business interruptions, and improves the reliability and automation of the system.
Smart Images

Figure CN116150068B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computers, and in particular, to an extended chip management method, device, storage medium, and electronic device. Background Art
[0002] A JBOD (Just Bundle Of Disks) product is connected to a host with a computing unit through a high-speed cable. When a user needs to access the data in the JBOD, the host extracts relevant data from the JBOD through the high-speed cable and uploads it to the cloud for the user to use. In a scenario where a large amount of data is stored in the JBOD, each extended chip objectively has a maximum number of extended hard disks. Limited by the number of expandable ports of the extended chip and considering the high reliability of the product, usually a JBOD needs multiple mutually redundant backup extended chips to connect all the hard disks, and each extended chip can be responsible for a part of the number of hard disks. The host end is connected to multiple extended chips in the JBOD through multiple cables to realize the host's access to all the hard disks in the JBOD.
[0003] However, when one of the extended chips fails, the host end cannot access the hard disks connected below through this extended chip. In the related art, if there is only a single extended chip interconnected with the host end in the JBOD and there is no redundant backup, when this extended chip fails, all the hard disks in the entire JBOD are in an inaccessible state, the data is lost in a short time, and the service is interrupted. It is necessary to send commands to the machine manually for adjustment. Since the operator cannot monitor all the machines all the time, there is a problem that the hard disks under the faulty device are in an inaccessible state for a long time.
[0004] If there are mutually redundant extended chips in the same JBOD, the faulty chip is monitored through the monitoring algorithm of the upper-layer software. The hard disks connected to the redundant extended chips need to be dual-port SAS (Serial Attached SCSI) hard disks. If one SAS port is abnormal, the other SAS port can be used to continue working. Since it is impossible to automatically switch the configuration parameters, it is necessary to manually operate remotely to change the configuration, resulting in a certain period of service interruption. Summary of the Invention
[0005] The embodiments of the present application provide an extended chip management method, device, storage medium, and electronic device to at least solve the problem of service interruption for a certain period of time caused by the failure of an extended chip in the related art.
[0006] According to an embodiment of the present application, an extended chip management method is provided, including: obtaining a monitoring signal of each extended chip, and determining whether the extended chip fails through the monitoring signal, where the extended chip is used to implement host access to a disk cluster, the disk cluster includes multiple disks, each extended chip is communicatively connected to a preset number of devices, and the devices are disks or the next-level extended chips; in the case where the extended chip fails, determining the extended chip as a faulty chip, and determining a normal extended chip that monitors the faulty chip, where the faulty chip is an extended chip that cannot be communicatively connected to the device, and the normal extended chip and the faulty chip are extended chips of the same level; updating the reserved downstream port of the normal extended chip from the closed state to the startup state, where the reserved downstream port is used to connect to the device communicatively connected to the faulty chip; updating the port information of the normal extended chip, and controlling the device communicatively connected to the normal extended chip and the faulty chip to communicatively connect with the normal extended chip based on the updated port information.
[0007] In an exemplary embodiment, optionally, after controlling the device communicatively connected to the normal extended chip and the faulty chip to communicatively connect with the normal extended chip based on the updated port information, the method further includes: sending a fault message to the host, where the fault message is used to notify the user of the location information of the faulty chip; receiving a repair instruction for the faulty chip from the user, and repairing the faulty chip through the repair instruction and the fault message.
[0008] In an exemplary embodiment, optionally, after repairing the faulty chip through the repair instruction and the fault message, the method further includes: obtaining a monitoring signal of the repaired faulty chip, and determining whether the repaired faulty chip works normally through the monitoring signal, where normal operation indicates that the repaired faulty chip restores the function of communicatively connecting to the device; in the case where the repaired faulty chip works normally, updating the reserved downstream port from the startup state to the closed state; updating the port information of the normal extended chip, and controlling the device communicatively connected to the normal extended chip to communicatively connect with the normal extended chip based on the updated port information.
[0009] In an exemplary embodiment, optionally, obtaining a monitoring signal of each extended chip, and determining whether the extended chip fails through the monitoring signal includes: obtaining the working state information of each extended chip, and determining whether the working state information is preset information, where the preset information is one of the following: a preset heartbeat signal and the return value of a preset register; in the case where the working state information is preset information, determining that the extended chip does not fail; in the case where the working state information is not preset information, determining that the extended chip fails.
[0010] In an exemplary embodiment, optionally, the expansion chips include multiple levels. The expansion chip communicatively connected to the host side belongs to the first-level expansion chip. The expansion chip communicatively connected to the Nth-level expansion chip belongs to the (N + 1)th-level expansion chip. The (N + 1)th-level expansion chip is connected to a preset number of disks, where N is a positive integer and N ≥ 1.
[0011] In an exemplary embodiment, optionally, monitoring lines are provided between the expansion chips belonging to the same level. The expansion chips of the same level obtain the monitoring signals of the monitored expansion chips through the monitoring lines.
[0012] In an exemplary embodiment, optionally, updating the reserved downstream port of a normal expansion chip from the closed state to the startup state includes: obtaining the configuration file of the normal expansion chip; modifying the port configuration parameters in the configuration file to obtain updated port configuration parameters, where the port configuration parameters are used to configure the information of each port for managing disks; updating the reserved downstream port from the closed state to the startup state through the updated port configuration parameters.
[0013] According to another embodiment of the present application, there is provided an expansion chip management device, including: an acquisition unit, configured to acquire the monitoring signal of each expansion chip and determine whether the expansion chip fails through the monitoring signal, where the expansion chip is used to implement the host side accessing the disk cluster, the disk cluster includes multiple disks, and each expansion chip is communicatively connected to a preset number of devices, and the devices are disks or the next-level expansion chips; a determination unit, configured to determine the expansion chip as a faulty chip in the case of the expansion chip failing, and determine the normal expansion chip that monitors the faulty chip, where the faulty chip is an expansion chip that cannot be communicatively connected to the device, and the normal expansion chip and the faulty chip are expansion chips of the same level; a first update unit, configured to update the reserved downstream port of the normal expansion chip from the closed state to the startup state, where the reserved downstream port is used to connect the device communicatively connected to the faulty chip; a second update unit, configured to update the port information of the normal expansion chip, and control the devices connected to the normal expansion chip and the faulty chip to be communicatively connected to the normal expansion chip based on the updated port information.
[0014] According to still another embodiment of the present application, there is further provided a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the steps in any one of the above method embodiments when running.
[0015] According to still another embodiment of the present application, there is further provided an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0016] Through this application, since a monitoring circuit is provided between peer expansion chips, the peer expansion chips monitor each other through monitoring signals. When a faulty chip is detected, by updating the port configuration of the normal expansion chip that monitors the faulty chip, the normal expansion chip is communicatively connected to the device connected to the faulty chip through the reserved downstream port, so as to ensure that the host can always be communicatively connected to the device connected to the faulty chip. Therefore, the problem of service interruption for a certain period of time caused by a faulty expansion chip can be solved, and the effect that the service will not be interrupted when the expansion chip fails can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a hardware structure block diagram of a mobile terminal for an expansion chip management method according to an embodiment of the present application;
[0018] Figure 2 is a flowchart of an expansion chip management method according to an embodiment of the present application;
[0019] Figure 3 is a connection schematic diagram between a host and a disk cluster according to an embodiment of the present application;
[0020] Figure 4 is a structure block diagram of an expansion chip management device according to an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0021] The embodiments of the present application will be described in detail below with reference to the drawings and in conjunction with the embodiments.
[0022] It should be noted that the terms "first", "second", etc. in the specification, claims and drawings of the present application are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence.
[0023] The method embodiments provided in the embodiments of the present application can be executed on a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 is a hardware structure block diagram of a mobile terminal for an expansion chip management method according to an embodiment of the present application. As Figure 1 shown, the mobile terminal may include one or more ( Figure 1 only one is shown in the figure) processors 102 (the processors 102 may include, but are not limited to, processing devices such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Among them, the above mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those of ordinary skill in the art can understand that, Figure 1 the structure shown is only schematic, and it does not limit the structure of the above mobile terminal. For example, the mobile terminal may further include more than Figure 1more or fewer components shown, or having a configuration different from that shown in Figure 1 shown.
[0024] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the extended chip management method in the embodiments of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some instances, the memory 104 may further include a memory remotely disposed relative to the processor 102, and these remote memories may be connected to the mobile terminal through a network. Examples of the above network include but are not limited to the Internet, enterprise intranets, local area networks, mobile communication networks, and combinations thereof.
[0025] The transmission device 106 is used to receive or send data via a network. Specific examples of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one instance, the transmission device 106 includes a network adapter (Network Interface Controller, abbreviated as NIC), which can be connected to other network devices through a base station and thus communicate with the Internet. In one instance, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0026] In this embodiment, an extended chip management method running on the above mobile terminal is provided. Figure 2 is a flowchart of the extended chip management method according to the embodiments of the present application, as shown in Figure 2 shown, and the process includes the following steps:
[0027] Step S202, obtain a monitoring signal of each extended chip, and determine whether the extended chip fails through the monitoring signal, where the extended chip is used to implement host-side access to a disk cluster, the disk cluster includes multiple disks, and each extended chip is communicatively connected to a preset number of devices, and the devices are disks or lower-level extended chips.
[0028] Specifically, the monitoring signal may be a signal obtained by a peer extended chip through a monitoring line, such as a heartbeat signal, etc. It is determined whether the extended chip fails by determining whether the monitoring signal is the same as the signal of the extended chip in the normal working state.
[0029] It should be noted that with the continuous development of cloud computing, in order to meet the need for people to upload more data to the cloud, the demand for storage servers is increasing day by day. Among the uploaded data, a large proportion is data that is not frequently accessed after being uploaded, and this part of the data is cold data. To cope with the increasing cold data, major manufacturers have successively launched JBOD products in the form of cold storage. Such products do not have a computing unit, and a relatively large number of hard disks are concentrated in a box for unified management, similar to forming a large-capacity hard disk, that is, a disk cluster. Due to the limited number of ports, the host cannot directly connect to all the disks in the disk cluster. Therefore, an expansion chip is used to communicate and connect with a certain number of disks, and the host then communicates with the expansion chip, so that the host can access all the chips in the disk cluster through the expansion chip.
[0030] Step S204, in the case of a failure of the expansion chip, determine the expansion chip as a faulty chip, and determine the normal expansion chip that monitors the faulty chip, where the faulty chip is an expansion chip that cannot communicate and connect with the device, and the normal expansion chip and the faulty chip are expansion chips at the same level.
[0031] Specifically, if the monitoring signal of a certain expansion chip is different from that of the expansion chip in the normal working state, it indicates that the expansion chip is a faulty chip. The faulty chip cannot maintain communication connection with the connected device. Therefore, it is necessary to determine the normal expansion chip that monitors the faulty chip, so that the normal expansion chip can take over the device connected to the faulty chip, avoiding service interruption caused by the host's inability to access the disk cluster.
[0032] Step S206, update the reserved downstream port of the normal expansion chip from the closed state to the startup state, where the reserved downstream port is used to connect the device that communicates with the faulty chip.
[0033] Specifically, after determining the normal expansion chip that monitors the faulty chip, update the reserved downstream port of the normal expansion chip from the closed state to the startup state, so that the normal expansion chip can take over the device connected to the faulty chip.
[0034] Step S208, update the port information of the normal expansion chip, and control the device connected to the normal expansion chip and the faulty chip to communicate with the normal expansion chip based on the updated port information.
[0035] Specifically, when the state of the reserved downstream port is modified, the normal expansion chip will re-identify its own port situation, that is, update the port information of the normal expansion chip, and read the hard disk information from the newly added reserved downstream port again, so as to take over all the downstream devices connected to the faulty chip. Ensure that the host can access all the downstream devices connected to the normal expansion chip itself and the faulty chip through the normal expansion chip.
[0036] Through the above steps, the problem of service interruption for a certain period of time caused by a faulty expansion chip is solved. Mutual monitoring signals are added between expansion chips of the same level, enabling each expansion chip to monitor other expansion chips that are its mutual backup redundancies. When an expansion chip detects an abnormality in another expansion chip, it adjusts its own configuration parameters to force its downstream port to take over all the hard disks of another expansion chip downstream. Meanwhile, the normal expansion chip sends information about the faulty expansion chip to the host side, so that subsequent operation instructions from the host side are sent through the normal expansion chip. Thus, a fast and seamless data channel switch is achieved, realizing a seamless connection of the data flow. At the same time, the loss of service data during a period of time is avoided, and the number of product maintenance times is reduced. Furthermore, the effect that the service will not be interrupted when the expansion chip fails is achieved, improving the service processing efficiency.
[0037] Among them, the execution subject of the above steps can be a server or the like, but is not limited thereto.
[0038] The execution order of step S102 and step S104 can be interchanged, that is, step S104 can be executed first, and then S102 can be executed.
[0039] After detecting the faulty chip, it is also necessary to send a fault message to the host side to prompt the user to repair it. In an exemplary embodiment, optionally, after controlling the device connected to the normal expansion chip and the faulty chip to communicate with the normal expansion chip based on the updated port information, the method further includes: sending a fault message to the host side, where the fault message is used to notify the user of the location information of the faulty chip; receiving a repair instruction from the user for the faulty chip, and repairing the faulty chip based on the repair instruction and the fault message.
[0040] Specifically, the normal expansion chip sends a fault message to the host side. By indicating that another expansion chip has failed through the host side, it is ensured that all subsequent access operations to all hard disks issued by the host side are implemented through the normal expansion chip. In addition, the user is reminded that the faulty chip needs to be repaired. After the user obtains the fault message, a remote repair instruction is sent to the faulty chip through the host side to repair the faulty chip. By sending a fault message to the host side, the function of mutual monitoring between expansion chips of the same level and quickly modifying the configuration to switch the data link is realized. Ensure that the service is not interrupted.
[0041] For example, the normal expansion chip 1 notifies the host side through the SAS link that the faulty chip 2 is currently in a faulty state, and all devices connected downstream of the faulty chip 2 are taken over by the normal expansion chip 1. After receiving this fault message, all subsequent hard disk access instructions issued by the host side are executed through the normal expansion chip 1. Through the above operations, the normal expansion chip automatically adjusts the configuration to take over all business operations of the faulty chip.
[0042] After the host repairs the faulty chip, it is necessary to update the connection status of the normal expansion chip and the device. In an exemplary embodiment, optionally, after repairing the faulty chip with a repair instruction and fault information, the method further includes: obtaining a monitoring signal of the repaired faulty chip, and determining whether the repaired faulty chip is working properly through the monitoring signal, where working properly indicates that the repaired faulty chip has restored the function of communicating with the device; in the case where the repaired faulty chip is working properly, updating the reserved downstream port from the start state to the closed state; updating the port information of the normal expansion chip, and controlling the device connected to the normal expansion chip to communicate with the normal expansion chip based on the updated port information.
[0043] For example, after the normal expansion chip 1 takes over all the devices of the faulty chip 2, it continues to monitor the fault condition of the faulty chip 2 through the monitoring signal. If the subsequent user terminal remotely repairs the faulty chip 2 through a command and the faulty chip 2 works properly. The normal expansion chip 1 can monitor that the faulty chip 2 has returned to normal through the monitoring signal. At this time, the normal expansion chip 1 modifies its own settings and closes the reserved downstream port, that is, the expansion channel 3. It notifies the host through the SAS link that all the devices in the downstream link of the faulty chip 2 have restored communication with the faulty chip.
[0044] Subsequently, when the host accesses all the hard disks in the JBOD, it no longer accesses through the normal expansion chip but resumes accessing through the faulty chip. Through the above operations, the normal expansion chip automatically adjusts its configuration, thereby restoring all the business operations of the faulty chip. By adding the mutual monitoring lines between the same-level expansion chips as above, the mutual monitoring of the fault status between the same levels is realized, and at the same time, the own configuration parameters are adjusted to forcibly take over all the downstream devices of the faulty chip. The automatic switching of the service link is realized.
[0045] To determine whether an expansion chip is a faulty chip by determining whether the working status information is preset information. In an exemplary embodiment, optionally, obtaining the monitoring signal of each expansion chip and determining whether the expansion chip has a fault through the monitoring signal includes: obtaining the working status information of each expansion chip and determining whether the working status information is preset information, where the preset information is one of the following: a preset heartbeat signal and the return value of a preset register; in the case where the working status information is preset information, determining that the expansion chip has not failed; in the case where the working status information is not preset information, determining that the expansion chip has failed.
[0046] Specifically, the working status information can be the heartbeat link of the expansion chip. For example, connect the heartbeat link of expansion chip 2 to expansion chip 1, and the heartbeat link of expansion chip 1 to expansion chip 2. The software-defined real-time monitoring in each expansion chip monitors the heartbeat signal of the other expansion chip. If the heartbeat signal is different from the preset heartbeat signal, it indicates that the expansion chip is a faulty chip. The working status information can also be the return value of a preset register obtained by using an active monitoring link such as I2C (Inter Integrated Circuit, two-wire serial bus). For example, expansion chip 1 actively accesses the working status register in expansion chip 2 through the I2C link. Expansion chip 2 actively accesses the working status register in expansion chip 1 through the I2C link. If the return value of the working status register is different from the preset value, it indicates that the expansion chip is a faulty chip. By determining whether the expansion chip is a faulty chip, the connection status between the expansion chip and the device can be adjusted in a timely manner, thereby realizing the automatic switching of the service link and avoiding service interruption.
[0047] In an exemplary embodiment, optionally, the expansion chips include multiple levels. The expansion chip communicatively connected to the host side belongs to the first-level expansion chip, and the expansion chip communicatively connected to the Nth-level expansion chip belongs to the (N + 1)th-level expansion chip. The (N + 1)th-level expansion chip is connected to a preset number of disks, where N is a positive integer and N is greater than or equal to 1.
[0048] Specifically, when the host side needs to access a JBOD through more than one expansion chip, for example, through two expansion chips, each expansion chip expands a preset number of hard disks at the downstream port, that is, communicates with a preset number of hard disks. All the peer expansion chips expand all the hard disks in the entire JBOD. At the same time, each expansion chip needs to reserve additional expansion lines, that is, reserve the lines corresponding to the downstream ports. The first expansion chip reserves an expansion line to connect to the hard disk connected to the downstream expansion port of the second expansion chip. The second expansion chip also reserves a downstream expansion line to connect to the hard disk connected to the downstream expansion port of the first expansion chip. The reserved downstream expansion lines are not used as actual data flow lines by default. The two expansion chips interconnected with the host are called peer expansion chips, and monitoring lines are designed between the peer expansion chips so that all peer expansion chips can monitor each other.
[0049] For example, Figure 3 is a schematic diagram of the connection between the host side and the disk cluster according to an embodiment of the present application, as Figure 3As shown in the figure, there are four expansion chips in the JBOD. Among them, expansion chip 1 and expansion chip 2 are directly connected to the host through two cables and communicate through the SAS link. These two expansion chips are called peer expansion chips and serve as the first-level expansion chips. There are also two second-level expansion chips, expansion chip 3 and expansion chip 4, below the first-level expansion chips. A certain number of hard disks are respectively connected below expansion chip 3 and expansion chip 4. Expansion chip 1 is connected to expansion chip 3 through expansion channel 1 and can access all the hard disks below expansion chip 3. Expansion chip 2 is connected to expansion chip 4 through expansion channel 2 and can access all the hard disks below expansion chip 4. At the same time, expansion chip 1 reserves expansion channel 3 to be connected to expansion chip 4, and expansion chip 2 reserves expansion channel 4 to be connected to expansion chip 3.
[0050] In an exemplary embodiment, optionally, a monitoring line is provided between expansion chips belonging to the same level, and the expansion chips of the same level obtain the monitoring signals of the monitored expansion chips through the monitoring line.
[0051] For example, as Figure 3 shown, a mutual monitoring line is reserved between the two first-level expansion chips 1 and 2. When the host and the JBOD are in the normal working state, expansion channels 1 and 2 are in the normal connected state, and expansion channels 3 and 4 are in the closed state. Expansion chip 1 can only access all the hard disks below expansion chip 3, while expansion chip 2 can only access all the hard disks below expansion chip 4. The host accesses the two first-level expansion chips through two SAS links, thereby accessing all the hard disks in the JBOD. When one of the first-level expansion chips has a problem, for example, expansion chip 2 fails. Expansion chip 1 discovers the failure of expansion chip 2 through the monitoring signal.
[0052] In an exemplary embodiment, optionally, updating the reserved downstream port of a normal expansion chip from the closed state to the startup state includes: obtaining the configuration file of the normal expansion chip; modifying the port configuration parameters in the configuration file to obtain updated port configuration parameters, where the port configuration parameters are used to configure the information of each port for managing disks; updating the reserved downstream port from the closed state to the startup state through the updated port configuration parameters.
[0053] Specifically, when the first expansion chip monitors that the second expansion chip has a failure, the normal expansion chip immediately obtains the configuration file of the normal expansion chip and modifies the port configuration parameters in the configuration file. Open the reserved downstream port of the normal expansion chip connected to the faulty chip, that is, modify the downstream reserved port in the configuration file from the closed state to the startup state.
[0054] For example, as Figure 3As shown in the figure, when expansion chip 1 detects a fault in expansion chip 2, expansion chip 1 adjusts its own port configuration parameters, changes the downstream reserved port in the configuration file from the disable state to the downstream state, and opens the expansion channel 3 link. After the modification is completed, expansion chip 1 will re-identify its own port situation and read the hard disk information from the newly added downstream ports, so as to take over all the downstream devices of the faulty expansion chip 2. At this time, expansion chip 1 can not only access all the hard disks in the downstream link of expansion chip 3, but also access all the hard disks in the downstream link of expansion chip 4.
[0055] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that makes a contribution to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions for causing a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present application.
[0056] In this embodiment, an expansion chip management device is also provided. This device is used to implement the above embodiments and preferred implementation manners, and those that have been described will not be repeated here. As used below, the term "module" can be a combination of software and / or hardware that can achieve a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.
[0057] Figure 4 is a structural block diagram of the expansion chip management device according to an embodiment of the present application. As Figure 4 shown, the device includes:
[0058] An acquisition unit 10, configured to acquire the monitoring signals of each expansion chip, and determine whether an expansion chip has a fault through the monitoring signals. Among them, the expansion chip is used to implement host-side access to a disk cluster, the disk cluster includes multiple disks, and each expansion chip is communicatively connected to a preset number of devices, and the devices are disks or the next-level expansion chips;
[0059] A determination unit 20, configured to, when an expansion chip has a fault, determine the expansion chip as a faulty chip, and determine the normal expansion chips that monitor the faulty chip. Among them, the faulty chip is an expansion chip that cannot be communicatively connected to a device, and the normal expansion chips and the faulty chip are expansion chips of the same level;
[0060] The first update unit 30 is configured to update the reserved downstream port of the normal expansion chip from the closed state to the startup state, where the reserved downstream port is used to connect to a device communicatively connected to the faulty chip;
[0061] The second update unit 40 is configured to update the port information of the normal expansion chip, and control the device communicatively connected to the normal expansion chip and the faulty chip to communicatively connect to the normal expansion chip based on the updated port information.
[0062] In an exemplary embodiment, optionally, the apparatus further includes: a sending unit, configured to send fault information to the host side, where the fault information is used to notify the user of the location information of the faulty chip; a receiving unit, configured to receive a repair instruction for the faulty chip from the user, and repair the faulty chip based on the repair instruction and the fault information.
[0063] In an exemplary embodiment, optionally, the apparatus further includes: a judging unit, configured to obtain a monitoring signal of the repaired faulty chip, and judge whether the repaired faulty chip is working properly through the monitoring signal, where working properly indicates that the repaired faulty chip has restored the function of communicatively connecting to the device; a third update unit, configured to update the reserved downstream port from the startup state to the closed state when the repaired faulty chip is working properly; a fourth update unit, configured to update the port information of the normal expansion chip, and control the device communicatively connected to the normal expansion chip to communicatively connect to the normal expansion chip based on the updated port information.
[0064] In an exemplary embodiment, optionally, the obtaining unit 10 includes: a first obtaining module, configured to obtain the working state information of each expansion chip, and judge whether the working state information is preset information, where the preset information is one of the following: a preset heartbeat signal and a return value of a preset register; a first determining module, configured to determine that the expansion chip has not failed when the working state information is the preset information; a second determining module, configured to determine that the expansion chip has failed when the working state information is not the preset information.
[0065] In an exemplary embodiment, optionally, the expansion chips include multiple levels. The expansion chip communicatively connected to the host side belongs to the first-level expansion chip. The expansion chip communicatively connected to the Nth-level expansion chip belongs to the (N + 1)th-level expansion chip. The (N + 1)th-level expansion chip is connected to a preset number of disks, where N is a positive integer and N is greater than or equal to 1.
[0066] In an exemplary embodiment, optionally, monitoring lines are provided between the expansion chips belonging to the same level, and the expansion chips of the same level obtain the monitoring signals of the monitored expansion chips through the monitoring lines.
[0067] In an exemplary embodiment, optionally, the first update unit 30 includes: a second acquisition module, configured to acquire a configuration file of a normal expansion chip; a modification module, configured to modify port configuration parameters in the configuration file to obtain updated port configuration parameters, where the port configuration parameters are used to configure information for managing disks of each port; and an update module, configured to update a reserved downstream port from a closed state to an activated state by using the updated port configuration parameters.
[0068] It should be noted that the above-mentioned modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited thereto: the above-mentioned modules are all located in the same processor; or, the above-mentioned modules are respectively located in different processors in any combination form.
[0069] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the steps in any one of the above method embodiments when running.
[0070] In an exemplary embodiment, the above computer-readable storage medium may include, but is not limited to: various media that can store computer programs such as USB flash drives, read-only memories (ROM for short), random access memories (RAM for short), mobile hard disks, magnetic disks, or optical discs.
[0071] An embodiment of the present application further provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0072] In an exemplary embodiment, the above electronic device may further include a transmission device and an input / output device, where the transmission device is connected to the above processor, and the input / output device is connected to the above processor.
[0073] Specific examples in this embodiment may refer to the examples described in the above embodiments and exemplary embodiments, and will not be repeated here.
[0074] Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present application can be implemented by a general-purpose computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. They can be implemented by program codes executable by the computing device. Thus, they can be stored in a storage device and executed by the computing device. And in some cases, the steps shown or described can be executed in a different order from here, or they can be separately fabricated into individual integrated circuit modules, or multiple modules or steps among them can be fabricated into a single integrated circuit module for implementation. In this way, the present application is not limited to any specific combination of hardware and software.
[0075] The above are only the preferred embodiments of the present application and are not used to limit the present application. For those skilled in the art, the present application can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the principle of the present application shall be included within the protection scope of the present application.
Claims
1. An extended chip management method, characterized in that, it includes: Obtain the monitoring signal of each extended chip, and determine whether the extended chip has a fault through the monitoring signal, where the extended chip is used to implement host access to a disk cluster, the disk cluster contains multiple disks, each extended chip is communicatively connected to a preset number of devices, and the devices are disks or the next-level extended chips; In the case where the extended chip has a fault, determine the extended chip as a faulty chip, and determine a normal extended chip that monitors the faulty chip, where the faulty chip is an extended chip that cannot communicate with a device, the normal extended chip and the faulty chip are extended chips of the same level, a monitoring line is provided between extended chips of the same level, and extended chips of the same level obtain the monitoring signal of the monitored extended chip through the monitoring line; Update the reserved downstream port of the normal extended chip from the closed state to the startup state, where the reserved downstream port is used to connect to the device communicatively connected to the faulty chip; Update the port information of the normal extended chip, and control the device communicatively connected to the normal extended chip and the faulty chip to communicate with the normal extended chip based on the updated port information; Obtaining the monitoring signal of each extended chip and determining whether the extended chip has a fault through the monitoring signal includes: obtaining the working state information of each extended chip, and determining whether the working state information is preset information, where the preset information is one of the following: a preset heartbeat signal and the return value of a preset register; in the case where the working state information is the preset information, determine that the extended chip has no fault; in the case where the working state information is not the preset information, determine that the extended chip has a fault.
2. The method according to claim 1, characterized in that, after controlling the device communicatively connected to the normal extended chip and the faulty chip to communicate with the normal extended chip based on the updated port information, the method further includes: Sending fault information to the host, where the fault information is used to notify the user of the location information of the faulty chip; Receiving a repair instruction for the faulty chip from the user, and repairing the faulty chip through the repair instruction and the fault information.
3. The method according to claim 2, characterized in that, after repairing the faulty chip through the repair instruction and the fault information, the method further includes: Obtaining the monitoring signal of the repaired faulty chip, and determining whether the repaired faulty chip is working properly through the monitoring signal, where working properly means that the repaired faulty chip has restored the function of communicating with a device; In the case where the repaired faulty chip is working properly, update the reserved downstream port from the startup state to the closed state; Update the port information of the normal extended chip, and control the device communicatively connected to the normal extended chip to communicate with the normal extended chip based on the updated port information.
4. The method according to claim 1, characterized in that, The extended chip includes multiple levels. The extended chip communicatively connected to the host side belongs to the first-level extended chip, and the extended chip communicatively connected to the Nth-level extended chip belongs to the (N + 1)th-level extended chip. The (N + 1)th-level extended chip is connected to the preset number of disks, where N is a positive integer and N is greater than or equal to 1.
5. The method according to claim 1, wherein, Updating the reserved downstream port of the normal extended chip from the closed state to the startup state includes: Obtaining the configuration file of the normal extended chip; Modifying the port configuration parameters in the configuration file to obtain updated port configuration parameters, where the port configuration parameters are used to configure the information of each port for managing disks; Updating the reserved downstream port from the closed state to the startup state through the updated port configuration parameters.
6. An extended chip management device, wherein, comprising: An acquisition unit, configured to acquire the monitoring signal of each extended chip, and determine whether the extended chip fails through the monitoring signal. The extended chip is used to implement the host side accessing the disk cluster, the disk cluster includes multiple disks, each extended chip is communicatively connected to a preset number of devices, and the devices are disks or the next-level extended chips; A determination unit, configured to, when the extended chip fails, determine the extended chip as a faulty chip, and determine the normal extended chip that monitors the faulty chip. The faulty chip is an extended chip that cannot communicate with the device, the normal extended chip and the faulty chip are extended chips of the same level, a monitoring line is provided between the extended chips of the same level, and the extended chips of the same level acquire the monitoring signal of the monitored extended chip through the monitoring line; A first update unit, configured to update the reserved downstream port of the normal extended chip from the closed state to the startup state, where the reserved downstream port is used to connect to the device communicatively connected to the faulty chip; A second update unit, configured to update the port information of the normal extended chip, and control the devices communicatively connected to the normal extended chip and the faulty chip to communicate with the normal extended chip based on the updated port information; The acquisition unit is configured to acquire the monitoring signal of each extended chip and determine whether the extended chip fails in the following manner: acquiring the working state information of each extended chip, and determining whether the working state information is preset information, where the preset information is one of the following: a preset heartbeat signal and the return value of a preset register; when the working state information is the preset information, determining that the extended chip does not fail; when the working state information is not the preset information, determining that the extended chip fails.
7. A computer-readable storage medium, wherein, The computer-readable storage medium stores a computer program, where the computer program, when executed by a processor, implements the steps of the method described in any one of claims 1 to 5.
8. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein, when the processor executes the computer program, the steps of the method described in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Modular Non-volatile Flash Memory Blade
CN105929903A
Hard disk data wiping method, server and system
WO2017190578A1