The unified acquisition methods and device of a kind of different manufacturers RAID card status information
Technical field
The present invention relates to RAID card product scope, a kind of specifically different manufacturers RAID card status information is uniformly obtained
Take method and apparatus.
Background technology
At present, RAID card can be all configured in high-end server product, many status informations include building in RAID card product
Vertical RAID registrations, disc information etc., be all client it is of interest it should be understood that important content.Currently, mainstream server product
BMC software design in, RAID card status information is obtained by server master board MCU, can show RAID in its WEB interface
Card status information, so that client checks.
But, because RAID card species is a lot, also there are different many families, the different types of RAID card state of different brands in manufacturer
Information acquisition method is also different, and this software for just developing acquisition RAID card status information to complete-system vendor brings volume for work
Amount is, it is necessary to which obtaining all RAID card status informations has larger difficulty.For high-volume server product, complete-system vendor obtains many
For this item of multiserver product RAID card status information, a large amount of manpowers and time certainly will be wasted, therefore, how rapidly
Different manufacturers RAID card status information is obtained, as relevant art field urgent problem.
The content of the invention
There is provided a kind of different manufacturers RAID card status information for the demand and weak point that the present invention develops for current technology
Unified acquisition methods and device.
The unified acquisition methods and device of a kind of different manufacturers RAID card status information of the present invention, solve above-mentioned technology
The technical scheme that problem is used is as follows:The unified acquisition device of the different manufacturers RAID card status information, its structure is mainly wrapped
Include the onboard eeprom chip of RAID chips in a server, server master board BMC, RAID card;Different type RAID card is set
In meter, the RAID chips communicate with eeprom chip, according to the generic state byte information mode of formulation by RAID card state
Information writes eeprom chip;Automatically write when RAID card state information updating in eeprom chip;The server master board
BMC is communicated with eeprom chip, and the generic state byte information in RAID card is directly read from eeprom chip, obtains current
RAID card status information.
It is preferred that, the eeprom chip is communicated by I2C passages with RAID chips, server master board BMC;It is simultaneously described
Eeprom chip is provided with the switching switch for accessing I2C passages, and switching switch opens or closes as described in RAID chip controls.
It is preferred that, during the RAID card state information updating, the switching switch of the RAID chip controls eeprom chip,
The I2C passages of eeprom chip are switched on RAID chips, and RAID chips write the status information of renewal in eeprom chip;
When the server master board BMC reads RAID card status information, the I2C passages of eeprom chip switch to server master board BMC
End, server master board BMC directly obtains current RAID card status information from eeprom chip.
It is preferred that, the definition of byte implication is unified in different type RAID card write-in eeprom chip, the server master
Plate BMC can parse current RAID card status information according to the byte order of unified definition.
It is preferred that, the server is two-way Romly processor-servers, and the server master board BMC uses AST2400
Chip, the RAID chips use 9580 RAID chips, and the eeprom chip uses AT25C512 chips.
A kind of unified acquisition methods of different manufacturers RAID card status information, in the design process of different type RAID card
In, RAID card status information is written to onboard by RAID chips according to the generic state byte information mode of formulation in server
In eeprom chip;After RAID card state information updating, the status information write-in EEPROM cores after RAID card is updated automatically
In piece;When server master board BMC needs to read RAID card status information, eeprom chip can be directly read and parsed wherein
Generic state byte information, and then obtain current RAID card status information.
The unified acquisition methods and device of a kind of different manufacturers RAID card status information of the present invention, with prior art phase
Than having an advantageous effect in that:The present invention is in the hardware design of different type RAID card, by RAID chips according to formulation
Generic state byte information mode is write after RAID card status information, each RAID card state information updating certainly to eeprom chip
In dynamic write-in eeprom chip, server master board BMC can read current RAID card status information from eeprom chip;Simultaneously
Cross the switching switch that access path is set in eeprom chip, it is to avoid RAID chips, server master board BMC are accessed simultaneously
Conflict caused by eeprom chip;Greatly reduce the work that existing server MCU obtains different type RAID card status information
Amount, saves a large amount of manpowers, improves the efficiency for obtaining different type RAID card status information, perfect server product work(
Energy.
Brief description of the drawings
Accompanying drawing 1 is the schematic block diagram of unified acquisition device in embodiment 1;
Accompanying drawing 2 is the schematic block diagram of unified acquisition device in embodiment 2.
Embodiment
For the object, technical solutions and advantages of the present invention are more clearly understood, below in conjunction with specific embodiment, to this hair
A kind of unified acquisition methods of bright different manufacturers RAID card status information are further described.
The unified acquisition methods and device of different manufacturers RAID card status information of the present invention, by being designed in RAID card
During, eeprom chip is carried by RAIDA clamps and preserves RAID card status information, and by RAID chip controls eeprom chips
I2C passages switch, when automatically writing eeprom chip after RAIDA card state information updatings;Server master board BMC needs to obtain
During RAID card status information, directly read eeprom chip and obtain RAID card status information.Also, uniformly in eeprom chip
The byte implication preserved is defined, and realizes that same set of BMC codes can be to all brands and species RAID card status information
Obtained.
Embodiment 1:
The unified acquisition device of different manufacturers RAID card status information described in the present embodiment, its overall structure is as shown in Figure 1, main
To include the onboard eeprom chip of RAID chips, server master board BMC, RAID card in a server;Different type RAID card
Design in, the RAID chips are communicated by I2C with eeprom chip, according to the generic state byte information mode of formulation
RAID card status information is write into eeprom chip;Automatically write when RAID card state information updating in eeprom chip;Institute
State server master board BMC to communicate with eeprom chip by I2C, the general shape in RAID card is directly read from eeprom chip
State byte information, obtains current RAID card status information.
The RAID chips write RAID card status information in onboard eeprom chip, the RAID card status information bag
Include brand, model, current RAID level, disk model of RAID card etc..
The eeprom chip is communicated by I2C passages with RAID chips, server master board BMC, and sets its I2C of access
The switching switch of passage, the RAID chips can control opening and the closing of the switching switch of eeprom chip.The RAID
During card state information updating, the switching switch of the RAID chip controls eeprom chip, the I2C passages switching of eeprom chip
To RAID chips, RAID chips write the status information of renewal in eeprom chip.The server master board BMC is read
During RAID card status information, the switching switch of the RAID chip controls eeprom chip, the I2C passages switching of eeprom chip
To server master board BMC ends, server master board BMC directly obtains current RAID card status information from eeprom chip poll.
Using the unified acquisition device of different manufacturers RAID card status information described in the present embodiment, a kind of different manufacturers are proposed
The unified acquisition methods of RAID card status information, are the RAID chips of server in the design process of different type RAID card
RAID card status information is written in onboard eeprom chip according to the generic state byte information mode of formulation;Work as RAID card
After state information updating, in the status information write-in eeprom chip after RAID card is updated automatically;When server master board BMC is needed
When reading RAID card status information, eeprom chip can be directly read and parse wherein generic state byte information, and then
Obtain current RAID card status information.
The definition of byte implication is unified in different brands different type RAID card write-in eeprom chip, the server master
Plate BMC can parse current RAID card status information there is provided being checked to client according to the byte order of unified definition, greatly letter
Change server master board MCU and obtain the workload that different type RAID card status information is done.
Embodiment 2
Below with a specific embodiment 2, to describe uniformly obtaining for different manufacturers RAID card status information of the present invention in detail
Take apparatus and method.
The unified acquisition device of the different manufacturers RAID card status information, in two-way Romly processor-servers, such as
Shown in accompanying drawing 2, the server master board BMC uses AST2400 chips, using 9580 RAID chips(The cores of Marvell 9580
Piece), the onboard eeprom chip of RAID card is using AT25C512 chips.
The switching switch for the I2C passages for accessing the eeprom chip, 9580 RAID are set on AT25C512 chips
Chip is responsible for controlling to switch opening or closing for switch on AT25C512 chips, realizes 9580 RAID chips or AST2400
Access of the chip to AT25C512 chips.
When 9580 RAID chips update RAID card status information, by switching switch by the I2C of AT25C512 chips
Passage is switched to after the access of 9580 RAID chips, the RAID card status information write-in AT25C512 chips of renewal, and switching is opened
Concern shifts to the access of AST2400 chips, and current RAID card status information is directly read by AST2400 chips, can so be had
Effect conflicts caused by avoiding 9580 RAID chips, AST2400 chips while accessing AT25C512 EEPROM.
Embodiment is only the specific case of the present invention, and scope of patent protection of the invention is including but not limited to above-mentioned
Embodiment, any person of an ordinary skill in the technical field that meet claims of the present invention and any is to it
The appropriate change or replacement done, should all fall into the scope of patent protection of the present invention.