Method and device for uniformly acquiring state information of RAID cards of different manufacturers
Technical Field
The invention relates to the field of RAID card products, in particular to a method and a device for uniformly acquiring state information of RAID cards of different manufacturers.
Background
At present, RAID cards are configured in high-end server products, and many pieces of state information in the RAID card products, including established RAID registration, disk information, and the like, are important contents that a client pays attention to and needs to know. Currently, in the BMC software design of mainstream server products, RAID card status information is acquired through a server motherboard MCU, and may be displayed in a WEB interface thereof for a client to check.
However, because there are many types of RAID cards, manufacturers have different families, and the methods for acquiring the state information of the RAID cards of different brands and different types are different, which brings a large amount of work to the manufacturers of the complete machine to develop software for acquiring the state information of the RAID cards, and makes it difficult to acquire the state information of all the RAID cards. For the mass server products, a whole manufacturer acquires the RAID card state information of a plurality of server products, a great deal of manpower and time are wasted, and therefore, how to quickly acquire the RAID card state information of different manufacturers becomes a problem which needs to be solved urgently in the corresponding technical field.
Disclosure of Invention
Aiming at the requirements and the defects of the prior art development, the invention provides a method and a device for uniformly acquiring the state information of RAID cards of different manufacturers.
The invention discloses a method and a device for uniformly acquiring RAID card state information of different manufacturers, which solve the technical problems and adopt the following technical scheme: the unified obtaining device for the RAID card state information of different manufacturers mainly comprises an RAID chip in a server, a server mainboard BMC and an EEPROM chip carried by the RAID card; in the design of different types of RAID cards, the RAID chip communicates with the EEPROM chip, and the state information of the RAID card is written into the EEPROM chip according to the established universal state byte information mode; when the state information of the RAID card is updated, the state information of the RAID card is automatically written into an EEPROM chip; the server mainboard BMC is communicated with the EEPROM chip, and directly reads the universal state byte information in the RAID card from the EEPROM chip to obtain the current RAID card state information.
Preferably, the EEPROM chip is communicated with the RAID chip and a server mainboard BMC through an I2C channel; meanwhile, the EEPROM chip is provided with a switch for accessing an I2C channel, and the switch is controlled to be turned on or off by the RAID chip.
Preferably, when the state information of the RAID card is updated, the RAID chip controls a switch of the EEPROM chip, the I2C channel of the EEPROM chip is switched to the RAID chip, and the RAID chip writes the updated state information into the EEPROM chip; when the server mainboard BMC reads the RAID card state information, the I2C channel of the EEPROM chip is switched to the server mainboard BMC end, and the server mainboard BMC directly acquires the current RAID card state information from the EEPROM chip.
Preferably, definitions of byte meanings written into the EEPROM chip by the different types of RAID cards are uniform, and the server motherboard BMC can analyze the current state information of the RAID cards according to the uniformly defined byte sequence.
Preferably, the server is a two-way Romly processor server, the server motherboard BMC adopts an AST2400 chip, the RAID chip adopts a 9580RAID chip, and the EEPROM chip adopts an AT25C512 chip.
A unified obtaining method of RAID card status information of different manufacturers is characterized in that in the design process of different types of RAID cards, an RAID chip in a server writes the RAID card status information into an onboard EEPROM chip according to a formulated universal status byte information mode; after the state information of the RAID card is updated, automatically writing the updated state information of the RAID card into an EEPROM chip; when the server mainboard BMC needs to read the state information of the RAID card, the EEPROM chip can be directly read to analyze the universal state byte information, and then the current state information of the RAID card is obtained.
Compared with the prior art, the unified obtaining method and the device for the RAID card state information of different manufacturers have the following beneficial effects that: in the hardware design of different types of RAID cards, RAID chip writes RAID card status information into EEPROM chip according to established universal status byte information mode, the RAID card status information is automatically written into the EEPROM chip after each update, and server mainboard BMC can read current RAID card status information from the EEPROM chip; meanwhile, the switch for accessing the channel is arranged on the EEPROM chip, so that the conflict caused by the fact that the RAID chip and the server mainboard BMC access the EEPROM chip simultaneously is avoided; the workload of acquiring the state information of the RAID cards of different types by the MCU of the existing server is greatly reduced, a large amount of manpower is saved, the efficiency of acquiring the state information of the RAID cards of different types is improved, and the product functions of the server are improved.
Drawings
Fig. 1 is a schematic block diagram of a unified acquisition apparatus in embodiment 1;
fig. 2 is a schematic block diagram of a uniform acquisition apparatus in embodiment 2.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clearly understood, the following describes in detail a unified obtaining method for status information of RAID cards of different manufacturers according to the present invention with reference to specific embodiments.
According to the method and the device for uniformly acquiring the state information of the RAID cards of different manufacturers, the state information of the RAID cards is stored by loading the EEPROM chip on the RAIDA card board in the design process of the RAID cards, the I2C channel of the EEPROM chip is controlled to be switched by the RAID chip, and the state information of the RAIDA cards is automatically written into the EEPROM chip after being updated; when the server mainboard BMC needs to acquire the RAID card state information, the EEPROM chip is directly read to acquire the RAID card state information. And moreover, byte meanings stored in the EEPROM chip are defined uniformly, and the condition information of all brands and types of RAID cards can be acquired by the same BMC code.
Example 1:
the overall structure of the device for uniformly acquiring the state information of the RAID cards of different manufacturers in this embodiment is shown in fig. 1, and the device mainly includes a RAID chip in a server, a server motherboard BMC, and an EEPROM chip onboard the RAID card; in the design of different types of RAID cards, the RAID chip communicates with the EEPROM chip through I2C, and the state information of the RAID card is written into the EEPROM chip according to the established universal state byte information mode; when the state information of the RAID card is updated, the state information of the RAID card is automatically written into an EEPROM chip; the server mainboard BMC is communicated with the EEPROM chip through I2C, and directly reads the universal status byte information in the RAID card from the EEPROM chip to obtain the current RAID card status information.
The RAID chip writes RAID card state information into an onboard EEPROM chip, and the RAID card state information comprises the brand, the model, the current RAID level, the disk model and the like of the RAID card.
The EEPROM chip is communicated with the RAID chip and the server mainboard BMC through an I2C channel, a change-over switch for accessing the I2C channel is arranged, and the RAID chip can control the on and off of the change-over switch of the EEPROM chip. When the state information of the RAID card is updated, the RAID chip controls a switch of the EEPROM chip, an I2C channel of the EEPROM chip is switched to the RAID chip, and the RAID chip writes the updated state information into the EEPROM chip. When the server mainboard BMC reads the state information of the RAID card, the RAID chip controls a switch of the EEPROM chip, an I2C channel of the EEPROM chip is switched to the server mainboard BMC end, and the server mainboard BMC directly obtains the current state information of the RAID card from the polling of the EEPROM chip.
By adopting the uniform acquisition device for the state information of the RAID cards of different manufacturers, the uniform acquisition method for the state information of the RAID cards of different manufacturers is provided, and the state information of the RAID cards of different manufacturers is written into an onboard EEPROM chip by an RAID chip of a server according to a formulated universal state byte information mode in the design process of the RAID cards of different types; after the state information of the RAID card is updated, automatically writing the updated state information of the RAID card into an EEPROM chip; when the server mainboard BMC needs to read the state information of the RAID card, the EEPROM chip can be directly read to analyze the universal state byte information, and then the current state information of the RAID card is obtained.
The definitions of byte meanings written into the EEPROM chip by different brands of different types of RAID cards are uniform, the server mainboard BMC can analyze the current state information of the RAID cards according to the uniformly defined byte sequence and provide the current state information for a client to check, and the workload of acquiring the state information of the different types of RAID cards by the server mainboard MCU is greatly simplified.
Example 2
The following describes an apparatus and a method for uniformly acquiring status information of RAID cards of different vendors according to an embodiment 2.
In a two-way Romly processor server, as shown in fig. 2, the unified obtaining device for the state information of the RAID cards of different manufacturers adopts an AST2400 chip, a 9580RAID chip (Marvell 9580 chip) and an EEPROM chip carried by the RAID card adopts an AT25C512 chip.
The AT25C512 chip is provided with a switch for accessing the I2C channel of the EEPROM chip, and the 9580RAID chip is responsible for controlling the on or off of the switch on the AT25C512 chip, so as to realize the access of 9580RAID chip or AST2400 chip to the AT25C512 chip.
When the RAID chip 9580 updates the state information of the RAID card, the I2C channel of the AT25C512 chip is switched to 9580RAID chip access through the switch, after the updated state information of the RAID card is written into the AT25C512 chip, the switch is switched to the AST2400 chip access, and the AST2400 chip directly reads the current state information of the RAID card, so that the conflict caused by accessing the AT25C512 EEPROM by the RAID chip 9580 and the AST2400 chip AT the same time can be effectively avoided.
The detailed description of the present invention is only a specific case, and the protection scope of the present invention includes but is not limited to the detailed description of the present invention, and any suitable changes or substitutions by those skilled in the art, which are consistent with the claims of the present invention, should fall into the protection scope of the present invention.