Dual-arm multi-head hard disk abnormal power-off data protection method
By employing a data protection method for dual-arm multi-head hard drives, utilizing the PCIe-HDD controller unit and Checkpoint snapshot technology, data is written in parallel during abnormal power outages. This solves the problems of uncertain cached data range and insufficient write time, and achieves data integrity and consistency recovery.
Patent Information
- Application Number
- CN202611248627.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-18
- Publication Date
- 2026-11-27
AI Technical Summary
When backup power supply time is limited, how can we accurately define the range of cached data that needs to be protected and shorten the power outage write time of cached data to prevent data incompleteness and affect data recovery consistency?
It adopts a dual-arm multi-head hard drive. During normal power supply, the PCIe-HDD master control unit writes the data to be cached to the cache component and updates dirty data according to whether the data has been written to the hard drive. In the event of an abnormal power failure, it switches to backup power supply and writes the power failure snapshot security partition in parallel. After power is restored, the data is written to the corresponding partition according to the predetermined rules, and the Checkpoint snapshot and PQC security verification module are used to ensure data integrity.
The scope of data protection is clearly defined, reducing the risk of duplicate processing and omissions, shortening write time, and ensuring that data can be fully recovered after power-on.
Smart Images

Figure CN123178308A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data storage and hard disk abnormal power failure protection technology, and more specifically, to a method for protecting data from abnormal power failure of a dual-arm multi-head hard disk. Background Technology
[0002] The content in this section provides only background information related to this application and may not constitute prior art.
[0003] After a PCIe hard drive receives a write request from the host, it can first store the data to be written in a cache, and then write the data in the cache to the disk platter. In the event of an abnormal power outage, the external power supply will decrease or be interrupted within a short period of time. The cached data that has not yet been written to the disk platter needs to be protected within the limited time that the backup power supply can maintain; otherwise, the data to be written may not be completely saved.
[0004] For power failure protection methods that use a single write channel to serially write cached data to the disk, the time required to complete the write increases with the amount of cached data to be written. When there is a large amount of data to be written or the backup power supply can only last for a short time, it may be difficult to complete the writing of all data before the power supply is cut off, thus increasing the risk of incomplete cached data.
[0005] Furthermore, as the host continuously sends data and cached data is continuously written to the disk, the range of data that needs protection changes with the data writing progress. If the data range processed during an abnormal power outage does not accurately correspond to the data that has not yet been written to the disk, it may increase the amount of data processed during the power outage or cause data that still needs to be written to the disk to be missed, thereby affecting the utilization of the limited backup power supply time and the complete preservation of cached data. After power is restored, if the data saved during the power outage cannot continue to be written to the corresponding data area according to the original writing relationship, it may also affect the availability and consistency of the data after recovery.
[0006] Therefore, how to accurately define the range of cached data that needs to be protected under the condition of limited backup power supply time, and shorten the power failure write time of the cached data, is a technical problem that needs to be solved. Summary of the Invention
[0007] The summary section of this application is intended to provide a brief overview of the concepts, which will be described in detail in the detailed description section below. This summary section is not intended to identify key or essential features of the claimed technical solutions, nor is it intended to limit the scope of the claimed technical solutions.
[0008] Some embodiments of this application propose a method for protecting data from abnormal power failure of a dual-arm multi-head hard disk to solve the technical problems mentioned in the background section above.
[0009] As a first aspect of this application, some embodiments of this application provide a method for data protection against abnormal power failure of a dual-arm multi-head hard disk, including the following steps: Step 1: During normal power supply, the PCIe-HDD controller unit identifies the data sent by the host and waiting to be written to the hard disk as data to be cached, and writes the data to be cached to the cache component; Step 2: During normal power supply, the PCIe-HDD controller unit continuously updates the dirty data in the cache component based on whether the data in the cache component has been written to the hard disk. The dirty data is the data in the cache component that has not yet been written to the hard disk. Step 3: When an abnormal power failure is detected, the power failure monitoring and switching unit switches the dual-arm multi-head PCIe hard drive to backup power. The PCIe-HDD main control unit locks the dirty data in the cache component and controls the dual-arm execution unit to write the locked dirty data in parallel to the power failure snapshot security partition of the hard drive. Step 4: After power is restored, the PCIe-HDD controller reloads the dirty data in the power-off snapshot security partition written to the hard drive into the cache component, and writes the dirty data in the cache component into the corresponding data partition according to the predetermined write rules.
[0010] The technical solution of this application embodiment has at least the following advantages and beneficial effects: (1) The PCIe-HDD main control unit determines the data sent by the host and waiting to be written to the hard disk as cache data, and writes the cache data to the cache component, so that the source and initial range of the data entering the power failure protection chain are clear.
[0011] (2) During normal power supply, the PCIe-HDD main control unit continuously updates dirty data according to whether the cached data has been written to the hard disk, so that the power failure protection range corresponds to the data that has not yet been written to the hard disk, which can reduce the repeated processing of data that has been written and reduce the risk of missing data to be written.
[0012] (3) When an abnormal power failure is detected, the power failure monitoring and switching unit switches to backup power supply, the PCIe-HDD main control unit locks the dirty data in the cache component, and controls the dual-arm magnetic head execution unit to write the locked dirty data in parallel to the power failure snapshot security partition. This can prevent the data to be protected from continuing to change during the power failure process and shorten the overall writing time of dirty data under the condition of limited backup power supply time.
[0013] (4) After power is restored, the PCIe-HDD main control unit reloads the data in the power failure snapshot security partition written to the hard disk to the cache component, and writes the data in the cache component to the corresponding data partition according to the predetermined writing rules, so that the data saved during the power failure can continue to complete the writing of the target partition after power is restored.
[0014] (5) During normal power supply, the Checkpoint snapshot engine generates periodic Checkpoint snapshots. The PQC security verification module establishes the association between the snapshot and the PQC double signature verification information. The Checkpoint snapshot engine writes the power failure snapshot security partition and updates the snapshot index, so that the subsequent reading process can locate the Checkpoint with the corresponding verification information.
[0015] (6) When there is an abnormal power failure, the Checkpoint snapshot engine forms a new power failure Checkpoint snapshot based on the locked dirty data and corresponding metadata. The dual-arm parallel disk scheduler splits the dirty data according to the write channels of the two magnetic head arms. The dual-arm magnetic head execution unit writes the power failure snapshot security partition in parallel, so that the data state at the time of the power failure forms a snapshot result that can be read after power is restored.
[0016] (7) After power is restored, the PQC safety verification module verifies the PQC double signature verification information corresponding to the latest power failure checkpoint, and the rollback and verification module performs loading recovery or rejection loading and selects recovery benchmark according to the verification result. This can avoid continuing to load the latest power failure checkpoint when the verification fails and form a reportable recovery status or alarm status. Attached Figure Description
[0017] Figure 1 Flowchart of a data protection method for dual-arm multi-head hard disks in case of abnormal power failure.
[0018] Figure 2 Flowchart for creating periodic checkpoint snapshots, parallel writing during abnormal power outages, and recovery after power-on. Detailed Implementation
[0019] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with specific embodiments. The same reference numerals in the accompanying drawings represent the same components. It should be noted that the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the described embodiments of this application without creative effort are within the scope of protection of this application.
[0020] The dual-arm multi-head PCIe hard drive includes a PCIe-HDD controller unit, platter area, cache component, power failure monitoring and switching unit, dual supercapacitor module, Checkpoint snapshot engine, PQC security verification module, dual-arm parallel disk write scheduler, dual-arm head execution unit, rollback and verification module, and security audit module.
[0021] The disk area includes a user data partition, a power-off snapshot security partition, a rollback metadata area, and an audit log area. In this application, the data to be cached is data sent by the host and waiting to be written to the hard disk; Dirty data is data in the cache component that has not yet been written to disk.
[0022] A periodic checkpoint snapshot is a snapshot that is taken when the snapshot triggering conditions are met during normal power supply. A power outage checkpoint snapshot is a new snapshot created during an abnormal power outage based on locked dirty data and corresponding metadata.
[0023] The power outage checkpoint snapshot formed during the power outage serves as the latest checkpoint to be read and verified after power is restored.
[0024] The cache components are a unified cache object, including DRAM cache and NVM non-volatile cache.
[0025] Not all data in the NVM non-volatile cache is dirty data; the PCIe-HDD controller still determines whether the data is dirty data that needs to be protected when power is off based on whether the data has been written to the hard drive.
[0026] Example 1: This example takes a complete operation of the same dual-arm multi-head PCIe hard drive as the object, and continuously describes the caching and snapshot processing during normal power supply, the data fixation and parallel writing during abnormal power outage, and the verification and recovery after power is restored.
[0027] Data to be cached, dirty data, periodic checkpoint snapshots, power outage checkpoint snapshots, and recovery data are generated sequentially in the same preceding and following operating conditions.
[0028] During normal power supply, the PCIe-HDD master control unit writes the data to be cached to the cache component and continuously updates dirty data based on whether the data has been written to the hard disk. When the snapshot trigger condition is met, the Checkpoint snapshot engine generates a periodic Checkpoint snapshot. The PQC security verification module establishes the association between the snapshot and the PQC dual signature verification information. The Checkpoint snapshot engine writes the snapshot to the power-off snapshot security partition and updates the snapshot index.
[0029] In the event of an abnormal power outage, the power outage monitoring and switching unit switches to dual supercapacitor module power supply. The PCIe-HDD main control unit blocks new write requests and locks dirty data. The Checkpoint snapshot engine generates a new power outage Checkpoint snapshot, the PQC security verification module establishes verification information association, the dual-arm parallel disk write scheduler splits the dirty data according to the write channels of the two read / write arms, and the dual-arm read / write execution unit performs parallel writing. After the writing is completed, a power outage completion marker and audit record are generated, and the two read / write arms dock and the backup power supply is stopped. After power is restored, the system performs recovery or rejects loading and rollback according to the PQC verification results, and writes the data restored to the cache component to the corresponding data partition according to the predetermined write rules.
[0030] The above is a general overview of the implementation process. The following is a detailed implementation plan for this embodiment: like Figure 1 As shown, the data protection method for dual-arm multi-head hard disks during abnormal power failure includes the following steps: Step 1: During normal power supply, the PCIe-HDD controller receives write data from the host, identifies the data sent by the host and waiting to be written to the hard disk as cached data, and writes the cached data to the cache component.
[0031] Step 1 includes the following steps: Step 11: During normal power supply, the PCIe-HDD master control unit receives write data sent by the host and writes non-hotspot data from the data to be cached into the DRAM cache.
[0032] Step 12: The PCIe-HDD master unit writes hot data into the NVM non-volatile cache.
[0033] The DRAM cache stores non-hotspot data from the cached data, while the NVM non-volatile cache stores hotspot data from the cached data. This embodiment does not limit the specific identification threshold or identification algorithm for hotspot data; the identification method is based on existing technology.
[0034] For example, a dual-arm, multi-head PCIe hard drive continuously receives data written by the host during normal power supply. The PCIe-HDD controller writes non-hotspot data from the cache to the DRAM cache and writes hotspot data, determined by the cache management process, to the NVM non-volatile cache. As the disk operates normally, the PCIe-HDD controller maintains the data states of the two caches respectively, ensuring that data already written to the hard drive is removed from the cache components, while data not yet written to the hard drive remains stored in the cache components.
[0035] Step 2: During normal power supply, the PCIe-HDD controller unit continuously updates the dirty data in the cache component based on whether the data in the cache component has been written to the hard disk; Step 2 includes the following steps: Step 21: During normal operation, the PCIe-HDD master control unit maintains the data status in the DRAM cache and the NVM non-volatile cache respectively.
[0036] Once cached data has been written to disk, that data is no longer considered dirty data in the corresponding cache. If a cached piece of data has not yet been written to the hard drive, that data continues to be considered dirty data in the corresponding cache.
[0037] After hot data enters the NVM non-volatile cache, the PCIe-HDD controller unit still determines its status based on whether the data has been written to the hard drive, rather than automatically excluding it from the range of dirty data simply because it is in the non-volatile cache.
[0038] like Figure 2 As shown in step 22, the Checkpoint snapshot engine monitors the snapshot triggering conditions. When the snapshot triggering conditions are met, the Checkpoint snapshot engine reads the dirty data in the DRAM cache, the hot data in the NVM non-volatile cache, the mapping table, and the metadata at that moment.
[0039] Snapshot trigger conditions can be set periodically.
[0040] Step 23: The Checkpoint snapshot engine organizes the read data into periodic Checkpoint snapshots; Periodic checkpoint snapshots reflect cached data and corresponding management information at the time the snapshot is created, with mapping tables and metadata used to maintain the correspondence between snapshot data and disk data organization status.
[0041] Step 24: After the periodic Checkpoint snapshot is formed, the PQC security verification module establishes the association between the snapshot and the PQC dual-signature verification information.
[0042] Step 25: The Checkpoint snapshot engine writes the periodic Checkpoint snapshot associated with PQC double signature verification information to the power failure snapshot security partition and updates the snapshot index.
[0043] The snapshot index is used to indicate the checkpoints that have been saved in the security partition, so that the reading process after power-on can locate the corresponding snapshot and verification information according to the index.
[0044] For example, when a snapshot trigger condition is met during normal power supply, the Checkpoint snapshot engine reads dirty data from the DRAM cache, hot data from the NVM non-volatile cache, mapping tables, and metadata to form a periodic Checkpoint snapshot. The PQC security verification module associates this periodic Checkpoint snapshot with the corresponding PQC double-signature verification information. The Checkpoint snapshot engine writes the periodic Checkpoint snapshot and associated verification information to the power-down snapshot security partition and updates the snapshot index.
[0045] Step 3: When an abnormal power failure is detected, the power failure monitoring and switching unit switches the dual-arm multi-head PCIe hard drive to backup power. The PCIe-HDD main control unit locks the dirty data in the cache component and controls the dual-arm execution unit to write the locked dirty data in parallel to the power failure snapshot security partition of the hard drive.
[0046] Step 3 includes the following steps: like Figure 2 As shown in step 31, when the dual-arm multi-head PCIe hard drive processes a host write request, the power failure monitoring and switching unit continuously monitors the power supply status. When a voltage drop is detected, the power failure monitoring and switching unit sends a power failure interrupt to the PCIe-HDD main control unit and switches the hard drive from external power supply to dual supercapacitor module power supply. The dual supercapacitor module provides backup power to relevant units during subsequent power failure protection processes.
[0047] Step 32: The PCIe-HDD host control unit responds to the power failure interruption, blocking new write requests so that no new host write data enters the protected area during the power failure protection period. The PCIe-HDD controller unit simultaneously fixes the range of data that has not yet been written to the hard drive in the DRAM cache and NVM non-volatile cache according to the cache state when the abnormal power failure is triggered, locks all dirty data in both caches, and prevents the locked dirty data from being modified.
[0048] Step 33: The PCIe-HDD master control unit controls the writing of dirty data to the power-off snapshot security partition of the hard drive in the event of a power failure.
[0049] Step 33 includes the following steps: Step 331: After the dirty data is locked, the Checkpoint snapshot engine reads the locked dirty data and corresponding metadata to generate a new power-off Checkpoint snapshot.
[0050] This power outage checkpoint snapshot corresponds to the data state that was fixed at the time of the abnormal power outage, and serves as the latest checkpoint to be read and verified after power is restored.
[0051] Step 332: The PQC security verification module associates the new power-off Checkpoint snapshot with the PQC dual-signature verification information. This association enables the verification process after power-on to obtain the verification information corresponding to the current power-off Checkpoint; this embodiment does not limit the specific key relationship, signature object, or signing timing of the PQC dual signature.
[0052] Step 333: The dual-arm parallel disk write scheduler reads the locked dirty data, splits the dirty data according to the write channels corresponding to the two heads of the dual-arm read / write head execution unit, and sends the split dirty data to the corresponding heads.
[0053] This split establishes a correspondence between the data to be written and the write channels of the two read / write arms, but does not limit the specific splitting algorithm, allocation ratio, or channel mapping rules.
[0054] During the dual supercapacitor module power supply period, the PCIe-HDD master control unit controls the dual-arm magnetic head execution unit to perform power-off writing.
[0055] Specifically, the dual-arm read / write head execution unit writes its received dirty data in parallel through two read / write heads, and writes a new power-down checkpoint snapshot to the power-down snapshot safety partition. This locks the dirty data, corresponding metadata, and verification information into a power-down snapshot result that can be read upon power-up. The power-down snapshot safety partition is a predefined partition that can directly store data without verification during the current storage. Therefore, upon power-up, the verified and recovered data needs to be reloaded into the cache component, and the data in the cache component needs to be written to the corresponding data partition according to predetermined write rules.
[0056] Step 334: After parallel writing is completed, the dual-arm head execution unit returns write completion feedback to the PCIe-HDD master control unit. Upon receiving the completion feedback, the PCIe-HDD master control unit writes a power-off completion flag to the power-off snapshot security partition. The power-off completion flag corresponds to the write result of this power-off checkpoint and is used to identify the completion status of the previous power-off write when power is restored.
[0057] Step 335: The PCIe-HDD master control unit triggers the security audit module to generate an audit log and records the power outage event in the audit log.
[0058] The audit logs generated by the security audit module include event type, sequence number, timestamp, power status, snapshot index, signature, verification result, and corresponding information in the read / write head working status.
[0059] Thus, the handling of this abnormal power outage has completed a full chain, from power supply takeover, data fixation, snapshot generation, parallel writing to mechanical docking.
[0060] For example, before the normal writing process is completed, the power failure monitoring and switching unit detects a voltage drop, sends a power failure interrupt to the PCIe-HDD main control unit, and switches to power supply from the dual supercapacitor module.
[0061] The PCIe-HDD controller unit blocks new write requests, fixing and locking all dirty data that has not yet been written to the hard drive in the DRAM cache and NVM non-volatile cache.
[0062] The checkpoint snapshot engine generates a new power-down checkpoint snapshot based on the locked dirty data and corresponding metadata. The PQC security verification module associates this snapshot with PQC double-signature verification information. The dual-arm parallel disk write scheduler splits the locked dirty data according to the write channels corresponding to the two read / write arms. During the dual supercapacitor module power supply period, the two read / write arms write the received dirty data and the power-down checkpoint snapshot to the power-down snapshot security partition in parallel.
[0063] After both read / write heads complete the write operation and return completion feedback, the PCIe-HDD master control unit writes a power-off completion marker and triggers the security audit module to generate an audit log, recording the power-off event. Subsequently, it controls the two read / write heads to dock in the safe zone and stops power supply to the dual supercapacitor modules. At this point, the range of data to be protected, snapshot results, and completion status for the same abnormal power outage have all been established.
[0064] like Figure 2 As shown in step 4, after power-on, the PCIe-HDD main control unit takes the dirty data written to the hard disk power failure snapshot security partition in step 3 as the data to be recovered, and controls the execution of snapshot reading, PQC verification, recovery or rejection of loading and rollback; based on the verification results, the corresponding data is reloaded to the cache component, and the data in the cache component is written to the corresponding data partition according to the predetermined writing rules.
[0065] Step 4 includes the following steps: Step 41: After power-on, the PCIe-HDD master control unit performs a power-on check, reads the power-off completion mark in the power-off snapshot security partition, the latest power-off checkpoint snapshot, and the PQC dual-signature verification information associated with that snapshot.
[0066] The power outage completion marker is used to identify the completion status of the previous power outage write, and the latest power outage checkpoint snapshot is used to provide the data to be recovered and the corresponding metadata.
[0067] Step 42: The PCIe-HDD master control unit provides the PQC dual-signature verification information corresponding to the latest power-down Checkpoint snapshot to the PQC security verification module. The PQC security verification module verifies the verification information, generates a result of verification pass or verification fail, and provides the verification result to the PCIe-HDD master control unit and the rollback and verification module.
[0068] Step 43: If the verification passes, the rollback and verification module loads the latest power-off checkpoint snapshot, restores the cache state based on the data in the snapshot and the corresponding metadata, and writes the data restored to the cache component to the corresponding data partition according to the predetermined write rules. After the write is completed, the PCIe-HDD master unit obtains the recovery status.
[0069] In step 44, in the branch where verification fails, the rollback and verification module refuses to load the latest power failure checkpoint snapshot, triggers anti-rollback protection, and determines the most recently verified checkpoint from the saved checkpoints as the recovery baseline. Based on this recovery baseline, the cache state is restored, and the data restored to the cache component is written to the corresponding data partition according to the predetermined write rules.
[0070] Step 45: If the verification passes, the PCIe-HDD master control unit reports the recovery status formed in step 43 to the host; if the verification fails, the security audit module records alarms for verification failure, load rejection, and recovery baseline selection, and the PCIe-HDD master control unit reports the alarm status to the host.
[0071] The audit log can save the corresponding information in the event type, sequence number, timestamp, power status, snapshot index, signature, verification result, and head working status.
[0072] For example, after power is restored, the PCIe-HDD master control unit reads the power failure completion marker, the latest power failure checkpoint snapshot, and its PQC dual signature verification information, and the PQC security verification module performs the verification.
[0073] In Example A, the verification result is passed. The rollback and verification module loads the latest power-off Checkpoint snapshot, restores the cache state based on the snapshot data and corresponding metadata, and writes the data restored to the cache component to the corresponding data partition according to the predetermined write rules. The PCIe-HDD master control unit reports the recovery status to the host.
[0074] In Example B, the verification result is unsuccessful. The rollback and verification module refuses to load the latest power-off checkpoint snapshot, triggering anti-rollback protection. The most recently verified checkpoint is determined as the recovery baseline. The cache state is restored based on this baseline, and the data restored to the cache component is written to the corresponding data partition according to predetermined write rules. The security audit module records an alarm, and the PCIe-HDD master control unit reports the alarm status to the host. Examples A and B are two mutually exclusive result branches of the power-on step in the same comprehensive embodiment and do not constitute two independent embodiments.
[0075] Through the above steps, the cache state and periodic checkpoints formed during normal power supply, the locked dirty data and power outage checkpoints formed during abnormal power outages, and the verification, cache recovery, and data partition write results after power restoration maintain a continuous data and control relationship.
[0076] The above are merely preferred embodiments of this application and are not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for protecting data from abnormal power failure in a dual-arm, multi-head hard disk, characterized in that: Includes the following steps: Step 1: During normal power supply, the PCIe-HDD controller unit identifies the data sent by the host and waiting to be written to the hard disk as data to be cached, and writes the data to be cached to the cache component; Step 2: During normal power supply, the PCIe-HDD controller unit continuously updates the dirty data in the cache component based on whether the data in the cache component has been written to the hard disk; Dirty data refers to data in the cache component that has not yet been written to the hard drive; Step 3: When an abnormal power failure is detected, the power failure monitoring and switching unit switches the dual-arm multi-head PCIe hard drive to backup power. The PCIe-HDD main control unit locks the dirty data in the cache component and controls the dual-arm execution unit to write the locked dirty data in parallel to the power failure snapshot security partition of the hard drive. Step 4: After power is restored, the PCIe-HDD controller reloads the dirty data written to the power failure snapshot security partition of the hard drive into the cache component, and writes the dirty data in the cache component to the corresponding data partition according to the predetermined write rules.
2. The method for protecting data from abnormal power failure of a dual-arm multi-head hard disk according to claim 1, characterized in that: The caching components include DRAM cache and NVM non-volatile cache; Non-hot data in the data to be cached is written to the DRAM cache, and hot data in the data to be cached is written to the NVM non-volatile cache.
3. The method for protecting data from abnormal power failure of a dual-arm multi-head hard disk according to claim 2, characterized in that: In step 2, the PCIe-HDD controller unit identifies data in the DRAM cache and NVM non-volatile cache that has not yet been written to the hard disk as dirty data. In step 3, the PCIe-HDD master unit locks all dirty data in the DRAM cache and NVM non-volatile cache and prevents the locked dirty data from being modified.
4. The method for protecting data from abnormal power failure of a dual-arm multi-head hard disk according to claim 2, characterized in that: During normal power supply, when the snapshot triggering conditions are met, the Checkpoint snapshot engine generates a periodic Checkpoint snapshot based on dirty data in the DRAM cache, hot data in the NVM non-volatile cache, mapping tables, and metadata.
5. The method for protecting data from abnormal power failure of a dual-arm multi-head hard disk according to claim 4, characterized in that: The PQC security verification module associates periodic Checkpoint snapshots with PQC double-signature verification information; the Checkpoint snapshot engine writes the periodic Checkpoint snapshots associated with PQC double-signature verification information to the power-off snapshot security partition on the hard drive and updates the snapshot index.
6. The method for protecting data from abnormal power failure of a dual-arm multi-head hard disk according to claim 2, characterized in that: Step 2 includes the following steps: Step 21: During normal operation, the PCIe-HDD master control unit maintains the data status in the DRAM cache and the NVM non-volatile cache respectively; Once cached data has been written to disk, that data is no longer considered dirty data in the corresponding cache. If a certain cached data has not yet been written to the hard disk, that data continues to be considered dirty data in the corresponding cache. Step 22: The Checkpoint snapshot engine monitors the snapshot triggering conditions. When the snapshot triggering conditions are met, the Checkpoint snapshot engine reads the dirty data in the DRAM cache, the hot data in the NVM non-volatile cache, the mapping table, and the metadata at that moment. Step 23: The Checkpoint snapshot engine organizes the read data into periodic Checkpoint snapshots; Step 24: The PQC security verification module establishes the association between the Checkpoint snapshot of this period and the PQC double signature verification information to obtain the associated PQC double signature verification information. Step 25: The Checkpoint snapshot engine writes the periodic Checkpoint snapshot associated with PQC double signature verification information to the power failure snapshot security partition and updates the snapshot index.
7. The method for protecting data from abnormal power failure of a dual-arm multi-head hard disk according to claim 6, characterized in that: Step 3 includes the following steps: Step 31: When the power failure monitoring and switching unit detects a voltage drop, it sends a power failure interrupt to the PCIe-HDD main control unit and switches the dual-arm multi-head hard drive from external power supply to dual supercapacitor module power supply. Step 32: The PCIe-HDD host control unit responds to the power failure interruption, blocking new write requests so that no new host write data enters the protected area during the power failure protection period. Step 33: The PCIe-HDD master control unit controls the writing of dirty data to the power-off snapshot security partition of the hard drive in the event of a power failure.
8. The method for protecting data from abnormal power failure of a dual-arm multi-head hard disk according to claim 7, characterized in that: Step 3, specifically step 33, includes the following steps: Step 331: After the dirty data is locked, the Checkpoint snapshot engine reads the locked dirty data and corresponding metadata to generate a new power-off Checkpoint snapshot. Step 332: The PQC security verification module associates the new power-off Checkpoint snapshot with the PQC dual-signature verification information to obtain new associated PQC dual-signature verification information. Step 333: The dual-arm parallel disk write scheduler reads the locked dirty data, splits the dirty data according to the write channels corresponding to the two heads of the dual-arm magnetic head execution unit, and sends the split dirty data to the corresponding heads. Step 334: The dual-arm magnetic head execution unit writes the dirty data it receives in parallel to the power-off snapshot security partition through the two magnetic head arms, and returns write completion feedback to the PCIe-HDD master control unit after the parallel writing is completed. After receiving the completion feedback, the PCIe-HDD master control unit writes the power-off completion mark to the power-off snapshot security partition; Step 335: The PCIe-HDD master control unit triggers the security audit module to generate an audit log and records the power outage event in the audit log.
9. The method for protecting data from abnormal power failure of a dual-arm multi-head hard disk according to claim 8, characterized in that: Step 4 includes the following steps: Step 41: After power-on, the PCIe-HDD master control unit performs a power-on check, reads the power-off completion mark in the power-off snapshot security partition, the latest power-off checkpoint snapshot, and the PQC dual-signature verification information associated with the snapshot; Step 42: The PCIe-HDD master control unit provides the PQC dual-signature verification information corresponding to the latest power-off Checkpoint snapshot to the PQC security verification module. The PQC security verification module verifies the verification information, generates a result of verification pass or verification fail, and provides the verification result to the PCIe-HDD master control unit and the rollback and verification module. Step 43: If the verification passes, the rollback and verification module loads the latest power failure checkpoint snapshot, restores the cache state based on the data in the power failure checkpoint snapshot and the corresponding metadata, and writes the data restored to the cache component to the corresponding data partition according to the predetermined write rules. In step 44, in the branch where verification fails, the rollback and verification module refuses to load the latest power failure checkpoint snapshot. The rollback and verification module triggers anti-rollback protection and determines the most recently verified checkpoint from the saved checkpoints as the recovery baseline. The cache state is restored according to the recovery baseline, and the data restored to the cache component is written to the corresponding data partition according to the predetermined write rules.
10. The method for protecting data from abnormal power failure of a dual-arm multi-head hard disk according to claim 8, characterized in that: The audit logs generated by the security audit module include event type, sequence number, timestamp, power status, snapshot index, signature, verification result, and corresponding information in the read / write head working status.
