A method for safely deleting data from an interleaved recording disk and related equipment
By adopting track-granularity and block-granularity secure deletion strategies in interleaved recording disks, using the top track to cover the bottom track or centralized backup, the write amplification problem is solved, performance and space utilization are improved, and the data secure deletion process is optimized.
Patent Information
- Application Number
- CN202210699361.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-20
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-06-20
AI Technical Summary
Interleaved recording disks have write amplification problems and performance losses during the secure deletion process. Especially when disk utilization is high, the traditional RMW strategy results in multiple backup and writeback operations, which increases unnecessary performance consumption.
Adopt track-granularity and block-granularity secure deletion operations, perform data deletion on the entire track and partial data blocks respectively, use the top track to cover the bottom track or centralized backup and writing, reduce the number of write operations, and use migration windows and hot and cold Degree computing optimizes data migration.
It effectively alleviates the write amplification problem, reduces the number of write operations at the track level, improves the performance of safe data deletion, reduces the time overhead of data migration, and improves the overall performance and space utilization of the disk.
Smart Images

Figure CN115079948B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data storage, and more specifically, relates to a method for safely deleting data from an interleaved recording disk and related equipment. Background Art
[0002] Interlaced Magnetic Recording (IMR) technology logically divides the tracks into top tracks and bottom tracks. The two types of tracks are interlaced and partially overlapped on both sides, eliminating the gap between the tracks and greatly improving the data storage density. At the same time, combined with energy-assisted technology, the energy intensity required for writing different layers of tracks is different: the bottom track requires a higher intensity laser or microwave to write, which is manifested as a higher data density and a wider track width; the top track only requires a lower energy intensity, so it is manifested as a lower data density and a narrower track width. Due to the interlaced layout of different types of tracks, when writing to the bottom track, the higher energy intensity will destroy the valid data on the adjacent top tracks on both sides, while when writing to the top track, the weaker energy intensity will not affect the bottom track below it, so the top track can complete the update operation in situ. In an interlaced recording disk, the update of the bottom track only involves the backup and write-back of the adjacent top tracks on both sides, which greatly alleviates the write amplification problem compared to the Shingled Magnetic Recording (SMR) technology.
[0003] When performing secure deletion on a disk, an overwrite method is often used to ensure efficiency and to ensure that the space after deletion is available. Performing secure deletion by overwriting on an IMR disk is equivalent to writing random data on the block to be deleted to overwrite the original sensitive information. If the block is on the top track, it can be updated in situ; if the block is on the bottom track, some update strategies are required to ensure that the valid data on the adjacent top track is not destroyed, such as the RMW (read-modify-write) strategy. The so-called RMW strategy refers to first backing up the data blocks on the top tracks on both sides that may be damaged, then performing the write random data / secure deletion operation, and finally writing the backed-up data blocks back to their original locations.
[0004] Executing the RMW strategy will result in two additional read and write operations, resulting in a serious write amplification problem, which will cause a large loss of performance. Especially when the disk utilization is high and this strategy is executed on consecutive blocks, most of the data blocks on the top track will go through multiple backup and write-back processes, increasing a lot of unnecessary performance consumption. Summary of the invention
[0005] In view of the defects of the prior art and the need for improvement, the present invention provides a method and related equipment for secure deletion of data of an interleaved recording disk, the purpose of which is to alleviate the write amplification problem and serious performance loss problem existing in secure deletion of an interleaved recording disk.
[0006] To achieve the above object, according to one aspect of the present invention, a method for securely deleting data from an interleaved recording disk is provided, comprising:
[0007] After obtaining the secure deletion request from the upper-layer application, extract the request start address lba and the size of the data to be deleted r_len, and obtain the physical address pba corresponding to the request start address lba, and then perform the following steps:
[0008] (S1) The track where the physical address pba is located is taken as the current track. If the current track is the bottom track and all data blocks therein need to be securely deleted, the process proceeds to step (S2); otherwise, the data blocks to be deleted in the current track are securely deleted and the process proceeds to step (S3);
[0009] (S2) performing a track-level secure deletion operation on the current track, including:
[0010] If the top tracks on both sides of the current track contain valid data blocks, the data blocks in the top track Top1 on one side are migrated to an idle top track, and then the data blocks in the top track Top2 on the other side are used to overwrite the current track, and the status of the data blocks in the top track Top2 is updated to the idle status, and the mapping relationship between the top track Top1 and the top track Top2 is updated;
[0011] If only one side of the top track Top3 contains valid data blocks, the current track is overwritten with the data blocks in the top track Top3, and the status of the data blocks in the top track Top3 is updated to the idle state, and the mapping relationship of the top track Top3 is updated;
[0012] If the top tracks on both sides do not contain valid data blocks, the data blocks to be deleted are overwritten with random data;
[0013] (S3) Update the size r_len of the data to be deleted. If r_len>0, update pba to the physical address of the next data block to be deleted and go to step (S1); otherwise, the safe deletion request processing ends.
[0014] Furthermore, in a track-granular secure deletion operation, if the top tracks on both sides of the current track contain valid data blocks, the top track Top1 is the hotter track of the two top tracks, and the top track Top2 is the colder track of the two top tracks.
[0015] Furthermore, the idle top track to which the data block in the top track Top1 is migrated is determined as follows:
[0016] A migration window is set around the top track Top1 according to a preset distance, and the coldness of each idle top track in the migration window is calculated to determine the coldest idle top track in the migration window;
[0017] The coldest free top track in the migration window is determined as the track for storing the data blocks in the top track Top1.
[0018] Furthermore, the calculation formula for the cooling degree of the top track is:
[0019] coldness=α*freq+β / position+γ*freq_bottoms;
[0020] Among them, coldness represents the coldness of the top track. The higher the value, the hotter the track is. Conversely, the colder the track is. freq represents the number of times the top track itself is written. position represents the distance between the top track and the track to be safely deleted. freq_bottoms represents the sum of the number of times the two bottom tracks adjacent to the top track are written. α, β, and γ represent the influence coefficients of different influencing factors.
[0021] Furthermore, in step (S1), securely deleting the data block to be deleted in the current track includes:
[0022] If the current track is the bottom track and only some of the data blocks need to be safely deleted, a block-level safe deletion operation is performed on the current track. The block-level safe deletion operation includes:
[0023] After backing up the affected data blocks in the top tracks on both sides of the current track, add the data blocks to be deleted in the current track to the work queue of the background process;
[0024] If the number of data blocks in the work queue exceeds the preset batch size, the data blocks in the work queue are safely deleted in batches until the work queue is emptied. The safe deletion operation of each batch includes:
[0025] If the number of data blocks in the work queue is greater than or equal to batch, batch data blocks are selected as the data blocks to be deleted in the current batch; if the number of data blocks in the work queue is less than batch, all data blocks in the queue are selected as the data blocks to be deleted in the current batch; after the data blocks to be deleted in the current batch are overwritten with random data, the top-level track data blocks affected by the data blocks to be deleted in the current batch are written back to their original positions.
[0026] Furthermore, in a block-granular secure deletion operation, cached or idle top tracks are used to back up affected data blocks in the top tracks on both sides of the current track.
[0027] Furthermore, in a block-granular secure deletion operation, the data blocks to be deleted in the current track are added to the work queue of the background process in the order of increasing physical block addresses pba.
[0028] Furthermore, in step (S1), the data block to be deleted in the current track is securely deleted, and further includes:
[0029] If the current track is the top track, the data block to be deleted in the current track is overwritten with random data.
[0030] Furthermore, the method for securely deleting data from an interleaved recording disk provided by the present invention further includes:
[0031] Periodically persist the metadata stored in memory to the metadata storage area in the interleaved recording disk;
[0032] Among them, the tracks of the metadata storage area are organized in a conventional magnetic recording manner, or are composed of top tracks; the metadata includes a mapping table and status information of the data block; the mapping table is used to record the mapping relationship from the logical address to the physical address; the status of the data block includes: an idle state, a state with valid data, and a state that cannot be accessed and needs to be securely deleted.
[0033] According to another aspect of the present invention, a computer-readable storage medium is provided, comprising a stored computer program. When the computer program is executed by a processor, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned method for securely deleting data from an interleaved recording disk provided by the present invention.
[0034] According to yet another aspect of the present invention, there is provided a controller comprising a processor and a computer-readable storage medium;
[0035] The computer readable storage medium is used to store the computer program;
[0036] The processor is used to read the computer program stored in the computer-readable storage medium and execute the data security deletion method of the interleaved recording disk provided by the present invention.
[0037] According to another aspect of the present invention, there is provided a storage device comprising an interleaved recording disk and the above-mentioned controller provided by the present invention.
[0038] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects:
[0039] (1) The present invention uses a track-level secure deletion operation to securely delete the bottom track where all data blocks in the entire track need to be securely deleted. In this operation, when the adjacent top track contains valid data, the data on one side of the top track is directly used to overwrite the data to be deleted in the bottom track. While completing the secure deletion, it can reduce one track-level write operation, effectively alleviating the write amplification problem of the interleaved recording disk in data secure deletion.
[0040] (2) In a request for secure deletion of continuous data blocks, after the data block in the current bottom track is securely deleted, the data block in the next bottom track is likely to need to be securely deleted; when performing a track-granular secure deletion operation, the present invention selects the top track to cover the bottom track, and after the data blocks therein are migrated to the bottom track, the state of the data blocks in the entire top track is set to an idle state, which greatly reduces the number of valid top tracks affected when the data blocks in the subsequent bottom tracks are securely deleted, thereby further reducing write amplification in data secure deletion.
[0041] (3) When the present invention performs a track-level secure deletion operation, if both top tracks on the two sides of the bottom track to be deleted contain valid data, the data in the hotter top track will be migrated to other idle top tracks, and the bottom track will be overwritten with the data in the colder top track. In this way, the hot data that is accessed more frequently is located in the top track, while the cold data is located in the bottom track, which increases the possibility of subsequent data being updated in situ, thereby improving the overall performance of the interleaved recording disk.
[0042] (4) When executing a track-granular secure deletion operation, the present invention uses a migration window to limit the distance between the idle top track for storing the migrated data block and the original top track, thereby ensuring that the seek time overhead during the data migration process is not too large, and selecting the coldest idle top track in the migration window to store the migrated data, which can reduce the probability that the data will be migrated again in a subsequent secure deletion operation.
[0043] (5) The present invention adopts a block-granular secure deletion operation to securely delete the bottom track where only some data blocks in the track need to be securely deleted. In this operation, the work queue of the background process is used to centrally manage the data blocks that need to be securely deleted, and the affected data blocks in the top track are centrally backed up. For the top track data blocks that are affected by multiple bottom tracks at the same time, this centralized backup method can avoid repeated reading and writing of these data blocks, effectively alleviating the write amplification problem of data secure deletion operations in interleaved recording disks.
[0044] (6) The present invention defines a metadata storage area in an interleaved recording disk, wherein the tracks are organized in accordance with a conventional magnetic recording (CMR) method or are composed of top tracks, and metadata information such as mapping tables and data block status information in the memory is periodically persisted to the metadata storage area, thereby ensuring the security and integrity of the metadata and improving the access performance of metadata from the disk. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A data block state diagram provided for an example of the present invention;
[0046] Figure 2 A flow chart of a method for securely deleting data from an interleaved recording disk provided by an embodiment of the present invention;
[0047] Figure 3 A schematic diagram of a track-level secure deletion operation provided by an embodiment of the present invention;
[0048] Figure 4 A schematic diagram of a block-granular secure deletion operation provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0050] In the present invention, the terms "first", "second", etc. (if any) in the present invention and the accompanying drawings are used to distinguish similar objects but not necessarily to describe a specific order or sequence.
[0051] The existing data secure deletion method of the interleaved recording (IMR) disk adopts the RMW strategy to securely delete the data blocks in the bottom track, which will cause serious write amplification problem and affect the performance of the interleaved recording disk. In order to solve this technical problem, the present invention provides a data secure deletion method and related equipment for the interleaved recording disk. The overall idea is to make full use of the characteristics of the track organization in the interleaved recording disk and the characteristics of the secure deletion operation mechanism of different tracks, and delete the bottom tracks that may cause write amplification according to different granularities; specifically, if the entire track needs to be deleted, If a row is deleted, secure deletion is performed at the track granularity. In track-granular secure deletion, based on the principle of secure deletion, data secure deletion can be completed by overwriting, and the bottom track can be directly overwritten with the data in the top track to reduce the number of writes. On this basis, if only some data blocks in the track need to be deleted, secure deletion is performed at the data block granularity. In block-granular secure deletion, the deleted data blocks are centrally managed in a centralized RWM manner, and the affected top track data blocks are centrally backed up to reduce repeated reading and writing of the top track data blocks.
[0052] In the present invention, a data block has three states, namely: an idle state, a state with valid data, and a state that cannot be accessed and needs to be safely deleted. For ease of description, in the present invention, the above three states are respectively recorded as "empty", "used" and "free" states; different states can change mutually, see Figure 1 , when valid data is written to a data block in the "empty" state, the state of the data block will change from the "empty" state to the "used" state; when the upper-layer application issues a safe deletion request to safely delete a data block in the "used" state, the state of the data block will migrate from the "used" state to the "free" state; when a data block in the "free" state is safely deleted, the state of the data block will change from the "free" state to the "empty" state. In an interleaved recording disk, the data blocks that overlap with the bottom track data blocks to be deleted and store valid data are the affected data blocks.
[0053] In an interleaved recording disk, a mapping table (MT) is used to maintain the mapping relationship between the logical address lba and the physical address pba of a data block; the mapping table is established with the track as the granularity, the track is composed of several blocks, the block is composed of several sectors (usually the size of a block is 4KB), and the mapping table uses the logical track address as the key and the physical track address as the value. After receiving the request sent by the upper-layer application, the logical block address lba related to the request can be extracted from the request information, the logical track address lta (logical track address) is calculated first, and then the corresponding physical track address pta (physical track address) is obtained through the mapping table, so that pba can be obtained by a simple calculation, that is, pba = pta*track_size+lba%track_size, where track_size represents the number of blocks contained in the track. In the present invention, the status information of the data block will be managed together with the mapping table as metadata information.
[0054] The following are examples.
[0055] Embodiment 1:
[0056] A method for safely deleting data from an interleaved recording disk, such as Figure 2 As shown, including:
[0057] After obtaining the secure deletion request from the upper layer application, extract the request start address lba and the size of the data to be deleted r_len, and obtain the physical address pba corresponding to the request start address lba; the secure deletion request of the upper layer application can be issued by the application layer software or tools, such as the srm, shred and wipe test tools in the Linux system; the specific request information can be obtained by intercepting the bio structure; by capturing the upper layer secure deletion request, the request type, request start address and request size can be obtained; the mapping table can be used to convert the request start address into a physical block address, and then the track type where the request is located can be obtained, and the secure deletion policy can be flexibly adjusted in combination with the request size;
[0058] After obtaining the physical address pba corresponding to the starting address lba of the secure deletion request, perform the following steps:
[0059] (S1) The track where the physical address pba is located is taken as the current track. If the current track is the bottom track and all data blocks therein need to be securely deleted, the process proceeds to step (S2); otherwise, the data blocks to be deleted in the current track are securely deleted and the process proceeds to step (S3);
[0060] (S2) performing a track-level secure deletion operation on the current track, including:
[0061] If the top tracks on both sides of the current track contain valid data blocks, the data blocks in the top track Top1 on one side are migrated to an idle top track, and then the data blocks in the top track Top2 on the other side are used to overwrite the current track, and the status of the data blocks in the top track Top2 is updated to the idle status, and the mapping relationship between the top track Top1 and the top track Top2 is updated;
[0062] If only one side of the top track Top3 contains valid data blocks, the current track is overwritten with the data blocks in the top track Top3, and the status of the data blocks in the top track Top3 is updated to the idle state, and the mapping relationship of the top track Top3 is updated;
[0063] If the top tracks on both sides do not contain valid data blocks, the data blocks to be deleted are overwritten with random data;
[0064] (S3) Update the size r_len of the data to be deleted. If r_len>0, it means that the safe deletion request has not been processed yet. After updating pba to the physical address of the next data block to be deleted, go to step (S1); otherwise, the safe deletion request processing is completed.
[0065] Figure 3 As shown, it is a schematic diagram of the secure deletion operation on a bottom track in this embodiment; wherein 303 is the bottom track to be deleted, and the data blocks therein all need to be securely deleted; 302 and 304 are the top tracks on both sides adjacent to the bottom track 303, both of which contain valid data.
[0066] According to the traditional RWM strategy, the process of securely deleting the bottom track 303 is as follows: backing up the data in the top tracks 302 and 304 on both sides, which involves two track read operations; writing random data to the bottom track 303 to cover the sensitive information therein, which involves one track write operation. The whole process requires two track read operations and three track write operations.
[0067] This embodiment performs a track-granular secure deletion operation on the bottom track 303. The specific process is as follows: the valid top track 302 on the left is moved to an idle top track 301, which involves one track read operation and one track write operation; then the valid top track 304 on the right is used to directly overwrite the bottom track 303 to be securely deleted, so that the original sensitive data on the bottom track 303 cannot be recovered. Similarly, one track read operation and one track write operation are involved. The whole process requires a total of 2 track read operations and 2 track write operations. It is easy to see that this embodiment can effectively reduce one track-level write operation, and when the next bottom track adjacent to the bottom track 303 needs to be securely deleted, there is no affected data block in the top track 304, and accordingly, there is no need to perform data migration or backup, which further reduces the number of reads and writes. Therefore, this embodiment effectively alleviates the write amplification problem in the data secure deletion operation of the interleaved recording disk.
[0068] In order to further reduce write amplification, this embodiment determines the tracks to be directly migrated and the tracks to be covered in the top tracks on both sides according to the degree of hotness and coldness. Specifically, the hotter top track in the top tracks on both sides is used as the top track Top1, and the data blocks therein will be migrated to other idle top tracks, and the colder top track is used as the top track Top2, and the data blocks therein will be used to cover the data in the bottom track. In this way, the hot data that is accessed more frequently is located in the top track, while the cold data is located in the bottom track, which increases the possibility of subsequent data being updated in situ, thereby improving the overall performance of the interleaved recording disk.
[0069] At the same time, in order to avoid excessive time overhead for top track data migration, in this embodiment, the idle top track to which the data block in the top track Top1 is migrated is determined as follows:
[0070] A migration window is set around the top track Top1 according to a preset distance, and the coldness of each idle top track in the migration window is calculated to determine the coldest idle top track in the migration window;
[0071] The coldest free top track in the migration window is determined as the track for storing the data blocks in the top track Top1;
[0072] In this embodiment, the calculation formula for the cooling degree of the top track is:
[0073] coldness=α*freq+β / position+γ*freq_bottoms;
[0074] Among them, coldness represents the coldness of the top track, and the higher the value, the hotter the track is, and vice versa, the colder the track is. freq represents the number of times the top track itself is written, position represents the distance between the top track and the required safe deletion track, and freq_bottoms represents the sum of the number of times the two bottom tracks adjacent to the top track are written; α, β and γ represent the influence coefficients of different influencing factors, which can be determined accordingly according to the access frequency of the tracks in the interleaved recording disk, the cold and hot characteristics of the stored data, etc. in practical applications; limiting the migration window can constrain the distance of track movement, thereby avoiding a large seek time; and within the migration window, the coldness of each top track is not only affected by the number of times it is written, but also by the heat of the adjacent bottom tracks. At the same time, combined with the principle of data locality, the top track closer to the current operation track has a higher local heat. In general, this embodiment takes into account the track characteristics of IMR more comprehensively, and can improve the efficiency of safe deletion by combining data coldness and heat with limited time overhead.
[0075] When only one of the top tracks on the two sides adjacent to the bottom track to be deleted contains valid data, this embodiment will directly use the side track to overwrite the bottom track. Compared with the traditional RWM strategy, it can also reduce one track write operation. The relevant process analysis is similar to Figure 3 The process shown is similar, and the details can be referred to the above description.
[0076] Since the capacity of interleaved recording disks is often large and the number of data blocks is huge, this embodiment only needs to maintain the address mapping relationship at the track level when performing track-granular secure deletion operations, which effectively reduces the management overhead of mapping information and is conducive to improving the efficiency of secure data deletion.
[0077] In order to further reduce the write amplification of the data secure deletion operation in the interleaved recording disk, in this embodiment, for the tracks that cannot perform the track-level secure deletion operation, different data secure deletion strategies are executed according to the track type. Specifically, for the bottom track where only some data blocks in the track need to be securely deleted, the block-level secure deletion operation is used for secure deletion, and for the top track, random data is directly written. Accordingly, in step (S1), the data blocks to be deleted in the current track are securely deleted, including:
[0078] If the current track is the bottom track and only some of the data blocks need to be securely deleted, a block-level secure deletion operation is performed on the current track; if the current track is the top track, the data blocks to be deleted in the current track are overwritten with random data;
[0079] Block-level secure deletion operations include:
[0080] After backing up the affected data blocks in the top tracks on both sides of the current track, add the data blocks to be deleted in the current track to the work queue of the background process;
[0081] If the number of data blocks in the work queue exceeds the preset batch size, the data blocks in the work queue are safely deleted in batches until the work queue is emptied. The safe deletion operation of each batch includes:
[0082] If the number of data blocks in the work queue is greater than or equal to batch, batch data blocks are selected as the data blocks to be deleted in the current batch; if the number of data blocks in the work queue is less than batch, all data blocks in the queue are selected as the data blocks to be deleted in the current batch; after the data blocks to be deleted in the current batch are overwritten with random data, the top-level track data blocks affected by the data blocks to be deleted in the current batch are written back to their original positions.
[0083] This embodiment uses the work queue of the background process to centrally manage the data blocks that need to be securely deleted, and centrally backs up the affected data blocks in the top track. The corresponding secure deletion strategy can be called a centralized RMW strategy. In the centralized RWM strategy, for the top track data blocks that are affected by multiple bottom tracks at the same time, multiple repeated reading and writing of these data blocks can be avoided, effectively alleviating the write amplification problem of data secure deletion operations in interleaved recording disks.
[0084] Figure 4 FIG. 4 is an example of performing a block-granular secure deletion operation on a bottom track according to the present embodiment, wherein 402 is the bottom track to be deleted, and only data blocks Tk to T-k+4 need to be securely deleted; 401 and 403 are the top tracks on both sides adjacent to the bottom track 402, both of which contain valid data, and the affected data blocks are specifically on the left: T -1 -k to T -1 -k+4, right side: T +1 -k to T +1 -k+4, the process of securely deleting the bottom track 402 in the embodiment is as follows:
[0085] The adjacent top track data block (left side: T -1 -k to T -1 -k+4, right side: T +1 -k to T +1-k+4) in the cache; mark Tk to T-k+4 as free, add them to the work queue of the background process in the order of increasing physical block address pba to perform secure deletion operations, and write random data on the blocks to overwrite the original sensitive information to achieve secure deletion; finally, write the backed-up data blocks in the cache back to their original locations. In actual implementation, backup is not limited to the cache, but can also be performed using free tracks or other methods.
[0086] It should be noted that in this embodiment, the batch size batch is used to trigger the safe deletion of data blocks in the work queue of the background process, which can avoid the backup space occupied by the top track data being too large, and at the same time ensure that the safe deletion operation can be processed in a timely manner.
[0087] After steps (S1) to (S2), this embodiment can determine the corresponding safe deletion strategy according to the track type where the data block to be deleted is located and the distribution of the data block to be deleted in the track. For the top track, random data is directly written for safe deletion; for the bottom track, safe deletion operations of different granularities are performed accordingly, which reduces redundant write amplification at small granularity and greatly improves the efficiency of safe deletion by using overwrite operations at large granularity. The combination of multiple strategies can minimize the write amplification in the data safe deletion operation of the interleaved recording disk. This embodiment uses overwriting to perform data safe deletion. After safe deletion of the specified area, the storage space is quickly released and the availability of the area is guaranteed, thereby improving the space utilization of the disk.
[0088] After processing a track, pba and r_len are updated to determine the next track that needs to be safely deleted, and safely delete it through steps (S1) to (S2). Specifically, the update of r_len can be completed by subtracting the size of the deleted data from r_len. If r_len>0 after the update, it means that the data safe deletion request has not been processed yet, and pba needs to be updated to the address of the next track that needs to be deleted. The specific determination method is: first add the size of the deleted data to lba to obtain a new lba, and convert the new lba into a new pba through the mapping table.
[0089] The method for securely deleting data from an interleaved recording disk provided in this embodiment further includes:
[0090] Periodically persist the metadata stored in memory to the metadata storage area in the interleaved recording disk;
[0091] Among them, the tracks of the metadata storage area are organized in a conventional magnetic recording manner, or are composed of top tracks; the metadata includes a mapping table and status information of the data block; the mapping table is used to record the mapping relationship from the logical address to the physical address; the status of the data block includes: an idle state, a state with valid data, and a state that cannot be accessed and needs to be securely deleted.
[0092] Embodiment 2:
[0093] A computer-readable storage medium includes a stored computer program. When the computer program is executed by a processor, the device where the computer-readable storage medium is located is controlled to execute the method for securely deleting data from an interleaved recording disk provided in the above-mentioned embodiment 1.
[0094] Embodiment 3:
[0095] A controller comprising a processor and a computer-readable storage medium;
[0096] The computer readable storage medium is used to store the computer program;
[0097] The processor is used to read the computer program stored in the computer-readable storage medium and execute the method for securely deleting data from the interleaved recording disk provided in the above-mentioned embodiment 1.
[0098] Embodiment 4:
[0099] A storage device includes an interleaved recording disk and the controller provided in the third embodiment above.
[0100] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for securely deleting data from an interleaved recording disk, characterized in that: include: After obtaining the security deletion request from the upper layer application, extract the request start address lba and the size of the data to be deleted r_len, and obtain the physical address pba corresponding to the request start address lba, and then perform the following steps: (S1) The track where the physical address pba is located is taken as the current track. If the current track is the bottom track and all data blocks therein need to be securely deleted, the process proceeds to step (S2); otherwise, the data blocks to be deleted in the current track are securely deleted and the process proceeds to step (S3); (S2) performing a track-level secure deletion operation on the current track, including: If the top tracks on both sides of the current track contain valid data blocks, the data blocks in the top track Top1 on one side are migrated to an idle top track, and then the data blocks in the top track Top2 on the other side are used to overwrite the current track, and the status of the data blocks in the top track Top2 is updated to the idle status, and the mapping relationship between the top track Top1 and the top track Top2 is updated; If only one side of the top track Top3 contains valid data blocks, the current track is overwritten with the data blocks in the top track Top3, and the status of the data blocks in the top track Top3 is updated to the idle state, and the mapping relationship of the top track Top3 is updated; If the top tracks on both sides do not contain valid data blocks, the data blocks to be deleted are overwritten with random data; (S3) Update the size r_len of the data to be deleted. If r_len>0, update pba to the physical address of the next data block to be deleted and go to step (S1); otherwise, the safe deletion request processing ends.
2. The method for securely deleting data from an interleaved recording disk as claimed in claim 1, wherein: In the track-granular secure deletion operation, if the top tracks on both sides of the current track contain valid data blocks, the top track Top1 is the hotter track of the two top tracks, and the top track Top2 is the colder track of the two top tracks.
3. The method for securely deleting data from an interleaved recording disk as claimed in claim 2, wherein: The free top track to which the data blocks in the top track Top1 are migrated is determined as follows: A migration window is set around the top track Top1 according to a preset distance, and the coldness of each idle top track in the migration window is calculated to determine the coldest idle top track in the migration window; The coldest free top track in the migration window is determined as the track for storing the data blocks in the top track Top1.
4. The method for securely deleting data from an interleaved recording disk as claimed in claim 3, wherein: The formula for calculating the cooling degree of the top track is: coldness=α*freq+β / position+γ*freq_bottoms; Among them, coldness represents the coldness of the top track, and the higher the value, the hotter the track is; freq represents the number of times the top track itself is written, position represents the distance between the top track and the track to be safely deleted, freq_bottoms represents the sum of the number of times the two bottom tracks adjacent to the top track are written, and α, β, and γ represent the influence coefficients of different influencing factors.
5. The method for securely deleting data from an interleaved recording disk according to any one of claims 1 to 4, characterized in that: In the step (S1), the data block to be deleted in the current track is securely deleted, including: If the current track is the bottom track and only some of the data blocks in the track need to be securely deleted, a block-granular secure deletion operation is performed on the current track; the block-granular secure deletion operation includes: After backing up the affected data blocks in the top tracks on both sides of the current track, add the data blocks to be deleted in the current track to the work queue of the background process; If the number of data blocks in the work queue exceeds the preset batch size, the data blocks in the work queue are safely deleted in batches until the work queue is emptied. The safe deletion operation of each batch includes: If the number of data blocks in the work queue is greater than or equal to batch, batch data blocks are selected as the data blocks to be deleted in the current batch; if the number of data blocks in the work queue is less than batch, all data blocks in the queue are selected as the data blocks to be deleted in the current batch; after the data blocks to be deleted in the current batch are overwritten with random data, the top-level track data blocks affected by the data blocks to be deleted in the current batch are written back to their original positions.
6. The method for securely deleting data from an interleaved recording disk according to any one of claims 5, characterized in that: In the step (S1), the data block to be deleted in the current track is safely deleted, and further includes: If the current track is the top track, the data block to be deleted in the current track is overwritten with random data.
7. The method for securely deleting data from an interleaved recording disk as claimed in claim 6, wherein: Also includes: Periodically storing the metadata stored in the memory persistently in the metadata storage area in the interleaved recording disk; Among them, the tracks of the metadata storage area are organized in a conventional magnetic recording manner, or are composed of top tracks; the metadata includes a mapping table and status information of a data block; the mapping table is used to record the mapping relationship between a logical address and a physical address; the status of the data block includes: an idle state, a state in which valid data exists, and a state in which access is impossible and requires secure deletion.
8. A computer-readable storage medium, characterized in that: It includes a stored computer program, which, when executed by a processor, controls the device where the computer-readable storage medium is located to execute the method for securely deleting data on an interleaved recording disk as described in any one of claims 1 to 7.
9. A controller, characterized in that: comprising a processor and a computer readable storage medium; The computer readable storage medium is used to store a computer program; The processor is used to read the computer program stored in the computer-readable storage medium and execute the method for securely deleting data from an interleaved recording disk as described in any one of claims 1 to 7.
10. A storage device, characterized in that: The invention comprises an interleaved recording disk and the controller as claimed in claim 9.
Citation Information
Patent Citations
Data request processing method, device and system for staggered recording disk
CN114327297A
Dual writer head design utilizing two writers of different sizes for writing interlaced data tracks
US10210891B1
Interlaced magnetic recording in with multiple independent-actuators having respective independent heads
US10366726B1
