A rapid maintenance method for an airborne storage system
By dividing logical disk area A and maintenance disk area X in the onboard storage system, formatting operations are realized without affecting file access, solving the problem of degradation in electronic disk file system efficiency and improving system performance and stability.
Patent Information
- Application Number
- CN202111636755.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-29
- Publication Date
- 2025-07-04
- Estimated Expiration
- 2041-12-29
AI Technical Summary
After using the electronic disk of the existing on-board storage system for a period of time, due to the continuous increase in the file system structure, the efficiency of searching information is reduced, which affects the efficiency of file operation. There is also a lack of effective and rapid maintenance methods to optimize file storage location and ensure system stability.
By dividing the physical space of the electronic disk into logical disk area A and maintenance disk area X, and without affecting the access of the original file, the maintenance disk area X is used to format the file system, including file copying and verification, to ensure that the system can be restored in the event of unexpected power failure.
It realizes a fast, safe and reliable maintenance process of the onboard storage system, improves system performance, reduces the incidence of failures, and has the ability to recover from interrupts and errors.
Smart Images

Figure BDA0003442554780000061 
Figure BDA0003442554780000071 
Figure BDA0003442554780000101
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of embedded computer technology, and particularly to a method for rapid maintenance of an airborne storage system. Background Art
[0002] The Integrated Modular Avionics (IMA) system architecture is the mainstream architecture model of current avionics systems. Constructing complex avionics systems using reconfigurable general-purpose modules helps improve the availability of the system, increase the robustness of the system, and significantly reduce the volume, power consumption, and full life cycle cost of the system.
[0003] A Line Replaceable Module (LRM) is the basic hardware unit of an IMA system, providing one or more structural functions in an avionics system, and having characteristics such as high integration, generalization, fault isolation, and self-detection and maintenance interfaces. A typical IMA core system may include 2 general data processing modules (DPMs), 2 input / output interface modules (IOMs), 1 central data storage module (CMM), 2 airborne network switching modules (NSMs), and 2 power supply modules (PSMs), etc. The modules are interconnected through a Fiber Channel Avionic Environment (FC-AE). Among them, the central data storage module undertakes the storage and management tasks of central maintenance fault information, flight management navigation database, terrain awareness warning database, blueprint configuration data, status of application software of various systems of the whole aircraft, and avionics system fault information. An 8G electronic disk is designed in the module, and an embedded highly reliable transactional file system is used to store the navigation database of the flight management software and the fault data of the central maintenance software.
[0004] Due to the unique design of the transactional file system, after the electronic disk is actually used for a period of time, since the structure of the file system itself will continuously increase, the time for finding valid information will continue to grow, affecting the actual file operation efficiency. Therefore, it is necessary to maintain the electronic disk at an appropriate time to give full play to its optimal performance. Summary of the Invention
[0005] In view of this, embodiments of the present disclosure provide a method for quickly maintaining an airborne storage system. In engineering applications, it is necessary to perform a file system layer formatting operation on the electronic disk while ensuring the existence of files on the electronic disk, so as to minimize the structure of the file system itself, optimize the file storage location, and enable it to exert its optimal performance. Therefore, in view of the current situation and characteristics of the airborne system, the present invention designs a method for quickly maintaining an airborne storage system. By adding a logical partition maintenance disk X as a temporary storage point, a file system formatting operation can be performed without affecting the original file access, and it can ensure that the system can be effectively restored after abnormal situations such as accidental power-off occur at various time points during the operation, realizing the safety and reliability of the entire maintenance process.
[0006] To achieve the above object, the present invention provides the following technical solutions:
[0007] A method for quickly maintaining an airborne storage system, comprising the following steps:
[0008] Step (1): Divide the physical space of the electronic disk, including: logical disk area A and maintenance disk area X;
[0009] Step (2): Traverse the file list of the logical disk area A to generate directory tree A respectively, and traverse the file list of the maintenance disk area X to generate directory tree X;
[0010] Step (3): According to the directory tree A, copy files from the logical disk area A to the maintenance disk area X in sequence. During this process, a check file is generated in the logical disk area A according to the read content;
[0011] Step (4): Open the check file in the logical disk area A, and according to the directory tree A, read the files in the maintenance disk area X in sequence and compare them with the check file in the logical disk area A;
[0012] Step (5): Format the logical disk area A;
[0013] Step (6): Traverse the file list of the logical disk area A to generate directory tree A respectively, and traverse the file list of the maintenance disk area X to generate directory tree X;
[0014] Step (7): According to the directory tree X, copy files from the maintenance disk area X to the logical disk area A in sequence. During this process, a check file is generated in the logical disk area X according to the read content;
[0015] Step (8): Open the check file in the maintenance disk area X, and according to the directory tree X, read the files in the logical disk area A in sequence and compare them with the check file in the logical disk area X;
[0016] Step (9): Format the maintenance disk area X.
[0017] Further, in the step (1), the physical space division of the electronic disk further includes: a logical disk A replacement area and a maintenance disk X replacement area, which are used to replace the logical disk A area and the maintenance disk X area respectively when the logical disk A area and the maintenance disk X area cannot be accessed or formatted normally.
[0018] Further, the physical space of the electronic disk can be divided into one or more of the logical disk A areas.
[0019] Further, before performing the step (2), a maintenance trigger condition judgment is first performed. The maintenance trigger includes automatic trigger and manual trigger;
[0020] The automatic trigger conditions include: after the system is powered on, according to the threshold, during the system initialization process, steps (2)-(8) are automatically performed, where the threshold can be set according to the cumulative power-on time and the detected file read and write speed.
[0021] Further, the manual trigger conditions include: through the display interface, during the ground maintenance stage, notify the ground crew, manually trigger through an instruction, perform steps (2)-(8), and prompt the progress and a do not power off warning during the operation; the instruction includes the system cumulative power-on time, the cumulative natural time, and the detected file read and write speed.
[0022] Further, in the steps (3)-(9):
[0023] During the data copy process, the method of calculating the check data during successive copying and synthesizing multiple times is adopted, and error correction processing is separately performed on the abnormal branches of each step.
[0024] Further, the method of calculating the check during the check data process includes CRC check or MD5 check.
[0025] Further, in the step (3), when copying a file from the logical disk A area to the maintenance disk X area, if there is a file with the same name, it is overwritten.
[0026] In view of the current situation and characteristics of the airborne system, the present invention designs a rapid maintenance method for an airborne storage system. By adding a logical partition X as a temporary storage point, the file system can be formatted without affecting the original applications, and it can ensure the power-off recovery of the system at each time point during the operation, realizing the safety and reliability of the whole process. The beneficial effects of the present invention are as follows:
[0027] 1. It can conveniently realize the rapid maintenance operation of the airborne storage system, which helps to improve the system performance and reduce the failure rate;
[0028] 2. It can be flexibly realized in various ways such as automatic or manual.
[0029] 3. The operation process is safe and reliable, and has the ability to recover from interruptions and errors;
[0030] 4. The verification method is flexible and optional and has high efficiency;
[0031] 5. The operation process is symmetric before and after, which is convenient for the reuse of software components, improves reliability, reduces the amount of code and lowers the development difficulty. Specific Embodiment
[0032] The embodiments of the present disclosure will be described in detail below.
[0033] The following uses specific specific examples to illustrate the implementation manners of the present disclosure. Those skilled in the art can easily understand other advantages and effects of the present disclosure from the content disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments. The present disclosure can also be implemented or applied through other different specific implementation manners. Various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that, without conflict, the following embodiments and the features in the embodiments can be combined with each other. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present disclosure without making creative efforts belong to the scope of protection of the present disclosure.
[0034] It should be noted that the following describes various aspects of the embodiments within the scope of the appended claims. It should be apparent that the aspects described herein can be embodied in a wide variety of forms, and any specific structure and / or function described herein is illustrative only. Based on the present disclosure, those skilled in the art should understand that one aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number of aspects described herein can be used to implement the device and / or practice the method. In addition, this device and / or this method can be implemented using other structures and / or functions in addition to one or more of the aspects described herein.
[0035] In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, those skilled in the art will understand that the aspects can be practiced without these specific details.
[0036] The method for quickly maintaining the airborne storage system in the embodiments of the present disclosure specifically includes the following content.
[0037] 1) Design of the electronic disk storage solution
[0038] The physical space of the electronic disk is divided into the following parts: the logical disk A area, the maintenance disk X area, the logical disk A replacement area, and the maintenance disk X replacement area. The size of the replacement area is generally 1 / 10 of the physical space configured for the logical disk. The principle is that the capacities of the logical disk A area and the maintenance disk X area are equal. If the application requires more than two logical disks, they need to be divided into logical disks A / B / C..., and at this time, the maintenance disk X area can be shared, with a size equal to the largest value among the sizes of logical disks A / B / C, and so on, as shown in Table 1.
[0039] Table 1: Physical Space Division of Logical Disks
[0040]
[0041]
[0042] 2) File Copy Process
[0043] Here, take one logical disk A area and one maintenance disk X area as an example.
[0044] A. Traverse the file list in the logical disk A area to generate directory tree A, and traverse the file list in the maintenance disk X area to generate directory tree X;
[0045] Exception Branch:
[0046] a. If the traversal of the file list fails, it indicates that the disk is damaged and cannot be solved at the software level. Report an error 1.a and exit;
[0047] b. There are no files in the logical disk A area:
[0048] b.1. If there are no files in the maintenance disk X area, report an error 1.b.1 and exit;
[0049] b.2. If there are files in the maintenance disk X area, it indicates that the power was lost during the formatting of the logical disk A area in steps 4 - 5. Jump to step 6;
[0050] c. If the logical disk A area contains a check file, it means that the process was interrupted at some time during steps 2 - 3 last time. Then delete the check file and return to step 1;
[0051] d. If there are files in the logical disk A area but no check file, and there are files and a check file in the maintenance disk X, it means that the power was lost during steps 6 - 7 last time. Jump to step 5;
[0052] e. In other cases, the system is no longer reliable. Report an error 1.e and exit;
[0053] B. According to directory tree A, copy the files from the logical disk A to the maintenance disk X in sequence (regardless of whether there are files in the maintenance disk X at this time, that is, if there are files with the same name, overwrite and write). During this process, generate a check file in the logical disk A area according to the read content;
[0054] Abnormal branch:
[0055] a. The copy (including reading logical disk A and writing maintenance disk X) fails, retry, and report an error and exit with 2.a after 3 consecutive failures;
[0056] b. The verification file operation (including creation, writing, closing) fails, retry the entire step 2, and report an error and exit with 2.b after 3 consecutive failures;
[0057] C. Open the verification file in logical disk A, read the files in maintenance disk X in sequence according to the directory tree, and compare them with the verification file in logical disk A;
[0058] Abnormal branch:
[0059] a. If the comparison fails, you can return to step 1 to retry or directly report an error and exit with 3.a;
[0060] D. Format logical disk A;
[0061] Abnormal branch:
[0062] a. If the formatting operation returns a failure, it is unlikely. If it occurs, it cannot be solved at the software level, report an error and exit with 4.a;
[0063] E. Traverse the file list of logical disk A to generate directory tree A, traverse the file list of maintenance disk X to generate directory tree X;
[0064] Abnormal branch:
[0065] a. If traversing the file list fails, the probability of occurrence in step 5 is low. If it occurs, it cannot be solved at the software level, report an error and exit with 5.a;
[0066] b. If there are no files on maintenance disk X, report an error and exit with 5.b;
[0067] c. If maintenance disk X contains a verification file, it means that it was interrupted at some time during the previous steps 6-7. Then delete the verification file and return to step 5;
[0068] F. According to directory tree X, copy the files from maintenance disk X to logical disk A in sequence, and generate a verification file in maintenance disk X according to the read content;
[0069] Abnormal branch:
[0070] a. The copy (including reading maintenance disk X and writing logical disk A) fails, retry, and report an error and exit with 6.a after 3 consecutive failures;
[0071] b. The verification file operation (including creation, writing, closing) fails, retry the entire step 6, and report an error and exit with 6.b after 3 consecutive failures;
[0072] G. Open the verification file in maintenance disk X, read the files in logical disk A sequentially according to directory tree X, and compare them with the verification file in maintenance disk X;
[0073] Exception branch:
[0074] a. If the comparison fails, directly report an error 7.a and exit;
[0075] H. Format maintenance disk X;
[0076] Exception branch:
[0077] a. If the formatting operation returns a failure, although it is unlikely, if it occurs, it cannot be solved at the software level, report an error 8.a and exit;
[0078] During the entire file copying process, the normal states of the files in logical disk A and maintenance disk X are shown in Table 2.
[0079] Table 2: File status in the logical disk
[0080]
[0081] 3) Trigger conditions
[0082] A. Automatic trigger
[0083] After the system is powered on, according to the threshold value, during the system initialization process, the above file copying operation can be automatically performed. In order to reduce the risk of system power failure, in the case of automatic trigger, it should be required that the system cannot be powered off within a certain period of time after being powered on.
[0084] There are two ways to set the threshold value:
[0085] a) Cumulative power-on time: After setting a time greater than a certain value, automatically trigger the operation, and after the operation process is completed correctly, clear this time.
[0086] b) Detect the file read / write speed: Set the file read / write speed threshold, automatically detect it after power-on, and automatically perform the operation when it is lower than this threshold.
[0087] B. Manual trigger
[0088] Through the display interface, during the ground maintenance stage, notify the ground crew to manually trigger the file copying operation through instructions, and prompt the progress and the warning of not powering off during the operation process.
[0089] Notification formatting conditions:
[0090] a) Cumulative power-on time: After setting a time greater than a certain value, send an indication to the display interface, and after the operation process is completed correctly, clear this time.
[0091] b) Cumulative natural time: After the display interface sets a time difference greater than a certain value according to natural time, formatting is required for display.
[0092] c) Detect file read and write speed: Set a threshold for file read and write speed. After power-on, detection is automatically performed. When the speed is lower than the threshold, an indication is sent to the display interface.
[0093] 4) Verify file generation method
[0094] A. Data verification method
[0095] According to engineering experience, the read speed of transactional file systems has little difference. The write speed is related to the size of the written data and the storage medium. For a commonly used NandFlash-based electronic disk, its peak speed appears when the size of the written data is equal to the sector size of the medium. Considering that the data file verification function only checks for errors and does not correct them, in order to improve the system operation efficiency and cooperate with the data copy process, the method of calculating verification data during successive copying and synthesizing multiple times is adopted. That is, when copying data between logical partitions, the size of the single read and write data is equal to the sector size of the medium. After reading, the verification code is calculated immediately. The verification codes obtained from multiple reads of a single file are summed to obtain the final verification code of the single file. The method of calculating the verification code can be flexibly selected from existing mature algorithms, including but not limited to CRC verification, MD5 verification, etc.
[0096] B. Design of verification file
[0097] a) Naming of verification file: For convenient reference, the naming method of the verification file is uniformly designed as the logical drive letter + underscore + checkfile, and the file type is a text file. For example, "A_checkfile.txt".
[0098] b) Format of verification file: For convenient reference and software design, the format of the verification file is designed as a table. The storage information of each column is, in sequence, serial number, file name, file length, and file verification code. The first row is the table header, and the following rows are the information of each file in turn. Its example is shown in Table 3.
[0099] Table 3: Structure table of verification file
[0100] No. Filename Length CRC-32 1 rom.bin 113874 0x42196fe3 2 param.dat 2167 0x9231879c 3 dms.txt 35861 0x485d29d6 …… ……
[0101] Next, take a certain type of airborne computer as an example. The electronic disk of the computing node in this type of computer uses NandFlash as the storage medium, with a size of 8GB. The maintenance method of this embodiment is as follows:
[0102] 1) Design of electronic disk storage scheme
[0103] The physical space of the electronic disk is divided into the following four parts: logical disk A, maintenance disk X, and two independent replacement areas for each logical disk, with capacities of 3GB, 300MB for each replacement area respectively.
[0104] 2) Quick maintenance trigger conditions
[0105] A. Automatic trigger
[0106] After the system is powered on, during the system initialization process, the file copy operation can be automatically performed when either of the following two conditions is met: the cumulative power-on time is longer than 300 hours or the file read / write speed is lower than 30MB / s. To reduce the risk of system power-off, in the case of automatic trigger, it should be required that the system cannot be powered off within a certain period of time after being powered on.
[0107] B. Manual trigger
[0108] Every 90 days after the last maintenance (either automatic or manual), through the display interface, during the ground maintenance stage, the ground crew is notified to manually trigger the file copy operation through commands, and the progress and a warning of not powering off are prompted during the operation.
[0109] 2) File copy process
[0110] A. Traverse the file list of logical disk A to generate directory tree A, and traverse the file list of maintenance disk X to generate directory tree X;
[0111] B. According to directory tree A, copy files from logical disk A to maintenance disk X one by one (regardless of whether there are files in maintenance disk X, that is, if there are files with the same name, overwrite and write), and during this period, generate a verification file in logical disk A according to the read content;
[0112] C. Open the verification file in logical disk A, and according to directory tree A, read the files in maintenance disk X one by one and compare them with the verification file in logical disk A;
[0113] D. Format logical disk A;
[0114] E. Traverse the file list of logical disk A to generate directory tree A, and traverse the file list of maintenance disk X to generate directory tree X;
[0115] F. According to directory tree X, copy files from maintenance disk X to logical disk A one by one, and during this period, generate a verification file in maintenance disk X according to the read content;
[0116] G. Open the verification file in maintenance disk X, and according to directory tree X, read the files in logical disk A one by one and compare them with the verification file in maintenance disk X;
[0117] H. Format maintenance disk X.
[0118] In the embodiment of the present invention, by adding a logical partition maintenance disk X as a temporary storage point, the file system can perform a formatting operation without affecting the original file access, and can ensure that the system can be effectively restored after abnormal situations such as accidental power failure occur at various time points during the operation, realizing the safety and reliability of the entire maintenance process.
[0119] As mentioned above, the above are only specific embodiments of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or substitutions that can be easily thought of by those skilled in the art within the technical scope disclosed by the present disclosure should be covered by the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.
Claims
1. A rapid maintenance method for an airborne storage system, characterized in that, It includes the following steps: Step (1): Divide the physical space of the electronic disk, including: logical disk area A and maintenance disk area X; Step (2): Traverse the file list in the logical disk area A to generate directory tree A respectively, and traverse the file list in the maintenance disk area X to generate directory tree X; Step (3): According to the directory tree A, copy the files from the logical disk area A to the maintenance disk area X in sequence. During this process, generate a verification file in the logical disk area A according to the read content; Step (4): Open the verification file in the logical disk area A, read the files in the maintenance disk area X in sequence according to the directory tree A, and compare them with the verification file in the logical disk area A; Step (5): Format the logical disk area A; Step (6): Traverse the file list in the logical disk area A to generate directory tree A respectively, and traverse the file list in the maintenance disk area X to generate directory tree X; Step (7): According to the directory tree X, copy the files from the maintenance disk area X to the logical disk area A in sequence. During this process, generate a verification file in the logical disk area X according to the read content; Step (8): Open the verification file in the maintenance disk area X, read the files in the logical disk area A in sequence according to the directory tree X, and compare them with the verification file in the logical disk area X; Step (9): Format the maintenance disk area X; In the steps from (3) to (9): During the data copying process, calculate the verification data during successive copying and synthesize it multiple times, and perform error correction processing on the abnormal branches of each step respectively.
2. The rapid maintenance method of an airborne storage system according to claim 1, characterized in that: In the step (1), the physical space division of the electronic disk further includes: logical disk A replacement area and maintenance disk X replacement area, which are used to replace the logical disk area A and the maintenance disk area X respectively when the logical disk area A and the maintenance disk area X cannot be accessed or formatted normally.
3. A rapid maintenance method for an airborne storage system according to claim 1, characterized in that: The physical space of the electronic disk is divided into one or more logical disk areas A.
4. A method for rapid maintenance of an airborne storage system according to claim 1, characterized in that: Before performing the step (2), first judge the maintenance trigger condition. The maintenance trigger includes automatic trigger and manual trigger; The automatic trigger conditions include: after the system is powered on, according to the threshold, during the system initialization process, automatically perform steps (2) - (8), where the threshold is set according to the cumulative power-on time and the detected file read / write speed.
5. An airborne storage system fast maintenance method according to claim 4, characterized in that: The manual trigger conditions include: through the display interface, notify the ground crew during the ground maintenance stage, manually trigger through instructions to execute steps (2) - (8), and prompt the progress and no-power-down warning during the operation process; the instructions include the system cumulative power-on time, cumulative natural time, and detected file read / write speed.
6. A rapid maintenance method for an airborne storage system according to claim 1, characterized in that: The method of calculating verification during the verification data process includes CRC verification or MD5 verification.
7. A rapid maintenance method for an airborne storage system according to claim 1, characterized in that: In the step (3), when copying the file from the logical disk area A to the maintenance disk area X, if there is a file with the same name, it will be overwritten.
Citation Information
Patent Citations
Method for copying data between logical disks, program for copying data between logical disks, and disk controller
JP2004102815A
Logical disk reconstruction device, disk array device, and logical disk reconstruction method
JP2009199426A