CN107391036B - Method and system for accessing stored VPD information - Google Patents

Method and system for accessing stored VPD information Download PDF

Info

Publication number
CN107391036B
CN107391036B CN201710566846.5A CN201710566846A CN107391036B CN 107391036 B CN107391036 B CN 107391036B CN 201710566846 A CN201710566846 A CN 201710566846A CN 107391036 B CN107391036 B CN 107391036B
Authority
CN
China
Prior art keywords
cmc
access
vpd information
stored
command
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.)
Active
Application number
CN201710566846.5A
Other languages
Chinese (zh)
Other versions
CN107391036A (en
Inventor
刘颖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710566846.5A priority Critical patent/CN107391036B/en
Publication of CN107391036A publication Critical patent/CN107391036A/en
Application granted granted Critical
Publication of CN107391036B publication Critical patent/CN107391036B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0658Controller construction arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Environmental & Geological Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and a system for accessing stored VPD information, wherein the method comprises the following steps: detecting whether the IP addresses of the CMC are communicated; calling an ipmitool command to access the stored VPD information to the CMC communicated with the IP address; and recording the access process and the result of the CMC. The system comprises a communication test unit, a VPD information access unit and a storage unit which are connected in sequence; the communication testing unit is used for detecting whether the IP addresses of the CMCs are communicated or not, the VPD information access unit is used for calling an ipmitool command to access the stored VPD information for the CMCs with communicated IP addresses, and the storage unit is used for recording the access process and the result of the CMCs. Compared with the prior art, the method can effectively improve the success rate of the CMC accessing the VPD information, and is widely suitable for double-control, four-control and multi-control storage equipment.

Description

Method and system for accessing stored VPD information
Technical Field
The invention relates to the technical field of computer storage, in particular to a method and a system for accessing stored VPD information.
Background
With the rapid development of storage devices, medium-high-end storage is gradually favored by more users, and meanwhile, medium-high-end storage faces more and more storage device attribute information, and attention is paid to how to efficiently and rapidly access the device attribute information.
In the prior art, when accessing information of a storage device, a CMC (virtual Product Data) accesses information of a VPD (key Product technology) through a network between the CMC and a node. Wherein the VPD information includes product information (e.g., product sn, etc.) and hardware configuration information (e.g., CPU model, rate, and which types of interface cards are supported by each slot, etc.).
The CMC performing VPD information access on the same storage product includes a main CMC0 and a spare CMC1, and in the access process, if one CMC (the main CMC0 or the slave CMC1) fails, the main CMC0 and the spare CMC1 need to be switched.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention aims to provide a method and a system for accessing stored VPD information, which can improve the success rate of the CMC accessing the VPD information and have strong applicability.
The technical scheme adopted by the invention for solving the technical problems is as follows: a method of accessing stored VPD information, comprising the steps of:
detecting whether the IP addresses of the CMC are communicated;
calling an ipmitool command to access the stored VPD information to the CMC communicated with the IP address;
and recording the access process and the result of the CMC.
Further, whether the IP addresses of the CMCs are connected or not is detected by using a Ping pass test.
Further, the specific step of calling the ipmitool command to access the stored VPD information is as follows:
calling an ipmitool command;
judging whether the access of the CMC is successful;
if the CMC access is successful, no operation is carried out;
if the CMC fails to be accessed, judging whether the CMC has errors within a period of time;
if the CMC has errors in a past period of time, calling an ipmitool command again to enable the CMC to access the stored VPD information;
if no error occurs in the CMC in the past period, the ipmitool command is called for many times, so that the CMC accesses the stored VPD information.
Further, the stored VPD information is stored in the midplane EEPROM and/or the storage controller EEPROM.
Further, when needing a plurality of storage controllers to share VPD information, storing the VPD information on a middle plate EEPROM; when the VPD information is required to be shared by a single storage controller, the VPD information is stored in the storage controller EEPROM.
A stored VPD information access system comprises a communication test unit, a VPD information access unit and a storage unit which are connected in sequence; the communication testing unit is used for detecting whether the IP addresses of the CMCs are communicated or not, the VPD information access unit is used for calling an ipmitool command to access the stored VPD information for the CMCs with communicated IP addresses, and the storage unit is used for recording the access process and the result of the CMCs.
Furthermore, the VPD information access unit comprises a command calling module, an access judging module and an error judging module, wherein the input end of the command calling module is respectively connected with the output end of the communication testing unit and the output end of the error judging module, the input end of the access judging module is connected with the output end of the command calling module, and the output end of the access judging module is respectively connected with the input end of the storage unit and the input end of the error judging module;
the command calling module is used for calling an ipmitool command, the access judging module is used for judging whether the CMC is successfully accessed, and the error judging module is used for judging whether the CMC has errors.
The technical scheme of the invention has the beneficial effects of
1. The connectivity of the IP address of the CMC is detected through the Ping test, the CMC with the IP directly calls the command to access VPD data, the master-slave relationship of the CMC is not concerned any more, and the master-slave CMC does not need to be switched, so that the abnormal condition encountered by the master-slave CMC in the switching process is avoided, and the success rate of the CMC accessing VPD information is improved by the technical scheme of the invention.
2. For the abnormal situation that the CMC fails in the command executing process, a retry mechanism is added, the CMC is analyzed and judged for errors, a proper retry number is set, and the success rate of the CMC accessing the VPD information is further increased under the condition that the VPD information is not overtime.
3. For the double-control memory, the four-control memory and the multi-control memory, the VPD information of the storage controller can be stored in the middle plate EEPROM and the controller EEPROM, so that the CMC can access the information stored in the middle plate EEPROM and the controller EEPROM to the VPD information, and therefore the technical scheme of the invention has strong applicability.
4. The process of VPD access of the CMC is recorded, and a log file is generated, so that subsequent analysis and check are facilitated.
Drawings
FIG. 1 is a flow chart of the method of the present invention.
Fig. 2 is a flow chart of the present invention for accessing VPD information.
Fig. 3 is a schematic diagram of the system architecture of the present invention.
Detailed Description
In order to clearly explain the technical features of the present invention, the following detailed description of the present invention is provided with reference to the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and procedures are omitted so as to not unnecessarily limit the invention.
As shown in fig. 1, a method for accessing stored VPD information according to the present invention includes the following steps:
s1, detecting whether the IP addresses of the CMC are communicated;
s2, calling an ipmitool command to access the stored VPD information to the CMC communicated with the IP address;
and S3, recording the access process and the result of the CMC.
In the above steps S1 to S3, the master-slave relationship of the CMC is no longer concerned, and the ipmitool command can be called to the CMC as long as the CMC is connected through the IP to access the VPD information, thereby avoiding the abnormal situation occurring in the master-slave switching process of the CMC and improving the success rate of accessing the VPD information.
Wherein in step S1, it is detected whether the IP addresses of the CMCs are connected by using Ping pass test. The specific method of the Ping communication test is to send data request packets to the CMC, check whether the number of the data request packets received by the CMC end is consistent with the number of the data request packets sent, if so, indicate that the IP address of the CMC is connected, otherwise, the IP address of the CMC is not connected.
The VPD information stored in step S2 is stored in a midplane EEPROM (Electrically erasable programmable Read-Only Memory, which is a Memory chip that does not lose data after power failure) and/or a Memory controller EEPROM. When needing a plurality of storage controllers to share VPD information, storing the VPD information on a middle plate EEPROM; when the VPD information is required to be shared by a single storage controller, the VPD information is stored in the storage controller EEPROM. For example, for the dual-control storage device, the dual-control storage device comprises storage controllers nodeA and nodeB, when two storage controllers are required to share VPD information, the VPD information is stored in the midplane EEPROM, and when a single storage controller is required to share VPD information alone, the VPD information is stored in the storage controllers EEPROM, namely, the nodeA EEPROM and the nodeB EEPROM respectively. The method is also suitable for four-control storage equipment and multi-control storage equipment, and the difference is only in the number of the arranged controller EEPROMs, and the number of the arranged storage controller EEPROMs is the same as that of the controllers of the storage equipment.
As shown in fig. 2, the specific step of calling ipmitool command to access the stored VPD information for the CMC with connected IP address in step S2 is:
s21, calling an ipmitool command;
s22, judging whether the access of the CMC is successful;
s23, if the CMC access is successful, no operation is carried out;
s24, if the CMC fails to be accessed, judging whether the CMC has errors in a past period of time;
s25, if the CMC has errors in a period of time, calling an ipmitool command again to make the CMC access the stored VPD information;
and S26, if the CMC has not error in the past period, calling the ipmitool command for many times to make the CMC access the stored VPD information.
The reason why no operation is performed in step S23 is that, when the CMC access is successful, the stored VPD information can be directly acquired, and the process proceeds to step S3.
The elapsed time in steps S24 to S26 is set to 30 seconds, and the number of times the ipmitool command is called multiple times in step S26 is set to 10 times.
In the above steps S21 to S26, in order to solve the problem that the CMC has connected IP in the prior art but fails during the execution of the command, a retry mechanism is added, the CMC error is analyzed and determined, an appropriate number of retries is set, and the success rate of the CMC accessing the VPD information is further increased while ensuring that the VPD information is not overtime.
And step S3, recording the access process and the result of the CMC, and generating a log record file, so as to facilitate the subsequent analysis and check of the access process of the CMC.
As shown in fig. 3, the present invention further provides a stored VPD information access system, which includes a connectivity test unit 1, a VPD information access unit 2, and a storage unit 3, which are connected in sequence; the communication testing unit 1 is used for detecting whether the IP addresses of the CMCs are communicated or not, the VPD information access unit 2 is used for calling an ipmitool command to access the stored VPD information for the CMCs with communicated IP addresses, and the storage unit 3 is used for recording the access process and results of the CMCs.
The VPD information access unit 2 comprises a command calling module 21, an access judging module 22 and an error judging module 23, wherein the input end of the command calling module 21 is respectively connected with the output end of the communication testing unit 1 and the output end of the error judging module 23, the input end of the access judging module 22 is connected with the output end of the command calling module 21, and the output end of the access judging module 22 is respectively connected with the input end of the storage unit 3 and the input end of the error judging module; the command calling module 21 is configured to call an ipmitool command, the access determining module 22 is configured to determine whether the CMC is successfully accessed, and the error determining module 23 is configured to determine whether an error occurs in the CMC.
The access judging module 22 judges whether the CMC is successfully accessed, if the CMC is successfully accessed to the VPD information, the access result of the CMC is directly output to the storage unit 3, if the CMC is unsuccessfully accessed to the VPD information, a signal is output to the error judging module 23, the error judging module 23 judges whether the CMC has an error in a past period of time, if the CMC has an error in a past period of time, the error judging module 23 outputs a signal to the command calling module 21, and then calls an ipmitool command once again to enable the CMC to access the stored VPD information, and if the CMC is not successfully accessed, the CMC finishes accessing, and outputs the access result to the storage unit 3, and if the CMC has a past period of time and no error, the ipmitool command is called for multiple times to enable the CMC to access the stored VPD information. The number of times in which the ipmitool command is called is set to 10 times, and the procedure and the access result are output to the storage unit 3.
The foregoing is only a preferred embodiment of the present invention, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the invention, and such modifications and improvements are also considered to be within the scope of the invention.

Claims (5)

1. A method for accessing stored VPD information is characterized in that: the method comprises the following steps:
detecting whether the IP addresses of the CMC are communicated;
calling an ipmitool command to access the stored VPD information to the CMC communicated with the IP address;
recording the access process and the result of the CMC;
the specific step of calling the ipmitool command to access the stored VPD information is as follows:
calling an ipmitool command;
judging whether the access of the CMC is successful;
if the CMC access is successful, no operation is carried out;
if the CMC fails to be accessed, judging whether the CMC has errors within a period of time;
if the CMC has errors in a past period of time, calling an ipmitool command again to enable the CMC to access the stored VPD information;
if no error occurs in the CMC in the past period, the ipmitool command is called for many times, so that the CMC accesses the stored VPD information.
2. The method of claim 1, wherein the method comprises: and detecting whether the IP addresses of the CMC are communicated by utilizing a ping communication test.
3. The method of claim 1, wherein the method comprises: the stored VPD information is stored in the middle board EEPROM and/or the storage controller EEPROM.
4. A method according to claim 3 for accessing stored VPD information, wherein: when needing a plurality of storage controllers to share VPD information, storing the VPD information on a middle plate EEPROM; when the VPD information is required to be shared by a single storage controller, the VPD information is stored in the storage controller EEPROM.
5. A stored VPD information access system, characterized by: the device comprises a communication test unit, a VPD information access unit and a storage unit which are connected in sequence; the communication testing unit is used for detecting whether the IP addresses of the CMCs are communicated or not, the VPD information access unit is used for calling an ipmitool command to access the stored VPD information for the CMCs with communicated IP addresses, and the storage unit is used for recording the access process and the result of the CMCs;
the VPD information access unit comprises a command calling module, an access judging module and an error judging module, wherein the input end of the command calling module is respectively connected with the output end of the communication test unit and the output end of the error judging module, the input end of the access judging module is connected with the output end of the command calling module, and the output end of the access judging module is respectively connected with the input end of the storage unit and the input end of the error judging module;
the access judging module is used for judging whether the CMC is successfully accessed or not, and if the CMC is successfully accessed, no operation is carried out; if the CMC fails to access, whether the CMC has errors in a past period of time is judged through an error judgment module, if the CMC has errors in the past period of time, an ipmitool command is called again to enable the CMC to access the stored VPD information, and if the CMC has not errors in the past period of time, the ipmitool command is called for many times to enable the CMC to access the stored VPD information.
CN201710566846.5A 2017-07-12 2017-07-12 Method and system for accessing stored VPD information Active CN107391036B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710566846.5A CN107391036B (en) 2017-07-12 2017-07-12 Method and system for accessing stored VPD information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710566846.5A CN107391036B (en) 2017-07-12 2017-07-12 Method and system for accessing stored VPD information

Publications (2)

Publication Number Publication Date
CN107391036A CN107391036A (en) 2017-11-24
CN107391036B true CN107391036B (en) 2020-06-02

Family

ID=60340309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710566846.5A Active CN107391036B (en) 2017-07-12 2017-07-12 Method and system for accessing stored VPD information

Country Status (1)

Country Link
CN (1) CN107391036B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144415B (en) * 2018-08-01 2022-05-06 新华三云计算技术有限公司 Node detection method and shared storage device
CN110704334B (en) * 2019-09-25 2021-10-15 苏州浪潮智能科技有限公司 Method, system and equipment for important product data management
CN113867994B (en) * 2021-09-27 2023-08-04 苏州浪潮智能科技有限公司 Cabinet VPD information processing method and device, storage equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1886732A (en) * 2003-12-18 2006-12-27 英特尔公司 Device diagnostic system
CN101056205A (en) * 2007-04-04 2007-10-17 杭州华为三康技术有限公司 A management method, system and device based on ATCA architecture-based server
CN102998613A (en) * 2012-11-26 2013-03-27 李文海 Test system and method capable of realizing parallel testing of circuit board
CN106610786A (en) * 2015-10-26 2017-05-03 联车(上海)信息科技有限公司 Data storage method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9021076B2 (en) * 2011-07-07 2015-04-28 International Business Machines Corporation Managing inventory data for components of a server system
US9032063B2 (en) * 2013-09-30 2015-05-12 International Business Machines Corporation Dynamic port naming in a chassis

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1886732A (en) * 2003-12-18 2006-12-27 英特尔公司 Device diagnostic system
CN101056205A (en) * 2007-04-04 2007-10-17 杭州华为三康技术有限公司 A management method, system and device based on ATCA architecture-based server
CN102998613A (en) * 2012-11-26 2013-03-27 李文海 Test system and method capable of realizing parallel testing of circuit board
CN106610786A (en) * 2015-10-26 2017-05-03 联车(上海)信息科技有限公司 Data storage method

Also Published As

Publication number Publication date
CN107391036A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
TWI229796B (en) Method and system to implement a system event log for system manageability
CN107391036B (en) Method and system for accessing stored VPD information
CN107463455B (en) Method and device for detecting memory fault
US20140019814A1 (en) Error framework for a microprocesor and system
CN110580235B (en) SAS expander communication method and device
CN108768793B (en) Storage dual-active link fault testing method and device
CN103218275A (en) Data error repairing method, device and equipment
US11442831B2 (en) Method, apparatus, device and system for capturing trace of NVME hard disc
CN107070747A (en) A kind of method of the automatic test network interface card network connection stability under network card binding pattern
CN101770416B (en) Bus testing method for new generation of peripheral connecting interface
CN109885420B (en) PCIe link fault analysis method, BMC and storage medium
US7996707B2 (en) Method to recover from ungrouped logical path failures
US8880957B2 (en) Facilitating processing in a communications environment using stop signaling
CN112650612A (en) Memory fault positioning method and device
WO2016101177A1 (en) Random access memory detection method of computer device and computer device
CN112148537A (en) Bus monitoring device and method, storage medium, and electronic device
JP6168628B1 (en) Failure analysis device, failure analysis system, failure analysis method, and failure analysis program
CN114826962A (en) Link fault detection method, device, equipment and machine readable storage medium
US7725770B2 (en) Enhanced failure data collection system apparatus and method
JP2006285453A (en) Information processor, information processing method, and information processing program
CN114363211A (en) Network connectivity verification method of disaster recovery backup system network and related equipment
CN109086179B (en) Processing method and device under program exception condition
CN109086180B (en) Memory inspection test method
JP6217086B2 (en) Information processing apparatus, error detection function diagnosis method, and computer program
CN113076210A (en) Server fault diagnosis result notification method, system, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant