WO2025200602A1 - 一种硬盘监控方法、装置、系统、设备及存储介质 - Google Patents
一种硬盘监控方法、装置、系统、设备及存储介质Info
- Publication number
- WO2025200602A1 WO2025200602A1 PCT/CN2024/139313 CN2024139313W WO2025200602A1 WO 2025200602 A1 WO2025200602 A1 WO 2025200602A1 CN 2024139313 W CN2024139313 W CN 2024139313W WO 2025200602 A1 WO2025200602 A1 WO 2025200602A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- hard disk
- data
- signal
- storage area
- disk log
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3037—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3065—Monitoring arrangements determined by the means or processing involved in reporting the monitored data
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/172—Caching, prefetching or hoarding of files
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/18—File system types
- G06F16/1805—Append-only file systems, e.g. using logs or journals to store data
- G06F16/1815—Journaling file systems
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Definitions
- the present application relates to the field of hard disk monitoring technology, and in particular to a hard disk monitoring method, device, system, equipment and storage medium.
- the hard disk is one of the most important storage devices in the computer. Therefore, the healthy operation of the hard disk is one of the key factors to ensure the reliability of the device server.
- the current main hard disk monitoring solutions are divided into hard disk in-band monitoring and hard disk out-of-band monitoring.
- In-band monitoring of the hard disk is to obtain the hard disk status information after the monitoring software running on the Central Processing Unit (CPU) communicates data with the hard disk.
- CPU Central Processing Unit
- This monitoring solution often has difficulty presenting the monitoring data to the operation and maintenance personnel.
- Out-of-band monitoring of the hard disk is to monitor the hard disk status after obtaining the hard disk status information through the Baseboard Management Controller (BMC).
- BMC Baseboard Management Controller
- the monitoring results can be presented to the operation and maintenance personnel. It is the main monitoring method currently used. However, because the out-of-band management system does not have the authority to access the hard disk's business data, out-of-band monitoring of many hard disks cannot be achieved.
- the hard disk log data is written into the hard disk log storage area in a data writing order, so that the hard disk is monitored according to the hard disk log data after the hard disk log data is read from the hard disk log storage area in a data reading order.
- the hard disk log storage area is divided in the local storage space, and the hard disk log storage area is divided into multiple storage partitions, including:
- registers of a complex programmable logic device as a hard disk log storage area, and dividing the hard disk log storage area into a plurality of storage partitions;
- the read/write control state machine is configured according to the register configuration information, the read data sequence, and the write data sequence.
- the hard disk log storage area is divided in the local storage space, and the hard disk log storage area is divided into multiple storage partitions, including:
- the read/write control state machine is configured according to the address information, read data sequence, and write data sequence of the storage partition.
- the hard disk log data is read from the hard disk log storage area according to the read data sequence
- the hard disk is monitored according to the hard disk log data, including:
- An interrupt signal is sent to the baseboard management controller component so that the baseboard management controller component accesses the hard disk log storage area through the integrated circuit bus after receiving the interrupt signal and reads the hard disk log data according to the read data sequence, and performs monitoring of the hard disk according to the hard disk log data.
- an interrupt signal is sent to the baseboard management controller component, including:
- an interrupt signal is sent to the baseboard management controller component.
- interrupt trigger conditions include:
- interrupt trigger conditions include:
- a starting address of a storage partition is selected from the hard disk log storage area as the data starting address, including:
- the initial idle starting address is used as the data starting address.
- the order of storage partitions is the order of address size of storage partitions
- Hard disk monitoring methods also include:
- n is the current idle starting address
- N is the total number of storage partitions
- m is the current data starting address
- % is the modulo operator
- a baseboard management controller component is applied to a baseboard management controller
- the hard disk log data After reading the hard disk log data from the hard disk log storage area according to the data reading order, the hard disk is monitored according to the hard disk log data, including:
- the second thread is called to read the hard disk log data from the hard disk log storage area to perform monitoring of the hard disk according to the hard disk log data.
- the hard disk log data is written to the hard disk log storage area, including:
- the hard disk identification and hard disk log data are written to the storage partition of the hard disk log storage area.
- the present application also provides a baseboard management controller for hard disk monitoring
- the baseboard management controller is used to divide the hard disk log storage area in the local storage space and divide the hard disk log storage area into multiple storage partitions; determine the arrangement order of each storage partition, and configure the forward arrangement order of the storage partitions as the read data order and the reverse arrangement order of the storage partitions as the write data order; demodulate the first signal output by the hard disk status pin of the hard disk to obtain hard disk log data, and write the hard disk log data into the hard disk log storage area in the write data order, so as to perform monitoring of the hard disk according to the hard disk log data after reading the hard disk log data from the hard disk log storage area according to the read data order;
- the first signal is a signal modulated according to the hard disk log data and the hard disk status signal corresponding to the hard disk status pin.
- the present application also provides a hard disk monitoring system, comprising: a baseboard management controller and a hard disk;
- the pins of the baseboard management controller are connected to the hard disk status pins of the hard disk
- the first signal is a signal modulated according to the hard disk log data and the hard disk status signal corresponding to the hard disk status pin.
- a configuration unit is used to divide the hard disk log storage area in the local storage space and divide the hard disk log storage area into multiple storage partitions; determine the arrangement order of each storage partition, and configure the forward arrangement order of the storage partitions to be the reading order and the reverse arrangement order of the storage partitions to be the writing order;
- a demodulation unit configured to demodulate the first signal to obtain hard disk log data
- FIG2 is a schematic diagram of the structure of a hard disk out-of-band monitoring system
- FIG3 is a schematic structural diagram of a first hard disk monitoring system provided in an embodiment of the present application.
- FIG4 is a schematic structural diagram of a second hard disk monitoring system provided in an embodiment of the present application.
- FIG5 is a schematic structural diagram of a third hard disk monitoring system provided in an embodiment of the present application.
- FIG6 is a schematic structural diagram of a fourth hard disk monitoring system provided in an embodiment of the present application.
- FIG7 is a flow chart of a first hard disk monitoring method provided in an embodiment of the present application.
- FIG9 is a schematic structural diagram of a hard disk monitoring device provided in an embodiment of the present application.
- the core of this application is to provide a hard disk monitoring method, apparatus, system, device and storage medium for increasing the range of hard disks that can be monitored in out-of-band monitoring of hard disks in a device.
- FIG1 is a schematic diagram of the structure of a hard disk in-band monitoring system
- FIG2 is a schematic diagram of the structure of a hard disk out-of-band monitoring system.
- In-band management allows network management data and service data to be transmitted over the same link. By logging into the device's operating system and accessing the device's user data, you can obtain the in-band management data of the monitored device.
- in-band management is the method of obtaining monitoring data of monitored components based on the central processing unit (CPU) running the operating system.
- CPU central processing unit
- the CPU can communicate with the hard drive to access not only the user data stored on the hard drive, but also the hard drive log data recorded during operation. Users can then view the hard drive log data by logging into the operating system.
- Out-of-band management involves managing the network through a dedicated network management channel, separating network management data from business data. This separate channel transmits only management data, improving network management efficiency and reliability while also enhancing the security of network management data.
- a BMC is a dedicated service processor that uses sensors to monitor the status of a computer, network server, or other hardware device and communicates with the device's system administrator via independent connections.
- the BMC is typically installed on the motherboard or main circuit board of the monitored device.
- the BMC uses sensors to measure internal physical variables such as temperature, humidity, power supply voltage, fan speed, communication parameters, and operating system (OS) functions. If any of these variables exceed specified limits, the BMC notifies the system administrator.
- the BMC also provides web services, including network communication capabilities and a webpage displaying a monitoring interface. Maintenance personnel can access BMC monitoring data by connecting to the BMC of a monitored device via a network cable at the facility site or by connecting to the BMCs of multiple monitored devices via a network in a data center.
- CPLD complex programmable logic device
- the CPLD 102 primarily consists of three components: logic blocks, programmable interconnect channels, and input/output (I/O) blocks.
- a logic block in a CPLD 102 typically includes 4 to 20 macrocells, each of which typically consists of a product term array, a product term allocation, and programmable registers.
- Each macrocell can be configured in a variety of ways, and macrocells can be cascaded, enabling the implementation of complex combinational and sequential logic functions.
- CPLDs with higher integration densities often also include embedded array blocks with on-chip random access memory (RAM)/read-only memory (ROM).
- Programmable interconnect channels primarily provide the interconnect network between logic blocks, macrocells, and input/output pins.
- I/O blocks Input/output blocks (I/O blocks) provide the interface between internal logic and the device's I/O pins.
- the hard disk is an important object of out-of-band monitoring and management.
- the type of communication interface it is mainly divided into Serial Attached SCSI (SAS)/Serial Advanced Technology Attachment (SATA) interface hard disks and Non-Volatile Memory Host Controller Interface Specification (NVMHCIS or NVM Express, NVMe) interface hard disks.
- SAS Serial Attached SCSI
- SATA Serial Advanced Technology Attachment
- NVMHCIS Non-Volatile Memory Host Controller Interface Specification
- NVMe Non-Volatile Memory Host Controller Interface Specification
- the SAS interface is compatible with the SATA interface.
- hard disks are mainly divided into mechanical hard disks (HDD) and solid-state drives (SSD).
- mechanical hard disks mainly have SAS or SATA interfaces.
- Solid-state drives include SAS, SATA, and NVMe interface hard disks.
- the server uses the hard drive by connecting it to the hard drive slot on the hard drive backplane.
- the hard drive interface typically uses a gold finger structure, where the pins mate with the slots on the hard drive, allowing connections to server-side components (e.g., data pins connect to the CPU) via the circuitry on the hard drive backplane.
- hard drives are plugged directly into the drive slots on the hard drive backplane, while others are connected to the backplane via a hard drive expansion card.
- Types of hard drive expansion cards include RAID (Redundant Arrays of Independent Disks) cards, SAS (Serial Small Computer System Interface) expansion cards, and SATA (Serial Advanced Technology Attachment) expansion cards.
- Hard drives that plug directly into the drive slots for example, connect to the CPU via an Advanced Host Controller Interface (AHCI) controller.
- AHCI Advanced Host Controller Interface
- the CPU accesses the hard drive via a high-speed serial computer expansion bus (Peripheral Component Interconnect Express, PCI-Express, PCIe).
- a hard drive expansion card is required to convert the signal protocol.
- the CPU can also obtain or control hard drive status information by connecting to the hard drive backplane via a serial general-purpose input/output (sGPIO) line.
- sGPIO serial general-purpose input/output
- the CPU can obtain hard drive log data by connecting to the hard drive expansion card via the high-speed serial computer expansion bus or by obtaining hard drive log data through the advanced host controller interface, thereby achieving in-band monitoring of the hard drive.
- the baseboard management controller component 101 can access the hard disk expansion card through the integrated circuit bus (Inter-Integrated Circuit, IIC or I2C) for the hard disk connected to the hard disk expansion card.
- the baseboard management controller component 101 runs the monitoring software to send a transparent transmission command to the hard disk expansion card.
- the hard disk expansion card can forward the transparent transmission command to the hard disk.
- the hard disk After the hard disk responds to the transparent transmission command, it sends the corresponding hard disk log data to the hard disk expansion card, and the hard disk expansion card forwards the hard disk log data to the baseboard management controller.
- the NVMe interface hard disk can be directly connected to the central processing unit through a high-speed serial computer expansion bus.
- the high-speed serial computer expansion bus between the hard disk and the central processing unit can provide an integrated circuit bus to the baseboard management controller to realize the function of the hard disk expansion card forwarding commands and hard disk log data to the baseboard management controller. Only then can out-of-band monitoring of the hard disk be achieved.
- the business data of the equipment cannot be displayed to the outside world for confidentiality reasons. That is, the operation and maintenance personnel do not have the authority to access the in-band data to obtain the hard disk log data that can be read by the central processing unit.
- the baseboard management controller used to implement out-of-band monitoring is also unable to directly access the hard disk data, resulting in the limitation of the out-of-band monitoring function of the hard disk. It makes it impossible for the out-of-band monitoring party to obtain the operating status of the hard disk in a timely and accurate manner, thereby threatening the reliability of the hard disk storage.
- out-of-band monitoring of the hard disk can only be achieved with the help of a hard disk expansion card that supports receiving transparent commands through the integrated circuit bus interface or a high-speed serial computer expansion bus that provides an integrated circuit bus interface.
- a hard disk expansion card that supports receiving transparent commands through the integrated circuit bus interface or a high-speed serial computer expansion bus that provides an integrated circuit bus interface.
- out-of-band monitoring cannot be achieved.
- Figure 3 is a structural diagram of the first hard disk monitoring system provided in an embodiment of the present application
- Figure 4 is a structural diagram of the second hard disk monitoring system provided in an embodiment of the present application
- Figure 5 is a structural diagram of the third hard disk monitoring system provided in an embodiment of the present application.
- the embodiment of the present application provides a hard disk monitoring system, including a baseboard management controller and a hard disk;
- the pins of the baseboard management controller are connected to the hard disk status pins of the hard disk
- the first signal is a signal modulated according to the hard disk log data and the hard disk status signal corresponding to the hard disk status pin.
- the baseboard management controller can be a baseboard management controller component 101, or it can be a system including a baseboard management controller and a complex programmable logic device 102.
- the complex programmable logic device 102 can refer to a complex programmable logic device 102 provided on the hard disk backplane or a complex programmable logic device 102 provided on the mainboard.
- the complex programmable logic device 102 in the baseboard management controller is connected to the hard disk status pin of the hard disk, and the input/output (I/O) pin of the complex programmable logic device 102 can be connected to the hard disk status pin of the hard disk, and the complex programmable logic device 102 is also connected to the baseboard management controller component 101 through an integrated circuit bus.
- I/O input/output
- the baseboard management controller component 101 in the baseboard management controller is connected to the hard disk status pin of the hard disk, and the general-purpose input/output (GPIO) pin of the baseboard management controller component 101 can be connected to the hard disk status pin of the hard disk.
- the baseboard management controller component 101 can also be connected to other components through an integrated circuit bus.
- Hard drive pins are primarily categorized into three types: data pins, power pins, and hard drive status pins.
- the hard drive's data pins connect to the in-band system, while the hard drive's power pins are used to connect power and ground signals. Therefore, the baseboard management controller can only directly access the hard drive's status pins.
- hard disk status indication pins include hard disk in-place status indication pins and hard disk read/write status indication pins.
- Hard disk status indication pins are pins used by the hard disk to output hard disk status indication signals.
- the hard disk in-place status indication pin is used to output the hard disk in-place status signal
- the hard disk read/write status indication pin is used to output the hard disk read/write status signal.
- the hard disk status indication pins can be connected in two main ways: one is connected to the baseboard management controller to inform the baseboard management controller of the corresponding hard disk status data, and the other is connected to the control circuit on the hard disk backplane to control the status of the corresponding controlled components to inform the user of the corresponding hard disk status.
- the hard disk backplane is equipped with a hard disk status indicator to indicate the operating status of the hard disk.
- the hard disk read/write status indication pin can be controlled to output a square wave signal to the amplifying drive circuit of the hard disk read/write status indicator to control the hard disk read/write status indicator to light up.
- the hard disk read/write status indication pin When the hard disk is not in the read/write state (idle state), the hard disk read/write status indication pin is controlled to output a constant level signal (such as a constant high level signal) to turn off the hard disk read/write status indicator to indicate that it is in the idle state. The user can then determine whether the hard disk is in the read/write state by observing the on and off of the hard disk read/write status indicator. The same principle applies to the hard drive status display based on the hard drive status indicator pins. Alternatively, the hard drive can also output two different constant-level signals (one high and one low) through these hard drive status indicator pins to indicate different states. These signals can be input to the baseboard management controller to trigger corresponding recording, processing, or control.
- a constant level signal such as a constant high level signal
- the production debug pins of hard drives are mainly the pins (debug pins) next to the SAS or SATA interface of hard drives. These pins are usually used during the production debug phase of the hard drive. In actual use of the hard drive, the production debug pins can be used to output boot information during the hard drive initialization phase.
- NVMe hard drives in addition to the aforementioned drive status indicator pins, also include a drive idle pin.
- NVMe hard drives primarily use three connector types: M.2, U.2, and CEM.
- the M.2 NVMe interface has different key types for connecting different devices, with Key B and Key M being used for connecting solid-state drives.
- P10 pin When an M.2 NVMe interface is connected to a SATA solid-state drive, the definition of its P10 pin is the same as that of P11 on SAS or SATA interfaces: both are drive read/write status indicators.
- P10 pin is defined as an indicator light control pin.
- hard disk status pins are not the pins used by the hard disk to output data, and there is no risk of leaking user data stored in the hard disk.
- these hard disk status pins are directly connected to the baseboard management controller or have the permission to connect to the baseboard management controller.
- the hard disk status pin of the hard disk used may include at least one of a hard disk status indication pin, a hard disk production debugging pin, and a hard disk idle pin.
- hard disk status indication pins such as a hard disk in-place status indication pin and a hard disk read/write status indication pin are used
- these hard disk status pins are usually already connected to the general-purpose input/output (GPIO) pins of the baseboard management controller component 101 in the baseboard management controller or the input/output (I/O) pins of the complex programmable logic device 102
- GPIO general-purpose input/output
- I/O input/output
- the hard drive production debug pins on devices are usually left floating, and typically include four pins. If the embodiments of the present application use the hard drive production debug pins as the hard drive status pins for outputting hard drive log data, a connector with a corresponding number of pins can be used to connect the hard drive production debug pins to the GPIO pins of the baseboard management controller assembly 101 or the I/O pins of the complex programmable logic device 102.
- the hard disk idle pin is usually only available in the interface of NVMe interface hard disks, high-speed signals cannot be left floating.
- the hard disk idle pin in the NVMe interface is grounded through the resistor and capacitor circuit on the hard disk backplane after the hard disk is connected to the hard disk backplane. If the embodiment of the present application uses the hard disk idle pin as the hard disk status pin for the hard disk to output hard disk log data, the connection relationship between the hard disk idle pin and the hard disk backplane is changed to connect to the GPIO pin of the baseboard management controller component 101 or the I/O pin of the complex programmable logic device 102.
- the hard disk of SAS or SATA interface can be connected to the hard disk expansion card, or can be directly connected to the hard disk backplane.
- the central processing unit realizes data interaction with the hard disk by the mode of the data pin of the hard disk of high-speed serial computer expansion bus access hard disk expansion card or direct access SAS or SATA interface.
- baseboard management controller component 101 can access the hard disk expansion card through the integrated circuit bus, forward command or hard disk log data to the hard disk through the hard disk expansion card.
- baseboard management controller component 101 can also be connected to the hard disk status pin of hard disk by complex programmable logic device 102 after being connected by integrated circuit bus. Or, baseboard management controller component 101 can also be directly connected with the hard disk status pin of hard disk.
- the baseboard management controller assembly 101 can also be connected to an electrically erasable programmable read-only memory (EEPROM) and sensors via an integrated circuit bus.
- EEPROM electrically erasable programmable read-only memory
- the EEPROM is used to store server component firmware or register values.
- the sensors are located on the server backplane or mainboard and are used to collect physical status data such as temperature and wind speed of server components.
- baseboard management controller assembly 101 When baseboard management controller assembly 101 connects multiple components via an integrated circuit bus, baseboard management controller assembly 101 can access corresponding components by using component addresses. For the same component, baseboard management controller assembly 101 can also access the addresses of different registers of the component. For example, baseboard management controller assembly 101 can control the complex programmable logic device 102 to update its firmware by accessing its firmware update address.
- the NVMe interface hard disk can also be connected to a hard disk expansion card or directly connected to a hard disk backplane.
- the central processing unit uses a high-speed serial computer expansion bus protocol to interact with the NVMe interface hard disk through a switch (Switch) to transmit data (transmit instructions, obtain hard disk data, etc.).
- a multi-way bidirectional conversion switch can be set to select the NVMe interface hard drive connected to the baseboard management controller component 101, thereby realizing the interaction between the baseboard management controller component 101 and the NVMe interface hard drive through the integrated circuit bus.
- seven signals are designed between the baseboard management controller and the hard disk, including: hard disk reset signal, hard disk in-place signal, hard disk type signal, hard disk read and write status signal, hard disk fault indicator light control signal, hard disk read and write status indicator light control signal, and hard disk in-place status indicator light control signal.
- the hard disk type signal indicates the type of hard disk connected to the hard disk slot. It can be designed to be valid at a low level. When the signal is low, it indicates that an NVMe interface hard disk is connected. When the signal is high, it indicates that a SAS or SATA interface hard disk is connected.
- the hard disk read/write status signal (REY_N) is a signal sent by the hard disk to the baseboard management controller to convey whether the hard disk outputs the read/write status (active status) or the non-read/write status (idle status).
- the hard disk read/write status indicator light control signal (LED_ACT) is a signal used to control the hard disk read/write status indicator light.
- the hard disk status pin of the hard disk can output a square wave signal as the hard disk read/write status indicator light control signal to control the hard disk read/write status indicator light to light up, and the hard disk status pin of the hard disk can output a constant level signal to control the hard disk read/write status indicator light to go out; or the hard disk status pin of the hard disk can output different hard disk status signals to inform the baseboard management controller of the hard disk read/write status signal, and then the baseboard management controller outputs the hard disk read/write status indicator light control signal to control the hard disk read/write status indicator light up or go out.
- the hard disk in-place status indicator light control signal (LED_LOC) is a signal used to control the hard disk in-place status indicator light.
- the hard disk status pin of the hard disk can output a square wave signal as the hard disk read/write status indicator light control signal to control the hard disk in-place status indicator light to light up, and the hard disk status pin of the hard disk can output a constant level signal to control the hard disk in-place status indicator light to go out; or the hard disk status pin of the hard disk can output different hard disk status signals to inform the baseboard management controller of the hard disk in-place status signal, and then the baseboard management controller outputs the hard disk in-place status indicator light control signal to control the hard disk in-place status indicator light up or off.
- the hard disk log data In order to realize the transmission of hard disk log data, the hard disk log data needs to be converted into the form of hard disk data packets.
- the hard disk modulates the hard disk log data and the hard disk status signal corresponding to the hard disk status pin to obtain the first signal, which may include:
- the hard disk generates a hard disk data packet from the hard disk log data.
- the hard disk data packet includes data bits and check bits.
- the baseboard management controller demodulates the first signal to obtain hard disk log data, including:
- the baseboard management controller identifies the modulated hard disk log data from the first signal, and converts the modulated hard disk log data from an analog signal to a digital signal to obtain a hard disk data packet;
- the baseboard management controller checks the hard disk data packet according to the check bit in the hard disk data packet, which may include:
- the baseboard management controller reads the data bits of the hard disk data packet and calculates and obtains the first verification information
- the baseboard management controller determines that the hard disk data packet passes the verification
- the baseboard management controller determines that the hard disk data packet fails the verification, the hard disk data packet may be discarded, and information on the discard of the hard disk data packet may be further recorded in a local log.
- the way in which the baseboard management controller parses the hard disk data packet to obtain the hard disk log data corresponds to the way in which the hard disk generates the hard disk data packet from the hard disk log data.
- the baseboard management controller calls the hard disk log parsing configuration information corresponding to the hard disk to parse the data bits to obtain the hard disk log data, which may include: after the baseboard management controller identifies the hard disk monitoring data type, it calls the data conversion table corresponding to the hard disk monitoring data type to obtain the value of the hard disk monitoring data of the hard disk monitoring data type.
- the hard drive After converting the hard drive log data into a hard drive data packet, the hard drive modulates the data packet and the hard drive status signal into a first signal. To ensure that the original hard drive status signal expressed by the hard drive status pin is not affected, the hard drive log data is modulated according to the characteristics of the hard drive status signal. The hard drive modulates the hard drive log data and outputs it through the hard drive status pin.
- the demodulation module on the baseboard management controller demodulates the first signal carrying the hard drive log data to obtain the hard drive log data, enabling direct transmission of the hard drive log data from the hard drive to the baseboard management controller.
- 16 different level widths can be set, corresponding to the sixteen hexadecimal digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, and F.
- the level width can be set to 42 milliseconds to 49 milliseconds and 51 milliseconds to 58 milliseconds, with each millisecond corresponding to a hexadecimal digit.
- the level width corresponding to the hard drive log data can be set to NULL when the level width is 50 milliseconds.
- a level less than or equal to 41 milliseconds or greater than or equal to 59 milliseconds is considered an error signal and the hard drive data packet is discarded.
- the pulse width recognition error can be set to 0.25 milliseconds; for example, a measured value of 42.25 milliseconds would be counted as 42 milliseconds.
- the first signal may be a signal obtained by converting hard disk log data into a signal having a corresponding level width and then modulating the signal corresponding to the hard disk log data and the hard disk status signal.
- the baseboard management controller demodulating the first signal to obtain the hard disk log data may include: the baseboard management controller measuring the level width of the first signal to obtain corresponding digital data, and parsing the digital data into the hard disk log data.
- the first signal may be a signal obtained by converting the hard disk log data into a signal corresponding to a pulse amplitude, and then modulating the signal corresponding to the hard disk log data and the hard disk status signal.
- the baseboard management controller demodulating the first signal to obtain the hard disk log data may include: the baseboard management controller measuring the pulse amplitude of the first signal to obtain corresponding digital data, and parsing the digital data into the hard disk log data.
- the first signal may be a signal modulated by a signal having a corresponding level width of the hard disk log data and a hard disk status signal after the hard disk outputs the hard disk log data.
- the signal having a corresponding level width of the hard disk log data may be a signal having a corresponding high level width and/or a signal having a corresponding low level width, and the level width corresponding to the hard disk log data is different from the level width of the hard disk status signal.
- the baseboard management controller demodulating the first signal to obtain the hard disk log data may include: the baseboard management controller measuring the level width of the first signal to obtain corresponding digital data, and parsing the digital data into the hard disk log data.
- Outputting the first signal through the hard disk status pin adopts a simultaneous carrying manner to output the hard disk log data and the hard disk status data, which can not only reduce the impact on the function of the hard disk status signal that is originally output continuously, but also increase the output rate of the hard disk log data.
- the first signal can also be configured to carry the modulated hard disk log data and hard disk status signal in a time-sharing manner.
- the hard disk modulates the hard disk log data and the hard disk status signal corresponding to the hard disk status pin to obtain the first signal.
- This can also include: after the hard disk converts the hard disk log data into a signal of a corresponding level width, the first signal is inserted into the signal corresponding to the hard disk log data during an inactive signal period when the hard disk status pin does not output the hard disk status signal.
- this method of obtaining the first signal by hard disk modulation is referred to as a time-sharing method.
- the hard disk log data can be directly modulated to obtain the first signal without mixing it with the hard disk status signal.
- the baseboard management controller demodulates the first signal to obtain the hard disk log data, including:
- the hard drive controlling the hard drive status pin to output hard drive log data should not affect the original function of the hard drive status pin.
- the embodiments of this application further illustrate the modulation and demodulation methods of hard drive log data.
- the hard disk status pin is used as a hard disk status indicator light control pin, and some hard disk status indicator light control pins control the lighting of the corresponding hard disk status indicator light by outputting a square wave signal
- the level width of the first signal corresponds to the data bits in the hard disk log data
- the high and low level changes in the first signal correspond to the hard disk status signal.
- the first signal is a signal with varying high and low levels, but its high level width and/or low level width corresponds to the hard disk log data, thereby achieving mixing of the hard disk log data with the hard disk status signal.
- the first signal can also be a signal obtained by adjusting the level width of the corresponding period in the square wave signal according to the level width corresponding to the hard disk log data after the hard disk converts the hard disk log data into a signal of corresponding level width; wherein the level width corresponding to the hard disk log data is different from the level width of the square wave signal.
- the square wave signal is a rectangular wave signal with a duty cycle of 50%.
- the level width corresponding to the hard disk log data is set to not be the level width of the square wave signal according to the level width of the square wave signal (such as 50 milliseconds), thereby achieving mixing of the hard disk log data and the hard disk status signal.
- the baseboard management controller demodulates the hard disk status data from the signal period of the hard disk log data according to the signal type of the hard disk status signal, which may include: the baseboard management controller demodulates the hard disk status data according to the high and low level changes in the first signal.
- the baseboard management controller demodulates the hard disk status data based on the high and low level changes in the first signal. This can include: after the baseboard management controller demodulates and obtains the hard disk log data, it replaces the first signal with a square wave signal to obtain the hard disk status signal; and demodulates the hard disk status data based on the hard disk status signal.
- the first signal can be directly replaced with a square wave signal by a replacement method, and the corresponding hard disk status data obtained by demodulation is the hard disk status data corresponding to the hard disk status signal being a square wave signal.
- the hard disk read/write status indicator pin outputs a square wave signal to indicate the hard disk control data for lighting the hard disk read/write status indicator.
- the baseboard management controller demodulates the hard disk status data based on the high and low level changes in the first signal, and can also include: after demodulating the hard disk log data, the baseboard management controller adjusts the pulse width of each cycle of the first signal according to the pulse width of the corresponding square wave signal to obtain the hard disk status signal; and demodulates the hard disk status data according to the hard disk status signal.
- the pulse width adjustment method can be used to obtain the pulse width corresponding to 50% of the cycle length of the square wave signal output by the pre-stored hard disk status pin, so that after identifying the hard disk log data, the pulse width of each signal cycle of the first signal is adjusted back to the pulse width corresponding to the original square wave signal, thereby restoring the hard disk status signal, and demodulating the corresponding hard disk status data to obtain the hard disk status data corresponding to the hard disk status signal when the hard disk status signal is a square wave signal, for example, the hard disk read/write status indicator pin outputs a square wave signal to indicate hard disk control data for lighting the hard disk status indicator.
- some hard disk status indicator light control pins control the hard disk status indicator light to turn off when outputting a constant level signal.
- the level width of the first signal corresponds to the data bits in the hard disk log data
- the constant level signal with a larger proportion in the first signal corresponds to the hard disk status signal.
- the hard disk status signal is a constant-level signal
- the first signal is a signal obtained by replacing the constant-level signal of a corresponding duration with the signal corresponding to the hard disk log data after the hard disk converts the hard disk log data into a signal of a corresponding level width; wherein the proportion of the inverted-level signal of the constant-level signal in each signal cycle of the first signal is less than 50%.
- modulating the hard disk status signal, which is originally a constant-level signal, into the first signal significantly affects the expression of the original constant-level signal it is necessary to set modulation constraints for the case where the hard disk status signal is a constant-level signal. Without considering using a constant-level signal to control the hard disk status indicator and without considering including other types of hard disk status signals, it is necessary to set a signal obtained by replacing the constant-level signal with the signal corresponding to the hard disk log data, such that the proportion of the inverted-level signal of the hard disk status signal in each signal cycle of the first signal is less than 50%.
- the hard disk status signal is a constant level signal
- the first signal is a signal obtained by the hard disk converting the hard disk log data into a signal of corresponding level width and generating an inverted signal of the constant level signal according to the signal corresponding to the hard disk log data, and then inserting the inverted signal into the constant level signal; wherein, the proportion of the inverted level signal of the constant level signal in each signal cycle of the first signal is less than 50%.
- the baseboard management controller may demodulate the hard disk status data from the signal period of the demodulated hard disk log data based on the signal type of the hard disk status signal. This may include: the baseboard management controller demodulating the hard disk status data based on the constant-level signal that accounts for a relatively large proportion of the signal period of the first signal. In other words, by setting modulation constraints when modulating the hard disk log data into the hard disk status signal in the form of a constant-level signal, the baseboard management controller can identify the constant-level signal based on the proportion of high and low levels in the first signal.
- the baseboard management controller demodulates the hard disk status data based on the constant-level signal that accounts for a relatively large proportion in the signal cycle of the first signal, which may include: after the baseboard management controller demodulates and obtains the hard disk log data, replacing the inverted signal corresponding to the constant-level signal that accounts for a relatively large proportion in the signal cycle of the first signal with the constant-level signal that accounts for a relatively large proportion in the signal cycle of the first signal, to obtain the hard disk status signal; and demodulating the hard disk status data based on the hard disk status signal.
- the hard disk status signal only includes a constant level signal
- different modulation constraints need to be set to distinguish between constant high-level signals and constant low-level signals.
- the hard disk status signal only includes one constant level signal, or if the hard disk status signal includes both a constant high-level signal and a constant low-level signal
- the first signal is the signal obtained by modulating the hard disk log data into a signal corresponding to the level width, based on the signal corresponding to the hard disk log data and the hard disk status signal.
- the duty cycle of each cycle of the signal corresponding to the hard disk log data is greater than 50%; if the hard disk status signal is a constant low-level signal, then the duty cycle of each cycle of the signal corresponding to the hard disk log data is less than 50%. In other words, if the duty cycle is used as a modulation constraint, it is distinguished whether the hard disk status signal is a constant high-level signal or a constant low-level signal to modulate the hard disk log data.
- the baseboard management controller demodulates the hard disk status data from the signal period of the hard disk log data according to the signal type of the hard disk status signal, which may include: the first signal is a signal obtained by modulating the hard disk according to the signal corresponding to the hard disk log data and the hard disk status signal after the hard disk converts the hard disk log data into a signal of corresponding level width; when the hard disk status signal is a square wave signal, the maximum duty cycle in the signal period of the hard disk log data is less than the first duty cycle and/or the minimum duty cycle in the signal period of the hard disk log data is greater than the second duty cycle; if the constant level signal is a constant high level signal, the first duty cycle is the minimum duty cycle in the first signal corresponding to the constant level signal; if the signal type of the hard disk status signal only includes a constant level signal, or the signal type of the hard disk status data includes a constant high level signal and a constant low level signal, the baseboard management controller demodulates the hard disk status data from the signal period of the hard disk log data according
- the first signal is a signal obtained by modulating the hard disk log data into a signal of corresponding level width according to the signal corresponding to the hard disk log data and the hard disk status signal; to distinguish between square wave signals and constant level signals, when the hard disk status signal is a square wave signal, the maximum duty cycle of the first signal is less than the first duty cycle and/or the minimum duty cycle of the first signal is greater than the second duty cycle; if the constant level signal is a constant high level signal, the first duty cycle is the minimum duty cycle in the first signal corresponding to the constant level signal; if the constant level signal is a constant low level signal, the second duty cycle is the maximum duty cycle in the first signal corresponding to the constant level signal.
- the duty cycle interval after the hard disk log data is modulated into the hard disk status signal in the form of a square wave signal, the duty cycle is in a completely different interval from that of the hard disk status signal when the hard disk log data is modulated into the form of a constant level signal, so that the baseboard management controller can identify the hard disk status signal in the form of a square wave signal and the hard disk status signal in the form of a constant level signal while identifying the hard disk log data.
- the baseboard management controller is further configured to identify and obtain hard disk status data from the first signal, then if the signal type of the hard disk status signal includes a square wave signal and a constant level signal, the baseboard management controller demodulates the hard disk status data from a signal period of the hard disk log data demodulated according to the signal type of the hard disk status signal, including:
- the baseboard management controller after demodulating and obtaining the hard disk log data, restores the signal period of the first signal having a duty cycle greater than the second duty cycle into a square wave signal, and restores the signal period of the first signal having a duty cycle less than the second duty cycle into a constant low-level signal, thereby obtaining the hard disk status signal;
- the baseboard management controller restores a signal period in the first signal whose duty cycle is less than the first duty cycle and greater than the second duty cycle into a square wave signal, restores a signal period in the first signal whose duty cycle is greater than the first duty cycle into a constant high-level signal, and restores a signal period in the first signal whose duty cycle is less than the second duty cycle into a constant low-level signal, thereby obtaining a hard disk status signal;
- the hard disk status data is obtained by demodulating the hard disk status signal.
- the hard disk status pin used to output the hard disk status signal can be directly connected to control the controlled component.
- the hard disk modulates the hard disk log data and the hard disk status signal to obtain a first signal, including: the hard disk determines the deviation range of the first signal compared to the hard disk status signal according to the control signal range corresponding to the working status signal of the controlled component corresponding to the hard disk status pin, and modulates the hard disk log data and the hard disk status signal according to the deviation range to obtain the first signal.
- the hard disk status pin and its corresponding controlled element may not be directly connected, that is, the hard disk status pin is only directly connected to the baseboard management controller, and the hard disk monitoring system provided by the embodiments of the present application may also include a status control circuit corresponding to the hard disk status pin, the controlled end of the status control circuit is connected to the baseboard management controller, and the output end of the status control circuit is connected to the driving end of the controlled element corresponding to the hard disk status pin; the baseboard management controller is also used to control the status control circuit to drive the controlled element according to the hard disk status data.
- the baseboard management controller controls the status control circuit to drive the controlled components according to the hard disk status data, including:
- the baseboard management controller demodulates the first signal to obtain the hard disk status data, it regenerates the control signal for the hard disk status indicator light corresponding to the hard disk status pin, reducing the limitation of the first signal modulation.
- modulating the first signal it is only necessary to consider enabling the baseboard management controller to recognize the hard disk status data, without considering that the control effect will be deteriorated when the controlled component is directly controlled by the first signal.
- the hard disk log data can include a complete hard disk log, that is, a log formed by the hard disk controller of the hard disk recording its own operating status data (temperature, number of bad sectors, cumulative number of errors, etc.) on time; the hard disk log data can also be partial hard disk monitoring data, that is, the hard disk controller of the hard disk can output part of the pre-agreed or baseboard management controller specified type of hard disk monitoring data through the hard disk status pin.
- the rate at which the hard disk outputs hard disk log data through the hard disk status pin is different depending on the type of hard disk status pin selected, the way in which the hard disk status pin outputs the hard disk status signal, and the modulation method when the hard disk status pin is used to output hard disk log data.
- the type, data volume, and output frequency of the output hard disk log data can be determined based on the rate at which the hard disk affected by the implementation scheme outputs hard disk log data through the hard disk status pin.
- the hard disk can be set to output complete hard disk log data once every fixed period, and when a certain hard disk monitoring data is abnormal, the abnormal monitoring data will be sent outside the fixed sending period.
- FIG6 is a schematic structural diagram of a fourth hard disk monitoring system provided in an embodiment of the present application.
- a hard disk log storage area is pre-deployed and divided into multiple storage partitions, and the different orders of the storage partitions are configured as the reading and writing order of the hard disk log data, thereby realizing an asynchronous reading and writing hard disk log data transmission architecture.
- the forward arrangement order of the storage area is configured as the read data order
- the reverse arrangement order of the storage partition is configured as the write data order
- the readers and writers of the hard disk log data can perform the reading and writing of the hard disk log data in different orders, so that the writing of the hard disk log data only needs to be based on one address pointer, and the reading also only needs to be based on one address pointer row, thereby making full use of the storage space of the baseboard management controller to store the hard disk log data, so that more hard disk log data can be received.
- a baseboard management controller can be connected to multiple hard disks (hard disk 1...hard disk n) to directly obtain the hard disk log data of these hard disks.
- Corresponding demodulation modules (demodulation module 1...demodulation module n) can be set in the baseboard management controller to demodulate the first signal output by the corresponding hard disk.
- the demodulation module may not have a one-to-one correspondence with the hard disk. For example, when a pin of the baseboard management controller is connected to multiple hard disks and the hard disk log data of each hard disk is read in a time-sharing multiplexing manner, the demodulation module only needs to have a one-to-one correspondence with the pin of the baseboard management controller.
- the baseboard management controller includes a baseboard management controller component 101
- the GPIO pin of the baseboard management controller component 101 is connected to the hard disk status pin of the hard disk
- a demodulation module is deployed in the baseboard management controller component 101
- a hard disk log storage area is deployed in the local storage space of the baseboard management controller component 101
- the analysis module for analyzing hard disk log data of the baseboard management controller component 101 is configured to read the hard disk log data from the hard disk log storage area.
- the baseboard management controller can also integrate sensors on the hard drive backplane to collect external hard drive status information, thereby enabling comprehensive analysis of the hard drive's operating status in conjunction with the hard drive's log data. For example, if the baseboard management controller detects an abnormal hard drive temperature using an external temperature sensor, it can verify the normal operation of the hard drive's temperature self-test function by combining temperature monitoring items in the hard drive log data at that time. It can also diagnose the cause of the abnormal hard drive temperature by combining other monitoring data items in the hard drive log data at that time.
- the baseboard management controller After the baseboard management controller completes the analysis of the hard disk log data, it can also be used to display the obtained hard disk monitoring results in the form of charts on the baseboard management controller web page. Operation and maintenance personnel can intuitively view the hard disk monitoring results by logging into the baseboard management controller web page.
- the embodiment of the present application further provides a baseboard management controller for hard disk monitoring
- the baseboard management controller is used to divide the hard disk log storage area in the local storage space, and divide the hard disk log storage area into multiple storage partitions; determine the arrangement order of each storage partition, and configure the forward arrangement order of the storage partitions as the read data order, and the reverse arrangement order of the storage partitions as the write data order; demodulate the first signal output by the hard disk status pin of the hard disk to obtain hard disk log data, and write the hard disk log data into the hard disk log storage area in the write data order, so as to perform monitoring of the hard disk according to the hard disk log data after reading the hard disk log data from the hard disk log storage area according to the read data order;
- the first signal is a signal modulated according to the hard disk log data and the hard disk status signal corresponding to the hard disk status pin.
- FIG7 is a flowchart of a first hard disk monitoring method provided in an embodiment of the present application.
- S702 Determine the arrangement order of each storage partition, and configure the forward arrangement order of the storage partitions as the data reading order, and the reverse arrangement order of the storage partitions as the data writing order.
- S703 Receive a first signal output by a hard disk status pin of the hard disk, which is modulated according to the hard disk log data and a hard disk status signal corresponding to the hard disk status pin.
- S704 Demodulate the first signal to obtain hard disk log data.
- S705 Writing the hard disk log data into the hard disk log storage area in a data writing order, so as to monitor the hard disk according to the hard disk log data after reading the hard disk log data from the hard disk log storage area in a data reading order.
- a hard disk log storage area is divided in the available space of the local storage space, and the hard disk log storage area is divided into multiple storage partitions, each storage partition corresponding to a continuous address.
- the storage partition is also used to store the hard disk identification of the hard disk corresponding to the hard disk data packet.
- the baseboard management controller writes the hard disk log data to the hard disk log storage area, which may include determining the hard disk identification corresponding to the hard disk log data based on the hard disk status pin corresponding to the hard disk log data when writing the hard disk log data to the hard disk log storage area in the order of the time the hard disk log data is received; and writing the hard disk identification and the hard disk log data to the storage partition of the hard disk log storage area.
- the size of the storage partition is then set to the size of the hard disk data packet plus the size of the hard disk identification.
- the storage partitions are arranged in a certain order, and the reading and writing are set to be performed in the reverse order.
- the storage partitions can be arranged in the order of address size.
- the forward arrangement order of the storage partitions and the reverse arrangement order of the storage partitions are only used to distinguish two different orders, that is, as shown in Figure 6, when any one arrangement order is a specific arrangement order of the storage partitions (such as the order of addresses from small to large), the other arrangement order can be the opposite of it.
- the pin of the baseboard management controller receives the first signal output by the hard disk status pin of the hard disk.
- the first signal is a signal obtained by the hard disk modulating the hard disk log data and the hard disk status signal corresponding to the hard disk status pin.
- the modulation method and demodulation method of the first signal can refer to the introduction of the above embodiments of this application.
- the demodulated hard disk data packets are placed in a queue in the order of reception time, and written into the hard disk log storage area in the order of the queue.
- the hard disk log storage area When writing into the hard disk log storage area, it is written in the configured write data order.
- the hard disk log data can be read from the hard disk log storage area by the baseboard management controller component 101 of the baseboard management controller to read the locally stored hard disk log data, or when the baseboard management controller component 101 polls the complex programmable logic device 102, the complex programmable logic device 102 reads the local hard disk log data and feeds it back to the baseboard management controller component 101.
- the above hard disk monitoring method can be applied to the complex programmable logic device 102 in the baseboard management controller, and the complex programmable logic device 102 is connected to the baseboard management controller component 101 in the baseboard management controller through an integrated circuit bus.
- the CPLD 102 may send an interrupt signal to the BMC 101, which may include sending an interrupt signal to the BMC 101 when the capacity of the hard disk log storage area meets the interrupt trigger condition.
- the interrupt signal trigger condition By setting the interrupt signal trigger condition, the frequency at which the BMC 101 reads hard disk log data can be adjusted to ensure the rational use of BMC 101 resources.
- the interrupt trigger condition can be that the amount of data written to the hard disk log storage area is greater than or equal to a preset ratio of the total capacity of the hard disk log storage area. For example, when the complex programmable logic device 102 detects that the amount of data written to the local hard disk log storage area has reached 90% of the total capacity of the hard disk log storage area, it can generate an interrupt signal to notify the baseboard management controller component 101 to read the hard disk log data.
- Configuration unit 901 is used to divide the hard disk log storage area in the local storage space and divide the hard disk log storage area into multiple storage partitions; determine the arrangement order of each storage partition, and configure the forward arrangement order of the storage partitions to be the reading order and the reverse arrangement order of the storage partitions to be the writing order;
- an output unit configured to transmit the first signal to the baseboard management controller via the hard disk status pin, so that the baseboard management controller demodulates the first signal to obtain hard disk log data and writes the hard disk log data into a hard disk log storage area in the local storage space, thereby enabling monitoring of the hard disk based on the hard disk log data;
- the hard disk log storage area is a circular buffer.
- FIG10 is a schematic structural diagram of a hard disk monitoring device provided in an embodiment of the present application.
- Memory 1010 for storing computer programs 1011;
- the processor 1020 may include one or more processing cores, such as a 3-core processor, an 8-core processor, etc.
- the processor 1020 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA).
- DSP digital signal processing
- FPGA field-programmable gate array
- PDA programmable logic array
- the processor 1020 may also include a main processor and a coprocessor.
- the main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU);
- the coprocessor is a low-power processor for processing data in the standby state.
- the processor 1020 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen.
- the processor 1020 may also include an artificial intelligence (AI) processor, which is used to handle computing operations related to machine learning.
- AI artificial intelligence
- the storage medium may include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program code.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Computing Systems (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Mathematical Physics (AREA)
- Debugging And Monitoring (AREA)
Abstract
本申请涉及硬盘监控技术领域,具体公开了一种硬盘监控方法、装置、系统、设备及存储介质,通过基板管理控制器与硬盘的硬盘状态引脚的连接,采用以硬盘的硬盘状态引脚直接输出硬盘日志数据到基板管理控制器的方式实现对硬盘的带外监控,在不影响硬盘原有的功能的同时降低了对硬盘的带外监控难度,从而有助于实现对设备中所有硬盘的带外监控。对于由此带来的更多硬盘的硬盘日志数据的传输问题,在基板管理控制器中部署读写沿不同顺序执行的硬盘日志存储区,使读写均只需一个地址指针执行,充分利用基板管理控制器的空间存储硬盘日志数据,保障了对更多硬盘的监控的稳定性,进而方便运维人员掌握全量硬盘的状态数据,保障设备服务的安全。
Description
相关申请的交叉引用
本申请要求于2024年03月29日提交中国专利局,申请号为202410382492.9,申请名称为“一种硬盘监控方法、装置、系统、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及硬盘监控技术领域,特别是涉及一种硬盘监控方法、装置、系统、设备及存储介质。
硬盘是计算机最主要的存储设备之一,由此,硬盘的健康运行是保障设备服务器可靠性的关键因素之一。
为保证对硬盘的运行状态的精准掌控,需要设备在硬盘运行过程中进行监控以获取硬盘的状态信息。目前主要的硬盘监控方案分为硬盘带内监控和硬盘带外监控。硬盘带内监控即通过中央处理器(Central Processing Unit,CPU)上运行的监控软件与硬盘进行数据通信后获取硬盘的状态信息,此种监控方案往往难以将监控数据向运维人员呈现。硬盘的带外监控即通过基板管理控制器(Baseboard Management Controller,BMC)获取硬盘状态信息后进行对硬盘的状态监控,监控结果可以向运维人员呈现,是目前主要采用的监控方法。但由于带外管理系统没有权限访问硬盘的业务数据,导致对很多硬盘的带外监控无法实现。
如何提高设备中硬盘带外监控的可监控硬盘的范围,是本领域技术人员需要解决的技术问题。
本申请的目的是提供一种硬盘监控方法、装置、系统、设备及存储介质,用于提高设备中硬盘带外监控的可监控硬盘的范围。
为解决上述技术问题,本申请提供一种硬盘监控方法,应用于基板管理控制器,包括:
在本地存储空间中划分硬盘日志存储区,并将硬盘日志存储区划分为多个存储分区;
确定各存储分区的排列顺序,并配置存储分区的正向排列顺序为读数据顺序,存储分区的反向排列顺序为写数据顺序;
接收硬盘的硬盘状态引脚输出的根据硬盘日志数据和硬盘状态引脚对应的硬盘状态信号调制得到的第一信号;
解调第一信号得到硬盘日志数据;
按写数据顺序将硬盘日志数据写入硬盘日志存储区,以在根据读数据顺序自硬盘日志存储区读取硬盘日志数据后根据硬盘日志数据执行对硬盘的监控。
一方面,应用于基板管理控制器中的复杂可编程逻辑器件,复杂可编程逻辑器件与基板管理控制器中的基板管理控制器组件通过集成电路总线连接。
另一方面,在本地存储空间中划分硬盘日志存储区,并将硬盘日志存储区划分为多个存储分区,包括:
将复杂可编程逻辑器件的寄存器配置为硬盘日志存储区,并将硬盘日志存储区划分为多个存储分区;
确定各存储分区的排列顺序,并配置存储分区的正向排列顺序为读数据顺序,存储分区的反向排列顺序为写数据顺序,包括:
确定各存储分区的排列顺序后,按照存储分区的排列顺序为寄存器配置地址信息,并确定存储分区的正向排列顺序为读数据顺序,存储分区的反向排列顺序为写数据顺序;
根据寄存器的配置信息、读数据顺序和写数据顺序配置读写控制状态机。
另一方面,在本地存储空间中划分硬盘日志存储区,并将硬盘日志存储区划分为多个存储分区,包括:
在复杂可编程逻辑器件的带片内随机存取存储器中划分硬盘日志存储区,并将硬盘日志存储区划分为多个存储分区,根据带片内随机存取存储器的地址信息确定各存储分区的地址信息;
确定各存储分区的排列顺序,并配置存储分区的正向排列顺序为读数据顺序,存储分区的反向排列顺序为写数据顺序,包括:
确定各存储分区的排列顺序后,确定存储分区的正向排列顺序为读数据顺序,存储分区的反向排列顺序为写数据顺序;
根据存储分区的地址信息、读数据顺序和写数据顺序配置读写控制状态机。
另一方面,在根据读数据顺序自硬盘日志存储区读取硬盘日志数据后根据硬盘日志数据执行对硬盘的监控,包括:
向基板管理控制器组件发送中断信号,以使基板管理控制器组件在接收到中断信号后通过集成电路总线访问硬盘日志存储区并根据读数据顺序读取硬盘日志数据,根据硬盘日志数据执行对硬盘的监控。
另一方面,向基板管理控制器组件发送中断信号,包括:
当硬盘日志存储区的容量满足中断触发条件时,向基板管理控制器组件发送中断信号。
另一方面,中断触发条件,包括:
硬盘日志存储区已写入的数据量大于或等于硬盘日志存储区的总容量的预设比例。
另一方面,中断触发条件,包括:
硬盘日志存储区中的空闲空间的容量小于或等于预设存储容量。
另一方面,在根据读数据顺序自硬盘日志存储区读取硬盘日志数据后根据硬盘日志数据执行对硬盘的监控,包括:
接受基板管理控制器组件的轮询,以使基板管理控制器组件轮询至复杂可编程逻辑器件时,根据读数据顺序读取硬盘日志数据,根据硬盘日志数据执行对硬盘的监控。
另一方面,配置存储分区的正向排列顺序为读数据顺序,存储分区的反向排列顺序为写数据顺序,包括:
自硬盘日志存储区中选择一个存储分区的起始地址为空闲起点地址,以自空闲起点地址起存储分区的反向排列顺序为写数据顺序;
自硬盘日志存储区中选择一个存储分区的起始地址为数据起点地址,以自数据起点地址起存储分区的正向排列顺序为读数据顺序;
按写数据顺序将硬盘日志数据写入硬盘日志存储区,包括:
自空闲起点地址开始按照写数据顺序写入硬盘日志数据,而后将空闲起点地址更新为硬盘日志数据最后写入的地址。
另一方面,自硬盘日志存储区中选择一个存储分区的起始地址为数据起点地址,包括:
以初始的空闲起点地址为数据起点地址。
另一方面,存储分区的排列顺序为存储分区的地址大小顺序;
硬盘监控方法还包括:
若当前的空闲起点地址和当前的数据起点地址满足(n+1)%N=m,则确定硬盘日志存储区已满;
其中,n为当前的空闲起点地址,N为存储分区的总数,m为当前的数据起点地址,%为取模运算符号。
另一方面,应用于基板管理控制器的基板管理控制器组件;
将硬盘日志数据写入硬盘日志存储区,包括:
调用第一线程将硬盘日志数据写入硬盘日志存储区;
在根据读数据顺序自硬盘日志存储区读取硬盘日志数据后根据硬盘日志数据执行对硬盘的监控,包括:
调用第二线程自硬盘日志存储区读取硬盘日志数据,以根据硬盘日志数据执行对硬盘的监控。
另一方面,将硬盘日志数据写入硬盘日志存储区,包括:
在按照接收到硬盘日志数据的时间先后顺序将硬盘日志数据写入硬盘日志存储区时,根据硬盘日志数据对应的硬盘状态引脚确定硬盘日志数据对应的硬盘标识;
将硬盘标识与硬盘日志数据写入硬盘日志存储区的存储分区。
为解决上述技术问题,本申请还提供一种基板管理控制器,用于硬盘监控;
基板管理控制器用于在本地存储空间中划分硬盘日志存储区,并将硬盘日志存储区划分为多个存储分区;确定各存储分区的排列顺序,并配置存储分区的正向排列顺序为读数据顺序,存储分区的反向排列顺序为写数据顺序;解调硬盘的硬盘状态引脚输出的第一信号得到硬盘日志数据,按写数据顺序将硬盘日志数据写入硬盘日志存储区,以在根据读数据顺序自硬盘日志存储区读取硬盘日志数据后根据硬盘日志数据执行对硬盘的监控;
第一信号为根据硬盘日志数据和硬盘状态引脚对应的硬盘状态信号调制得到的信号。
为解决上述技术问题,本申请还提供一种硬盘监控系统,包括:基板管理控制器和硬盘;
基板管理控制器的引脚与硬盘的硬盘状态引脚连接;
基板管理控制器用于在本地存储空间中划分硬盘日志存储区,并将硬盘日志存储区划分为多个存储分区;确定各存储分区的排列顺序,并配置存储分区的正向排列顺序为读数据顺序,存储分区的反向排列顺序为写数据顺序;解调硬盘状态引脚输出的第一信号得到硬盘日志数据,按写数据顺序将硬盘日志数据写入硬盘日志存储区,以在根据读数据顺序自硬盘日志存储区读取硬盘日志数据后根据硬盘日志数据执行对硬盘的监控;
第一信号为根据硬盘日志数据和硬盘状态引脚对应的硬盘状态信号调制得到的信号。
为解决上述技术问题,本申请还提供一种硬盘监控装置,应用于基板管理控制器,包括:
配置单元,用于在本地存储空间中划分硬盘日志存储区,并将硬盘日志存储区划分为多个存储分区;确定各存储分区的排列顺序,并配置存储分区的正向排列顺序为读数据顺序,存储分区的反向排列顺序为写数据顺序;
接收单元,用于接收硬盘的硬盘状态引脚输出的根据硬盘日志数据和硬盘状态引脚对应的硬盘状态信号调制得到的第一信号;
解调单元,用于解调第一信号得到硬盘日志数据;
写入单元,用于按写数据顺序将硬盘日志数据写入硬盘日志存储区,以在根据读数据顺序自硬盘日志存储区读取硬盘日志数据后根据硬盘日志数据执行对硬盘的监控。
为解决上述技术问题,本申请还提供一种硬盘监控设备,包括:
存储器,用于存储计算机程序;
处理器,用于执行计算机程序,计算机程序被处理器执行时实现如上述任意一项硬盘监控方法的步骤。
为解决上述技术问题,本申请还提供一种非易失性可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现如上述任意一项硬盘监控方法的步骤。
本申请所提供的硬盘监控方法,有益效果在于通过基板管理控制器与硬盘的硬盘状态引脚的连接,采用以硬盘的硬盘状态引脚直接输出硬盘日志数据到基板管理控制器的方式实现对硬盘的带外监控,解决了传统硬盘带外监控方案中带外管理系统无权限访问硬盘数据以至于对硬盘的带外监控难以实现的问题,从而实现对更多硬盘的带外监控;对于由此实现对更多硬盘的带外监控所带来的数据传输问题,采用将基板管理控制器的本地存储空间中划分出的硬盘日志存储区划分为多个存储分区后,配置按照存储分区的不同顺序作为硬盘日志数据的读写顺序,使硬盘日志数据的写入只需基于一个地址指针进行,读取也只需基于一个地址指针行,充分利用基板管理控制器的存储空间来存储硬盘日志数据,为接收更多的硬盘日志数据提供基础;而由硬盘在硬盘日志引脚原有功能对应的硬盘状态信号的基础上调制加入硬盘日志数据得到第一信号并通过硬盘日志引脚输出第一信号,由基板管理控制器解调第一信号得到硬盘日志数据,以利用硬盘原有的控制引脚同时输出硬盘日志数据到基板管理控制器,在不影响硬盘原有的功能的同时降低了对硬盘的带外监控难度,从而提高了设备中可监控硬盘的范围,有助于实现对设备中所有硬盘的带外监控,方便运维人员掌握全量硬盘的状态数据,进一步保障设备服务的安全。
本申请还提供一种硬盘监控装置、系统、设备、存储介质及基板管理控制器,具有上述有益效果,在此不再赘述。
为了更清楚的说明本申请实施例或现有技术的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为一种硬盘带内监控系统的结构示意图;
图2为一种硬盘带外监控系统的结构示意图;
图3为本申请实施例提供的第一种硬盘监控系统的结构示意图;
图4为本申请实施例提供的第二种硬盘监控系统的结构示意图;
图5为本申请实施例提供的第三种硬盘监控系统的结构示意图;
图6为本申请实施例提供的第四种硬盘监控系统的结构示意图;
图7为本申请实施例提供的第一种硬盘监控方法的流程图;
图8为本申请实施例提供的第二种硬盘监控方法的流程图;
图9为本申请实施例提供的一种硬盘监控装置的结构示意图;
图10为本申请实施例提供的一种硬盘监控设备的结构示意图;
其中,101为基板管理控制器组件,102为复杂可编程逻辑器件。
本申请的核心是提供一种硬盘监控方法、装置、系统、设备及存储介质,用于提高设备中硬盘带外监控的可监控硬盘的范围。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
图1为一种硬盘带内监控系统的结构示意图;图2为一种硬盘带外监控系统的结构示意图。
为便于理解,首先对本申请实施例所涉及的名词以及硬件框架进行介绍。
按照网络管理的方式,目前设备运行监控方案主要分为带内管理方案和带外管理方案。
带内管理使得网络中的网管数据和业务数据在相同的链路中传输,通过登录设备的操作系统,访问设备的用户数据,可以获取被监控设备的带内管理数据。如图1所示的,基于中央处理器(Central Processing Unit,CPU)运行操作系统获取被监控部件的监控数据的方式为带内管理方式,例如对硬盘的带内监控方案,中央处理器通过与硬盘通信,不仅可以访问硬盘中存储的用户数据,还能够获取硬盘在运行中记载的硬盘日志数据,则用户可以通过登录操作系统查看硬盘日志数据。
带外管理则指通过专门的网管通道实现对网络的管理,将网管数据与业务数据分开,为网管数据建立独立通道。在这个通道中,只传输管理数据,网管数据与业务数据分离,可以提高网管的效率与可靠性,也有利于提高网管数据的安全性。
由于带内监控无法满足运维需求,服务器在部署后,会通过基板管理控制器(Baseboard Management Controller,BMC)提供带外管理监控功能。基板管理控制器是一个专门的服务处理机,它利用传感器来监视一台计算机、网络服务器,或者是其他硬件驱动设备的状态,并通过独立的连接线路和设备的系统管理员进行通信。在实际使用中,基板管理控制器通常被安装在母板或被监控设备的主电路板上。基板管理控制器通过传感器用于测量内部物理变量,例如:温度,湿度,电源电压,风扇速度,通信参数和操作系统(OS,Operating System)函数等。如果这些变量中的任何一个超出制定限制的范围,基板管理控制器就会通知系统管理员。基板管理控制器可以提供网络(web)服务,其具有网络通信功能以及提供网页来显示监控界面,运维人员可以通过在设备现场通过网线连接被监控设备的基板管理控制器,或在数据中心通过网络连接多个被监控设备的基板管理控制器来实现获取基板管理控制器的监控数据。
由于基板管理控制器中的基板管理控制器组件101的性能和引脚数量有限,随着需要监控的部件数量和需要监控的项目的增加,基板管理控制器中常设有复杂可编程逻辑器件102(Complex Programmable logic device,CPLD)来实现对基板管理控制器组件101的性能压力分担以及提供更多的引脚来连接传感器或被监控部件。复杂可编程逻辑器件102主要由逻辑块、可编程互连通道和输入/输出块(I/O块)三部分构成。复杂可编程逻辑器件102的一个逻辑块通常包括4~20个宏单元,每个宏单元一般由乘积项阵列、乘积项分配和可编程寄存器构成。每个宏单元有多种配置方式,各宏单元也可级联使用,因此可实现较复杂组合逻辑和时序逻辑功能。对集成度较高的复杂可编程逻辑器件102,通常还提供了带片内随机存取存储器(Random Access Memory,RAM)/只读存储器(Read-Only Memory,ROM)的嵌入阵列块。可编程互连通道主要提供逻辑块、宏单元、输入/输出引脚间的互连网络。输入/输出块(I/O块)提供内部逻辑到器件I/O引脚之间的接口。
硬盘作为服务器的重要部件,是带外监控管理的重要对象。按照通信接口的类型,主要分为串行连接小型计算机系统接口(Serial Attached SCSI,下文简称SAS)/串行高级技术附件(Serial Advanced Technology Attachment,下文简称SATA)接口硬盘以及非易失性内存主机控制器接口(Non Volatile Memory Host Controller Interface Specification,NVMHCIS或NVM Express,下文简称NVMe)接口硬盘。其中,SAS接口兼容SATA接口。按照存储介质的类型,硬盘又主要分为机械硬盘(Hard Disk Drive,HDD)和固态硬盘(Solid State Disk或Solid State Drive,SSD)。其中,机械硬盘主要为SAS接口或SATA接口。固态硬盘包括SAS接口、SATA接口和NVMe接口硬盘。
如图1和图2所示,通过将硬盘连接在硬盘背板的硬盘插槽上,实现服务器侧对硬盘的使用。硬盘的接口通常为金手指结构,其中的引脚与硬盘插槽上的位置插接后,可以经由硬盘背板上的电路连接到服务器侧的部件(如数据引脚连接到中央处理器)。
在实际连接中,部分硬盘直接插接在硬盘背板的硬盘插槽上,而部分硬盘是通过硬盘扩展卡连接在硬盘背板上的。硬盘扩展卡(Expender)的类型包括磁盘阵列(Redundant Arrays of Independent Disks,RAID)卡、串行连接小型计算机系统接口扩展卡(SAS扩展卡)、串行高级技术附件扩展卡(SATA扩展卡)等。而直接插接到硬盘插槽的硬盘,例如通过高级主机控制器接口(Advanced Host Controller Interface,AHCI)控制器与中央处理器连接的硬盘。
如图1所示,中央处理器通过高速串行计算机扩展总线(Peripheral Component Interconnect Express,PCI-Express,PCIe)访问硬盘,由于SAS或SATA接口的硬盘无法直接连接高速串行计算机扩展总线,需要硬盘扩展卡进行信号的协议转换。中央处理器也可以通过以串行通用输入/输出(Serial General Purpose Input/Output,sGPIO)线连接硬盘背板来获取或控制硬盘状态信息。即是说,中央处理器可以通过高速串行计算机扩展总线连接硬盘扩展卡获取硬盘日志数据,或通过高级主机控制器接口获取硬盘日志数据,实现对硬盘的带内监控。
如图2所示,基板管理控制器组件101若想要获得硬盘日志数据,则针对连接在硬盘扩展卡上的硬盘,可以通过集成电路总线(Inter-Integrated Circuit,IIC或I2C)访问硬盘扩展卡,基板管理控制器组件101运行监控软件向硬盘扩展卡发送透传命令,硬盘扩展卡能够将该透传命令转发至硬盘,硬盘响应该透传命令后将相应的硬盘日志数据发送至硬盘扩展卡,由硬盘扩展卡将硬盘日志数据转发至基板管理控制器。此外,NVMe接口硬盘可以通过高速串行计算机扩展总线直接连接中央处理器,可以通过硬盘与中央处理器之间的高速串行计算机扩展总线提供一路集成电路总线到基板管理控制器,以实现如硬盘扩展卡的为基板管理控制器转发命令以及硬盘日志数据的功能,此时才可以实现对硬盘的带外监控。
可以看到,在目前的服务器监控架构中,设备的业务数据出于保密需要,无法对外界展示,即运维人员没有权限访问带内数据以获取中央处理器所能读取到的硬盘日志数据,用于实现带外监控的基板管理控制器同样无法直接访问硬盘数据,导致对硬盘的带外监控功能的受限,使得带外监控方无法及时、准确地获得硬盘的运行状态,进而使硬盘存储可靠性面临威胁。
由于基板管理控制器与硬盘之间若不经过集成电路总线接口则没有数据通路,对于硬盘的带外监控只能借助支持通过集成电路总线接口接受透传命令的硬盘扩展卡或通过提供集成电路总线接口的高速串行计算机扩展总线,对于不存在该条件的硬盘,如高级主机控制器接口控制器之下的硬盘,则无法实现对其的带外监控。
图3为本申请实施例提供的第一种硬盘监控系统的结构示意图;图4为本申请实施例提供的第二种硬盘监控系统的结构示意图;图5为本申请实施例提供的第三种硬盘监控系统的结构示意图。
对此,需要寻找一种能够适应更多硬盘连接方式的硬盘带外监控方案。本申请实施例提供一种硬盘监控系统,包括基板管理控制器和硬盘;
基板管理控制器的引脚与硬盘的硬盘状态引脚连接;
基板管理控制器用于在本地存储空间中划分硬盘日志存储区,并将硬盘日志存储区划分为多个存储分区;确定各存储分区的排列顺序,并配置存储分区的正向排列顺序为读数据顺序,存储分区的反向排列顺序为写数据顺序;解调硬盘状态引脚输出的第一信号得到硬盘日志数据,按写数据顺序将硬盘日志数据写入硬盘日志存储区,以在根据读数据顺序自硬盘日志存储区读取硬盘日志数据后根据硬盘日志数据执行对硬盘的监控;
第一信号为根据硬盘日志数据和硬盘状态引脚对应的硬盘状态信号调制得到的信号。
需要说明的是,在本申请实施例中,基板管理控制器可以为基板管理控制器组件101,也可以为包括基板管理控制器和复杂可编程逻辑器件102的系统,该复杂可编程逻辑器件102可以指设于硬盘背板的复杂可编程逻辑器件102或设于主板的复杂可编程逻辑器件102。
在本申请实施例的一些可选的实施方式中,基板管理控制器中的复杂可编程逻辑器件102与硬盘的硬盘状态引脚连接,则可以采用复杂可编程逻辑器件102的输入/输出(I/O)引脚与硬盘的硬盘状态引脚连接,复杂可编程逻辑器件102还通过集成电路总线与基板管理控制器组件101连接。
在本申请实施例的另一些可选的实施方式中,基板管理控制器中的基板管理控制器组件101与硬盘的硬盘状态引脚连接,则可以采用基板管理控制器组件101的通用输入/输出口(General-purpose Input/Output,GPIO)引脚与硬盘的硬盘状态引脚连接,基板管理控制器组件101还可以通过集成电路总线与其他部件连接。
硬盘的引脚主要分为三类:数据引脚、电源引脚和硬盘状态引脚。其中,硬盘的数据引脚与带内系统连接,硬盘的电源引脚用于连接电源和地信号。因此,基板管理控制器能够直接访问的仅有硬盘的硬盘状态引脚。
硬盘的硬盘状态引脚主要包括硬盘状态指示引脚、硬盘生产调试引脚和硬盘空闲引脚。
其中,硬盘状态指示引脚包括硬盘在位状态指示引脚、硬盘读写状态指示引脚等。硬盘状态指示引脚为硬盘用于输出硬盘状态指示信号的引脚,例如硬盘在位状态指示引脚用于硬盘输出硬盘在位状态信号,硬盘读写状态指示引脚用于硬盘输出硬盘读写状态信号。当硬盘连接到硬盘背板后,硬盘状态指示引脚主要有两种连接方式,一种是连接到基板管理控制器以告知基板管理控制器相应的硬盘状态数据,另一种是连接到硬盘背板上的控制电路以控制相应的被控元件的状态以使用户获悉相应的硬盘状态。例如,硬盘背板上设有硬盘状态指示灯来指示硬盘运行状态。如硬盘在处于读写状态时可以控制硬盘读写状态指示引脚输出方波信号至硬盘读写状态指示灯的放大驱动电路以控制硬盘读写状态指示灯亮起,硬盘未处于读写状态(空闲状态)时则控制硬盘读写状态指示引脚输出一个恒定电平信号(如恒定高电平信号)使硬盘读写状态指示灯熄灭来指示自己处于空闲状态,以便用户通过观看硬盘读写状态指示灯的亮灭获悉硬盘是否处于读写状态。硬盘基于硬盘在位状态指示引脚的状态展示同理。或者,硬盘也可以通过这些硬盘状态指示引脚输出两种不同的恒定电平信号(一高一低)来指示不同的状态,该信号可以输入至基板管理控制器以便触发相应的记录、处理或控制。
硬盘生产调试引脚主要为SAS或SATA接口的硬盘在SAS或SATA接口旁的引脚(debug引脚),这些引脚通常是硬盘在生产调试阶段使用的,在硬盘实际使用中,生产调试引脚可以用于在硬盘初始化阶段输出引导信息。
而在NVMe接口硬盘上,除了上述硬盘状态指示引脚外,还包括硬盘空闲引脚。目前NVMe接口硬盘主要采用三种连接器,分别是M.2连接器、U.2连接器和CEM连接器。其中,M.2连接器的NVMe接口,不同的(Key)类型用于连接不同类型的设备,其中Key B和Key M可用于连接固态硬盘。当M.2规范的NVMe接口连接SATA接口的固态硬盘时,其P10引脚的定义与SAS或SATA接口的P11引脚定义相同,均为硬盘读写状态指示引脚。当M.2规范的NVMe接口连接NVMe接口硬盘时,其P10引脚定义为指示灯控制引脚。U.2连接器的NVMe接口与SAS及SATA接口完全兼容,其P11引脚也为硬盘读写状态指示引脚。CEM连接器的NVMe接口的A面的P32引脚为空闲引脚(Reserved引脚),也是除了硬盘数据引脚之外的硬盘状态引脚,且在x8(八线接口)及以上还存在多个空闲引脚。
上述硬盘状态引脚并非硬盘用于输出数据的引脚,没有泄露硬盘中存储的用户数据的风险,目前在硬盘插入硬盘背板后,这些硬盘状态引脚有直接与基板管理控制器连接或者具有与基板管理控制器连接的权限。
则在本申请实施例提供的硬盘监控系统中,所采用硬盘的硬盘状态引脚可以包括硬盘状态指示引脚、硬盘生产调试引脚和硬盘空闲引脚中的至少一种。
在本申请实施例中,若采用硬盘在位状态指示引脚、硬盘读写状态指示引脚等硬盘状态指示引脚,由于这些硬盘状态引脚通常已经与基板管理控制器中的基板管理控制器组件101的通用输入/输出口(General-purpose Input/Output,GPIO)引脚或复杂可编程逻辑器件102的输入/输出(I/O)引脚连接,可以直接采用该硬件架构而不需要对服务器的硬件架构做出改动,实现简单方便。
目前设备上的硬盘生产调试引脚通常是悬空的,通常包括4个引脚。若本申请实施例采用硬盘生产调试引脚作为硬盘输出硬盘日志数据的硬盘状态引脚,则可以采用相应数量引脚的连接器将硬盘生产调试引脚连接到基板管理控制器组件101的GPIO引脚或复杂可编程逻辑器件102的I/O引脚上。
由于硬盘空闲引脚通常为NVMe接口硬盘的接口中才有,高速信号不能悬空,目前NVMe接口中的硬盘空闲引脚在硬盘连接到硬盘背板后是通过硬盘背板上的电阻电容电路接地的。若本申请实施例采用硬盘空闲引脚作为硬盘输出硬盘日志数据的硬盘状态引脚,则将硬盘空闲引脚与硬盘背板的连接关系改为连接至基板管理控制器组件101的GPIO引脚或复杂可编程逻辑器件102的I/O引脚。
在本申请实施例的一些可选的实施方式中,针对串行连接小型计算机系统接口或串行高级技术附件接口硬盘(SAS或SATA接口的硬盘),如图4所示,SAS或SATA接口的硬盘可以连接在硬盘扩展卡上,也可以直接连接硬盘背板。在带内系统中,中央处理器通过高速串行计算机扩展总线访问硬盘扩展卡或直接访问SAS或SATA接口的硬盘的数据引脚的方式实现与硬盘的数据交互。在带外系统中,若硬盘扩展卡具有连接到基板管理控制器组件101的集成电路总线,则基板管理控制器组件101可以通过集成电路总线访问硬盘扩展卡,通过硬盘扩展卡向硬盘转发命令或硬盘日志数据。此外,基板管理控制器组件101还可以通过集成电路总线连接复杂可编程逻辑器件102后,通过复杂可编程逻辑器件102与硬盘的硬盘状态引脚连接。或者,基板管理控制器组件101还可以直接与硬盘的硬盘状态引脚连接。
此外,基板管理控制器组件101还可以通过集成电路总线与电可擦除可编程只读存储器(Electrically Erasable Programmable ROM,EEPROM)、传感器(Sensor)连接。其中,电可擦除可编程只读存储器用于存储服务器部件的固件或服务器部件的寄存器值,传感器设于服务器背板或服务器主板上,用于采集服务器部件的温度、风速等物理状态数据。
当基板管理控制器组件101通过一路集成电路总线连接多个部件时,基板管理控制器组件101可以通过部件地址来访问对应的部件,对于同一个部件,也可以通过访问该部件不同寄存器的地址来实现访问。例如,基板管理控制器组件101可以通过访问复杂可编程逻辑器件102的固件更新地址来控制复杂可编程逻辑器件102更新固件。
在本申请实施例的一些可选的实施方式中,针对非易失性内存主机控制器接口硬盘(NVMe接口硬盘,Non-Volatile Memory Express接口硬盘),如图5所示,NVMe接口硬盘也可以连接在硬盘扩展卡或直接连接在硬盘背板上。在带内系统中,中央处理器经过交换机(Switch)使用高速串行计算机扩展总线协议与NVMe接口硬盘交互传输数据(传输指令、获取硬盘数据等)。中央处理器还可以通过多路双向转换开关(可以采用PCA9546)使用NVMe的虚拟引脚端口(Virtual Pin Port,VPP)的方式连接多个硬盘背板,硬盘背板使用通用输入/输出口(General-purpose Input/Output,GPIO)与NVMe接口硬盘获取或控制硬盘状态信息,如控制硬盘定位灯和故障灯。基板管理控制器与NVMe接口硬盘的连接方式与SAS或SATA接口的硬盘同理。与SAS或SATA接口的硬盘不同的是,基板管理控制器组件101可以通过集成电路总线连接至NVMe接口硬盘的集成电路总线接口,基板管理控制器组件101的一路集成电路总线连接多个NVMe接口硬盘时,可以设置多路双向转换开关来选通与基板管理控制器组件101连通的NVMe接口硬盘,实现基板管理控制器组件101通过集成电路总线与NVMe接口硬盘的交互。
基于如图3、图4、图5任意一种实施方式,在本申请实施例的一些可选的实施方式中,在基板管理控制器与硬盘之间设计七种信号,包括:硬盘复位信号、硬盘在位信号、硬盘类型信号、硬盘读写状态信号、硬盘故障指示灯控制信号、硬盘读写状态指示灯控制信号、硬盘在位状态指示灯控制信号。
其中,硬盘复位信号(RST_N)为基板管理控制器发送至硬盘的用于复位硬盘寄存器的信号,当检测到硬盘故障时,基板管理控制器可以通过向硬盘发送硬盘复位信号以使硬盘复位。
硬盘在位信号(PRSNT_N)为表示硬盘插槽是否连接有硬盘的信号,可以设计为低电平有效信号,当该信号为低电平时指示硬盘插槽未连接硬盘,当该信号为高电平时指示硬盘插槽已连接硬盘。
硬盘类型信号(IFDET_N)表示硬盘插槽所连接硬盘的类型的信号,可以设计为低电平有效,当该信号为低电平时表示连接的是NVMe接口硬盘,当该信号为高电平时表示连接的是SAS或SATA接口的硬盘。
硬盘读写状态信号(REY_N)为硬盘发送至基板管理控制器的信号,用于传递硬盘输出读写状态(活跃状态)还是非读写状态(空闲状态)。
硬盘故障指示灯控制信号(LED_ERR)为当硬盘故障时用于点亮硬盘故障指示灯的信号,可以由基板管理控制器在检测到硬盘故障后通过该信号控制硬盘故障指示灯亮起。
硬盘读写状态指示灯控制信号(LED_ACT)为用于控制硬盘读写状态指示灯的信号,可以由硬盘的硬盘状态引脚输出方波信号作为硬盘读写状态指示灯控制信号来控制硬盘读写状态指示灯亮起,由硬盘的硬盘状态引脚输出恒定电平信号控制硬盘读写状态指示灯熄灭;也可以由硬盘的硬盘状态引脚输出不同的硬盘状态信号将硬盘读写状态信号告知基板管理控制器后,由基板管理控制器输出硬盘读写状态指示灯控制信号控制硬盘读写状态指示灯的亮灭。
硬盘在位状态指示灯控制信号(LED_LOC)为用于控制硬盘在位状态指示灯的信号,可以由硬盘的硬盘状态引脚输出方波信号作为硬盘读写状态指示灯控制信号来控制硬盘在位状态指示灯亮起,由硬盘的硬盘状态引脚输出恒定电平信号控制硬盘在位状态指示灯熄灭;也可以由硬盘的硬盘状态引脚输出不同的硬盘状态信号将硬盘在位状态信号告知基板管理控制器后,由基板管理控制器输出硬盘在位状态指示灯控制信号控制硬盘在位状态指示灯的亮灭。
为实现对硬盘日志数据的传输,需要将硬盘日志数据转换为硬盘数据包的形式。
在本申请实施例的一些可选的实施方式中,硬盘将硬盘日志数据和硬盘状态引脚对应的硬盘状态信号调制得到第一信号,可以包括:
硬盘将硬盘日志数据生成硬盘数据包,硬盘数据包包括数据位和校验位;
硬盘将硬盘数据包由数字信号转换为模拟信号,得到调制后的硬盘日志数据,并将调制后的硬盘日志数据与硬盘状态信号调制得到第一信号。
则相应的,基板管理控制器解调第一信号得到硬盘日志数据,包括:
基板管理控制器自第一信号中识别得到调制后的硬盘日志数据,并将调制后的硬盘日志数据由模拟信号转换为数字信号,得到硬盘数据包;
基板管理控制器根据硬盘数据包中的校验位对硬盘数据包校验通过后,读取硬盘数据包的数据位,调用与硬盘对应的硬盘日志解析配置信息将数据位解析得到硬盘日志数据。
其中,基板管理控制器根据硬盘数据包中的校验位对硬盘数据包校验,可以包括:
基板管理控制器读取硬盘数据包的数据位,计算得到第一校验信息;
基板管理控制器读取硬盘数据包的校验位,得到第二校验信息;
若第一校验信息和第二校验信息一致,则基板管理控制器确定硬盘数据包通过校验;
若第一校验信息和第二校验信息不一致,则基板管理控制器确定硬盘数据包未通过校验。
当基板管理控制器确定硬盘数据包未通过校验时,可以将硬盘数据包丢弃,还可以进一步将该硬盘数据包丢弃的信息记入本地日志。
为避免信息丢失,往往需要将硬盘日志数据拆分为多份,即将一份硬盘日志数据生成多个硬盘数据包进行传输。为区分同一个硬盘发送的不同数据包,可以设置各数据包携带在硬盘日志数据中的顺序标号,或设置各数据包携带本数据包所传输的硬盘监控数据类型。
则在本申请实施例的一些可选的实施方式中,可以设置硬盘数据包可以包括九位数据,第一位数据为开始标志位,第二位数据为数据包标识位,第三至第六位数据为数据位,第七至九位数据为校验位。其中,数据包标识位可以为该硬盘数据包所携带的硬盘监控数据类型或该硬盘数据包在一份硬盘日志数据中的顺序序号。数据位和校验位均可以为十六进制数字。
基板管理控制器解析硬盘数据包得到硬盘日志数据的方式与硬盘将硬盘日志数据生成硬盘数据包的方式相对应。
例如,当硬盘数据包携带的数据为将硬盘日志数据平均拆分后的一份数据,则基板管理控制器调用与硬盘对应的硬盘日志解析配置信息将数据位解析得到硬盘日志数据,可以包括:基板管理控制器调用数据位-文本转换协议,将数据位解析为硬盘日志文本,得到硬盘日志数据。
当硬盘数据包携带的数据为设定的硬盘监控数据类型,则基板管理控制器调用与硬盘对应的硬盘日志解析配置信息将数据位解析得到硬盘日志数据,可以包括:基板管理控制器识别硬盘监控数据类型后,调用对应硬盘监控数据类型的数据转换表,得到该硬盘监控数据类型的硬盘监控数据的值。
在将硬盘日志数据转换为硬盘数据包后,硬盘将硬盘数据包和硬盘状态信号调制为第一信号。为了不影响硬盘状态引脚原有硬盘状态信号的表达,需要根据硬盘状态信号的特性调制硬盘日志数据。通过硬盘将硬盘日志数据调制后通过硬盘状态引脚输出,基板管理控制器上的解调模块对携带硬盘日志数据的第一信号解调得到硬盘日志数据,实现从硬盘直接向基板管理控制器传递硬盘日志数据。
如采用数字进制为十六进制,即设置16种不同的电平宽度,可以对应0、1、2、3、4、5、6、7、8、9、A、B、C、D、E、F等十六进制中的十六个数字。例如,有硬盘状态引脚通过输出脉宽为50毫秒的方波信号来控制硬盘状态指示灯亮起,则可以设置电平宽度为42毫秒~49毫秒、51毫秒~58毫秒,每隔1毫秒对应一个十六进制数据,即共16种电平宽度对应十六进制中的十六个数字,为区分原本的硬盘状态信号,硬盘日志数据对应的电平宽度中可以设置电平宽度为50毫秒时为空值(NULL);小于或等于41毫秒,或者大于或等于59毫秒时则认为接收到错误信号,此时丢弃硬盘数据包。可以设置对脉宽的识别误差为0.25毫秒,如测量到42.25毫秒则计为42毫秒。
对硬盘日志数据进行脉冲幅度调制同理。
在本申请实施例的一些可选的实施方式中,第一信号可以为将硬盘日志数据转换为对应电平宽度的信号之后根据硬盘日志数据对应的信号和硬盘状态信号调制得到的信号。基板管理控制器解调第一信号得到硬盘日志数据,可以包括:基板管理控制器通过测量第一信号的电平宽度得到对应的数字数据,将数字数据解析为硬盘日志数据。
在本申请实施例的另一些可选的实施方式中,第一信号可以将硬盘日志数据转换为对应脉冲幅度的信号后根据硬盘日志数据对应的信号和硬盘状态信号调制得到的信号。基板管理控制器解调第一信号得到硬盘日志数据,可以包括:基板管理控制器通过测量第一信号的脉冲幅度得到对应的数字数据,将数字数据解析为硬盘日志数据。
下面以对硬盘日志数据采用脉宽调制的方式进行说明。
在本申请实施例的一些可选的实施方式中,第一信号可以为硬盘输出硬盘日志数据为对应电平宽度之后根据硬盘日志数据对应电平宽度的信号和硬盘状态信号调制得到的信号。其中,硬盘日志数据对应电平宽度的信号可以为对应高电平宽度的信号和/或对应低电平宽度的信号,且硬盘日志数据对应的电平宽度与硬盘状态信号的电平宽度不同。
而基板管理控制器解调第一信号得到硬盘日志数据,可以包括:基板管理控制器通过测量第一信号的电平宽度得到对应的数字数据,将数字数据解析为硬盘日志数据。
在本申请实施例的一些可选的实施方式中,可以设置第一信号同时携带调制后的硬盘日志数据和硬盘状态信号。即硬盘将硬盘日志数据和硬盘状态引脚对应的硬盘状态信号调制得到第一信号,可以包括:硬盘将硬盘日志数据转换为对应电平宽度的信号之后,将硬盘日志数据对应的信号与硬盘状态信号调制得到第一信号。在本申请实施例中,为方便说明,将此种硬盘调制得到第一信号的方式称为同时携带的方式。
通过硬盘状态引脚输出第一信号采用同时携带的方式输出硬盘日志数据和硬盘状态数据,不仅能减少对原本是持续输出的硬盘状态信号的功能的影响,还能够提高硬盘日志数据的输出速率。
而在本申请实施例的另一些可选的实施方式中,还可以设置第一信号分时携带调制后的硬盘日志数据和硬盘状态信号。即硬盘将硬盘日志数据和硬盘状态引脚对应的硬盘状态信号调制得到第一信号,还可以包括:第一信号为硬盘将硬盘日志数据转换为对应电平宽度的信号后,在硬盘状态引脚不输出硬盘状态信号的无效信号时间段插入硬盘日志数据对应的信号。为方便说明,将此种硬盘调制得到第一信号的方式称为分时携带的方式。
通过硬盘状态引脚输出第一信号采用分时携带的方式输出硬盘日志数据和硬盘状态数据,可以适用于原本并非连续输出硬盘状态信号的硬盘状态引脚,或硬盘状态信号并非需要每时每刻都输出的硬盘状态引脚。例如若采用硬盘在位状态指示引脚作为输出硬盘日志数据的硬盘状态引脚,则可以设置硬盘间隔周期地自硬盘状态引脚输出指示硬盘在位的硬盘状态信号,基板管理控制器可以根据最近一次接收到的硬盘状态信号来确定硬盘在位与否。而对于硬盘不需要通过硬盘状态引脚输出硬盘状态信号的时间段内,可以直接将硬盘日志数据调制得到第一信号,而不需要与硬盘状态信号混合。在此种情况下,基板管理控制器解调第一信号得到硬盘日志数据,包括:
基板管理控制器根据硬盘状态信号的信号类型自第一信号中解调得到硬盘状态数据后,自第一信号中不符合硬盘状态信号的信号类型的信号时段中解调得到硬盘日志数据;
或,基板管理控制器通过测量第一信号的电平宽度得到对应的数字数据,将数字数据解析为硬盘日志数据,并根据电平宽度不对应数字数据的信号时段解调得到硬盘状态数据。
可以理解的是,不管采用同时携带的方式还是分时携带的方式,硬盘控制硬盘状态引脚输出硬盘日志数据的同时不应影响硬盘状态引脚原有功能的实现。在此原则的基础上,本申请实施例进一步对硬盘日志数据的调制和解调方法进行说明。
在本申请实施例中,基板管理控制器还可以用于根据硬盘状态信号对应的硬盘状态数据的信号类型解调第一信号得到硬盘状态数据。即是说,通过基板管理控制器在识别硬盘日志数据的同时还识别得到硬盘状态数据,以辅助实现硬盘状态引脚原有功能的表达。
如本申请上述实施例所介绍的,如果采用的硬盘状态引脚为硬盘状态指示灯控制引脚,有的硬盘状态指示灯控制引脚通过输出方波信号来控制相应的硬盘状态指示灯亮起。则在本申请实施例的一些可选的实施方式中,第一信号的电平宽度对应硬盘日志数据中的数据位,第一信号中的高低电平变化对应硬盘状态信号。
为了在原本是方波信号的硬盘状态信号的基础上调制加入硬盘日志数据的信号,在本申请实施例的一些可选的实施方式中,若硬盘状态信号为方波信号,则第一信号可以为所硬盘将硬盘日志数据转换为对应电平宽度的信号之后将硬盘日志数据对应的信号替换方波信号后得到的信号;其中,硬盘日志数据对应的电平宽度与方波信号的电平宽度不同。即是说,通过将原本为方波信号的硬盘状态信号的替换为硬盘日志数据转换得到对应电平宽度的信号,使得第一信号为高低电平变化的信号,但其高电平宽度和/或低电平宽度对应硬盘日志数据,实现将硬盘日志数据与硬盘状态信号混合。
而在本申请实施例的另一些可选的实施方式中,若硬盘状态信号为方波信号,第一信号还可以为硬盘将硬盘日志数据转换为对应电平宽度的信号之后根据硬盘日志数据对应的电平宽度调整方波信号中对应周期的电平宽度后得到的信号;其中,硬盘日志数据对应的电平宽度与方波信号的电平宽度不同。方波信号即为占空比为50%的矩形波信号。为区分方波信号,根据方波信号的电平宽度(如50毫秒)设置将硬盘日志数据对应的电平宽度均不为方波信号的电平宽度,实现将硬盘日志数据与硬盘状态信号混合。
而在硬盘状态信号的信号类型包括方波信号的情况下,基板管理控制器根据硬盘状态信号的信号类型自解调出硬盘日志数据的信号周期中解调出硬盘状态数据,可以包括:基板管理控制器根据第一信号中的高低电平变化解调出硬盘状态数据。
为了从第一信号中解调出原本的方波信号对应的硬盘控制数据,基板管理控制器根据第一信号中的高低电平变化解调出硬盘状态数据,可以包括:基板管理控制器在解调得到硬盘日志数据后,将第一信号替换为方波信号,得到硬盘状态信号;根据硬盘状态信号解调得到硬盘状态数据。即是说,可以采用替换的方式,将第一信号直接替换为方波信号,并解调得到对应的硬盘状态数据为硬盘状态信号为方波信号时对应的硬盘状态数据,例如硬盘读写状态指示灯引脚输出方波信号表示点亮硬盘读写状态指示灯的硬盘控制数据。
而在本申请实施例的另一些可选的实施方式中,基板管理控制器根据第一信号中的高低电平变化解调出硬盘状态数据,还可以包括:基板管理控制器在解调得到硬盘日志数据后,根据对应的方波信号的脉宽调整第一信号的各周期的脉宽,得到硬盘状态信号;根据硬盘状态信号解调得到硬盘状态数据。即是说,可以采用脉宽调整的方式,根据预存的硬盘状态引脚输出方波信号的周期长度,获悉其50%对应的脉宽大小,从而在识别出硬盘日志数据后,将第一信号各信号周期的脉宽调整回原本的方波信号对应的脉宽,实现对硬盘状态信号的还原,并解调得到对应的硬盘状态数据为硬盘状态信号为方波信号时对应的硬盘状态数据,例如硬盘读写状态指示灯引脚输出方波信号表示点亮硬盘状态指示灯的硬盘控制数据。
而对于为恒定电平信号的硬盘状态信号,如有的硬盘状态指示灯控制引脚在输出恒定电平信号时控制硬盘状态指示灯熄灭。则在本申请实施例的另一些可选的实施方式中,第一信号的电平宽度对应硬盘日志数据中的数据位,第一信号中占比较大的恒定电平信号对应硬盘状态信号。
为了在原本是恒定电平信号的硬盘状态信号的基础上调制加入硬盘日志数据的信号,在本申请实施例的一些可选的实施方式中,硬盘状态信号为恒定电平信号,第一信号为硬盘将硬盘日志数据转换为对应电平宽度的信号之后将硬盘日志数据对应的信号替换对应时长的恒定电平信号后得到的信号;其中,第一信号各信号周期中恒定电平信号的反相电平信号的比例均小于50%。由于将原本是恒定电平信号的硬盘状态信号调制为第一信号,极大影响了原本的恒定电平信号的表达,故需要针对硬盘状态信号为恒定电平信号的情况设置调制约束条件,在不考虑用恒定电平信号控制硬盘状态指示灯以及不考虑还包括其他类型的硬盘状态信号的前提下,需要设置将硬盘日志数据的对应的信号替换恒定电平信号后得到的信号后,第一信号的各信号周期中与硬盘状态信号的反相电平信号的占比均小于50%。
在本申请实施例的另一些可选的实施方式中,硬盘状态信号为恒定电平信号,第一信号为硬盘将硬盘日志数据转换为对应电平宽度的信号并根据硬盘日志数据对应的信号生成与恒定电平信号的反相信号之后将反相信号插入恒定电平信号后得到的信号;其中,第一信号各信号周期中恒定电平信号的反相电平信号的比例均小于50%。同理,若采用将硬盘日志数据调制入硬盘状态信号的恒定电平信号的方案,需要设置在将硬盘日志数据调制入硬盘状态信号的恒定电平信号时插入的反相电平在第一信号的各信号周期的占比均小于50%。
为了从第一信号中解调出原本的恒定电平信号对应的硬盘控制数据,基板管理控制器根据硬盘状态信号的信号类型自解调出硬盘日志数据的信号周期中解调出硬盘状态数据,可以包括:基板管理控制器根据第一信号的信号周期中占比较大的恒定电平信号解调出硬盘状态数据。即是说,通过设置将硬盘日志数据调制入恒定电平信号形式的硬盘状态信号时的调制约束条件,可以使基板管理控制器根据第一信号中高低电平的占比识别得到恒定电平信号。
则在本申请实施例的一些可选的实施方式中,基板管理控制器根据第一信号的信号周期中占比较大的恒定电平信号解调出硬盘状态数据,可以包括:基板管理控制器在解调得到硬盘日志数据后,以第一信号的信号周期中占比较大的恒定电平信号替换第一信号,得到硬盘状态信号;根据硬盘状态信号解调得到硬盘状态数据。即是说,可以采用整个信号周期替换的方式,将第一信号各信号周期替换为占比较大的电平对应的恒定电平信号,并解调得到对应的硬盘状态数据为硬盘状态信号为该恒定电平信号时对应的硬盘状态数据,例如硬盘在位状态指示灯引脚输出恒定高电平信号表示硬盘在位,未接收到硬盘在位状态指示灯引脚输出恒定高电平信号时接收到恒定低电平信号表示硬盘不在位。
或者,基板管理控制器根据第一信号的信号周期中占比较大的恒定电平信号解调出硬盘状态数据,可以包括:基板管理控制器在解调得到硬盘日志数据后,将第一信号的信号周期中占比较大的恒定电平信号对应的反相信号替换为第一信号的信号周期中占比较大的恒定电平信号,得到硬盘状态信号;根据硬盘状态信号解调得到硬盘状态数据。即是说,还可以采用仅将反相电平信号替换掉的方式,将第一信号各信号周期中调制加入的反相电平填补为原本的恒定电平信号形式的硬盘状态信号,并解调得到对应的硬盘状态数据为硬盘状态信号为该恒定电平信号时对应的硬盘状态数据。
在本申请实施例的一些实施方式中,若硬盘状态信号仅包括恒定电平信号,区分恒定高电平信号和恒定低电平信号,需要设置不同的调制约束条件。则若硬盘状态信号仅包括一种恒定电平信号,或,硬盘状态信号包括恒定高电平信号和恒定低电平信号,则第一信号为硬盘将硬盘日志数据为对应电平宽度的信号之后根据硬盘日志数据对应的信号和硬盘状态信号调制得到的信号;若硬盘状态信号为恒定高电平信号,则硬盘日志数据对应的信号各周期的占空比均大于50%;若硬盘状态信号为恒定低电平信号,则硬盘日志数据对应的信号各周期的占空比均小于50%。即是说,若以占空比作为调制约束条件,区分硬盘状态信号为恒定高电平信号还是恒定低电平信号来调制入硬盘日志数据。
若基板管理控制器还用于从第一信号中识别得到硬盘状态数据,则在硬盘状态信号的信号类型仅包括一种恒定电平信号,或,硬盘状态数据的信号类型包括恒定高电平信号和恒定低电平信号时,基板管理控制器根据硬盘状态信号的信号类型自解调出硬盘日志数据的信号周期中解调出硬盘状态数据,可以包括:第一信号为硬盘将硬盘日志数据为对应电平宽度的信号之后根据硬盘日志数据对应的信号和硬盘状态信号调制得到的信号;当硬盘状态信号为方波信号时,硬盘日志数据的信号周期中的最大占空比小于第一占空比和/或硬盘日志数据的信号周期中的最小占空比大于第二占空比;若恒定电平信号为恒定高电平信号,则第一占空比为恒定电平信号对应的第一信号中的最小占空比;若恒定电平信号为恒定低电平信号,则第二占空比为恒定电平信号对应的第一信号中的最大占空比。
在本申请实施例的另一些实施方式中,若硬盘状态信号包括方波信号和恒定电平信号,第一信号为硬盘将硬盘日志数据为对应电平宽度的信号之后根据硬盘日志数据对应的信号和硬盘状态信号调制得到的信号;为区分方波信号和恒定电平信号,当硬盘状态信号为方波信号时,第一信号的最大占空比小于第一占空比和/或第一信号的最小占空比大于第二占空比;若恒定电平信号为恒定高电平信号,则第一占空比为恒定电平信号对应的第一信号中的最小占空比;若恒定电平信号为恒定低电平信号,则第二占空比为恒定电平信号对应的第一信号中的最大占空比。即是说,为区分方波信号和恒定电平信号来识别得到不同类型的硬盘状态信号、解调得到不同的硬盘状态数据,通过设置占空比区间,使将硬盘日志数据调制入方波信号形式的硬盘状态信号后,占空比与将硬盘日志数据调制入恒定电平信号形式的硬盘状态信号处于完全不同的区间,以便基板管理控制器在识别得到硬盘日志数据的同时还可以识别得到方波信号形式的硬盘状态信号和恒定电平信号形式的硬盘状态信号。
若基板管理控制器还用于从第一信号中识别得到硬盘状态数据,则若硬盘状态信号的信号类型包括方波信号和恒定电平信号,则基板管理控制器根据硬盘状态信号的信号类型自解调出硬盘日志数据的信号周期中解调出硬盘状态数据,包括:
若恒定电平信号为恒定高电平信号,则基板管理控制器在解调得到硬盘日志数据后,将第一信号中占空比小于第一占空比的信号周期还原为方波信号,将第一信号中占空比大于第一占空比的信号周期还原为恒定高电平信号,得到硬盘状态信号;
若恒定电平信号为恒定低电平信号,则基板管理控制器在解调得到硬盘日志数据后,将第一信号中占空比大于第二占空比的信号周期还原为方波信号,将第一信号中占空比小于第二占空比的信号周期还原为恒定低电平信号,得到硬盘状态信号;
若恒定电平信号包括恒定高电平信号和恒定低电平信号,则基板管理控制器在解调得到硬盘日志数据后,将第一信号中占空比小于第一占空比且大于第二占空比的信号周期还原为方波信号,将第一信号中占空比大于第一占空比的信号周期还原为恒定高电平信号,将第一信号中占空比小于第二占空比的信号周期还原为恒定低电平信号,得到硬盘状态信号;
根据硬盘状态信号解调得到硬盘状态数据。
即是说,若基板管理控制器预先配置所连接的硬盘的硬盘状态引脚输出方波信号和恒定电平信号两种不同的硬盘状态信号,则基板管理控制器可以根据第一信号中的占空比范围识别出硬盘状态信号是方波信号还是恒定电平信号。
若采用的硬盘状态引脚输出硬盘状态信号用于控制被控元件的状态,则在本申请实施例的一些可选的实施方式中,可以由硬盘状态引脚直接连接控制被控元件。硬盘根据硬盘日志数据和硬盘状态信号调制得到第一信号,包括:硬盘根据硬盘状态引脚对应的被控元件的工作状态信号对应的控制信号范围确定第一信号相较于硬盘状态信号的偏差范围,并根据该偏差范围将硬盘日志数据和硬盘状态信号调制得到第一信号。例如硬盘状态指示灯控制引脚通过放大驱动电路连接硬盘状态指示灯,则根据控制硬盘状态指示灯亮起且闪烁不为人眼识别的占空比范围,设置第一信号相较于硬盘状态信号的偏差范围。
在本申请实施例的另一些可选的实施方式中,为突破第一信号调制时受限于硬盘状态引脚原有功能的实现的问题,也可以不将硬盘状态引脚与其对应的被控元件直接连接,即硬盘状态引脚仅直接与基板管理控制器连接,而本申请实施例提供的硬盘监控系统还可以包括与硬盘状态引脚对应的状态控制电路,状态控制电路的被控端与基板管理控制器连接,状态控制电路的输出端与硬盘状态引脚对应的被控元件的驱动端连接;基板管理控制器还用于根据硬盘状态数据控制状态控制电路驱动被控元件。
若硬盘状态引脚为硬盘状态指示灯控制引脚,状态控制电路为放大驱动电路;
基板管理控制器根据硬盘状态数据控制状态控制电路驱动被控元件,包括:
基板管理控制器在解调第一信号得到硬盘状态数据为点灯命令时,控制放大驱动电路生成方波信号以点亮硬盘状态引脚对应的硬盘状态指示灯;在解调第一信号得到硬盘状态数据为熄灯命令时,停止控制放大驱动电路生成方波信号以使硬盘状态指示灯熄灭。
即是说,由基板管理控制器解调第一信号得到硬盘状态数据后再重新生成控制硬盘状态引脚对应的硬盘状态指示灯的控制信号,降低第一信号调制的局限,使第一信号调制时只需考虑使基板管理控制器能够识别出硬盘状态数据即可,无需考虑由第一信号直接对被控元件进行控制时导致控制效果变差。
利用本申请实施例提供的硬盘监控系统,硬盘日志数据可以包括完整的硬盘日志,即硬盘的硬盘控制器按时记载自身的运行状态数据(温度、坏道数量、错误累计数量等)形成的日志;硬盘日志数据也可以为部分硬盘监控数据,即硬盘的硬盘控制器可以将部分预先约定的或基板管理控制器指定类型的硬盘监控数据通过硬盘状态引脚输出。
可以理解的是,根据所选用的硬盘状态引脚的类型、硬盘状态引脚输出硬盘状态信号的方式以及利用硬盘状态引脚还输出硬盘日志数据时的调制方法,硬盘通过硬盘状态引脚输出硬盘日志数据的速率不同,为保证硬盘日志数据的实时性,可以根据实现方案所影响的硬盘通过硬盘状态引脚输出硬盘日志数据的速率来确定输出的硬盘日志数据的类型、数据量以及输出频次,如可以设置硬盘每间隔固定周期输出一次完整的硬盘日志数据,并在某项硬盘监控数据出现异常时,在固定的发送周期之外再发送该异常监控数据。
图6为本申请实施例提供的第四种硬盘监控系统的结构示意图。
由于实现了对更多硬盘的带外监控,为解决大量的硬盘日志数据的数据传输问题,在本申请实施例提供的硬盘监控系统中,预先部署硬盘日志存储区,并将其中划分为多个存储分区,且配置按照存储分区的不同顺序作为硬盘日志数据的读写顺序,实现一种读写异步的硬盘日志数据传输架构。
如图6所示,在本申请实施例提供的硬盘监控系统中,可以在基板管理控制器的本地存储空间中划分出空间作为硬盘日志存储区,并将硬盘日志存储区划分为多个存储分区,这些存储分区之间存在顺序关系。将存储区域的正向排列顺序配置为读数据顺序,将存储分区的反向排列顺序配置为写数据顺序,从而使硬盘日志数据的读写方按照不同的顺序执行对硬盘日志数据的读写,实现使硬盘日志数据的写入只需基于一个地址指针进行,读取也只需基于一个地址指针行,充分利用基板管理控制器的存储空间来存储硬盘日志数据,从而可以接收更多的硬盘日志数据。
在本申请实施例中,基板管理控制器可以与多个硬盘(硬盘1……硬盘n)连接,从而实现直接获取这些硬盘的硬盘日志数据,则在基板管理控制器中可以设置对应的解调模块(解调模块1……解调模块n)实现对其对应的硬盘输出的第一信号的解调。需要说明的是,解调模块也可以不为与硬盘一一对应的关系,例如当基板管理控制器的一个引脚连接多个硬盘,采用分时复用的方式读取各硬盘的硬盘日志数据时,解调模块只需与基板管理控制器的引脚一一对应即可。
在本申请实施例中,若基板管理控制器包括基板管理控制器组件101,则将基板管理控制器组件101的GPIO引脚与硬盘的硬盘状态引脚连接,在基板管理控制器组件101中部署解调模块,在基板管理控制器组件101的本地存储空间中部署硬盘日志存储区,并将基板管理控制器组件101的用于分析硬盘日志数据的分析模块配置为自硬盘日志存储区读取硬盘日志数据。
若基板管理控制器包括基板管理控制器组件101和复杂可编程逻辑器件102的系统,该复杂可编程逻辑器件102可以指设于硬盘背板的复杂可编程逻辑器件102或设于主板的复杂可编程逻辑器件102,复杂可编程逻辑器件102的I/O引脚与硬盘的硬盘状态引脚连接,则可以在复杂可编程逻辑器件102中部署解调模块,并在复杂可编程逻辑器件102的本地存储空间中部署硬盘日志存储区,将基板管理控制器组件101的用于分析硬盘日志数据的分析模块配置为自复杂可编程逻辑器件102读取硬盘日志数据,复杂可编程逻辑器件102用于按照读数据顺序将硬盘日志数据提供给基板管理控制器组件101。
在带外监控中,基板管理控制器提供网络服务供运维设备访问被监控设备的基板管理控制器以获取硬盘日志数据,并提供网页来显示监控页面。则在本申请实施例提供中,基板管理控制器可以在获取到硬盘提供的硬盘日志数据后,根据预先部署的监控列表从硬盘日志数据中读取监控数据项,根据每个监控数据项的值以及其在监控列表中对应的允许范围来实现对具体的监控数据项的监控,监控数据项可以包括温度、坏道数量、错误累计数量等,当存在超出允许范围的监控数据项时,执行监控列表中记载的运维命令,如生成故障日志、向系统管理员发送报警信息、控制风扇对硬盘降温等。
基板管理控制器还可以结合设于硬盘背板的传感器来从外部采集硬盘的状态信息,从而可以结合硬盘输出的硬盘日志数据实现对硬盘运行状态的综合分析。例如当基板管理控制器通过硬盘外部的温度传感器测得硬盘温度异常时,可以结合相应时刻的硬盘日志数据中的温度监控项核对硬盘的温度自检功能是否正常,还可以结合相应时刻的硬盘日志数据中的其他监控数据项诊断使硬盘温度异常的原因。
基板管理控制器完成对硬盘日志数据的分析后,还可以用于将得到的硬盘监控结果以图表的形式在基板管理控制器的网页中进行显示,运维人员可以通过登录基板管理控制器网页来直观地查看硬盘监控结果。
在上述实施例的基础上,本申请实施例还提供一种基板管理控制器,用于硬盘监控;
该基板管理控制器用于在本地存储空间中划分硬盘日志存储区,并将硬盘日志存储区划分为多个存储分区;确定各存储分区的排列顺序,并配置存储分区的正向排列顺序为读数据顺序,存储分区的反向排列顺序为写数据顺序;解调硬盘的硬盘状态引脚输出的第一信号得到硬盘日志数据,按写数据顺序将硬盘日志数据写入硬盘日志存储区,以在根据读数据顺序自硬盘日志存储区读取硬盘日志数据后根据硬盘日志数据执行对硬盘的监控;
第一信号为根据硬盘日志数据和硬盘状态引脚对应的硬盘状态信号调制得到的信号。
本申请实施例提供的基板管理控制器的实施方式可以参见上述硬盘监控系统实施例中的介绍,可以采用相同或相似的实施方式,具有相同或相似的效果,在此不再赘述。
请参考上述任意实施方式提供的架构,下面结合附图对本申请实施例提供的硬盘监控方法进行说明。需要说明的是,本申请实施例提供的硬盘监控方法也可以与上述任意硬盘监控系统或基板管理控制器的实施方式结合。
图7为本申请实施例提供的第一种硬盘监控方法的流程图。
如图7所示,应用于基板管理控制器,本申请实施例提供的硬盘监控方法包括:
S701:在本地存储空间中划分硬盘日志存储区,并将硬盘日志存储区划分为多个存储分区。
S702:确定各存储分区的排列顺序,并配置存储分区的正向排列顺序为读数据顺序,存储分区的反向排列顺序为写数据顺序。
S703:接收硬盘的硬盘状态引脚输出的根据硬盘日志数据和硬盘状态引脚对应的硬盘状态信号调制得到的第一信号。
S704:解调第一信号得到硬盘日志数据。
S705:按写数据顺序将硬盘日志数据写入硬盘日志存储区,以在根据读数据顺序自硬盘日志存储区读取硬盘日志数据后根据硬盘日志数据执行对硬盘的监控。
在具体实施中,对于S701,考虑基板管理控制器其余功能所需资源,在本地存储空间的可用空间中划分出硬盘日志存储区,并将硬盘日志存储区划分为多个存储分区,每个存储分区对应一段连续的地址。
如本申请上述实施例所介绍的,硬盘将硬盘日志数据转换为硬盘数据包后调制输出,则存储分区的大小可以为硬盘数据包的大小。
为了区分来自不同硬盘的硬盘数据包,存储分区还用于存储硬盘数据包对应的硬盘的硬盘标识。则在本申请实施例的一些可选的实施方式中,基板管理控制器将硬盘日志数据写入硬盘日志存储区,可以包括在按照接收到硬盘日志数据的时间先后顺序将硬盘日志数据写入硬盘日志存储区时,根据硬盘日志数据对应的硬盘状态引脚确定硬盘日志数据对应的硬盘标识;将硬盘标识与硬盘日志数据写入硬盘日志存储区的存储分区。则存储分区的大小设置为硬盘数据包的大小加上硬盘标识的大小。
在本申请实施例的一些可选的实施方式中,也可以由硬盘将硬盘标识写入每个硬盘数据包,此时存储分区的大小可以为硬盘数据包的大小。
对于S702,为实现对硬盘日志存储区的异步读写,将存储分区按照一定的顺序排列,并设置读写按照相反的顺序进行。为便于地址计算,可以将存储分区按照地址大小的顺序进行排列。存储分区的正向排列顺序和存储分区的反向排列顺序仅用于区分两种不同的顺序,即如图6所示的,当其中任意一种排列顺序为存储分区的特定排列顺序(如地址从小到大的顺序)时,另一种排列顺序与之相反即可。
对于S703和S704,基板管理控制器的引脚接收到硬盘的硬盘状态引脚输出的第一信号,该第一信号为硬盘将硬盘日志数据和硬盘状态引脚对应的硬盘状态信号调制得到的信号,第一信号的调制方法和解调方法可以参考本申请上述实施例的介绍。
对于S705,对于接收到多个硬盘发送的硬盘日志数据的情况,按照接收时间的先后顺序,将解调得到的硬盘数据包列入队列中,并按照队列顺序写入硬盘日志存储区,写入硬盘日志存储区时按照配置的写数据顺序写入。
自硬盘日志存储区读取硬盘日志数据的可以为基板管理控制器的基板管理控制器组件101读取本地存储的硬盘日志数据,也可以为基板管理控制器组件101轮询至复杂可编程逻辑器件102时,由复杂可编程逻辑器件102读取本地的硬盘日志数据反馈给基板管理控制器组件101。
在本申请实施例的一些实施方式中,上述硬盘监控方法可以应用于基板管理控制器中的复杂可编程逻辑器件102,复杂可编程逻辑器件102与基板管理控制器中的基板管理控制器组件101通过集成电路总线连接。
则S705中在根据读数据顺序自硬盘日志存储区读取硬盘日志数据后根据硬盘日志数据执行对硬盘的监控,可以包括:
向基板管理控制器组件101发送中断信号,以使基板管理控制器组件101在接收到中断信号后通过集成电路总线访问硬盘日志存储区并根据读数据顺序读取硬盘日志数据,根据硬盘日志数据执行对硬盘的监控。
在实际应用中,采用基板管理控制器组件101和复杂可编程逻辑器件102的基板管理控制器架构,基板管理控制器组件101到复杂可编程逻辑器件102读取硬盘日志数据时无需知晓硬盘日志数据的具体读取地址,而是由复杂可编程逻辑器件102计算得到当前的数据起点地址后,按照读数据顺序取出硬盘日志数据提供给基板管理控制器组件101。此种基板管理控制器组件101和复杂可编程逻辑器件102采用同步方式交互的方式,即由复杂可编程逻辑器件102触发中断通知基板管理控制器组件101读取硬盘日志数据的方式,相较于基板管理控制器组件101轮询集成电路总线读取硬盘日志数据的方式,降低了基板管理控制器组件101需要轮询的次数,节约了基板管理控制器组件101的资源。
其中,复杂可编程逻辑器件102向基板管理控制器组件101发送中断信号,可以包括:当硬盘日志存储区的容量满足中断触发条件时,向基板管理控制器组件101发送中断信号。通过设置中断信号触发条件,可以调整基板管理控制器组件101读取硬盘日志数据的频次,保证对基板管理控制器组件101资源的合理利用。
该中断触发条件可以为硬盘日志存储区已写入的数据量大于或等于硬盘日志存储区的总容量的预设比例。例如,当复杂可编程逻辑器件102监测到本地的硬盘日志存储区已写入的数据量达到硬盘日志存储区的总容量的90%,则可以生成中断信号通知基板管理控制器组件101读取硬盘日志数据。
或者,中断触发条件也可以硬盘日志存储区中的空闲空间的容量小于或等于预设存储容量。例如,当复杂可编程逻辑器件102监测到本地的硬盘日志存储区的空闲空间小于预设存储容量,该预设存储容量可以为硬盘日志存储区的总容量的10%,此时复杂可编程逻辑器件102生成中断信号通知基板管理控制器组件101读取硬盘日志数据。
在本申请实施例的另一些实施方式中,为节约中断资源,S705中在根据读数据顺序自硬盘日志存储区读取硬盘日志数据后根据硬盘日志数据执行对硬盘的监控,还可以包括:接受基板管理控制器组件101的轮询,以使基板管理控制器组件101轮询至复杂可编程逻辑器件102时,根据读数据顺序读取硬盘日志数据,根据硬盘日志数据执行对硬盘的监控。即是说,采用基板管理控制器组件101轮询集成电路总线的方式获取集成电路总线上连接的复杂可编程逻辑器件102的硬盘日志数据,可以不必占用基板管理控制器组件101与复杂可编程逻辑器件102之间的中断资源。
在上述实施例的基础上,在本申请实施例中,若硬盘监控方法应用于复杂可编程逻辑器件102,在复杂可编程逻辑器件102实现硬盘日志存储区需要配置存储空间以及读写控制状态机。具体可以按照如下方式实现存储空间以及读写控制状态机的配置:
确定缓冲区大小:在完成复杂可编程逻辑器件102的其他功能的前提下,充分利用剩余资源创建寄存器,形成存储空间;
读写指针:根据缓冲区的大小,使用寄存器实现两个足够位数的计数器作为指针,一个用于写操作(写指针),另一个用于读操作(读指针)。这些指针指向缓冲区中的当前读写位置;
状态机设计:设计读写控制状态机来控制数据的读写操作,读写控制状态机需要处理的状态包括至少:写入数据、读取数据、检查缓冲区空、检查缓冲区满等;
循环逻辑:实现指针的循环逻辑,当写指针或读指针到达缓冲区末尾时,需要将其回绕到硬盘日志存储区的开始地址。
读写控制状态机还可以用于对硬盘日志存储区进行空和满的检测,可以通过逻辑来检测硬盘日志存储区是否为空或满,例如可以配置硬盘日志存储区已写满的条件是写指针领先读指针一圈,而硬盘日志存储区为空的条件是读写指针相等。
则S701中在本地存储空间中划分硬盘日志存储区,并将硬盘日志存储区划分为多个存储分区,可以包括:
将复杂可编程逻辑器件102的寄存器配置为硬盘日志存储区,并将硬盘日志存储区划分为多个存储分区。
S702中确定各存储分区的排列顺序,并配置存储分区的正向排列顺序为读数据顺序,存储分区的反向排列顺序为写数据顺序,可以包括:
确定各存储分区的排列顺序后,按照存储分区的排列顺序为寄存器配置地址信息,并确定存储分区的正向排列顺序为读数据顺序,存储分区的反向排列顺序为写数据顺序;
根据寄存器的配置信息、读数据顺序和写数据顺序配置读写控制状态机。
复杂可编程逻辑器件102中的逻辑块包括可编程寄存器,复杂可编程逻辑器件102在上电后读取固件实现寄存器配置,即可以将本申请实施例所需的硬盘日志存储区的配置信息写入复杂可编程逻辑器件102的固件中,使复杂可编程逻辑器件102在上电后完成对硬盘日志存储区的配置。
除了寄存器外,部分型号的复杂可编程逻辑器件102还具有带片内随机存取存储器,也可以利用带片内随机存取存储器配置硬盘日志存储区。则S701中在本地存储空间中划分硬盘日志存储区,并将硬盘日志存储区划分为多个存储分区,还可以包括:
在复杂可编程逻辑器件102的带片内随机存取存储器中划分硬盘日志存储区,并将硬盘日志存储区划分为多个存储分区,根据带片内随机存取存储器的地址信息确定各存储分区的地址信息;
S702中确定各存储分区的排列顺序,并配置存储分区的正向排列顺序为读数据顺序,存储分区的反向排列顺序为写数据顺序,还可以包括:
确定各存储分区的排列顺序后,确定存储分区的正向排列顺序为读数据顺序,存储分区的反向排列顺序为写数据顺序;
根据存储分区的地址信息、读数据顺序和写数据顺序配置读写控制状态机。
需要说明的是,若复杂可编程逻辑器件102具有带片内随机存取存储器,在配置硬盘日志存储区时可以同时利用寄存器和带片内随机存取存储器的存储资源。
在本申请实施例的一些可选的实施方式中,S702中配置存储分区的正向排列顺序为读数据顺序,存储分区的反向排列顺序为写数据顺序,可以包括:
自硬盘日志存储区中选择一个存储分区的起始地址为空闲起点地址,以自空闲起点地址起存储分区的反向排列顺序为写数据顺序;
自硬盘日志存储区中选择一个存储分区的起始地址为数据起点地址,以自数据起点地址起存储分区的正向排列顺序为读数据顺序。
S705中按写数据顺序将硬盘日志数据写入硬盘日志存储区,可以包括:
自空闲起点地址开始按照写数据顺序写入硬盘日志数据,而后将空闲起点地址更新为硬盘日志数据最后写入的地址。
则基于上述配置的复杂可编程逻辑器件102中的硬盘日志存储区,将硬盘日志数据写入硬盘日志存储区,可以包括:获取当前的空闲起点地址,并自空闲起点地址开始写入硬盘日志数据;在写完硬盘日志数据后,按照写数据顺序更新空闲起点地址。
根据硬盘日志数据执行对硬盘的监控,可以包括:获取当前的数据起始地址,并自数据起始地址读取硬盘日志数据;在硬盘日志数据被读走后,按照读数据顺序更新数据起点地址。
在硬盘日志存储区初始化时,可以随机配置一个存储分区的起始地址为当前的空闲起点地址,并随机配置一个存储分区的起始地址为当前的数据起始地址。一种可选的实施方式是,自硬盘日志存储区中选择一个存储分区的起始地址为数据起点地址,包括:以初始的空闲起点地址为数据起点地址。
基于此,若存储分区的排列顺序为存储分区的地址大小顺序;
则本申请实施例提供的硬盘监控方法还可以包括:
若当前的空闲起点地址和当前的数据起点地址满足(n+1)%N=m,则确定硬盘日志存储区已满;
其中,n为当前的空闲起点地址,N为存储分区的总数,m为当前的数据起点地址,%为取模运算符号。
在上述实施例的基础上,若本申请实施例提供的硬盘监控方法应用于基板管理控制器的基板管理控制器组件101,则在基板管理控制器组件101进行解调模块和硬盘日志存储区的部署。S705中将硬盘日志数据写入硬盘日志存储区,可以包括:
调用第一线程将硬盘日志数据写入硬盘日志存储区。
S705中在根据读数据顺序自硬盘日志存储区读取硬盘日志数据后根据硬盘日志数据执行对硬盘的监控,可以包括:
调用第二线程自硬盘日志存储区读取硬盘日志数据,以根据硬盘日志数据执行对硬盘的监控。
当应用于基板管理控制器组件101,即基板管理控制器组件101的引脚直接连接硬盘的硬盘状态引脚时,可以利用基板管理控制器组件101上两个线程执行对硬盘日志数据的读写。
由于基板管理控制器组件101相较于复杂可编程逻辑器件102具有更多的资源,在本申请实施例中,可以利用基板管理控制器尤其是基板管理控制器组件101部署扩展缓冲区。则本申请实施例提供的硬盘监控方法还可以包括:
在本地存储空间划分扩展缓冲区;
S705中将硬盘日志数据写入硬盘日志存储区,可以包括:
若硬盘日志存储区未满,则根据写数据顺序将硬盘日志数据写入硬盘日志存储区;
若硬盘日志存储区已满,则将硬盘日志数据写入扩展缓冲区。
实际应用中,扩展缓冲区的配置方式可以与硬盘日志存储区相同。扩展缓冲区的大小可以根据基板管理控制器所连接硬盘的个数、硬盘日志数据的数据量以及基板管理控制器的工作负载中的至少一个因素确定。
图8为本申请实施例提供的第二种硬盘监控方法的流程图。
在上述实施例的基础上,本申请实施例还通过一种硬盘监控方法。如图8所示,将基板管理控制器按照功能划分为解调模块、存储模块和分析模块,则本申请实施例提供的硬盘监控方法可以包括:
S801:存储模块初始化;存储模块根据硬盘日志存储区的配置信息完成本地的硬盘日志存储区的部署。硬盘日志存储区的配置方法可以参考本申请上述实施例的记载。
S802:当解调模块接收到硬盘的硬盘状态引脚发出的第一信号时,解调并提取出其中的硬盘日志数据。
S803:解调模块将硬盘日志数据发送至存储模块。
S804:存储模块检查硬盘日志存储区,获取当前的空闲起点地址,自空闲起点地址开始按照写数据顺序将硬盘日志数据写入硬盘日志存储区,而后沿写数据顺序将空闲起点地址向后移动。
S805:当存储模块接收到分析模块发送的读取请求时,进入S806。
S806:存储模块获取当前的数据起点地址,按照读数据顺序读取硬盘日志数据发送至分析模块,而后沿读数据顺序将数据起点地址向后移动。
本申请实施例的具体实施方式可以参考上述实施例的记载,在此不再赘述。
在上述实施例的基础上,本申请实施例还提供一种硬盘监控方法,应用于硬盘,包括:
将硬盘日志数据与硬盘状态引脚对应的硬盘状态信号调制得到第一信号;
将第一信号通过硬盘状态引脚发送至基板管理控制器,以使基板管理控制器解调第一信号得到硬盘日志数据并将硬盘日志数据写入本地存储空间中的硬盘日志存储区,以实现根据硬盘日志数据对硬盘的监控;
其中,硬盘日志存储区为循环缓冲区。
本申请实施例的具体实施方式可以参考上述实施例的记载,在此不再赘述。
需要说明的是,在本申请各硬盘监控方法的实施例中,各步骤或特征中的部分可以忽略或不执行。为方便说明所划分的硬件或软件功能模块,也并非实现本申请实施例提供的硬盘监控方法的唯一实现形式。
上文详述了硬盘监控方法、基板管理控制器和硬盘监控方法对应的各个实施例,在此基础上,本申请还公开了与上述方法对应的硬盘监控装置、设备及存储介质。
图9为本申请实施例提供的一种硬盘监控装置的结构示意图。
如图9所示,应用于基板管理控制器,本申请实施例提供的硬盘监控装置包括:
配置单元901,用于在本地存储空间中划分硬盘日志存储区,并将硬盘日志存储区划分为多个存储分区;确定各存储分区的排列顺序,并配置存储分区的正向排列顺序为读数据顺序,存储分区的反向排列顺序为写数据顺序;
接收单元902,用于接收硬盘的硬盘状态引脚输出的根据硬盘日志数据和硬盘状态引脚对应的硬盘状态信号调制得到的第一信号;
解调单元903,用于解调第一信号得到硬盘日志数据;
写入单元904,用于按写数据顺序将硬盘日志数据写入硬盘日志存储区,以在根据读数据顺序自硬盘日志存储区读取硬盘日志数据后根据硬盘日志数据执行对硬盘的监控。
在本申请实施例的一些可选的实施方式中,写入单元904还可以用于若当前的空闲起点地址和当前的数据起点地址满足(n+1)%N=m,则确定硬盘日志存储区已满;其中,n为当前的空闲起点地址,N为存储分区的总数,m为当前的数据起点地址,%为取模运算符号。
在本申请实施例的一些可选的实施方式中,配置单元901还可以用于在本地存储空间划分扩展缓冲区;写入单元904具体用于若硬盘日志存储区未满,则根据写数据顺序将硬盘日志数据写入硬盘日志存储区;若硬盘日志存储区已满,则将硬盘日志数据写入扩展缓冲区。
在上述实施例的基础上,本申请实施例还提供一种硬盘监控装置。应用于硬盘,本申请实施例提供的硬盘监控装置包括:
调制单元,用于将硬盘日志数据与硬盘状态引脚对应的硬盘状态信号调制得到第一信号;
输出单元,用于将第一信号通过硬盘状态引脚发送至基板管理控制器,以使基板管理控制器解调第一信号得到硬盘日志数据并将硬盘日志数据写入本地存储空间中的硬盘日志存储区,以实现根据硬盘日志数据对硬盘的监控;
其中,硬盘日志存储区为循环缓冲区。
需要说明的是,本申请实施例提供的硬盘监控装置的各实施方式中,单元的划分仅为一种逻辑功能上的划分,可以采用其他的划分方式。不同单元之间的连接方式可以采用电性、机械或其他连接方式。分离的单元可以位于同一物理位置或分布在多个网络节点上。各单元可以以硬件的形式实现,也可以采用软件功能单元的形式实现。即可以根据实际需要选择本申请实施例提供的各单元的部分或全部并采用相应的连接方式或集成方式来实现本申请实施例方案的目的。
由于装置部分的实施例与方法部分的实施例相互对应,因此装置部分的实施例请参见方法部分的实施例的描述,这里暂不赘述。
图10为本申请实施例提供的一种硬盘监控设备的结构示意图。
如图10所示,本申请实施例提供的硬盘监控设备包括:
存储器1010,用于存储计算机程序1011;
处理器1020,用于执行计算机程序1011,该计算机程序1011被处理器1020执行时实现如上述任意一项实施例提供的硬盘监控方法的步骤。
其中,处理器1020可以包括一个或多个处理核心,比如3核心处理器、8核心处理器等。处理器1020可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器1020也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称中央处理器(Central Processing Unit,CPU);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器1020可以集成有图像处理器(Graphics Processing Unit,GPU),图像处理器用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器1020还可以包括人工智能(Artificial Intelligence,AI)处理器,该人工智能处理器用于处理有关机器学习的计算操作。
存储器1010可以包括一个或多个存储介质,该存储介质可以是非暂态的。存储器1010还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。本实施例中,存储器1010至少用于存储以下计算机程序1011,其中,该计算机程序1011被处理器1020加载并执行之后,能够实现前述任一实施例公开的硬盘监控方法中的相关步骤。另外,存储器1010所存储的资源还可以包括操作系统1012和数据1013等,存储方式可以是短暂存储或者永久存储。其中,操作系统1012可以为Windows、Lunu硬盘监控或其他类型的操作系统。数据1013可以包括但不限于上述方法所涉及到的数据。
在一些实施例中,硬盘监控设备还可包括有显示屏1030、电源1040、通信接口1050、输入输出接口1060、传感器1070以及通信总线1080。
本领域技术人员可以理解,图10中示出的结构并不构成对硬盘监控设备的限定,可以包括比图示更多或更少的组件。
本申请实施例提供的硬盘监控设备,包括存储器和处理器,处理器在执行存储器存储的程序时,能够实现如上述实施例提供的硬盘监控方法的步骤,效果同上。
本申请实施例提供一种存储介质,其上存储有计算机程序,该计算机程序被处理器执行时可以实现如上述任意一项实施例提供的硬盘监控方法的步骤。
该存储介质可以包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
对于本申请实施例提供的存储介质的介绍请参照上述方法实施例,且其所起到的效果同本申请实施例提供的硬盘监控方法,本申请在此不做赘述。
以上对本申请所提供的硬盘监控方法、装置、设备及存储介质进行了详细介绍。说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置、设备及存储介质而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以对本申请进行若干改进和修饰,这些改进和修饰也落入本申请的保护范围内。
还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者设备中还存在另外的相同要素。
Claims (20)
- 一种硬盘监控方法,其特征在于,应用于基板管理控制器,包括:在本地存储空间中划分硬盘日志存储区,并将所述硬盘日志存储区划分为多个存储分区;确定各所述存储分区的排列顺序,并配置所述存储分区的正向排列顺序为读数据顺序,所述存储分区的反向排列顺序为写数据顺序;接收硬盘的硬盘状态引脚输出的根据硬盘日志数据和所述硬盘状态引脚对应的硬盘状态信号调制得到的第一信号;解调所述第一信号得到所述硬盘日志数据;按所述写数据顺序将所述硬盘日志数据写入所述硬盘日志存储区,以在根据所述读数据顺序自所述硬盘日志存储区读取所述硬盘日志数据后根据所述硬盘日志数据执行对所述硬盘的监控。
- 根据权利要求1所述的硬盘监控方法,其特征在于,应用于所述基板管理控制器中的复杂可编程逻辑器件,所述复杂可编程逻辑器件与所述基板管理控制器中的基板管理控制器组件通过集成电路总线连接。
- 根据权利要求2所述的硬盘监控方法,其特征在于,在本地存储空间中划分硬盘日志存储区,并将所述硬盘日志存储区划分为多个存储分区,包括:将所述复杂可编程逻辑器件的寄存器配置为所述硬盘日志存储区,并将所述硬盘日志存储区划分为多个所述存储分区;确定各所述存储分区的排列顺序,并配置所述存储分区的正向排列顺序为读数据顺序,所述存储分区的反向排列顺序为写数据顺序,包括:确定各所述存储分区的排列顺序后,按照所述存储分区的排列顺序为所述寄存器配置地址信息,并确定所述存储分区的正向排列顺序为所述读数据顺序,所述存储分区的反向排列顺序为所述写数据顺序;根据所述寄存器的配置信息、所述读数据顺序和所述写数据顺序配置读写控制状态机。
- 根据权利要求2所述的硬盘监控方法,其特征在于,在本地存储空间中划分硬盘日志存储区,并将所述硬盘日志存储区划分为多个存储分区,包括:在所述复杂可编程逻辑器件的带片内随机存取存储器中划分所述硬盘日志存储区,并将所述硬盘日志存储区划分为多个所述存储分区,根据所述带片内随机存取存储器的地址信息确定各所述存储分区的地址信息;确定各所述存储分区的排列顺序,并配置所述存储分区的正向排列顺序为读数据顺序,所述存储分区的反向排列顺序为写数据顺序,包括:确定各所述存储分区的排列顺序后,确定所述存储分区的正向排列顺序为所述读数据顺序,所述存储分区的反向排列顺序为所述写数据顺序;根据所述存储分区的地址信息、所述读数据顺序和所述写数据顺序配置读写控制状态机。
- 根据权利要求2所述的硬盘监控方法,其特征在于,在根据所述读数据顺序自所述硬盘日志存储区读取所述硬盘日志数据后根据所述硬盘日志数据执行对所述硬盘的监控,包括:向所述基板管理控制器组件发送中断信号,以使所述基板管理控制器组件在接收到所述中断信号后通过所述集成电路总线访问所述硬盘日志存储区并根据所述读数据顺序读取所述硬盘日志数据,根据所述硬盘日志数据执行对所述硬盘的监控。
- 根据权利要求5所述的硬盘监控方法,其特征在于,向所述基板管理控制器组件发送中断信号,包括:当所述硬盘日志存储区的容量满足中断触发条件时,向所述基板管理控制器组件发送所述中断信号。
- 根据权利要求6所述的硬盘监控方法,其特征在于,所述中断触发条件,包括:所述硬盘日志存储区已写入的数据量大于或等于所述硬盘日志存储区的总容量的预设比例。
- 根据权利要求6所述的硬盘监控方法,其特征在于,所述中断触发条件,包括:所述硬盘日志存储区中的空闲空间的容量小于或等于预设存储容量。
- 根据权利要求2所述的硬盘监控方法,其特征在于,在根据所述读数据顺序自所述硬盘日志存储区读取所述硬盘日志数据后根据所述硬盘日志数据执行对所述硬盘的监控,包括:接受所述基板管理控制器组件的轮询,以使所述基板管理控制器组件轮询至所述复杂可编程逻辑器件时,根据所述读数据顺序读取所述硬盘日志数据,根据所述硬盘日志数据执行对所述硬盘的监控。
- 根据权利要求1所述的硬盘监控方法,其特征在于,配置所述存储分区的正向排列顺序为读数据顺序,所述存储分区的反向排列顺序为写数据顺序,包括:自所述硬盘日志存储区中选择一个所述存储分区的起始地址为空闲起点地址,以自所述空闲起点地址起所述存储分区的反向排列顺序为所述写数据顺序;自所述硬盘日志存储区中选择一个所述存储分区的起始地址为数据起点地址,以自所述数据起点地址起所述存储分区的正向排列顺序为所述读数据顺序;按所述写数据顺序将所述硬盘日志数据写入所述硬盘日志存储区,包括:自所述空闲起点地址开始按照所述写数据顺序写入所述硬盘日志数据,而后将所述空闲起点地址更新为所述硬盘日志数据最后写入的地址。
- 根据权利要求1所述的硬盘监控方法,其特征在于,所述解调所述第一信号得到所述硬盘日志数据,包括:从所述第一信号中识别得到调制后的所述硬盘日志数据,并将所述调制后的所述硬盘日志数据由模拟信号转换为数字信号,得到硬盘数据包,所述硬盘数据包包括数据位和校验位;根据所述硬盘数据包中的校验位对所述硬盘数据包校验通过后,读取所述硬盘数据包的数据位,对所述数据位进行解析得到所述硬盘日志。
- 根据权利要求10所述的硬盘监控方法,其特征在于,自所述硬盘日志存储区中选择一个所述存储分区的起始地址为数据起点地址,包括:以初始的所述空闲起点地址为所述数据起点地址。
- 根据权利要求12所述的硬盘监控方法,其特征在于,所述存储分区的排列顺序为所述存储分区的地址大小顺序;硬盘监控方法还包括:若当前的所述空闲起点地址和当前的所述数据起点地址满足(n+1)%N=m,则确定所述硬盘日志存储区已满;其中,n为当前的所述空闲起点地址,N为所述存储分区的总数,m为当前的所述数据起点地址,%为取模运算符号。
- 根据权利要求1所述的硬盘监控方法,其特征在于,应用于所述基板管理控制器的基板管理控制器组件;将所述硬盘日志数据写入所述硬盘日志存储区,包括:调用第一线程将所述硬盘日志数据写入所述硬盘日志存储区;在根据所述读数据顺序自所述硬盘日志存储区读取所述硬盘日志数据后根据所述硬盘日志数据执行对所述硬盘的监控,包括:调用第二线程自所述硬盘日志存储区读取所述硬盘日志数据,以根据所述硬盘日志数据执行对所述硬盘的监控。
- 根据权利要求1所述的硬盘监控方法,其特征在于,将所述硬盘日志数据写入所述硬盘日志存储区,包括:在按照接收到所述硬盘日志数据的时间先后顺序将所述硬盘日志数据写入所述硬盘日志存储区时,根据所述硬盘日志数据对应的所述硬盘状态引脚确定所述硬盘日志数据对应的硬盘标识;将所述硬盘标识与所述硬盘日志数据写入所述硬盘日志存储区的所述存储分区。
- 一种基板管理控制器,其特征在于,被配置为硬盘监控;所述基板管理控制器被配置为在本地存储空间中划分硬盘日志存储区,并将所述硬盘日志存储区划分为多个存储分区;确定各所述存储分区的排列顺序,并配置所述存储分区的正向排列顺序为读数据顺序,所述存储分区的反向排列顺序为写数据顺序;解调硬盘的硬盘状态引脚输出的第一信号得到硬盘日志数据,按所述写数据顺序将所述硬盘日志数据写入所述硬盘日志存储区,以在根据所述读数据顺序自所述硬盘日志存储区读取所述硬盘日志数据后根据所述硬盘日志数据执行对所述硬盘的监控;所述第一信号为根据所述硬盘日志数据和所述硬盘状态引脚对应的硬盘状态信号调制得到的信号。
- 一种硬盘监控系统,其特征在于,包括:基板管理控制器和硬盘;所述基板管理控制器的引脚与所述硬盘的硬盘状态引脚连接;所述基板管理控制器被配置为在本地存储空间中划分硬盘日志存储区,并将所述硬盘日志存储区划分为多个存储分区;确定各所述存储分区的排列顺序,并配置所述存储分区的正向排列顺序为读数据顺序,所述存储分区的反向排列顺序为写数据顺序;解调所述硬盘状态引脚输出的第一信号得到硬盘日志数据,按所述写数据顺序将所述硬盘日志数据写入所述硬盘日志存储区,以在根据所述读数据顺序自所述硬盘日志存储区读取所述硬盘日志数据后根据所述硬盘日志数据执行对所述硬盘的监控;所述第一信号为根据所述硬盘日志数据和所述硬盘状态引脚对应的硬盘状态信号调制得到的信号。
- 一种硬盘监控装置,其特征在于,应用于基板管理控制器,包括:配置单元,被配置为在本地存储空间中划分硬盘日志存储区,并将所述硬盘日志存储区划分为多个存储分区;确定各所述存储分区的排列顺序,并配置所述存储分区的正向排列顺序为读数据顺序,所述存储分区的反向排列顺序为写数据顺序;接收单元,被配置为接收硬盘的硬盘状态引脚输出的根据硬盘日志数据和所述硬盘状态引脚对应的硬盘状态信号调制得到的第一信号;解调单元,被配置为解调所述第一信号得到所述硬盘日志数据;写入单元,被配置为按所述写数据顺序将所述硬盘日志数据写入所述硬盘日志存储区,以在根据所述读数据顺序自所述硬盘日志存储区读取所述硬盘日志数据后根据所述硬盘日志数据执行对所述硬盘的监控。
- 一种硬盘监控设备,其特征在于,包括:存储器,被配置为存储计算机程序;处理器,被配置为执行所述计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至15任意一项所述硬盘监控方法的步骤。
- 一种非易失性可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至15任意一项所述硬盘监控方法的步骤。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410382492.9A CN117971610B (zh) | 2024-03-29 | 2024-03-29 | 一种硬盘监控方法、装置、系统、设备及存储介质 |
| CN202410382492.9 | 2024-03-29 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2025200602A1 true WO2025200602A1 (zh) | 2025-10-02 |
Family
ID=90864953
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2024/139313 Pending WO2025200602A1 (zh) | 2024-03-29 | 2024-12-13 | 一种硬盘监控方法、装置、系统、设备及存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN117971610B (zh) |
| WO (1) | WO2025200602A1 (zh) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117971610B (zh) * | 2024-03-29 | 2024-05-28 | 苏州元脑智能科技有限公司 | 一种硬盘监控方法、装置、系统、设备及存储介质 |
| CN117971611B (zh) * | 2024-03-29 | 2024-06-14 | 苏州元脑智能科技有限公司 | 硬盘日志的数据解调方法、调制方法、装置、设备及介质 |
| CN118503053B (zh) * | 2024-07-17 | 2024-09-27 | 苏州元脑智能科技有限公司 | 一种硬件信息传输方法、产品、设备及介质 |
| CN120723849B (zh) * | 2025-09-01 | 2025-11-21 | 浪潮电子信息产业股份有限公司 | 硬盘盘序识别方法、电子设备及服务器 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111176967A (zh) * | 2019-12-28 | 2020-05-19 | 北京浪潮数据技术有限公司 | 一种远程带外ssd日志信息的查询方法、装置及bmc |
| CN111752790A (zh) * | 2019-03-26 | 2020-10-09 | 鸿富锦精密电子(天津)有限公司 | 硬盘状态监测系统及硬盘状态监测方法 |
| CN116881101A (zh) * | 2023-07-07 | 2023-10-13 | 苏州浪潮智能科技有限公司 | 一种硬盘日志记录、解析及监控方法、系统、设备及介质 |
| CN117971610A (zh) * | 2024-03-29 | 2024-05-03 | 苏州元脑智能科技有限公司 | 一种硬盘监控方法、装置、系统、设备及存储介质 |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101930392B (zh) * | 2009-06-19 | 2012-08-29 | 富港电子(昆山)有限公司 | 移动硬盘测试装置 |
| CN108762782B (zh) * | 2018-05-16 | 2022-03-04 | 山东华芯半导体有限公司 | 一种基于安全加密固态硬盘和bios芯片的安全访问控制方法 |
| JP2023180344A (ja) * | 2022-06-09 | 2023-12-21 | キヤノン株式会社 | 情報処理装置、情報処理装置の制御方法及びプログラム |
| CN115794512B (zh) * | 2022-11-10 | 2025-08-29 | 苏州浪潮智能科技有限公司 | 一种快速定位并修复硬盘硬件故障的系统和方法 |
| CN115904787B (zh) * | 2022-11-30 | 2025-10-17 | 郑州云海信息技术有限公司 | 一种丢盘原因确定方法、装置及介质 |
-
2024
- 2024-03-29 CN CN202410382492.9A patent/CN117971610B/zh active Active
- 2024-12-13 WO PCT/CN2024/139313 patent/WO2025200602A1/zh active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111752790A (zh) * | 2019-03-26 | 2020-10-09 | 鸿富锦精密电子(天津)有限公司 | 硬盘状态监测系统及硬盘状态监测方法 |
| CN111176967A (zh) * | 2019-12-28 | 2020-05-19 | 北京浪潮数据技术有限公司 | 一种远程带外ssd日志信息的查询方法、装置及bmc |
| CN116881101A (zh) * | 2023-07-07 | 2023-10-13 | 苏州浪潮智能科技有限公司 | 一种硬盘日志记录、解析及监控方法、系统、设备及介质 |
| CN117971610A (zh) * | 2024-03-29 | 2024-05-03 | 苏州元脑智能科技有限公司 | 一种硬盘监控方法、装置、系统、设备及存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN117971610A (zh) | 2024-05-03 |
| CN117971610B (zh) | 2024-05-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2025200602A1 (zh) | 一种硬盘监控方法、装置、系统、设备及存储介质 | |
| WO2025200599A1 (zh) | 一种服务器及其硬盘监控方法、装置、设备和介质 | |
| EP2913754B1 (en) | Memory data migration computer and method | |
| CN108304299A (zh) | 服务器上电状态监测系统及方法、计算机存储器及设备 | |
| US12153097B2 (en) | Power failure monitoring device and power failure monitoring method | |
| US8607079B2 (en) | Power-on test system for testing storage device and test method employing the same | |
| CN115470056A (zh) | 服务器硬件上电启动故障排查方法、系统、装置及介质 | |
| CN117971608B (zh) | 一种硬盘日志的获取方法、发送方法、装置、设备及介质 | |
| CN111858178B (zh) | 一种电源启动类型的判断方法、装置、设备及可读介质 | |
| WO2026037009A1 (zh) | 带宽分配方法、服务器、设备、介质及程序产品 | |
| CN113742166A (zh) | 一种服务器系统器件日志记录方法、装置及系统 | |
| WO2025200600A1 (zh) | 硬盘日志的数据解调方法、调制方法、装置、设备及介质 | |
| CN117873771B (zh) | 一种系统宕机处理方法、装置、设备、存储介质及服务器 | |
| CN108363477A (zh) | 服务器上电状态监测系统及方法、计算机存储器及设备 | |
| WO2025200109A1 (zh) | 硬盘监控系统、方法、设备、存储介质及基板管理控制器 | |
| CN113590405A (zh) | 硬盘错误的检测方法、装置、存储介质和电子装置 | |
| US8935555B2 (en) | Wake-on-local-area-network operations in a modular chassis using a virtualized input-output-virtualization environment | |
| CN117971607B (zh) | 一种硬盘监控方法、装置、设备及介质 | |
| CN108304290A (zh) | 服务器上电状态监测系统及方法、计算机存储器及设备 | |
| CN114281618A (zh) | 一种pcie链路训练状态监测装置和服务器 | |
| WO2025200699A1 (zh) | 一种时钟检测方法、系统、设备、介质及服务器 | |
| CN119292516A (zh) | 一种慢盘识别方法及计算设备 | |
| CN117687859A (zh) | PCIe设备的异常检测设备、系统、服务器、方法 | |
| CN115934616A (zh) | 串口信息保存方法、装置、服务器、电子设备和存储介质 | |
| CN120353734A (zh) | 一种硬盘控制电路、方法、设备、介质及程序产品 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 24931864 Country of ref document: EP Kind code of ref document: A1 |