This non-provisional application claims priority under 35 U.S.C. ยง119(a) on Patent Application No(s). 201210428249.3 filed in China, P.R.C. on Oct. 31, 2012, the entire contents of which are hereby incorporated by reference.
1. Technical Field of the Invention
The disclosure relates to a monitoring mechanism of an electronic device, more particularly to an electronic device capable of monitoring a storage unit in real time and a management method thereof.
2. Description of the Related Art
In the computer field, a computer server has a high computational capability and is capable of providing a variety of functions for use by several users at the same time. Therefore, the selection standard of a hardware device for a computer server is different from a common personal computer. The hardware device of a computer server is required to be capable of handling a heavy load and have a long service life. Thereby, data loss on a computer server caused by hardware damages during the execution of computational work can be avoided. As the dedicated disk drive for a computer server is very expensive and has a limited storage space, the disk drive in an existing computer server usually adopts a hard disk drive (HDD) array formed of a plurality of physical disk drives.
Generally speaking, the firmware of the storage card on a printed circuit board (PCB) can only provide storage device information, but does not provide system environment information such as temperature and voltage of downstream devices thereof such as a redundant array of independent disks (RAID) controller, an expander, a just a bunch of disks (JBOD) system or does not provide nonstandard commands in the industry. Therefore, vulnerability in real-time monitoring for the external control of the integrated environment may occur.
In an embodiment, the disclosure provides an electronic device comprising a storage unit, a baseboard management controller (BMC) and a storage interface. The baseboard management controller (BMC) comprises a first connection port. The first connection port is configured for transferring a management interface packet. The storage interface is coupled to the storage unit. The storage interface comprises a second connection port and a hard disk drive (HDD) controller. The second connection port is coupled to the first connection port and is configured for receiving the management interface packet. The hard disk drive (HDD) controller is coupled to the second connection port, and is configured for converting the management interface packet into an internal control command that conforms to the storage interface, so as to read a system environment information according to the internal control command. The hard disk drive (HDD) controller also encapsulates the system environment information into a response packet and transferring the response packet to the first connection port of the BMC through the second connection port. The response packet conforms to the format of the management interface packet.
The disclosure further provides a management method configured for an electronic device. In this method, a management interface packet is transferred to a second connection port of a storage interface through a first connection port of a baseboard management controller (BMC). The storage interface comprises a hard disk drive (HDD) controller, and the storage interface is coupled to a storage device. The management interface packet is converted into an internal control command that conforms to the storage interface by the HDD controller, so as to read a system environment information according to the internal control command. The system environment information is encapsulated into a response packet by the HDD controller. The response packet is transferred to the first connection port of the BMC through the second connection port. The response packet conforms to the format of the management interface packet.
A rack serving system is further disclosed. The rack serving system comprises a rack management server, a storage unit and a storage interface. The rack management server comprises a baseboard management controller (BMC). The baseboard management controller (BMC) comprises a first connection port. A management interface packet is transferred through the first connection port. The storage interface is coupled to the storage unit. The storage interface comprises a second connection port coupled to the first connection port and a hard disk drive (HDD) controller. The second connection port is configured for receiving the management interface packet. The hard disk drive (HDD) controller is coupled to the second connection port, and is configured for converting the management interface packet into an internal control command that conforms to the storage interface, so as to read a system environment information according to the internal control command. The hard disk drive (HDD) controller also encapsulates the system environment information into a response packet and transferring the response packet to the first connection port of the BMC through the second connection port. The response packet conforms to the format of the management interface packet.
The disclosure will become more fully understood from the detailed description given herein below for illustration only, thus does not limit the disclosure, wherein:
In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the disclosed embodiments. It will be apparent, however, that one or more embodiments may be practiced without these specific details. In other instances, well-known structures and devices are schematically shown in order to simplify the drawing.
The storage interface 120 comprises a second connection port 121 and an HDD controller 123. The storage interface 120 is coupled to the storage unit 130. Through the first connection port 111, the BMC 110 is connected to the second connection port 121 of the storage interface 120.
The BMC 110 does not depend on the processor, Basic Input/Output System (BIOS) or the operating system of the electronic device 100 to operate. The BMC 110 is an independent subsystem that operates in the electronic device 100, which is often an independent circuit board installed on the motherboard. After starting the execution, the BMC 110 starts a monitoring procedure. Subsequently, the BMC 110 starts to transfer a management interface packet to the storage interface 120, so as to obtain system environment information of the storage interface 120. Next, the BMC 110 determines whether an error occurs in the received system environment information, in order to perform corresponding measures.
The HDD controller 123 is configured for managing a physical storage unit 130, so that a central processing unit (not shown) is capable of communicating with the storage unit 130. The HDD controller 123 comprises firmware, and the firmware drives the HDD controller 123. When being started, the storage interface 120 first initialize the firmware of the HDD controller 123. Subsequently, when the storage interface 120 receives the management interface packet, and the HDD controller 123 converts the management interface packet into an internal control command that conforms to the storage interface 120, so as to read the system environment information according to the internal control command, and also, encapsulates the system environment information into a response packet and transfers the response packet to the first connection port 111 of the BMC 110 through the second connection port 121. The response packet conforms to the format of the management interface packet.
The storage unit 130 is, for example, a logical disk array such as a RAID or JBOD system. A plurality of HDDs is capable of being combined into one logical disk array. Alternatively, the storage unit 130 is a nonvolatile storage device such as an HDD.
Additionally, in other embodiments, the storage interface 120 is also permitted to be coupled to a plurality of storage units 130. The BMC 110 is capable of transferring a management interface packet for different storage units 130.
After the storage interface 120 receives the management interface packet, in Step S210, the HDD controller 123 converts the management interface packet into an internal control command that conforms to the storage interface 120, so as to read system environment information according to the internal control command. For example, a storage space is configured in the storage interface 120, so as to store the system environment information read from the storage unit 130, or to detect the system environment information acquired by the storage unit 130.
The system environment information comprises an electric state, an HDD state, an error state, sensor information, disk array information, and FRU information of the storage unit 130 or a combination thereof. The electric state comprises a power supply state and a voltage state, for example, information such as the power supply of the storage unit being turned on or off or the voltage value. The HDD information is, for example, the usable space and the used space of the HDD. The sensor information is, for example, system temperature or the value read by the sensor. The disk array information is, for example, the type of disk array, and for a RAID system, the RAID system comprises a plurality of different levels. The FRU information is, for example, a hardware type, a manufacturer identification code, the serial number of a used slot or a hardware specification.
Subsequently, in Step S215, the HDD controller 123 encapsulates the system environment information into a response packet, and transfers the response packet to the first connection port 111 of the BMC 110 through the second connection port 121. The response packet conforms to the format of the management interface packet.
Additionally, the storage interface 130 is capable of being inserted in the chipset.
Please refer to
The chipset 330 is, for example, a southbridge chip or a circuit that integrates the functions of a southbridge chip and a northbridge chip. Generally speaking, the chipset 330 is coupled to a central processing unit (not shown). Additionally, the chipset 330 is also capable of being coupled to the BMC 110.
Additionally, the storage interface 120 further comprises an FRU 301 and a sensor data record (SDR) 303. The FRU 301 is, for example, a detailed list configured for storing replaceable equipment acquired from the storage unit 130, such as a supplier identification code and a manufacturer. The SDR 303 records the attribute data provided by an individual sensor which might be built in the storage unit 130 inside the storage unit 130, for example, a system temperature sensor, a fan rotational speed sensor or a current sensor.
The illustration is given below with regard to the current technologies. It is assumed that the first connection port 111 and the second connection port 121 are both I2C ports, the first connection port 111 and the second connection port 121 are coupled through an I2C bus, and the management interface packet and the response packet are both IPMI packets.
In terms of hardware configuration, a group of I2C ports of the BMC 110 is used as the first connection port 111, and a group of I2C ports of the storage interface 120 is used as the second connection port 121. The first connection port 111 and the second connection port 121 are connected through a I2C bus.
The processing signal mechanism of the firmware for the HDD controller 123 and the BMC 110 is as follows. The BMC 110 transfers an IPMI packet to the storage interface 120 through an I2C bus, and upon reception, the storage interface 120 is required to generate a processing mechanism. That is, the HDD controller 123 parses the data content of the IPMI packet and analyzes the received packet regarding the header, data content and verification thereof, so as to learn the information contained in the IPMI packet, which is further converted into an internal control command that conforms to the format supported by the storage interface 120. Thereby, the HDD controller 123 is capable of adopting an existing command manner, for example, a Small Computer System Interface (SCSI) or a Serial attached SCSI (SAS) command, of the storage interface 120 to drive the storage unit 130 or the expansion unit 320, so as to retrieve the system environment information, such as the voltage value, the rest space of the HDD, the configuration information of the HDD, of the storage unit 130 or expansion unit 320. Subsequently, the storage interface 120 encapsulates the acquired system environment information into an IPMI packet. The IPMI packet is responded to the BMC 110 through an I2C bus.
Subsequently, the BMC 110 informs a user of the condition of the storage unit 130 with the collected system environment information through a user interface such as a web interface. Therefore, the processing reaction mechanism is capable of becoming automatic through the BMC 110 for the system environment information. For example, when the system temperature of the storage unit 130 is higher than or equal to a preset temperature. That is, when the system temperature is too high, the BMC 110 is capable of automatically turning up the rotational speed of the fan 310 to reduce the temperature of the storage unit 130. That is to say, the BMC 110 directly sends a control signal to the fan 310, so as to control the rotational speed of the fan 310.
Additionally, the method is also applicable to a rack serving system, which is illustrated below through further examples.
The rack management server 410 comprises a BMC 411, and the BMC 411 comprises a first connection port 401, so as to transfer a management interface packet through a first connection port 401. Additionally, the rack management server 410 further comprises a chipset 413. The chipset 413 is connected, through a connection interface 407 such as a PCIE port, to the connection interface 403 (for example, a PCIE port) of the BMC 411.
The storage interface 420 is coupled to the storage unit 430. Also, the storage interface 420 comprises a second connection port 421 and an HDD controller 423. The second connection port 421 is coupled to the first connection port 401 and configured for receiving a management interface packet. The HDD controller 423 is coupled to the second connection port 421 and is configured for converting the management interface packet into an internal control command that conforms to storage interface 420, so as to read the system environment information according to the internal control command, and also encapsulates the system environment information into a response packet and transfers the response packet to the first connection port 401 of the BMC 411 through the second connection port 421. The response packet conforms to the format of the management interface packet.
In this embodiment, the first connection port 401 and the second connection port 421 are both I2C ports, that is, the first connection port 401 and the second connection port 421 are coupled through an I2C bus, and the management interface packet and the response packet are both IPMI packets. The processes of receiving and sending an IPMI packet in this embodiment are similar to those in the description of
In conclusion, the BMC is coupled to the second connection port, for example, an I2C port, in the storage interface through the first connection port, for example, an I2C port, so as to directly read the system environment information of the storage unit from the storage interface through the BMC. Therefore, the system environment information acquired by the HDD controller becomes more accurate, because the acquired system environment information is detected by a sensor disposed inside the storage unit rather than by a sensor configured outside the storage unit. Additionally, the BMC is further capable of recording the acquired system environment information to achieve the convience for users to check later. Additionally, the BMC and the storage interface are further capable of transmission and communication by using a packet in an IPMI format at the same time, which not only has a safety and verification mechanism, but also is capable of enhancing the future consistency and expansibility at the same time.
Number | Date | Country | Kind |
---|---|---|---|
201210428249.3 | Oct 2012 | CN | national |