CN112000513A - Computer and VPD data operation method, device and storage medium thereof - Google Patents

Computer and VPD data operation method, device and storage medium thereof Download PDF

Info

Publication number
CN112000513A
CN112000513A CN202010844735.8A CN202010844735A CN112000513A CN 112000513 A CN112000513 A CN 112000513A CN 202010844735 A CN202010844735 A CN 202010844735A CN 112000513 A CN112000513 A CN 112000513A
Authority
CN
China
Prior art keywords
data
data block
target
memory
vpd
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.)
Withdrawn
Application number
CN202010844735.8A
Other languages
Chinese (zh)
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.)
Beijing Inspur Data Technology Co Ltd
Original Assignee
Beijing Inspur Data 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 Beijing Inspur Data Technology Co Ltd filed Critical Beijing Inspur Data Technology Co Ltd
Priority to CN202010844735.8A priority Critical patent/CN112000513A/en
Publication of CN112000513A publication Critical patent/CN112000513A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1004Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The application discloses a computer and a VPD data operation method thereof, wherein the method is applied to a case management controller of the computer, the computer is provided with a main memory and a standby memory, and each memory stores VPD data; the method comprises the following steps: receiving an operation request for VPD data; determining a target logic data block where target data to be operated are located; reading a target logic data block in a main memory to carry out data consistency check; if the verification is successful, corresponding operation is carried out on the target data; if the verification fails, reading a target logic data block in the standby memory and verifying the data consistency; and if the verification is successful, performing corresponding operation on the target data. By applying the technical scheme provided by the application, the accuracy of the read data is ensured when the VPD data is operated, and the influence on the correct operation of the system is avoided. The application also discloses a VPD data operation device and a storage medium, and the VPD data operation device and the storage medium have corresponding technical effects.

Description

Computer and VPD data operation method, device and storage medium thereof
Technical Field
The present application relates to the field of computer application technologies, and in particular, to a computer, a VPD data operation method, an apparatus, and a storage medium thereof.
Background
With the rapid development of computer technology, the application range of computer products such as storage products and servers is more and more extensive.
In computer products, VPD (virtual Product Data) Data is used as a Data aggregate of basic configuration (such as CPU model, speed, which types of interface cards are supported by each slot, etc.) and production and manufacturing information (such as Product serial number, etc.) of a computer, and accurate storage, setting, query, etc. of the VPD Data plays an important role in correct operation of a system.
At present, when VPD data are to be operated, the VPD data can be directly read for corresponding operation, the accuracy of the read VPD data cannot be guaranteed, and the correct operation of a system is easily influenced.
Disclosure of Invention
The application aims to provide a computer, a VPD data operation method and device thereof, and a storage medium, so that the accuracy of read data is guaranteed when VPD data are operated, and the correct operation of a system is prevented from being influenced.
In order to solve the technical problem, the application provides the following technical scheme:
a VPD data operation method is applied to a case management controller of a computer, the computer is provided with a main memory and a standby memory, each memory corresponds to a single channel and stores VPD data of the computer, the VPD data comprises a plurality of logic data blocks, and each logic data block corresponds to a check value; the method comprises the following steps:
receiving an operation request for the VPD data;
determining a target logic data block where target data to be operated are located;
reading the target logic data block in the main memory, and performing data consistency check on the target logic data block based on a check value corresponding to the target logic data block in the main memory;
if the verification is successful, performing corresponding operation on the read target data in the target logic data block;
if the verification fails, reading the target logic data block in the standby memory, and performing data consistency verification on the target logic data block based on a verification value corresponding to the target logic data block in the standby memory;
and if the verification is successful, executing the step of performing corresponding operation on the read target data in the target logical data block.
In a specific embodiment of the present application, after the reading the target logical data block in the spare memory, and performing data consistency check on the target logical data block based on a check value corresponding to the target logical data block in the spare memory, the method further includes:
and if the verification fails, returning data acquisition failure information.
In a specific embodiment of the present application, the method for checking data consistency of a target logical data block in a backup memory includes, after reading the target logical data block in the backup memory and checking the target logical data block based on a check value corresponding to the target logical data block in the backup memory, further including:
and if the verification is successful, writing the target logic data block read in the spare memory back to the main memory to replace the target logic data block in the main memory.
In a specific embodiment of the present application, the performing the corresponding operation on the read target data in the target logical data block includes:
modifying the read target data in the target logic data block;
calculating the modified check value of the target logic data block;
and writing the modified target logic data block and the corresponding check value thereof back to the main memory and the spare memory, and replacing the target logic data block and the check value thereof in the main memory and the spare memory.
In one embodiment of the present application, the method further includes:
if write back to the main memory and the spare memory fails, data modification failure information is returned.
In one embodiment of the present application, the method further includes:
if a write back to the main memory or the spare memory fails, the target logical data block is marked as stale data in the write back failed memory.
In one embodiment of the present application, the spare memory is plural.
A VPD data operation device is applied to a case management controller of a computer, the computer is provided with a main memory and a standby memory, each memory corresponds to a single channel and stores VPD data of the computer, the VPD data comprises a plurality of logic data blocks, and each logic data block corresponds to a check value; the device comprises:
an operation request receiving module, configured to receive an operation request for the VPD data;
the target logic data block determining module is used for determining a target logic data block where target data to be operated are located;
the first reading and checking module is used for reading the target logic data block in the main memory and carrying out data consistency checking on the target logic data block based on a checking value corresponding to the target logic data block in the main memory; if the verification is successful, triggering the data operation module, and if the verification is failed, triggering a second reading and verifying module;
the data operation module is used for performing corresponding operation on the read target data in the target logic data block;
the second read-check module is configured to read the target logical data block in the spare memory, and perform data consistency check on the target logical data block based on a check value corresponding to the target logical data block in the spare memory; and if the verification is successful, triggering the data operation module to execute the step of performing corresponding operation on the read target data in the target logic data block.
A computer comprises a chassis management controller, a main memory and a spare memory, wherein each memory corresponds to a single channel and stores VPD data of the computer, the VPD data comprises a plurality of logical data blocks, and each logical data block corresponds to a check value;
the chassis management controller is used for realizing the steps of any one of the VPD data operation methods.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of any of the above described VPD data manipulation methods.
By applying the technical scheme provided by the embodiment of the application, the computer is provided with a main memory and a spare memory, each memory stores VPD data of the computer, the VPD data comprises a plurality of logical data blocks, each logical data block corresponds to a check value, when a chassis management controller of the computer receives an operation request for the VPD data, firstly, determining a target logical data block where target data to be operated is located, then reading the target logical data block in a main memory, if the verification is successful, the corresponding operation is carried out on the target data in the read target logic data block, and the verification fails, and continuing to read the target logical data block in the spare memory and carrying out data consistency check on the target logical data block, and if the check is successful, carrying out corresponding operation on the target data in the read target logical data block. The VPD data are stored redundantly through the main memory and the standby memory, the VPD data reading success rate can be improved, in addition, the VPD data comprise a plurality of logic data blocks, when an operation request to the VPD exists, only the target logic data block where the target data to be operated are located can be read, the reading efficiency is improved, in addition, only the consistency check is needed to be carried out on the target logic data block, the consistency check is not needed to be carried out on all the VPD data, the problem of time consumption caused by the fact that the check is added to the low-speed memory can be effectively solved, the data checking efficiency can be improved, the accuracy of the read data is guaranteed when the VPD data are operated, and the influence on the correct operation of a system is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic structural diagram of a computer according to an embodiment of the present application;
FIG. 2 is a flow chart of an embodiment of a VPD data manipulation method;
fig. 3 is a schematic structural diagram of a VPD data operation apparatus according to an embodiment of the present disclosure.
Detailed Description
The core of the application is to provide a VPD data operation method, which can be applied to a Chassis Management Controller (CMC) of a computer. A computer may be configured with a main memory and a spare memory, which may be one or more. Each memory corresponds to a separate channel, and the chassis management controller can access the memories through the respective channels of the memories. Each memory stores computer VPD data. The VPD data may include a plurality of logical data blocks, each logical data block corresponding to a check value.
The main memory and the spare memory may be an EEPROM (Electrically Erasable and Programmable read only memory).
As shown in fig. 1, which is a schematic diagram of a computer, the chassis management controller 110 may access the main memory 120 and the spare memory 130 through separate channels. The standby memory 130 is taken as an example here.
In the embodiment of the present application, the VPD data may be subjected to data logical partitioning in advance to obtain a plurality of logical data blocks of the VPD data. Each logical data block may be a data consistency Check region and corresponds to a Check value, such as a Cyclic Redundancy Check (CRC) Check value. The corresponding check value for each logical data block may be placed at the end of the logical data block. Each logical data block has its own length, offset, check value in memory.
The specific partitioning mode may be: and partitioning data according to the absolute space size or business association.
The following is an example of absolute spatial size partitioning: assuming a VPD data plan of 8KB, each logical data block is 64B, and the total number is 128 logical data blocks, i.e. 64B/logical data block 128 logical data blocks 8192B 8 KB.
The following examples of the manner of performing data partitioning according to service association are given as follows: assuming a VPD data plan of 8KB, the data is divided into a plurality of logical data blocks by service association, wherein the total data amount of the first logical data block 32B, the second logical data block 128B, the third logical data block 96B, … … does not exceed 8 KB.
Partitioning by absolute space size may make accessing memory implementation simpler. The data partitioning mode according to the service association is friendly to service use, and the hit accuracy of the target logic data block is high.
After the VPD data are partitioned and the check value is determined, a bin file can be generated through a VPD file making tool and is imported into a main memory and a standby memory, so that the VPD file of the initial version is burnt. Initially, the VPD data in the main memory and the spare memory are consistent and redundant to each other.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 2, a flowchart of an implementation of a VPD data operation method provided in an embodiment of the present application may include the following steps:
s210: a request for an operation on VPD data is received.
In practical applications, when other software or equipment needs to use the VPD data, a corresponding operation request can be sent to the chassis management controller. The operation request may be a read request or a modify request.
After receiving the operation request for VPD data, the chassis management controller may continue to perform the operation of step S220.
S220: and determining a target logical data block where target data to be operated is located.
In an embodiment of the present application, the VPD data stored in the main memory and the spare memory comprises a plurality of logical data blocks. The data contained in different logical data blocks is different.
After receiving an operation request for VPD data, the chassis management controller may determine a target logical data block where target data to be operated is located. Specifically, the determination may be performed according to a data association relationship established in advance.
S230: and reading the target logical data block in the main memory, and carrying out data consistency check on the target logical data block based on a check value corresponding to the target logical data block in the main memory.
The case management controller receives an operation request for VPD data, can read a target logical data block in a main memory after determining the target logical data block where target data to be operated are located, and performs data consistency check on the target logical data block based on a check value corresponding to the target logical data block in the main memory after reading the target logical data block. Specifically, the read check value of the data contained in the target logical data block may be calculated through a unified check algorithm, and the calculated check value is compared with the check value corresponding to the target logical data block in the main memory, where the two check values are consistent, indicating that the check is successful, and if the two check values are inconsistent, indicating that the check is failed.
If the verification is successful, the operation of step S240 may be continuously performed. If the verification fails, the operation of step S250 may be continuously performed.
S240: and performing corresponding operation on the target data in the read target logical data block.
And the case management controller reads the target logical data block in the main memory and performs data consistency check on the read target logical data block, if the check is successful, the target logical data block read in the main memory can be considered as valid data, and corresponding operation can be performed on the target data in the read target logical data block.
If the operation request is a read request, performing corresponding operation on the target data in the read target logical data block may specifically be: and extracting the target data in the read target logical data block and providing the target data for the operation requester to use.
If the operation request is a modification request, performing corresponding operation on the read target data in the target logical data block may specifically be: and modifying the read target data in the target logical data block, calculating a check value of the modified target logical data block, writing back the modified target logical data block and the corresponding check value thereof to the main memory and the standby memory, and replacing the target logical data block and the check value thereof in the main memory and the standby memory.
After the read target data in the target logical data block is modified, the check value can be calculated based on the modified target logical data block to obtain a new check value, and the modified target logical data block and the new check value corresponding to the modified target logical data block are written back to the main memory and the standby memory, so that the target logical data block and the check value in the main memory and the standby memory are updated. The next time there is an operation request to read, it will be the updated target logical data block that is read.
S250: and reading the target logic data block in the standby memory, and carrying out data consistency check on the target logic data block based on a check value corresponding to the target logic data block in the standby memory.
And the case management controller reads the target logical data block in the main memory and performs data consistency check on the read target logical data block, and if the check fails, the target logical data block read from the main memory can be considered as invalid data and is unavailable. In this case, the target logical data block may be read in the spare memory, and the data consistency check may be performed on the target logical data block based on the check value corresponding to the target logical data block in the spare memory. The verification process is the same as above and is not described in detail.
If the verification is successful, the target logical data block read in the spare memory may be considered as valid data, and step S240 may be executed to perform corresponding operations on the target data in the read target logical data block. Meanwhile, if the verification is successful, the target logical data block read in the spare memory can be written back to the main memory to replace the target logical data block in the main memory. This may cause the target logical data block in main memory to be updated with valid, usable data. The consistency of the data in the main memory and the spare memory is maintained.
If the verification fails, the target logical data block read in the spare memory may be considered invalid data and unusable. If the spare memory is multiple, the target logic data block can be continuously read in other spare memories, and data consistency check is carried out. The process is the same as above and is not described in detail.
If the target logic data blocks read from the main memory and the standby memory fail to be checked, data acquisition failure information can be returned, so that technicians can conveniently perform problem troubleshooting in time.
By applying the method provided by the embodiment of the application, the computer is provided with the main memory and the standby memory, each memory stores the VPD data of the computer, the VPD data comprises a plurality of logical data blocks, each logical data block corresponds to a check value, when the chassis management controller of the computer receives an operation request for the VPD data, firstly, determining a target logical data block where target data to be operated is located, then reading the target logical data block in a main memory, if the verification is successful, the corresponding operation is carried out on the target data in the read target logic data block, and the verification fails, and continuing to read the target logical data block in the spare memory and carrying out data consistency check on the target logical data block, and if the check is successful, carrying out corresponding operation on the target data in the read target logical data block. The VPD data are stored redundantly through the main memory and the standby memory, the VPD data reading success rate can be improved, in addition, the VPD data comprise a plurality of logic data blocks, when an operation request to the VPD exists, only the target logic data block where the target data to be operated are located can be read, the reading efficiency is improved, in addition, only the consistency check is needed to be carried out on the target logic data block, the consistency check is not needed to be carried out on all the VPD data, the problem of time consumption caused by the fact that the check is added to the low-speed memory can be effectively solved, the data checking efficiency can be improved, the accuracy of the read data is guaranteed when the VPD data are operated, and the influence on the correct operation of a system is avoided.
In an embodiment of the present application, the operation request is a modification request, and corresponding operations are performed on the read target data in the target logical data block, which may specifically be: modifying the read target data in the target logic data block; calculating the check value of the modified target logic data block; and writing the modified target logic data block and the corresponding check value thereof back to the main memory and the spare memory, and replacing the target logic data block and the check value thereof in the main memory and the spare memory.
If the write back to the main memory and/or the spare memory is successful, a modification success information may be returned. For further operation by the requestor.
If the write back to the main memory and the spare memory fails, data modification failure information is returned. In practical application, it may be caused by a communication problem or a hardware problem that both write-back failures occur when writing back the modified target logical data block and the corresponding check value thereof to the main memory and the spare memory, and in this case, data modification failure information may be returned to facilitate a technician to perform problem troubleshooting in time. Errors may also be reported to the system.
If a write back to main memory or spare memory fails, the target logical data block is marked as stale data in the write back failed memory. If write back failure occurs when the modified target logical data block and the corresponding check value thereof are written back to the main memory and the spare memory, the target logical data block may be marked as invalid data in the write back failure memory. Therefore, when the next operation request needs to read the target logic data block, the data in the memory marked with the failure data is not read, and the corresponding data is directly read from other memories, so that the reading efficiency can be further improved.
Corresponding to the above method embodiment, an embodiment of the present application further provides a VPD data operation device, which is applied to a chassis management controller of a computer, where the computer is configured with a main memory and a spare memory, each memory corresponds to a separate channel and stores VPD data of the computer, the VPD data includes a plurality of logical data blocks, and each logical data block corresponds to a check value; the VPD data operation device and the VPD data operation method described above may be referred to with each other.
Referring to fig. 3, the apparatus may include the following modules:
an operation request receiving module 310, configured to receive an operation request for VPD data;
a target logical data block determining module 320, configured to determine a target logical data block where target data to be operated is located;
the first read checking module 330 is configured to read a target logical data block in the main memory, and perform data consistency check on the target logical data block based on a check value corresponding to the target logical data block in the main memory; if the verification is successful, the data operation module 340 is triggered, and if the verification is failed, the second read verification module 350 is triggered;
the data operation module 340 is configured to perform corresponding operations on the read target data in the target logical data block;
a second read/verify module 350, configured to read the target logical data block in the spare memory, and perform data consistency verification on the target logical data block based on a verify value corresponding to the target logical data block in the spare memory; if the verification is successful, the data operation module 340 is triggered to execute the step of performing the corresponding operation on the target data in the read target logical data block.
By applying the device provided by the embodiment of the application, the computer is provided with the main memory and the standby memory, each memory stores the VPD data of the computer, the VPD data comprises a plurality of logical data blocks, each logical data block corresponds to a check value, when the chassis management controller of the computer receives an operation request for the VPD data, firstly, determining a target logical data block where target data to be operated is located, then reading the target logical data block in a main memory, if the verification is successful, the corresponding operation is carried out on the target data in the read target logic data block, and the verification fails, and continuing to read the target logical data block in the spare memory and carrying out data consistency check on the target logical data block, and if the check is successful, carrying out corresponding operation on the target data in the read target logical data block. The VPD data are stored redundantly through the main memory and the standby memory, the VPD data reading success rate can be improved, in addition, the VPD data comprise a plurality of logic data blocks, when an operation request to the VPD exists, only the target logic data block where the target data to be operated are located can be read, the reading efficiency is improved, in addition, only the consistency check is needed to be carried out on the target logic data block, the consistency check is not needed to be carried out on all the VPD data, the problem of time consumption caused by the fact that the check is added to the low-speed memory can be effectively solved, the data checking efficiency can be improved, the accuracy of the read data is guaranteed when the VPD data are operated, and the influence on the correct operation of a system is avoided.
In a specific embodiment of the present application, the system further includes a data acquisition failure information returning module, configured to:
and after reading the target logic data block in the standby memory and carrying out data consistency check on the target logic data block based on a check value corresponding to the target logic data block in the standby memory, if the check fails, returning data acquisition failure information.
In a specific embodiment of the present application, the operation request is a read request, and the apparatus further includes a first write-back module, configured to:
after reading the target logic data block in the spare memory and performing data consistency check on the target logic data block based on the check value corresponding to the target logic data block in the spare memory, if the check is successful, writing the target logic data block read in the spare memory back to the main memory to replace the target logic data block in the main memory.
In a specific embodiment of the present application, the operation request is a modification request, and the data operation module 340 is configured to:
modifying the read target data in the target logic data block;
calculating the check value of the modified target logic data block;
and writing the modified target logic data block and the corresponding check value thereof back to the main memory and the spare memory, and replacing the target logic data block and the check value thereof in the main memory and the spare memory.
In a specific embodiment of the present application, the system further includes a data modification failure information returning module, configured to:
if the write back to the main memory and the spare memory fails, data modification failure information is returned.
In a specific embodiment of the present application, the system further includes a failure data labeling module, configured to:
if a write back to main memory or spare memory fails, the target logical data block is marked as stale data in the write back failed memory.
In one embodiment of the present application, there is a plurality of spare memories.
Corresponding to the above method embodiment, an embodiment of the present application further provides a computer, as shown in fig. 1, including a chassis management controller 110, a main memory 120, and a spare memory 130, where each memory corresponds to a separate channel and stores VPD data of the computer, where the VPD data includes a plurality of logical data blocks, and each logical data block corresponds to a check value;
and the chassis management controller 110 is configured to implement the steps of the VPD data operation method.
Corresponding to the above method embodiments, the present application further provides a computer readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the above VPD data operation method.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The principle and the implementation of the present application are explained in the present application by using specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.

Claims (10)

1. The VPD data operation method is characterized by being applied to a case management controller of a computer, wherein the computer is provided with a main memory and a standby memory, each memory corresponds to a single channel and stores VPD data of the computer, the VPD data comprises a plurality of logical data blocks, and each logical data block corresponds to a check value; the method comprises the following steps:
receiving an operation request for the VPD data;
determining a target logic data block where target data to be operated are located;
reading the target logic data block in the main memory, and performing data consistency check on the target logic data block based on a check value corresponding to the target logic data block in the main memory;
if the verification is successful, performing corresponding operation on the read target data in the target logic data block;
if the verification fails, reading the target logic data block in the standby memory, and performing data consistency verification on the target logic data block based on a verification value corresponding to the target logic data block in the standby memory;
and if the verification is successful, executing the step of performing corresponding operation on the read target data in the target logical data block.
2. The method according to claim 1, further comprising, after the reading the target logical data block in the spare memory and performing a data consistency check on the target logical data block based on a check value corresponding to the target logical data block in the spare memory, the method further comprising:
and if the verification fails, returning data acquisition failure information.
3. The method according to claim 1, wherein the operation request is a read request, and after the reading the target logical data block in the spare memory and performing a data consistency check on the target logical data block based on a check value corresponding to the target logical data block in the spare memory, the method further comprises:
and if the verification is successful, writing the target logic data block read in the spare memory back to the main memory to replace the target logic data block in the main memory.
4. The method according to claim 1, wherein the operation request is a modification request, and performing the corresponding operation on the target data in the read target logical data block comprises:
modifying the read target data in the target logic data block;
calculating the modified check value of the target logic data block;
and writing the modified target logic data block and the corresponding check value thereof back to the main memory and the spare memory, and replacing the target logic data block and the check value thereof in the main memory and the spare memory.
5. The method of claim 4, further comprising:
if write back to the main memory and the spare memory fails, data modification failure information is returned.
6. The method of claim 4, further comprising:
if a write back to the main memory or the spare memory fails, the target logical data block is marked as stale data in the write back failed memory.
7. The method according to any one of claims 1 to 6, wherein there are a plurality of spare memories.
8. The VPD data operation device is characterized by being applied to a case management controller of a computer, wherein the computer is provided with a main memory and a standby memory, each memory corresponds to a single channel and stores VPD data of the computer, the VPD data comprises a plurality of logical data blocks, and each logical data block corresponds to a check value; the device comprises:
an operation request receiving module, configured to receive an operation request for the VPD data;
the target logic data block determining module is used for determining a target logic data block where target data to be operated are located;
the first reading and checking module is used for reading the target logic data block in the main memory and carrying out data consistency checking on the target logic data block based on a checking value corresponding to the target logic data block in the main memory; if the verification is successful, triggering the data operation module, and if the verification is failed, triggering a second reading and verifying module;
the data operation module is used for performing corresponding operation on the read target data in the target logic data block;
the second read-check module is configured to read the target logical data block in the spare memory, and perform data consistency check on the target logical data block based on a check value corresponding to the target logical data block in the spare memory; and if the verification is successful, triggering the data operation module to execute the step of performing corresponding operation on the read target data in the target logic data block.
9. A computer is characterized by comprising a chassis management controller, a main memory and a spare memory, wherein each memory corresponds to a single channel and stores VPD data of the computer, the VPD data comprises a plurality of logical data blocks, and each logical data block corresponds to a check value;
the chassis management controller for implementing the steps of the VPD data manipulation method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the VPD data manipulation method according to any one of claims 1 to 7.
CN202010844735.8A 2020-08-20 2020-08-20 Computer and VPD data operation method, device and storage medium thereof Withdrawn CN112000513A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010844735.8A CN112000513A (en) 2020-08-20 2020-08-20 Computer and VPD data operation method, device and storage medium thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010844735.8A CN112000513A (en) 2020-08-20 2020-08-20 Computer and VPD data operation method, device and storage medium thereof

Publications (1)

Publication Number Publication Date
CN112000513A true CN112000513A (en) 2020-11-27

Family

ID=73472262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010844735.8A Withdrawn CN112000513A (en) 2020-08-20 2020-08-20 Computer and VPD data operation method, device and storage medium thereof

Country Status (1)

Country Link
CN (1) CN112000513A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527207A (en) * 2020-12-18 2021-03-19 深圳市元征科技股份有限公司 Method and device for storing data in EEPROM
CN113867994A (en) * 2021-09-27 2021-12-31 苏州浪潮智能科技有限公司 Case VPD information processing method and device, storage equipment and readable storage medium
CN114547033A (en) * 2022-02-22 2022-05-27 苏州浪潮智能科技有限公司 Method, system, equipment and storage medium for managing key product data

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110956284A (en) * 2019-11-15 2020-04-03 苏州浪潮智能科技有限公司 Method, system, equipment and storage medium for maintaining reliability of product information
CN111104256A (en) * 2019-11-30 2020-05-05 浪潮电子信息产业股份有限公司 Data reading method, device, equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110956284A (en) * 2019-11-15 2020-04-03 苏州浪潮智能科技有限公司 Method, system, equipment and storage medium for maintaining reliability of product information
CN111104256A (en) * 2019-11-30 2020-05-05 浪潮电子信息产业股份有限公司 Data reading method, device, equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527207A (en) * 2020-12-18 2021-03-19 深圳市元征科技股份有限公司 Method and device for storing data in EEPROM
CN113867994A (en) * 2021-09-27 2021-12-31 苏州浪潮智能科技有限公司 Case VPD information processing method and device, storage equipment and readable storage medium
CN113867994B (en) * 2021-09-27 2023-08-04 苏州浪潮智能科技有限公司 Cabinet VPD information processing method and device, storage equipment and readable storage medium
CN114547033A (en) * 2022-02-22 2022-05-27 苏州浪潮智能科技有限公司 Method, system, equipment and storage medium for managing key product data
CN114547033B (en) * 2022-02-22 2024-01-16 苏州浪潮智能科技有限公司 Method, system, equipment and storage medium for managing key product data

Similar Documents

Publication Publication Date Title
CN111104244B (en) Method and apparatus for reconstructing data in a storage array set
CN112000513A (en) Computer and VPD data operation method, device and storage medium thereof
US8862953B2 (en) Memory testing with selective use of an error correction code decoder
CN101369240A (en) System and method for managing memory errors in an information handling system
CN109344094B (en) Address mapping relation feedback method, device and equipment and readable storage medium
US11650880B2 (en) Write hole protection method and system for raid, and storage medium
CN103534688A (en) Data recovery method, storage equipment and storage system
CN108701005A (en) Data update technology
US20240143188A1 (en) Data processing method and apparatus, device, and readable storage medium
US9009548B2 (en) Memory testing of three dimensional (3D) stacked memory
CN109240943B (en) Address mapping relation feedback method, device and equipment and readable storage medium
CN110990207B (en) BPS memory test method, system, terminal and storage medium based on Whitley platform
CN117591009A (en) Data management method, storage device and server
CN106708445A (en) Link selection method and device
CN111221681A (en) Memory repairing method and device
CN113470723B (en) Method and device for testing read retry, readable storage medium and electronic equipment
CN112131040B (en) Wear balance management method and system for power-down backup area of smart card
CN112463019A (en) Data reading method and device
CN110544504A (en) test method, system and equipment for memory ADDDC function
CN111625199A (en) Method and device for improving reliability of data path of solid state disk, computer equipment and storage medium
CN117472287B (en) Redundant disk array inspection method, device, equipment and medium
CN114201320B (en) System block upgrading method and device, readable storage medium and electronic equipment
CN113424262A (en) Storage verification method and device
JP7400015B2 (en) Data storage device with data verification circuit
US11822829B2 (en) Method, device, and program product for data rebuilding

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20201127

WW01 Invention patent application withdrawn after publication