A method and device for information verification
The data verification method and system address manual input errors in storage management tables by validating storage information against actual conditions, enhancing data integrity and reducing risks during system transitions.
Patent Information
- Application Number
- CN202210302313.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-25
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2042-03-25
AI Technical Summary
Existing storage device management information tables rely on manual entry, which are prone to errors, resulting in inaccurate storage data management, especially when system migration or device replacement, which may lead to data loss or corruption.
An information verification method and device are provided. By acquiring target storage management information, the management information is verified according to the actual storage status of data in the storage system, including verification of storage space, data type and attribute information, ensuring the accuracy of management information.
By checking target storage management information in real time or periodically, troubleshooting errors, ensuring the accuracy of management information tables, avoiding data migration or storage system failures, and protecting data integrity.
Smart Images

Figure CN114625562B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular, to a method and device for information verification. Background Art
[0002] With the development of computer technology, the digitalization level of companies is getting higher and higher. Correspondingly, the generated data can be stored in a storage device for recording. For example, a bank can record user information and user transaction information in a storage device for checking and maintenance.
[0003] Considering that the data is often huge and the storage space of a single storage device is relatively limited, a storage system can be composed of multiple storage devices, and the data can be stored through the storage system. For example, a storage system can be composed of multiple large-capacity hard disks, and the data can be stored in the storage system. In this way, the storage space of the storage system is increased, and the storage requirements of the data can be met.
[0004] If data is stored through multiple storage devices, the data stored in different storage devices is different. Currently, in order to manage the data stored in the storage device, a storage management information table can be established. The storage management information table records the correspondence between the data and the storage device storing the data, and is used to manage the data stored in the storage system.
[0005] However, the current management information table relies on manual entry by technicians, which may result in input errors and is not conducive to the management of stored data. Summary of the Invention
[0006] In view of this, embodiments of this application provide a method and device for data verification, aiming to verify the management information of a storage system to avoid obtaining an incorrect management information table.
[0007] In a first aspect, an embodiment of this application provides a method for information verification. The method is used to verify the management information of the data stored in a storage system, and includes:
[0008] Obtain target storage management information, where the target storage management information is used to describe the storage situation of the data in the storage system;
[0009] Verify the target storage management information according to the actual storage situation of the data in the storage system, where the storage situation is used to indicate the storage location of the data in the storage system;
[0010] In response to the actual storage situation of the data in the storage system being different from the target storage management information, determine that the target storage management information is incorrect.
[0011] Optionally, first data is stored in the storage system, and the target storage management information includes the number of storage spaces occupied by the first data in the storage system, the number of the first storage space occupied by the first data in the storage system, and the number of the last storage space occupied by the first data in the storage system;
[0012] The method further includes:
[0013] Determine the number of the last storage space actually occupied by the first data in the storage system according to the number of storage spaces occupied by the first data in the storage system and the number of the first storage space occupied by the first data in the storage system;
[0014] In response to the number of the last storage space actually occupied by the first data in the storage system being different from the number of the last storage space occupied by the first data in the storage system in the target storage management information, determine that the target storage management information is incorrect.
[0015] Optionally, the target storage management information further includes the identifier of the storage space occupied by the first data in the storage system and the data type of the first data, and the method further includes:
[0016] In response to the data type of the first data not matching the data type indicated by the identifier of the storage space occupied by the first data in the storage system, determine that the target storage management information is incorrect.
[0017] Optionally, the target storage management information further includes the value of the attribute information of the first data;
[0018] The method further includes:
[0019] In response to the value of the attribute information of the first data being different from the pre-stored value range of the attribute information of the first data, determine that the target storage management information is incorrect.
[0020] Optionally, the target storage management information is manually entered by a technician, and the method further includes:
[0021] In response to the actual storage situation of the data in the storage system being the same as the target storage management information, record the target storage management information.
[0022] In a second aspect, an embodiment of the present application provides a device for information verification, and the device is used to verify the management information of the data stored in the storage system, including:
[0023] An acquisition module, configured to acquire target storage management information, where the target storage management information is used to describe the storage condition of data in the storage system;
[0024] A processing module, configured to verify the target storage management information according to the actual storage condition of the data in the storage system, where the storage condition is used to indicate the storage location of the data in the storage system; in response to the actual storage condition of the data in the storage system being different from the target storage management information, it is determined that there is an error in the target storage management information.
[0025] Optionally, first data is stored in the storage system, and the target storage management information includes the number of storage spaces occupied by the first data in the storage system, the number of the first storage space occupied by the first data in the storage system, and the number of the last storage space occupied by the first data in the storage system;
[0026] The processing module is further configured to determine the number of the last storage space actually occupied by the first data in the storage system according to the number of storage spaces occupied by the first data in the storage system and the number of the first storage space occupied by the first data in the storage system; in response to the number of the last storage space actually occupied by the first data in the storage system being different from the number of the last storage space occupied by the first data in the storage system in the target storage management information, it is determined that there is an error in the target storage management information.
[0027] Optionally, the target storage management information further includes the identifier of the storage space occupied by the first data in the storage system and the data type of the first data;
[0028] The processing module is further configured to determine that there is an error in the target storage management information in response to the data type of the first data not matching the data type indicated by the identifier of the storage space occupied by the first data in the storage system.
[0029] Optionally, the target storage management information further includes the value of the attribute information of the first data;
[0030] The processing module is further configured to determine that there is an error in the target storage management information in response to the value of the attribute information of the first data being different from the value range of the attribute information of the first data stored in advance.
[0031] Optionally, the target storage management information is manually input by a technician.
[0032] The processing module is further configured to record the target storage management information in response to the actual storage situation of the data in the storage system being the same as the target storage management information.
[0033] In a third aspect, an embodiment of the present application provides a device, which includes a memory and a processor. The memory is used to store instructions or codes, and the processor is used to execute the instructions or codes so that the device executes the data verification method according to any one of the foregoing first aspects.
[0034] In a fourth aspect, an embodiment of the present application provides a computer storage medium, in which codes are stored. When the codes are run, the device running the codes implements the data verification method according to any one of the foregoing first aspects.
[0035] An embodiment of the present application provides a data verification method and apparatus. The method can be used to verify the management information of the data stored in the storage system. Specifically, when executing the data verification method, the target storage management information can be obtained first. The target storage management information is the information to be recorded in the management information table and is used to describe the storage situation of the data in the storage system. Then, the target storage management information can be verified according to the actual storage situation of the data in the storage system. The actual storage situation of the data in the storage system is used to indicate the actual storage location of the data in the storage system. If the actual storage situation of the data in the storage system is different from the storage situation indicated by the target storage management information, it is determined that there is an error in the target storage management system, and the target storage management system is refused to be entered into the management information table. In this way, before entering the target storage management information into the management information table, verifying it according to the actual storage situation of the data in the management system can eliminate the errors in the target storage management information and obtain a correct management information table. Description of the Drawings
[0036] To more clearly illustrate the technical solutions in this embodiment or the prior art, the following will briefly introduce the drawings required for the description of the embodiment or the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0037] Figure 1 It is a flowchart of the data verification method provided by the embodiment of the present application;
[0038] Figure 2 It is a schematic structural diagram of a data verification apparatus provided by the embodiment of the present application. Detailed Embodiments
[0039] The back-end systems of large enterprises such as banks are often implemented based on mainframe computers. The mainframe computers have a relatively high storage configuration capacity, usually above hundreds of TB. The number of storage volume addresses to be managed is huge, usually above tens of thousands of independent addresses. In order to manage the data stored in the storage system, a management information table can be established, and the management information table records the relevant information of the data stored at each storage address.
[0040] However, the data content in the management information table is complex and miscellaneous. Manual entry is prone to errors, and at the same time, the workload of troubleshooting incorrect data is large and it is difficult to be discovered. Especially in scenarios such as system migration of the storage system, relocation of storage devices, and replacement of old and new storage devices, all rely on the management information table to carry out work. If there are errors in the management information table, it may lead to the failure of data migration or storage system migration, resulting in data loss or damage.
[0041] To solve the above problems, the embodiments of the present application provide a data verification method and device. Among them, the data verification method can be applied to a verification system. The verification system can be a software system running on a computer or a server, and is used to verify the target storage management information to be entered into the management information table.
[0042] Next, from the perspective of the intermediate platform, the data verification method provided by the embodiments of the present application will be described. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0043] See Figure 1 , Figure 1 which is a flowchart of a method for the data verification method provided by the embodiments of the present application, including:
[0044] S101: Obtain target storage management information.
[0045] Before entering the target storage management information into the management information table, the target storage management information can be obtained first and the target storage management information can be verified. Specifically, if the target storage management information is manually entered into the management information table by a technician, the target storage management information can be verified in real time. For example, the verification system can monitor the input situation of the management information table. Every time the verification system detects that a technician inputs information into the management information table, the verification system can obtain the target storage management information once. Among them, the target storage management information obtained by the verification system can include the data that has been recorded in the management information table, or the data that will be recorded in the management information table.
[0046] In some possible implementation manners, the information stored in the management information table may also be periodically verified. Accordingly, the verification system may periodically obtain the target storage management information from the management information table.
[0047] In the embodiments of the present application, the target storage management information may include any one or more of the following items: device manufacturer, device number, storage management unit, unit address range, number of unit addresses, system name, subsystem category, subsystem name, SMS group name, SMS group category, address allocation range, number of address allocations, storage volume label, storage type, change date, change type, reason for change, and remarks.
[0048] S102: Verify the target storage management information according to the actual storage situation of the data in the storage system.
[0049] After obtaining the target storage management information, the verification platform may verify the target storage management information according to the actual storage situation of the data in the storage system.
[0050] In addition, the verification platform may also verify the target storage management information based on the target storage management information itself. That is to say, the verification platform may verify some information in the target management information against other information in the target management information. Some specific implementation manners are introduced below.
[0051] In the first implementation manner, the verification platform verifies the information related to the storage space in the target management information.
[0052] The storage device may be divided into one or more storage spaces, and each storage space may be used to store a certain amount of data. If the data to be stored is relatively large, the data may be stored in multiple adjacent storage spaces. Assume that the storage system stores the first data through multiple storage spaces. The management information table may record the number of the first storage space in the storage system where the first data is stored, the number of the last storage space in the storage system where the first data is stored, and the number of storage spaces occupied by the first data.
[0053] When verifying the target storage management information, the verification platform can verify the remaining one based on any two of the number of the storage space that stores the first data for the first time in the storage system, the number of the storage space that stores the first data for the last time in the storage system, and the number of storage spaces occupied by the first data. For example, the verification platform can calculate the number of the storage space that stores the first data for the last time in the storage system according to the number of the storage space that stores the first data for the first time in the storage system and the number of storage spaces occupied by the first data. Then, it can compare whether the calculated number is consistent with the number of the storage space that stores the first data for the last time in the storage system recorded in the target storage management information. If they are inconsistent, the verification platform determines that the target storage management system is inaccurate.
[0054] In the second implementation, the verification platform verifies the data type of the first data according to the identifier of the storage space storing the data.
[0055] Specifically, to ensure the orderliness of the storage system, the data type of the data stored in the storage space can be set, and the data type of the data stored in the storage space is reflected by the identifier of the storage space. For example, assuming that the length of the identifier of the storage space is six digits, then the data type of the data stored in the storage space can be reflected by the second digit of the identifier of the storage space, or by the second to fourth digits of the identifier of the storage space.
[0056] Among them, the data type can include any one or more of the following: shared storage, database data storage, report storage, tool storage, system cache storage, log storage, user storage, basic software-related storage, middleware software storage, system directory storage, communication software storage, database product storage, tool product storage, and database monitoring tool product storage.
[0057] Correspondingly, after obtaining the target storage management information, it can be judged according to the identifier of the storage space in the target storage management information and the data type of the data stored in the storage space. For example, assuming that the target storage management information can include the data type of the first data and the identifier of the storage space storing the first data. Correspondingly, the verification platform compares whether the data type according to the first data matches the data type indicated by the identifier of the storage space storing the first data. If they do not match, the verification platform determines that the target storage management system is inaccurate.
[0058] In the third possible implementation, the verification platform can verify the specific value of the data.
[0059] The verification platform can restrict the values of certain data in the management information table. Among them, the certain data may include, for example, the attribute information of the first data. That is to say, when a technician inputs the value of the attribute information of the first data into the management information table, the verification platform can verify whether the data input by the technician is legal.
[0060] Specifically, the target storage management information may include the value of the attribute information of the first data. The value of the attribute information of the first data may be input by the technician and has not been recorded in the management information table yet. Then, the verification platform can determine whether the value of the attribute information of the first data is the same as the preset value range of the attribute information of the first data. If not, the verification platform determines that the target storage management system is inaccurate.
[0061] S103: In response to the actual storage situation of the data in the storage system being different from the target storage management information, determine that there is an error in the target storage management information.
[0062] If the actual storage situation of the data in the storage system is different from the target storage management information, the verification receipt determines that there is an error in the target storage management information. Then, the verification platform can issue an alarm message to prompt the technician that there is an error in the target storage management information.
[0063] If the actual storage situation of the data in the storage system is the same as the target storage management information, the verification platform can store the target storage management information into the management information table.
[0064] The embodiment of the present application provides a method for data verification. The method can be used to verify the management information of the data stored in the storage system. Specifically, when executing the method for data verification, the target storage management information can be obtained first. The target storage management information is the information to be recorded in the management information table and is used to describe the storage situation of the data in the storage system. Then, the target storage management information can be verified according to the actual storage situation of the data in the storage system. The actual storage situation of the data in the storage system is used to indicate the actual storage location of the data in the storage system. If the actual storage situation of the data in the storage system is different from the storage situation indicated by the target storage management information, it is determined that there is an error in the target storage management system, and the target storage management system is refused to be entered into the management information table. In this way, before entering the target storage management information into the management information table, verifying it according to the actual storage situation of the data in the management system can eliminate the errors in the target storage management information and obtain a correct management information table.
[0065] The above are some specific implementation manners of the method for data transmission provided by the embodiments of the present application. Based on this, the present application also provides a corresponding device. Next, the device provided by the embodiments of the present application will be introduced from the perspective of functional modularization.
[0066] Refer to Figure 2 the schematic structural diagram of the data transmission device 200 shown in the figure. The device 200 includes an acquisition module 210 and a processing module 220.
[0067] Among them, it includes:
[0068] The acquisition module 210 is configured to acquire target storage management information, where the target storage management information is used to describe the storage situation of data in the storage system.
[0069] The processing module 220 is configured to verify the target storage management information according to the actual storage situation of the data in the storage system, where the storage situation is used to indicate the storage location of the data in the storage system; in response to the actual storage situation of the data in the storage system being different from the target storage management information, it is determined that the target storage management information is incorrect.
[0070] The embodiments of the present application provide a data verification device. Specifically, target storage management information can be acquired first. The target storage management information is the information to be recorded in the management information table and is used to describe the storage situation of data in the storage system. Then, the target storage management information can be verified according to the actual storage situation of the data in the storage system. The actual storage situation of the data in the storage system is used to indicate the actual storage location of the data in the storage system. If the actual storage situation of the data in the storage system is different from the storage situation indicated by the target storage management information, it is determined that the target storage management system is incorrect, and the target storage management system is refused to be entered into the management information table. In this way, before entering the target storage management information into the management information table, verifying it according to the actual storage situation of the data in the management system can eliminate errors in the target storage management information and obtain a correct management information table.
[0071] Optionally, in some possible implementations, the storage system stores first data, and the target storage management information includes the number of storage spaces occupied by the first data in the storage system, the number of the first storage space occupied by the first data in the storage system, and the number of the last storage space occupied by the first data in the storage system.
[0072] The processing module 220 is further configured to determine the number of storage spaces occupied by the first data in the storage system and the number of the first storage space occupied by the first data in the storage system, and determine the number of the last storage space actually occupied by the first data in the storage system; in response to the number of the last storage space actually occupied by the first data in the storage system being different from the number of the last storage space occupied by the first data in the storage system in the target storage management information, determine that there is an error in the target storage management information.
[0073] Optionally, in some possible implementations, the target storage management information further includes the identifier of the storage space occupied by the first data in the storage system and the data type of the first data.
[0074] The processing module 220 is further configured to determine that there is an error in the target storage management information in response to the data type of the first data not matching the data type indicated by the identifier of the storage space occupied by the first data in the storage system.
[0075] Optionally, in some possible implementations, the target storage management information further includes the value of the attribute information of the first data.
[0076] The processing module 220 is further configured to determine that there is an error in the target storage management information in response to the value of the attribute information of the first data being different from the pre-stored value range of the attribute information of the first data.
[0077] Optionally, in some possible implementations, the target storage management information is manually input by a technician, and the processing module 220 is further configured to record the target storage management information in response to the actual storage situation of the data in the storage system being the same as the target storage management information.
[0078] The embodiments of the present application further provide corresponding devices and computer storage media for implementing the solutions provided by the embodiments of the present application.
[0079] Among them, the device includes a memory and a processor, the memory is used to store instructions or codes, and the processor is used to execute the instructions or codes so that the device executes the data verification method described in any embodiment of the present application.
[0080] The computer storage medium stores codes, and when the codes are run, the device running the codes implements the data verification method described in any embodiment of the present application.
[0081] In the embodiments of the present application, the "first", "second" (if any) in names such as "the first" and "the second" are only used as name identifiers and do not represent the first and second in sequence.
[0082] From the description of the above embodiments, those skilled in the art can clearly understand that all or part of the steps in the above embodiment methods can be implemented by means of software plus a general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, and the computer software product can be stored in a storage medium, such as a read-only memory (ROM) / RAM, magnetic disk, optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network communication device such as a router) to execute the methods described in various embodiments or some parts of the embodiments of the present application.
[0083] Each embodiment in this specification is described in a progressive manner. The same or similar parts between the embodiments can be referred to each other, and the differences between each embodiment and other embodiments are emphasized. In particular, for the device embodiment, since it is basically similar to the method embodiment, it is described relatively simply, and the relevant parts can be referred to the partial description of the method embodiment. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative efforts.
[0084] The above description is only an exemplary embodiment of the present application and is not used to limit the protection scope of the present application.
Claims
1. A method for information verification, characterized in that The method is used to verify the management information of the data stored in the storage system, including: Obtain target storage management information, where the target storage management information is used to describe the storage situation of the data in the storage system; wherein, the target storage management information includes any one or more of the following: device manufacturer, device number, storage management unit, unit address range, number of unit addresses, system name, subsystem category, subsystem name, SMS group name, SMS group category, address allocation range, number of address allocations, storage volume label, storage type, change date, change type, reason for change, and remarks; Verify the target storage management information according to the actual storage situation of the data in the storage system, where the storage situation is used to indicate the storage location of the data in the storage system; In response to the actual storage situation of the data in the storage system being different from the target storage management information, determine that there is an error in the target storage management information; Wherein, the storage system stores first data, and the target storage management information includes the number of storage spaces occupied by the first data in the storage system, the number of the first storage space occupied by the first data in the storage system, and the number of the last storage space occupied by the first data in the storage system; The method further includes: Determine the number of the last storage space actually occupied by the first data in the storage system according to the number of storage spaces occupied by the first data in the storage system and the number of the first storage space occupied by the first data in the storage system; In response to the number of the last storage space actually occupied by the first data in the storage system being different from the number of the last storage space occupied by the first data in the storage system in the target storage management information, determine that there is an error in the target storage management information.
2. The method according to claim 1, characterized in that, The target storage management information further includes the identifier of the storage space occupied by the first data in the storage system and the data type of the first data, and the method further includes: In response to the data type of the first data not matching the data type indicated by the identifier of the storage space occupied by the first data in the storage system, determine that there is an error in the target storage management information.
3. The method according to claim 1, wherein The target storage management information further includes the value of the attribute information of the first data; The method further includes: In response to the value of the attribute information of the first data being different from the value range of the attribute information of the first data stored in advance, determine that there is an error in the target storage management information.
4. The method according to any one of claims 1 to 3, characterized in that, The target storage management information is manually input by a technician, and the method further includes: In response to the actual storage situation of the data in the storage system being the same as the target storage management information, record the target storage management information.
5. An information verification device, characterized in that, The device is used to verify the management information of the data stored in the storage system, including: An acquisition module, configured to acquire target storage management information, where the target storage management information is used to describe the storage situation of data in the storage system; wherein, the target storage management information includes any one or more of the following: device manufacturer, device number, storage management unit, unit address range, number of unit addresses, system name, subsystem category, subsystem name, SMS group name, SMS group category, address allocation range, number of address allocations, storage volume label, storage type, change date, change type, reason for change, and remarks; A processing module, configured to verify the target storage management information according to the actual storage situation of the data in the storage system, where the storage situation is used to indicate the storage location of the data in the storage system; in response to the actual storage situation of the data in the storage system being different from the target storage management information, determine that there is an error in the target storage management information; Wherein, a first data is stored in the storage system, and the target storage management information includes the number of storage spaces occupied by the first data in the storage system, the number of the first storage space occupied by the first data in the storage system, and the number of the last storage space occupied by the first data in the storage system; The processing module is further configured to determine the number of the last storage space actually occupied by the first data in the storage system according to the number of storage spaces occupied by the first data in the storage system and the number of the first storage space occupied by the first data in the storage system; in response to the number of the last storage space actually occupied by the first data in the storage system being different from the number of the last storage space occupied by the first data in the storage system in the target storage management information, determine that there is an error in the target storage management information.
6. The device according to claim 5, characterized in that The target storage management information further includes the identifier of the storage space occupied by the first data in the storage system and the data type of the first data; The processing module is further configured to determine that there is an error in the target storage management information in response to the data type of the first data not matching the data type indicated by the identifier of the storage space occupied by the first data in the storage system.
7. The device according to claim 5, characterized in that The target storage management information further includes the value of the attribute information of the first data; The processing module is further configured to determine that there is an error in the target storage management information in response to the value of the attribute information of the first data being different from the pre-stored value range of the attribute information of the first data.
8. The device according to any one of claims 5 to 7, characterized in that, The target storage management information is manually input by a technician, The processing module is further configured to record the target storage management information in response to the actual storage situation of the data in the storage system being the same as the target storage management information.
Citation Information
Patent Citations
Large file cloud synchronization method and system
CN107770273A