Recording medium management device, recording medium management method, and program
The recording medium management device optimizes physical volume space by calculating duplication levels and releasing unused areas, addressing inefficiencies in garbage data discovery and user impact.
Patent Information
- Application Number
- JP2020141352
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-08-25
- Publication Date
- 2024-10-02
- Estimated Expiration
- 2040-08-25
AI Technical Summary
Existing technologies take a long time to discover garbage data for erasure in large physical volumes, leading to inefficient use of memory resources and affecting user work.
A recording medium management device that calculates the degree of duplication of real data across virtual volumes, stores data based on duplication levels, and releases specific areas not referenced by any virtual volume, thereby optimizing the use of physical volume space.
Efficiently utilizes the allocated area of the physical volume by releasing unused space without disrupting user operations, enhancing memory resource management.
Smart Images

Figure 0007559429000001 
Figure 0007559429000002 
Figure 0007559429000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a recording medium management device, a recording medium management method, and a program, and more particularly to a recording medium management device, a recording medium management method, and a program for managing data stored on a recording medium. [Background technology]
[0002] In a related technique, a virtual volume is generated by virtualizing a physical volume allocated to a recording medium such as a memory or a storage. A user can access data stored in the virtual volume (herein referred to as virtual data), but the physical volume is hidden from the user. Data (herein referred to as real data) corresponding to the virtual data stored in the virtual volume is stored in the physical volume. When a user accesses the virtual data, the real data stored in the physical volume is referenced by the virtual volume.
[0003] The number of virtual volumes can be freely increased or decreased. Furthermore, the capacity of a virtual volume is not limited by the capacity of a physical volume. For example, the area of a physical volume allocated to a virtual volume can be flexibly increased or decreased according to the amount of virtual data stored in the area of the virtual volume, thereby enabling efficient use of the area of the recording medium.
[0004] When virtual data is deleted from a virtual volume, real data that is not referenced by any virtual volume may be generated. Such garbage data (garbage) remaining in the area of a physical volume results in a waste of memory resources. In the related technology described in Patent Document 1, real data that is not referenced by any virtual volume is searched for and deleted from the area of a physical volume. In this way, memory resources are recovered by generating free blocks (disk partitions that do not contain real data) in the area of a physical volume, which is called area release. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] JP 2019-159605 A [Patent Document 2] JP 2019-179571 A [Patent Document 3] Special Publication No. 2012-512462 Summary of the Invention [Problem to be solved by the invention]
[0006] In the related technology described in Patent Document 1, the larger the physical volume, the longer it takes to find garbage data to be erased. In addition, while searching for garbage data, the entire physical volume is scanned, which may affect user operations.
[0007] The present invention has been made in view of the above-mentioned problems, and has an object to make it possible to efficiently utilize the area of a physical volume allocated to a recording medium. [Means for solving the problem]
[0008] A recording medium management device according to one aspect of the present invention comprises a redundancy calculation means for calculating a redundancy indicating how many virtual volumes reference the same actual data stored on a recording medium, a storage means for storing the actual data in an area of the recording medium according to the redundancy, and an area release means for release a specific area of the area of the recording medium in which only actual data not referenced by any virtual volume is stored.
[0009] A recording medium management method according to one aspect of the present invention calculates a degree of overlap indicating how many virtual volumes reference the same actual data stored on a recording medium, stores the actual data in an area corresponding to the degree of overlap, and releases a specific area of the recording medium in which only actual data that is not referenced by any virtual volume is stored.
[0010] A program according to one aspect of the present invention causes a computer to execute the following processes: calculating a degree of overlap indicating how many virtual volumes are referencing the same actual data stored on a recording medium; storing the actual data in an area corresponding to the degree of overlap; and releasing a specific area of the recording medium in which only actual data not referenced by any virtual volume is stored. Effect of the Invention
[0011] According to one aspect of the present invention, it is possible to efficiently utilize the area of a physical volume allocated to a recording medium. [Brief description of the drawings]
[0012] [Figure 1] 1 illustrates a schematic diagram of a system configuration common to all embodiments. [Diagram 2] 1 is a block diagram showing a configuration of a recording medium management device according to a first embodiment. [Diagram 3] 4 is a flowchart showing the operation of the recording medium management device according to the first embodiment. [Figure 4] FIG. 11 is a diagram showing a first example of a correspondence relationship between a plurality of virtual volumes and volume units in which actual data referenced by the virtual volumes is stored. [Diagram 5] In the example shown in Figure 4, this figure shows a second example of the correspondence between multiple virtual volumes and volume units in which actual data referenced by the virtual volumes is stored when virtual data is erased from the virtual volumes. [Figure 6]10 is a flowchart showing the flow of area release processing executed by a recording medium management device according to a second embodiment. [Figure 7] In the example shown in Figure 5, this figure shows a third example of the correspondence between multiple virtual volumes and the volume units in which the actual data referenced by the virtual volumes is stored when actual data is erased from the 0th volume unit. [Figure 8] This figure shows a fourth example of the correspondence between multiple virtual volumes and the volume units in which the actual data referenced by the virtual volumes is stored when free blocks are deleted from the 0th volume unit in the example shown in Figure 7. [Figure 9] 11 is a flowchart showing the operation of a recording medium management device according to a third embodiment. [Figure 10] 13 is a flowchart showing the operation of a recording medium management device according to a fourth embodiment. [Figure 11] 13 is a flowchart showing the operation of a recording medium management device according to a fifth embodiment. [Figure 12] FIG. 13 is a block diagram showing the configuration of a recording medium management device according to a sixth embodiment. [Figure 13] 13 shows an example of metadata generated from access time recording data by an estimation unit of a recording medium management device according to the sixth embodiment. [Figure 14] FIG. 1 is a diagram showing a hardware configuration of a recording medium management device according to any one of the first to sixth embodiments. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] A system common to all the embodiments described below will be described with reference to FIG.
[0014] (System 1) Fig. 1 is a diagram showing a schematic configuration of a system 1. As shown in Fig. 1, the system 1 includes a recording medium management device 10 or 20, a storage 100 (an example of a recording medium), and a plurality of virtual volumes 200. The recording medium management device 10 will be described in embodiment 1, and the recording medium management device 20 will be described in embodiment 6. Hereinafter, the recording medium management device 10 or 20 will be referred to as "recording medium management device 10 (20)."
[0015] The recording medium management device 10 (20) allocates a physical volume 110 to the recording medium 100. In other words, the recording medium management device 10 (20) creates the physical volume 110 of the recording medium 100. The recording medium management device 10 (20) manages data (called actual data) stored on the recording medium 100.
[0016] The recording medium management device 10 (20) also has a function of deleting empty blocks from the physical volume 110, a so-called garbage collection function. The configuration and operation of the recording medium management device 10 (20) will be described in the first embodiment and subsequent embodiments described below.
[0017] The physical volume 110 conceptually represents a storage area of the recording medium 100. The physical volume 110 may be a logical collection of storage areas of a plurality of recording media 100. Although not shown, the physical volume 110 is composed of one or more blocks for storing data. A block is the smallest unit of capacity for storing actual data. In the physical volume 110, the blocks are divided by partitions. Therefore, the blocks are also called disk partitions. Specific examples of blocks will be shown in the first embodiment and onwards.
[0018] As shown in Fig. 1, the physical volume 110 is composed of a plurality of volume units. The N+1 volume units are arranged in a hierarchical structure of N+1 levels, from 0th to Nth. From another perspective, each volume unit can be said to be one physical volume. From this perspective, the reference numeral 110 can be said to represent a so-called volume group.
[0019] The multiple virtual volumes 200 are virtualized physical volumes 110 allocated to the recording medium 100. FIG. 1 shows M virtual volumes 200, numbered from first to Mth. However, the number of virtual volumes 200 may be one or more. The number of virtual volumes 200 can be freely increased or decreased. The number of virtual volumes 200 (M) is unrelated to the number of physical volumes 110. On the other hand, there is a relationship M=N between the number of virtual volumes 200 (M) and the number of volume units (N+1) provided in the physical volume 110.
[0020] Each virtual volume 200 is managed and controlled by a virtual volume control device (not shown). A user can virtually write or read data (called virtual data) to or from an area of the virtual volume 200 as if the virtual volume 200 actually exists. In reality, when virtual data is stored in an area of the virtual volume 200, the corresponding real data is stored in an area of the physical volume 110. When a user accesses virtual data stored in an area of the virtual volume 200, the real data corresponding to the virtual data stored in the physical volume 110 is passed to the virtual volume control device. This is called the real data being referenced by the virtual volume 200.
[0021] (Actual data duplication and hierarchical structure of volume units) Here, it has been described that real data is stored in an area of the physical volume 110. More specifically, the real data is stored in one of the volume units of the physical volume 110 according to the degree of duplication. The degree of duplication is an index indicating how many virtual volumes 200 reference the real data stored in a certain volume unit of the physical volume 110. The physical volume 110 has a hierarchical structure corresponding to the degree of duplication, which will be described later. The number of stages of the hierarchical structure (N+1 in FIG. 1) can be flexibly changed according to the maximum value (M) of the degree of duplication. This point will be described in detail in the following embodiment 1 and subsequent embodiments.
[0022] [Embodiment 1] The first embodiment will be described with reference to FIGS.
[0023] (Recording medium management device 10) 2 is a block diagram showing the configuration of the recording medium management device 10 according to the embodiment 1. As shown in FIG. 2, the recording medium management device 10 includes an overlap calculation unit 11, a storage unit 12, and an area release unit 13.
[0024] The redundancy calculation unit 11 calculates the redundancy indicating how many virtual volumes 200 reference the same real data stored in the recording medium. The redundancy calculation unit 11 is an example of a redundancy calculation means.
[0025] In one example, the redundancy calculation unit 11 manages the redundancy of the actual data stored in the physical volume 110. As described above, the redundancy is an index indicating how many virtual volumes 200 reference the actual data stored in a certain volume unit of the physical volume 110.
[0026] In one example, when virtual data is stored in the virtual volume 200, the redundancy calculation unit 11 receives a notification from the virtual volume control device that manages the virtual volume 200 (FIG. 1). At this time, the redundancy calculation unit 11 increases (+1) the redundancy of the real data corresponding to the stored virtual data (i.e., the real data referenced by the virtual volume 200).
[0027] In another example, when virtual data is deleted from the virtual volume 200, the redundancy calculation unit 11 receives a notification from the virtual volume control device that manages the virtual volume 200 (FIG. 1). At this time, the redundancy calculation unit 11 decreases (-1) the redundancy of the real data corresponding to the deleted virtual data (i.e., the real data referenced by the virtual volume 200). As a result, the redundancy of the real data may become 0. In other words, there is a possibility that the real data will no longer be referenced by any of the virtual volumes 200.
[0028] The redundancy calculation unit 11 notifies the storage unit 12 that the redundancy of the actual data stored in the physical volume 110 has changed (increased or decreased).
[0029] The storage unit 12 stores the actual data in one area of the recording medium according to the degree of duplication. The storage unit 12 is an example of a storage means.
[0030] In one example, the storage unit 12 receives a notification from the redundancy calculation unit 11 that the redundancy of the actual data stored in the physical volume 110 has changed (increased or decreased). At this time, the storage unit 12 changes the storage destination of the actual data according to the changed redundancy. Specifically, in a first example, when the redundancy of the actual data has increased (+1), the storage unit 12 moves the storage destination of the actual data to the next higher tier in the N+1-tier hierarchical structure formed by the multiple volume units of the physical volume 110.
[0031] That is, the actual data stored in the nth (n=1 to N) volume unit is moved to the n+1th volume unit. When moving actual data stored in the highest tier, i.e., the Nth volume unit, to the tier one level higher, the storage unit 12 adds the N+1th volume unit to the physical volume 110, and then moves the actual data from the nth volume unit to the n+1th volume unit.
[0032] In a second example, when the duplication degree of the actual data decreases (-1), the storage unit 12 moves the storage destination of the actual data to the next lower tier in the hierarchical structure formed by the multiple volume units of the physical volume 110. That is, the actual data stored in the nth (=1 to N) volume unit is moved to the n-1th volume unit. As a result of this move, actual data with a duplication degree of 0 is stored in the 0th volume unit.
[0033] In one example, the storage unit 12 outputs information indicating at least the number of blocks in the 0th volume unit to the area releaser 13. Alternatively, the storage unit 12 may output information indicating the number of blocks in each of the 0th to nth (n is an integer from 1 to N) volume units to the area releaser 13. A block is the smallest unit of storage area. The number of blocks indicates the number of blocks that the 0th volume unit (or other volume units) has. Hereinafter, the above information that the storage unit 12 outputs to the area releaser 13 is referred to as block number information.
[0034] The area releaser 13 releases a specific area in which only real data that is not referenced by any of the virtual volumes 200 is stored. The area releaser 13 is an example of area release means.
[0035] In one example, the area releaser 13 receives block number information from the storage unit 12. The area releaser 13 identifies the number of blocks contained in the 0th volume unit based on the block number information. Then, if the 0th volume unit has one or more blocks, the area releaser 13 executes area release processing.
[0036] Specifically, in the area release process, the area release unit 13 erases all actual data from each block of the 0th volume unit. In this way, one or more free blocks (i.e., blocks in which no actual data is stored) are generated in the 0th volume unit. Next, the area release unit 13 deletes the free blocks of the 0th volume unit. As a result, the area of the 0th volume unit is released. In other words, area release here means generating a storage area that is not reserved by any volume unit of the physical volume 110 by deleting the free block area of the volume unit.
[0037] In another example, the area release unit 13 checks (sometimes called scans) whether or not there are free blocks for each of the first to nth (n is an integer from 1 to N) volume units. Next, the area release unit 13 executes area release processing for each of the volume units having free blocks among the 0th to nth (n is an integer from 1 to N) volume units, based on the above-mentioned block number information. This makes it possible to release an area equal to or larger than when area release processing is performed only on the 0th volume unit. Specifically, if there are free blocks in at least one of the 1st to nth volume units in addition to the 0th volume unit, these free blocks can be deleted to release a larger area than when only the free blocks of the 0th volume unit are deleted.
[0038] (Modification) In one modified example, the storage unit 12 outputs information indicating how many actual data blocks are stored in which hierarchical level (i.e., which volume unit) in the physical volume 110 to the area releaser 13. Here, an actual data block is the smallest unit of a measured amount of actual data. Note that the volume unit of the physical volume 110 may be divided into several blocks. In this case, the storage unit 12 also outputs information indicating how many actual data blocks are stored in each block of the volume unit to the area releaser 13. Hereinafter, the above information output by the storage unit 12 to the area releaser 13 will be referred to as physical volume usage information.
[0039] In this modified example, the area releaser 13 identifies free blocks from each volume unit based on the physical volume usage information, and is able to delete the identified free blocks by the area release process described above.
[0040] (Operation of recording medium management device 10) An example of the operation of the recording medium management device 10 according to the first embodiment will be described with reference to Fig. 3 to Fig. 5. Here, a case will be described in which the system 1 has three virtual volumes 200 and four (=3+1) volume units.
[0041] FIG. 3 is a flowchart showing the flow of processes executed by each unit of the recording medium management device 10 according to the first embodiment.
[0042] 4 shows an example of three virtual volumes 200 and four volume units of the physical volume 110 before processing is performed by each component of the recording medium management device 10. Here, attention is focused on three pieces of virtual data 5222, 5211, and 5212 and two pieces of real data 5121 and 5122 shown in FIG.
[0043] In the example shown in Fig. 4, the virtual data 5222 stored in the area of the second virtual volume 200-2 and the virtual data 5212 stored in the area of the first virtual volume 200-1 correspond to the same actual data 5122, and one virtual data 5211 stored in the first virtual volume 200-1 corresponds to another one actual data 5121. That is, the actual data 5122 stored in the area of the second volume unit is referenced by the first virtual volume 200-1 and the second virtual volume 200-2 (overlapping degree: 2). On the other hand, the actual data 5121 stored in the area of the first volume unit is referenced only by the first virtual volume 200-1 (overlapping degree: 1).
[0044] 3, first, the redundancy calculation unit 11 calculates the redundancy of the actual data stored in each volume block of the physical volume 110 (S101). Specifically, the redundancy calculation unit 11 counts the number of virtual volumes 200 that refer to the same actual data, and regards the total number as the redundancy.
[0045] Next, the multiplicity calculation unit 11 determines whether or not there is a change in the multiplicity of the actual data based on the calculated multiplicity (S102).
[0046] If there is no change in the degree of duplication of the actual data (No in S102), the flow of operation of the recording medium management device 10 returns to step S101.
[0047] Here, it is assumed that before step S102, the virtual data 5211 and 5212 stored in the area of the first virtual volume 200-1 shown in the example of FIG. 4 are erased.
[0048] In this case, the storage unit 12 scans the first to third volume units to detect, from the first volume unit, the actual data 5121 corresponding to the virtual data 5211. Also, the storage unit 12 detects, from the second volume unit, the actual data 5122 corresponding to the virtual data 5212.
[0049] If the duplication degree of the actual data has changed (Yes in S102), then the storage unit 12 judges whether or not there is an empty block in the destination of the actual data (S103). In the example shown in Fig. 4, the destination of the actual data 5121 is the 0th volume unit, and the destination of the actual data 5122 is the first volume unit.
[0050] Incidentally, in step S103, even if there is no completely empty block in the 0th volume unit, if there is spare space in the 0th volume unit that is capable of storing at least the data block of the actual data to be moved, the storage unit 12 determines that there is an empty block in the destination.
[0051] If there is an empty block at the destination of the actual data (Yes in S103), the flow proceeds to step S105. On the other hand, if there is no empty block at the destination of the actual data (No in S103), the storage unit 12 adds a block to the volume unit at the destination of the actual data (S104).
[0052] Thereafter, the storage unit 12 moves the actual data between the volume units (S105).
[0053] Figure 5 shows how actual data 5122, 5121 are moved between volume units in step S105 when virtual data 5211, 5212 are deleted from the area of the first virtual volume 200-1 in the example shown in Figure 4. As shown in Figure 5, actual data 5121 is moved from the first volume unit to the 0th volume unit, and actual data 5122 is moved from the second volume unit to the first volume unit.
[0054] 3, after step S105, the area release unit 13 performs area release processing (S106). In the area release processing, the area release unit 13 releases the 0th volume unit in which only real data not referenced by any virtual volume 200 is stored. Then, the flow returns to step S101. Some examples of the area release processing will be described later and in some embodiments described later.
[0055] (An example of area release processing) An example of the above-mentioned area release process will be described with reference to FIGS.
[0056] In this embodiment 1, as an example of the area release process, a case will be described in which the area release unit 13 releases only the area of the 0th volume unit. As described above, the 0th volume unit stores actual data that is not referenced by any of the virtual volumes 200. The 0th volume unit is an example of a specific area.
[0057] FIG. 6 is a flowchart showing an example of the process of releasing the area shown in step S106 of FIG.
[0058] As shown in FIG. 6, first, the area releaser 13 erases actual data from the 0th volume unit (S31).
[0059] Fig. 7 shows the changes that occur after the actual data 5121 is deleted in step S31 when the actual data 5121 is stored in the 0th volume unit in the example shown in Fig. 5. As shown in Fig. 7, as a result of deleting the actual data 5121 from the 0th volume unit, one free block is formed in the 0th volume unit.
[0060] Next, the area releaser 13 deletes the empty blocks in the 0th volume unit (S32).
[0061] Figure 8 shows the changes after one free block is deleted in step S32 in the example shown in Figure 7 in the 0th volume unit. As shown in Figure 8, not a single block remains in the 0th volume unit. The free block deleted from the 0th volume unit and the corresponding storage area can be reused later to store actual data.
[0062] This is the end of the area release process. Next, the effects of the area release process described above will be explained.
[0063] In the system 1 shown in Fig. 1, only actual data that is not referenced by any virtual volume is stored in the 0th volume unit of the physical volume 110. Therefore, even if the actual data stored in the 0th volume unit is deleted, the actual data referenced by the virtual volume 200 will not be lost. Therefore, when there are no free blocks, it is possible to easily and instantly create free blocks without affecting the virtual volume 200 by releasing the area of the 0th volume unit.
[0064] (Effects of this embodiment) According to the configuration of this embodiment, the redundancy calculation unit 11 calculates the redundancy indicating how many virtual volumes 200 reference the same real data stored in the recording medium. The storage unit 12 stores the real data in one area of the recording medium 100 according to the redundancy. The area release unit 13 releases a specific area in which only real data not referenced by any of the virtual volumes 200 is stored.
[0065] The area release process releases a specific area, which allows the released area to be reused, making it possible to efficiently use the area of the physical volume 110 allocated to the recording medium.
[0066] [Embodiment 2] In the second embodiment, an example of area release processing different from the example described in the first embodiment will be described.
[0067] In the second embodiment, the area release unit 13 erases the actual data stored in a specific area in the recording medium 100, and deletes free blocks from two or more areas including at least the specific area. Specifically, the specific area is the 0th volume unit. The two or more areas are the 0th to Nth (N is an integer of 1 or more) volume units of the physical volume 110 shown in FIG. 1.
[0068] (An example of area release processing) With reference to FIG. 9, an example of the above-described area release processing will be described.
[0069] As shown in FIG. 9, first, the area release unit 13 deletes the actual data from the 0th volume unit (FIG. 1) (S51).
[0070] Next, the area release unit 13 scans the 1st to Nth volume units (S52). That is, the area release unit 13 checks for the presence or absence of actual data stored in each block of the physical volume 110. Note that the area release unit 13 does not necessarily need to scan all of the 1st to Nth volume units. For example, in a modification of the area release processing according to the second embodiment, the area release unit 13 scans only the 1st to n'th (1 < n' < N) volume units in step S32. This modification will be described in detail in the fifth embodiment.
[0071] Thereafter, the area release unit 13 deletes the free blocks of the 0th to Nth volume units (S53).
[0072] The area release processing ends here.
[0073] (Effects of this embodiment) According to the configuration of this embodiment, the redundancy calculation unit 11 calculates the redundancy indicating how many virtual volumes 200 reference the same real data stored in the recording medium. The storage unit 12 stores the real data in one area of the recording medium 100 according to the redundancy. The area release unit 13 releases a specific area in which only real data not referenced by any of the virtual volumes 200 is stored.
[0074] The area release process releases a specific area, which allows the released area to be reused, making it possible to efficiently use the area of the physical volume 110 allocated to the recording medium.
[0075] Furthermore, according to the configuration of this embodiment, the area releaser 13 erases actual data stored in a specific area of the recording medium 100, and deletes free blocks from two or more areas including at least the specific area.
[0076] This makes it possible to free up a larger area compared to a configuration in which free blocks are deleted only from a specific area (the 0th volume unit in one example).
[0077] [Embodiment 3] In the third embodiment, an example of an area release process different from the examples described in the first and second embodiments will be described.
[0078] In the third embodiment, the area releaser 13 erases actual data stored in a specific area in the recording medium 100, and deletes free blocks in a number equal to or greater than a predetermined set value from two or more areas including at least the specific area, in order from the area corresponding to the smaller degree of overlap. Specifically, the specific area is the 0th volume unit. In one example, the two or more areas are the 0th to Nth (N is an integer equal to or greater than 1) volume units of the physical volume 110 shown in FIG. 1.
[0079] (An example of area release processing) An example of the above-mentioned area release process will be described with reference to FIG.
[0080] As shown in FIG. 10, first, the area releaser 13 deletes actual data from the 0th volume unit (FIG. 1) (S71).
[0081] In the next step S72, the variable nn indicating the hierarchical level (that is, the volume unit number) in the physical volume 110 is set to 0 (S72).
[0082] The area releaser 13 scans all blocks of the nn-th volume unit (S73). That is, the area releaser 13 checks whether or not there is actual data stored in each block.
[0083] Then, if the result of the scan in step S73 is that there is a free block in the nn-th volume unit, the area releaser 13 deletes the free block (S74).
[0084] The area releaser 13 determines whether the total number of deleted blocks is less than a predetermined set value (S75).
[0085] If the total number of deleted blocks is equal to or greater than the set value (No in S75), the area release process according to the third embodiment ends.
[0086] On the other hand, if the total number of deleted blocks is less than the set value (Yes in S75), then in step S76, nn+1 is set to the variable nn representing the hierarchical level (i.e., the volume unit number) in the physical volume 110 (S76). In other words, 1 is added to the variable nn.
[0087] If the variable nn is equal to or less than N (No in S77), the flow returns to step S73. Here, N is a value obtained by subtracting 1 from the total number of tiers of the physical volume 110 (FIG. 1). On the other hand, if the variable nn exceeds N (Yes in S77), the area release process according to the third embodiment ends.
[0088] (Effects of this embodiment) According to the configuration of this embodiment, the redundancy calculation unit 11 calculates the redundancy indicating how many virtual volumes 200 reference the same real data stored in the recording medium. The storage unit 12 stores the real data in one area of the recording medium 100 according to the redundancy. The area release unit 13 releases a specific area in which only real data not referenced by any of the virtual volumes 200 is stored.
[0089] The area release process releases a specific area, which allows the released area to be reused, making it possible to efficiently use the area of the physical volume 110 allocated to the recording medium.
[0090] Furthermore, according to the configuration of this embodiment, the area release unit 13 erases actual data stored in a specific area on the recording medium 100, and deletes a number of free blocks equal to or greater than a set value, starting from the area corresponding to the smaller degree of overlap, among two or more areas that at least include the specific area.
[0091] This allows a larger area to be freed up compared to a configuration in which free blocks are deleted only from a specific area (the 0th volume unit in one example). Furthermore, since the area freeing process ends when a set number of free blocks or more are deleted, a necessary and sufficient area can be freed up compared to a configuration in which all volume units are scanned and free blocks are deleted from all volume units.
[0092] [Embodiment 4] In the fourth embodiment, an example of an area release process different from the examples described in the first to third embodiments will be described.
[0093] As in the second embodiment, the area releaser 13 erases actual data stored in a specific area in the recording medium 100, and deletes free blocks from two or more areas including at least the specific area. Specifically, the specific area is the 0th volume unit. The two or more areas are the 0th to Nth (N is an integer equal to or greater than 1) volume units of the physical volume 110 shown in FIG. 1.
[0094] In the fourth embodiment, among two or more regions including a specific region, free blocks are deleted from a predetermined number of regions (upper limit N') in order from the region corresponding to the smaller overlapping degree. In this respect, the configuration of the fourth embodiment differs from that of the second embodiment.
[0095] (An example of area release processing) An example of the above-mentioned area release process will be described with reference to FIG.
[0096] As shown in FIG. 11, first, the area releaser 13 deletes actual data from the 0th volume unit (FIG. 1) (S91).
[0097] In the next step S92, the variable nnn, which indicates the hierarchical level (that is, the volume unit number) in the physical volume 110, is set to 0 (S92).
[0098] The area releaser 13 scans the nnn-th volume unit (S93). That is, the area releaser 13 checks whether or not there is actual data stored in each block of the nnn-th volume unit.
[0099] If there is a free block in the nnn-th volume unit as a result of the scan in step S73, the area releaser 13 deletes the free block (S94).
[0100] In the next step S95, nnn+1 is set to the variable nnn, which indicates the hierarchical level (that is, the volume unit number) in the physical volume 110 (S95). That is, 1 is added to the variable nnn.
[0101] If the variable nnn is equal to or less than N' (No in S96), the flow returns to step S93. Here, N' may be any integer equal to or greater than 1 and smaller than N (FIG. 1). On the other hand, if the variable nnn exceeds N' (Yes in S96), the area release process according to the fourth embodiment ends.
[0102] (Effects of this embodiment) According to the configuration of this embodiment, the redundancy calculation unit 11 calculates the redundancy indicating how many virtual volumes 200 reference the same real data stored in the recording medium. The storage unit 12 stores the real data in one area of the recording medium 100 according to the redundancy. The area release unit 13 releases a specific area in which only real data not referenced by any of the virtual volumes 200 is stored.
[0103] The area release process releases a specific area, which allows the released area to be reused, making it possible to efficiently use the area of the physical volume 110 allocated to the recording medium.
[0104] Furthermore, according to the configuration of this embodiment, the area releaser 13 erases actual data stored in a specific area of the recording medium 100, and deletes free blocks from two or more areas including at least the specific area.
[0105] This makes it possible to free up a larger area compared to a configuration in which free blocks are deleted only from a specific area (the 0th volume unit in one example).
[0106] In addition, the area release process ends when free blocks have been deleted from the volume units of the hierarchical levels corresponding to each degree of overlap, in ascending order of overlap, up to an upper limit value that is smaller than the total number of hierarchical levels of the physical volume 110. Therefore, the load of the area release process can be reduced compared to a configuration in which all volume units are scanned and free blocks are deleted from all volume units.
[0107] [Embodiment 5] A fifth embodiment will be described with reference to FIGS.
[0108] (Recording medium management device 20) Fig. 12 is a block diagram showing the configuration of a recording medium management device 20 according to the fifth embodiment. As shown in Fig. 12, the recording medium management device 20 further includes an estimation unit 24 in addition to an overlap calculation unit 11, a storage unit 12, and an area release unit 13. Descriptions of the overlap calculation unit 11, the storage unit 12, and the area release unit 13 are omitted in the fifth embodiment, and the descriptions in the first embodiment are referred to. However, for the storage unit 12, only the processing characteristic of the fifth embodiment will be supplementarily described.
[0109] The estimation unit 24 estimates a time period during which real data is not referenced by the virtual volume 200, based on the history of access to the virtual data stored in the virtual volume 200. The estimation unit 24 is an example of an estimation means.
[0110] An example of the process executed by the estimation unit 24 will be described with reference to Fig. 13. In Fig. 13, data on the left side indicated by reference numeral 71 shows an example of a history of accesses to virtual data (referred to as an access time record 71).
[0111] In one example, the estimation unit 24 acquires data of the access time record 71 from a virtual volume control device (not shown). Then, based on the acquired data of the access time record 71, the estimation unit 24 estimates a time period during which the real data corresponding to the virtual data is not referenced by the virtual volume 200.
[0112] Specifically, the estimation unit 24 classifies the times when the virtual data was accessed into certain time periods, and generates metadata 72 shown on the right side of Fig. 13. The metadata 72 shown on the right side of Fig. 13 shows the result of classifying the access history shown on the left side of Fig. 13 into hourly intervals.
[0113] In the metadata 72 shown in FIG. 13, "Y" indicates that the virtual data was accessed during the corresponding time period (a specific hour out of 24 hours), and "N" indicates that the virtual data was not accessed during the corresponding time period (a specific hour out of 24 hours).
[0114] 13 includes three days' worth of access history, the estimation unit 24 may obtain access history for a longer period, such as one week or one month. Alternatively, the access time record 71 may record all access history in a predetermined period, or may record only a predetermined number of recent access histories. Alternatively, the access time record 71 may record access history with higher accuracy (e.g., microseconds) rather than to the second, or vice versa (e.g., minutes or hours).
[0115] In one example, the estimation unit 24 estimates a time period during which the actual data is not referenced by the virtual volume 200, based on the metadata 72 obtained from the access time record 71. In the metadata 72 shown on the right side of Fig. 13, there is an access history only for one hour between 10:00 and 10:00, and there is no access history for other time periods. Therefore, the estimation unit 24 estimates that the actual data is not referenced by the virtual volume 200, except for the one hour between 10:00 and 10:00.
[0116] 13 includes only three days of access history, the estimation accuracy may be low. In that case, the estimation unit 24 may extend the period for acquiring the access history in order to obtain a sufficient estimation accuracy.
[0117] The estimation unit 24 outputs information indicating the result of estimating the time period during which the actual data is not referenced by the virtual volume 200 to the storage unit 12 .
[0118] In the fifth embodiment, the storage unit 12 receives information indicating the result of estimating a time period during which the real data is not referenced by the virtual volume 200 from the estimation unit 24. Then, the storage unit 12 stores the real data in one area of the recording medium 100 according to the degree of overlap during the time period during which it is estimated that the virtual data is not accessed.
[0119] (Effects of this embodiment) According to the configuration of this embodiment, the redundancy calculation unit 11 calculates the redundancy indicating how many virtual volumes 200 reference the same real data stored in the recording medium. The storage unit 12 stores the real data in one area of the recording medium 100 according to the redundancy. The area release unit 13 releases a specific area in which only real data not referenced by any of the virtual volumes 200 is stored.
[0120] The area release process releases a specific area, which allows the released area to be reused, making it possible to efficiently use the area of the physical volume 110 allocated to the recording medium.
[0121] Furthermore, according to the configuration of this embodiment, the estimation unit 24 estimates a time period during which the real data is not referenced by the virtual volume 200, based on the history of access to the virtual data stored in the virtual volume 200. The storage unit 12 stores the real data in one area of the recording medium 100 according to the degree of overlap during the time period during which it is estimated that the virtual data is not accessed.
[0122] This reduces the possibility that the virtual data corresponding to the actual data will be accessed while the storage destination of the actual data is being changed, preventing disruption to user operations.
[0123] (Hardware configuration) Each component of the recording medium management device 10 (20) described in the first to fifth embodiments is shown as a functional block. Some or all of these components are realized by an information processing device 900 as shown in Fig. 14. Fig. 14 is a block diagram showing an example of the hardware configuration of the information processing device 900.
[0124] As shown in FIG. 14, an information processing device 900 includes, as an example, the following configuration.
[0125] ·CPU(Central Processing Unit)901 ROM (Read Only Memory) 902 ·RAM(Random Access Memory)903 Program 904 loaded into RAM 903 A storage device 905 for storing a program 904 A drive device 907 for reading and writing data from the recording medium 906 A communication interface 908 for connecting to a communication network 909 An input / output interface 910 for inputting and outputting data · Bus 911 connecting each component Each of the components of the recording medium management device 10 (20) described in the first to fifth embodiments is realized by the CPU 901 reading and executing a program 904 that realizes these functions. The program 904 that realizes the functions of each component is, for example, stored in advance in the storage device 905 or the ROM 902, and is loaded into the RAM 903 by the CPU 901 and executed as necessary. The program 904 may be supplied to the CPU 901 via the communication network 909, or may be stored in advance in the recording medium 906, and the drive device 907 may read out the program and supply it to the CPU 901.
[0126] (Effects of this embodiment) According to the configuration of this embodiment, the recording medium management device 10 (20) described in the above embodiment is realized as hardware, and therefore it is possible to achieve the same effects as those described in the above embodiment. [Industrial Applicability]
[0127] The present invention can be used, for example, in a recording medium management device that manages data stored in a recording medium such as a storage or memory, a storage system including the same, and a cloud storage service. [Explanation of symbols]
[0128] 1 System 10 Recording medium management device 11 Multiplicity calculation part 12 Storage area 13 Area open section 20 Recording medium management device 24 Estimation part 100 Storage (recording media) 200 Virtual Volumes
Claims
1. a redundancy calculation means for calculating a redundancy indicating how many virtual volumes reference the same real data stored on the recording medium; a storage means for storing the actual data in one area of the recording medium according to the degree of duplication; an area releasing means for releasing a specific area of the recording medium in which only real data not referenced by any virtual volume is stored; Equipped with The areas of the recording medium form a hierarchical structure, When virtual data is deleted from one virtual volume, the overlap calculation means reduces by 1 the overlap of the real data corresponding to the deleted virtual data; The storage means moves the real data corresponding to the deleted virtual data from the one area of the recording medium to an area one level lower in accordance with the change in the degree of duplication. Recording medium management device.
2. The area releasing means erases the actual data stored in the specific area of the recording medium and deletes free blocks from the specific area.
2. The recording medium management device according to claim 1.
3. The area release unit erases the actual data stored in the specific area of the recording medium, and deletes free blocks from two or more areas including at least the specific area.
2. The recording medium management device according to claim 1.
4. The area release means erases the actual data stored in the specific area of the recording medium, and deletes free blocks in a number equal to or greater than a predetermined set value from two or more areas including at least the specific area, in order from the area corresponding to the smaller degree of overlap.
2. The recording medium management device according to claim 1.
5. further comprising an estimation unit for estimating a time period during which the real data is not referenced by the virtual volume based on a history of accesses to the virtual data stored in the virtual volume; The storage means stores the real data in the one area of the recording medium according to the degree of overlap during the time period when it is estimated that the virtual data will not be accessed.
5. The recording medium management device according to claim 1,
6. A computer comprising: Calculating a degree of overlap indicating how many virtual volumes reference the same real data stored on the recording medium; storing the actual data in one area of the recording medium according to the degree of duplication; A recording medium management method for releasing a specific area of the recording medium in which only real data that is not referenced by any virtual volume is stored, the method comprising: The areas of the recording medium form a hierarchical structure, When virtual data is deleted from one virtual volume, The overlap degree of the real data corresponding to the deleted virtual data is decreased by 1; According to the change in the degree of overlap, real data corresponding to the deleted virtual data is moved from the one area of the recording medium to an area one level lower. Recording medium management method.
7. A process of calculating a degree of overlap indicating how many virtual volumes reference the same real data stored on the recording medium; storing the actual data in one area of the recording medium according to the degree of duplication; and a process of releasing a specific area of the recording medium in which only real data not referenced by any virtual volume is stored, the process comprising: The areas of the recording medium form a hierarchical structure, When virtual data is deleted from one virtual volume, A process of decreasing the degree of duplication of the real data corresponding to the deleted virtual data by 1; a process of moving real data corresponding to the deleted virtual data from the one area of the recording medium to an area one hierarchical level lower in accordance with a change in the degree of overlap; A program for causing the computer to execute the above.
Citation Information
Patent Citations
Program executing device, time deciding device and method
JP2001034487A
Disposable files
JP2012512462A
Memory system and control method
JP2019057172A
Computer system having data amount reduction function, and storage control method
JP2019159605A
Memory system and control method
JP2019179571A
