WO2021082422A1 - Compatibility processing method, system and device for space reclamation of storage system - Google Patents

Compatibility processing method, system and device for space reclamation of storage system Download PDF

Info

Publication number
WO2021082422A1
WO2021082422A1 PCT/CN2020/093085 CN2020093085W WO2021082422A1 WO 2021082422 A1 WO2021082422 A1 WO 2021082422A1 CN 2020093085 W CN2020093085 W CN 2020093085W WO 2021082422 A1 WO2021082422 A1 WO 2021082422A1
Authority
WO
WIPO (PCT)
Prior art keywords
volume
storage system
space
ordinary
zero
Prior art date
Application number
PCT/CN2020/093085
Other languages
French (fr)
Chinese (zh)
Inventor
赵书龙
Original Assignee
苏州浪潮智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 苏州浪潮智能科技有限公司 filed Critical 苏州浪潮智能科技有限公司
Publication of WO2021082422A1 publication Critical patent/WO2021082422A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0647Migration mechanisms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0652Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket

Definitions

  • the present invention relates to the technical field of storage systems, and more specifically to a compatible processing method, system and equipment for reclaiming storage system space.
  • the implementation principle of thin provisioning is to provide storage space for users on demand from a thin storage pool. Compared with traditional non-thin provisioning, there is no need to allocate unused disk capacity in advance, so storage utilization is higher.
  • Traditional Thin LUNs have no space reclamation function, and the continuous allocation of space will cause storage space to run out. Therefore, the space reclamation function of the thin volume is indispensable. When deleting files in the Thin LUN, the space reclamation can be realized through the host unmap command, so as to realize the repeated use of storage space and greatly improve the utilization of storage space.
  • the purpose of the present invention is to provide a compatible processing method, system and equipment for storage system space recovery, which can effectively utilize the space recovery capabilities of traditional and all-flash storage systems. Enhance the functionality of traditional storage and improve the storage efficiency of the all-flash system.
  • a compatible processing method for storage system space recovery including:
  • the host IO simultaneously performs write operations to the thin volume and the ordinary volume in the storage system.
  • unmapIO the metadata of the thin volume is deleted according to the preset deletion strategy, space is reclaimed, and all zero IO is written to the ordinary volume. Complete the order;
  • an all-zero IO detection mechanism is added to identify the all-zero IO in the ordinary volume.
  • the preset deletion strategy includes:
  • the storage system uses a mechanical disk and an SSD disk, the mechanical disk uses a thin volume and a normal volume, and the SSD disk uses a thin volume;
  • the mechanical disk does not need to be erased when deleting.
  • the metadata corresponding to the data block is directly deleted; at the same time, the actual physical address corresponding to the metadata is recycled and added to the unused linked list for recycling;
  • the ordinary volume receives the operating-copde as op_unmapIO, it is written to the back-end disk as all-zero data.
  • the grainSize space is set to determine the recycling granularity.
  • the present invention also discloses a compatible processing system for reclaiming storage system space, including: a delete operation unit for the host IO to simultaneously perform write operations to the thin volume and the ordinary volume in the storage system, and when writing through unmapIO , Delete the metadata of the thin volume according to the preset strategy, reclaim the space, write all zero IO to the ordinary volume, and complete the disk placement;
  • the all-zero IO identification unit is used to synchronize the data written in the ordinary volume to the thin volume, adding an all-zero IO detection mechanism to identify all-zero IOs placed in the ordinary volume.
  • the data processing unit is used for processing in accordance with the scenario of unmapIO during data migration and copy synchronization.
  • the present invention also discloses a compatible processing device for reclaiming storage system space, including: a memory for storing computer programs;
  • the processor is configured to implement the steps of the compatible processing method for reclaiming storage system space as described in any one of the above when executing the computer program.
  • the present invention has the beneficial effects that: the present invention provides a compatible processing method, system and equipment for storage system space recovery, realizes that traditional/hybrid flash/full flash storage systems use the same software version, while supporting traditional storage systems.
  • Mechanical disks and SSD storage disks greatly increase the complexity of system design.
  • the space recovery function of the present invention is based on a reduced volume with an automatic thin configuration function, and uses the metadata management and space management capabilities of the reduced volume to realize data space recovery; because the metadata management of the full flash and the traditional reduced volume is different, the present invention is clear A compatible strategy for space reclamation has been introduced.
  • the invention can greatly improve the storage space utilization rate of the system, enable the back-end SSD storage resources to maximize the read and write efficiency, and improve the system performance. And it can expand the functions of traditional storage products and enhance product competitiveness.
  • Figure 1 is a schematic diagram of the method of the present invention.
  • Fig. 2 is a schematic diagram of the method for preset deletion measurement of the present invention.
  • Figure 3 is a system structure diagram of the present invention.
  • a compatible processing method for reclaiming storage system space includes:
  • the host IO simultaneously performs write operations to the thin and ordinary volumes in the storage system.
  • unmap IO the metadata of the thin volume is deleted according to the preset deletion strategy, space is reclaimed, and all zero IO is written to the ordinary volume. , Complete the order placement;
  • an all-zero IO detection mechanism is added to identify the all-zero IO in the ordinary volume.
  • the preset deletion strategy includes:
  • the storage system uses mechanical disks and SSD disks, mechanical disks use reduced volumes and ordinary volumes, and SSD disks use reduced volumes. There is no metadata maintained in the ordinary volume.
  • the space of the ordinary volume is pre-allocated through the LBA to PBA mapping relationship. When the ordinary volume receives the operating-copde as op_unmap IO, it is written to the back-end disk as all-zero data. Before deleting the ordinary volume in the mechanical disk, the grainSize space is set to determine the recycling granularity.
  • the mechanical disk does not need to be erased when deleting.
  • the metadata corresponding to the data block is directly deleted; at the same time, the actual physical address corresponding to the metadata is recycled and added to the unused linked list for recycling.
  • the SSD disk When the SSD disk deletes the data block, it needs to erase the NAND Flash. When deleting the data block, first mark the metadata as deleting; then through the background garbage collection module, the SSD is erased asynchronously through trim for space recovery.
  • space reclamation can be achieved through the metadata management of the thin volume.
  • the metadata of the corresponding data block needs to be deleted during unmap IO processing.
  • the ordinary pool only deletes the metadata, while the full flash thin pool needs to be first based on the characteristics of SSDs. Delete the metadata, and trim the data on the disk through a background task.
  • storage space reclamation supports the volume copy service feature of compatible storage, which can effectively realize the space reclamation function during data migration and backup.
  • the present invention also discloses a compatible processing system for reclaiming storage system space, including:
  • the delete operation unit is used for the host IO to simultaneously perform write operations to the thin volume and the ordinary volume in the storage system.
  • the metadata of the thin volume is deleted according to the preset strategy, and the space is reclaimed. Write all zero IO to complete the disk placement.
  • the all-zero IO identification unit is used to synchronize the data written in the ordinary volume to the thin volume, adding an all-zero IO detection mechanism to identify all-zero IOs placed in the ordinary volume.
  • the data processing unit is used for processing in accordance with the scenario of unmap IO during data migration and copy synchronization.
  • the present invention also discloses a compatible processing device for reclaiming storage system space, including: a memory for storing computer programs;
  • the processor is configured to implement the steps of the compatible processing method for reclaiming storage system space as described in any one of the above when executing the computer program.
  • ROM Read-only memory
  • RAM Random Access Memory
  • magnetic disks or optical disks and other media that can store program codes, including several instructions to make a computer terminal (It can be a personal computer, a server, or a second terminal, a network terminal, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present invention.
  • a computer terminal It can be a personal computer, a server, or a second terminal, a network terminal, etc.
  • the same or similar parts in the various embodiments in this specification can be referred to each other.
  • the terminal embodiment since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the description in the method embodiment.
  • the disclosed system, system, and method may be implemented in other ways.
  • the system embodiment described above is only illustrative.
  • the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or It can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, systems or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional modules in the various embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules may be integrated into one unit.
  • processing units in the various embodiments of the present invention may be integrated into one functional module, or each processing unit may physically exist, or two or more processing units may be integrated into one functional module.

Abstract

A compatibility processing method, system and device for space reclamation of a storage system. The method comprises: a host IO simultaneously executing a write operation on a thin volume and a common volume in a storage system; and during writing by means of unmap IO, deleting metadata of the thin volume according to a preset deletion policy in order to perform space reclamation, and writing all-zero IO in the common volume to complete writing data in a disk. According to the present invention, the utilization rate of a storage space of the system can be greatly improved, such that back-end SSD storage resources achieve the maximum read-write efficiency, and the system performance is improved. In addition, the functions of a traditional storage product can be expanded, thereby improving the product competitiveness.

Description

一种存储系统空间回收的兼容处理方法、系统及设备Compatible processing method, system and equipment for storage system space recovery
本申请要求于2019年10月31日提交中国专利局、申请号为201911052313.0、发明名称为“一种存储系统空间回收的兼容处理方法、系统及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on October 31, 2019, the application number is 201911052313.0, and the invention title is "a compatible processing method, system and equipment for storage system space recovery", and its entire content Incorporated in this application by reference.
技术领域Technical field
本发明涉及存储系统技术领域,更具体的说是涉及一种存储系统空间回收的兼容处理方法、系统及设备。The present invention relates to the technical field of storage systems, and more specifically to a compatible processing method, system and equipment for reclaiming storage system space.
背景技术Background technique
随着用户数据量的不断增大,对存储空间的需求不断提高,提高存储空间的利用率是众多产品需要解决的问题。自动精简配置的实现原则是从一个精简存储池中按需提供存储空间给用户使用,自动精简配置,相对于传统非精简配置,无需提前分配用不到的磁盘容量所以存储利用率更高。传统的Thin LUN没有空间回收功能,随着空间的不断分配会导致存储空间耗尽。因此,精简卷的空间回收功能就必不可少,当删除Thin LUN中的文件时,可以通过主机unmap指令实现空间回收,从而实现存储端空间的反复利用,极大提升存储空间的利用率。As the amount of user data continues to increase, the demand for storage space continues to increase. Improving the utilization of storage space is a problem that many products need to solve. The implementation principle of thin provisioning is to provide storage space for users on demand from a thin storage pool. Compared with traditional non-thin provisioning, there is no need to allocate unused disk capacity in advance, so storage utilization is higher. Traditional Thin LUNs have no space reclamation function, and the continuous allocation of space will cause storage space to run out. Therefore, the space reclamation function of the thin volume is indispensable. When deleting files in the Thin LUN, the space reclamation can be realized through the host unmap command, so as to realize the repeated use of storage space and greatly improve the utilization of storage space.
同时对于后端磁盘介质为SSD的全闪存储系统,由于NAND flash的读写特点,空间回收操作对提升性能和空间利用率是必不可少的功能。At the same time, for all-flash storage systems where the back-end disk media is SSD, due to the read and write characteristics of NAND flash, space reclamation operations are indispensable for improving performance and space utilization.
传统存储系统(HDD机械盘)不会考虑空间回收功能,但随着从传统存储系统到混闪/全闪存储系统的迭代,随着数据量的爆发式增长,空间回收的需求也愈发突出,实现空间回收也绕不开兼容策略。如何有效发挥传统和全闪存储系统的空间回收能力。让传统存储功能性增强,让全闪系统存储效率得到提高,是我们亟待解决的问题。Traditional storage systems (HDD mechanical disks) do not consider the space reclamation function, but with the iteration from traditional storage systems to hybrid flash/full flash storage systems, with the explosive growth of data volume, the demand for space reclamation has become more prominent , The realization of space reclamation cannot bypass the compatibility strategy. How to effectively utilize the space reclamation capabilities of traditional and all-flash storage systems. Enhancing the functionality of traditional storage and improving the storage efficiency of all-flash systems are issues that we urgently need to solve.
发明内容Summary of the invention
针对以上问题,本发明的目的在于提供一种存储系统空间回收的兼容 处理方法、系统及设备,可以有效发挥传统和全闪存储系统的空间回收能力。让传统存储功能性增强,让全闪系统存储效率得到提高。In view of the above problems, the purpose of the present invention is to provide a compatible processing method, system and equipment for storage system space recovery, which can effectively utilize the space recovery capabilities of traditional and all-flash storage systems. Enhance the functionality of traditional storage and improve the storage efficiency of the all-flash system.
本发明为实现上述目的,通过以下技术方案实现:一种存储系统空间回收的兼容处理方法,包括:In order to achieve the above objective, the present invention is achieved through the following technical solutions: a compatible processing method for storage system space recovery, including:
主机IO同时向存储系统内的精简卷和普通卷执行写入操作,通过unmapIO写入时,按预设删除策略删除精简卷的元数据,进行空间回收,并对普通卷写入全零IO,完成落盘;The host IO simultaneously performs write operations to the thin volume and the ordinary volume in the storage system. When writing through unmapIO, the metadata of the thin volume is deleted according to the preset deletion strategy, space is reclaimed, and all zero IO is written to the ordinary volume. Complete the order;
将普通卷中已写入的数据同步到精简卷时,加入全零IO检测机制,将普通卷中落盘的全零IO进行识别。When synchronizing the data written in the ordinary volume to the thin volume, an all-zero IO detection mechanism is added to identify the all-zero IO in the ordinary volume.
进一步,还包括:Further, it also includes:
在数据迁移和拷贝同步时,按照unmapIO的场景进行处理。进一步,所述预设删除策略包括:During data migration and copy synchronization, processing is performed in accordance with the scenario of unmapIO. Further, the preset deletion strategy includes:
所述存储系统采用机械盘和SSD磁盘,机械盘采用精简卷和普通卷,SSD磁盘采用精简卷;The storage system uses a mechanical disk and an SSD disk, the mechanical disk uses a thin volume and a normal volume, and the SSD disk uses a thin volume;
机械盘不需要在删除时进行擦写操作,删除数据块时,直接删除该数据块对应的元数据;同时将该元数据对应的实际物理地址,进行回收,加入unused链表,用于回收利用;The mechanical disk does not need to be erased when deleting. When deleting a data block, the metadata corresponding to the data block is directly deleted; at the same time, the actual physical address corresponding to the metadata is recycled and added to the unused linked list for recycling;
SSD磁盘删除数据块时需要擦写NANDFlash,在删除数据块时,先将元数据标记为deleting;然后通过后台垃圾回收模块,通过trim异步擦写SSD,用于空间回收。When an SSD disk deletes a data block, it needs to erase and write NANDFlash. When deleting a data block, first mark the metadata as deleting; then through the background garbage collection module, the SSD is asynchronously erased and written through trim for space recovery.
进一步,所述普通卷内没有维护的元数据,普通卷的空间通过LBA到PBA映射关系预先分配,当普通卷接收到operating-copde为op_unmapIO时,将其作为全零数据写入后端磁盘。Further, there is no metadata maintained in the ordinary volume, and the space of the ordinary volume is pre-allocated through the LBA to PBA mapping relationship. When the ordinary volume receives the operating-copde as op_unmapIO, it is written to the back-end disk as all-zero data.
进一步,所述机械盘内的普通卷,在删除操作之前,通过设置grainSize空间确定回收粒度。Further, before the deletion operation of the ordinary volume in the mechanical disk, the grainSize space is set to determine the recycling granularity.
相应的,本发明还公开了一种存储系统空间回收的兼容处理系统,包括:删除操作单元,用于主机IO同时向存储系统内的精简卷和普通卷执行写入操作,通过unmapIO写入时,按预设策略删除精简卷的元数据,进行空间回收,并对普通卷写入全零IO,完成落盘;Correspondingly, the present invention also discloses a compatible processing system for reclaiming storage system space, including: a delete operation unit for the host IO to simultaneously perform write operations to the thin volume and the ordinary volume in the storage system, and when writing through unmapIO , Delete the metadata of the thin volume according to the preset strategy, reclaim the space, write all zero IO to the ordinary volume, and complete the disk placement;
全零IO识别单元,用于将普通卷中已写入的数据同步到精简卷时,加入全零IO检测机制,将普通卷中落盘的全零IO进行识别。The all-zero IO identification unit is used to synchronize the data written in the ordinary volume to the thin volume, adding an all-zero IO detection mechanism to identify all-zero IOs placed in the ordinary volume.
进一步,还包括:Further, it also includes:
数据处理单元,用于在数据迁移和拷贝同步时,按照unmapIO的场景进行处理。The data processing unit is used for processing in accordance with the scenario of unmapIO during data migration and copy synchronization.
相应的,本发明还公开了一种存储系统空间回收的兼容处理设备,包括:存储器,用于存储计算机程序;Correspondingly, the present invention also discloses a compatible processing device for reclaiming storage system space, including: a memory for storing computer programs;
处理器,用于执行所述计算机程序时实现如上文任一项所述存储系统空间回收的兼容处理方法步骤。The processor is configured to implement the steps of the compatible processing method for reclaiming storage system space as described in any one of the above when executing the computer program.
对比现有技术,本发明有益效果在于:本发明提供了一种存储系统空间回收的兼容处理方法、系统及设备,实现了传统/混闪/全闪存储系统使用相同的软件版本,同时支持传统机械盘和SSD存储盘,系统设计的复杂性大大提高。本发明的空间回收功能,基于具有自动精简配置功能的精简卷,利用精简卷的元数据管理和空间管理能力实现数据的空间回收;由于全闪和传统精简卷的元数据管理不同,本发明明确了空间回收的兼容策略。Compared with the prior art, the present invention has the beneficial effects that: the present invention provides a compatible processing method, system and equipment for storage system space recovery, realizes that traditional/hybrid flash/full flash storage systems use the same software version, while supporting traditional storage systems. Mechanical disks and SSD storage disks greatly increase the complexity of system design. The space recovery function of the present invention is based on a reduced volume with an automatic thin configuration function, and uses the metadata management and space management capabilities of the reduced volume to realize data space recovery; because the metadata management of the full flash and the traditional reduced volume is different, the present invention is clear A compatible strategy for space reclamation has been introduced.
本发明能够极大的提高系统的存储空间利用率,使后端SSD存储资源发挥最大读写效率,提升系统性能。并且能扩展传统存储产品的功能,提升产品竞争力。The invention can greatly improve the storage space utilization rate of the system, enable the back-end SSD storage resources to maximize the read and write efficiency, and improve the system performance. And it can expand the functions of traditional storage products and enhance product competitiveness.
由此可见,本发明与现有技术相比,具有突出的实质性特点和显著的进步,其实施的有益效果也是显而易见的。It can be seen that, compared with the prior art, the present invention has outstanding substantive features and significant progress, and the beneficial effects of its implementation are also obvious.
附图说明Description of the drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only It is an embodiment of the present invention. For those of ordinary skill in the art, without creative work, other drawings can be obtained according to the provided drawings.
附图1是本发明的方法示意图。Figure 1 is a schematic diagram of the method of the present invention.
附图2是本发明的预设删除测量的方法示意图。Fig. 2 is a schematic diagram of the method for preset deletion measurement of the present invention.
附图3是本发明的系统结构图。Figure 3 is a system structure diagram of the present invention.
具体实施方式Detailed ways
下面结合附图对本发明的具体实施方式做出说明。The specific embodiments of the present invention will be described below with reference to the accompanying drawings.
如图1所示的一种存储系统空间回收的兼容处理方法,包括:As shown in Figure 1, a compatible processing method for reclaiming storage system space includes:
主机IO同时向存储系统内的精简卷和普通卷执行写入操作,通过unmap IO写入时,按预设删除策略删除精简卷的元数据,进行空间回收,并对普通卷写入全零IO,完成落盘;The host IO simultaneously performs write operations to the thin and ordinary volumes in the storage system. When writing through unmap IO, the metadata of the thin volume is deleted according to the preset deletion strategy, space is reclaimed, and all zero IO is written to the ordinary volume. , Complete the order placement;
将普通卷中已写入的数据同步到精简卷时,加入全零IO检测机制,将普通卷中落盘的全零IO进行识别。When synchronizing the data written in the ordinary volume to the thin volume, an all-zero IO detection mechanism is added to identify the all-zero IO in the ordinary volume.
在数据迁移和拷贝同步时,按照unmap IO的场景进行处理。如图2所示,所述预设删除策略包括:During data migration and copy synchronization, processing is performed in accordance with the scenario of unmap IO. As shown in Figure 2, the preset deletion strategy includes:
存储系统采用机械盘和SSD磁盘,机械盘采用精简卷和普通卷,SSD磁盘采用精简卷。普通卷内没有维护的元数据,普通卷的空间通过LBA到PBA映射关系预先分配,当普通卷接收到operating-copde为op_unmap IO时,将其作为全零数据写入后端磁盘。机械盘内的普通卷,在删除操作之前,通过设置grainSize空间确定回收粒度。The storage system uses mechanical disks and SSD disks, mechanical disks use reduced volumes and ordinary volumes, and SSD disks use reduced volumes. There is no metadata maintained in the ordinary volume. The space of the ordinary volume is pre-allocated through the LBA to PBA mapping relationship. When the ordinary volume receives the operating-copde as op_unmap IO, it is written to the back-end disk as all-zero data. Before deleting the ordinary volume in the mechanical disk, the grainSize space is set to determine the recycling granularity.
机械盘不需要在删除时进行擦写操作,删除数据块时,直接删除该数据块对应的元数据;同时将该元数据对应的实际物理地址,进行回收,加入unused链表,用于回收利用。The mechanical disk does not need to be erased when deleting. When deleting a data block, the metadata corresponding to the data block is directly deleted; at the same time, the actual physical address corresponding to the metadata is recycled and added to the unused linked list for recycling.
SSD磁盘删除数据块时需要擦写NAND Flash,在删除数据块时,先将元数据标记为deleting;然后通过后台垃圾回收模块,通过trim异步擦写SSD,用于空间回收。When the SSD disk deletes the data block, it needs to erase the NAND Flash. When deleting the data block, first mark the metadata as deleting; then through the background garbage collection module, the SSD is erased asynchronously through trim for space recovery.
由此可见,空间回收可以通过精简卷的元数据管理实现,unmap IO处理时需要将对应数据块元数据删除,普通池仅删除元数据,而全闪精简池则根据SSD的特性需求,需要先将元数据删除,通过后台任务将磁盘上的数据进行trim擦除。同时,存储空间回收支持兼容存储的卷拷贝服务特性,能有效实现数据迁移和备份过程中的空间回收功能。It can be seen that space reclamation can be achieved through the metadata management of the thin volume. The metadata of the corresponding data block needs to be deleted during unmap IO processing. The ordinary pool only deletes the metadata, while the full flash thin pool needs to be first based on the characteristics of SSDs. Delete the metadata, and trim the data on the disk through a background task. At the same time, storage space reclamation supports the volume copy service feature of compatible storage, which can effectively realize the space reclamation function during data migration and backup.
相应的,如图3所示,本发明还公开了一种存储系统空间回收的兼容处理系统,包括:Correspondingly, as shown in FIG. 3, the present invention also discloses a compatible processing system for reclaiming storage system space, including:
删除操作单元,用于主机IO同时向存储系统内的精简卷和普通卷执行写入操作,通过unmap IO写入时,按预设策略删除精简卷的元数据,进行空间回收,并对普通卷写入全零IO,完成落盘。The delete operation unit is used for the host IO to simultaneously perform write operations to the thin volume and the ordinary volume in the storage system. When writing through unmap IO, the metadata of the thin volume is deleted according to the preset strategy, and the space is reclaimed. Write all zero IO to complete the disk placement.
全零IO识别单元,用于将普通卷中已写入的数据同步到精简卷时,加入全零IO检测机制,将普通卷中落盘的全零IO进行识别。The all-zero IO identification unit is used to synchronize the data written in the ordinary volume to the thin volume, adding an all-zero IO detection mechanism to identify all-zero IOs placed in the ordinary volume.
数据处理单元,用于在数据迁移和拷贝同步时,按照unmap IO的场景进行处理。The data processing unit is used for processing in accordance with the scenario of unmap IO during data migration and copy synchronization.
相应的,本发明还公开了一种存储系统空间回收的兼容处理设备,包括:存储器,用于存储计算机程序;Correspondingly, the present invention also discloses a compatible processing device for reclaiming storage system space, including: a memory for storing computer programs;
处理器,用于执行所述计算机程序时实现如上文任一项所述存储系统空间回收的兼容处理方法步骤。The processor is configured to implement the steps of the compatible processing method for reclaiming storage system space as described in any one of the above when executing the computer program.
本领域的技术人员可以清楚地了解到本发明实施例中的技术可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明实施例中的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中如U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质,包括若干指令用以使得一台计算机终端(可以是个人计算机,服务器,或者第二终端、网络终端等)执行本发明各个实施例所述方法的全部或部分步骤。本说明书中各个实施例之间相同相似的部分互相参见即可。尤其,对于终端实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例中的说明即可。Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solutions in the embodiments of the present invention can be embodied in the form of software products in essence or the parts that contribute to the prior art. The computer software products are stored in a storage medium such as a USB flash drive or a mobile device. Hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes, including several instructions to make a computer terminal (It can be a personal computer, a server, or a second terminal, a network terminal, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present invention. The same or similar parts in the various embodiments in this specification can be referred to each other. In particular, as for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the description in the method embodiment.
在本发明所提供的几个实施例中,应该理解到,所揭露的系统、系统和方法,可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,系统或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed system, system, and method may be implemented in other ways. For example, the system embodiment described above is only illustrative. For example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or It can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, systems or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本发明各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个单元中。In addition, the functional modules in the various embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules may be integrated into one unit.
同理,在本发明各个实施例中的各处理单元可以集成在一个功能模块中,也可以是各个处理单元物理存在,也可以两个或两个以上处理单元集成在一个功能模块中。In the same way, the processing units in the various embodiments of the present invention may be integrated into one functional module, or each processing unit may physically exist, or two or more processing units may be integrated into one functional module.
结合附图和具体实施例,对本发明作进一步说明。应理解,这些实施例仅用于说明本发明而不用于限制本发明的范围。此外应理解,在阅读了本发明讲授的内容之后,本领域技术人员可以对本发明作各种改动或修改,这些等价形式同样落于本申请所限定的范围。The present invention will be further described with reference to the drawings and specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and not to limit the scope of the present invention. In addition, it should be understood that after reading the teachings of the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms also fall within the scope defined by the present application.

Claims (8)

  1. 一种存储系统空间回收的兼容处理方法,其特征在于,包括:A compatible processing method for reclaiming storage system space, which is characterized in that it includes:
    主机IO同时向存储系统内的精简卷和普通卷执行写入操作,通过unmapIO写入时,按预设删除策略删除精简卷的元数据,进行空间回收,并对普通卷写入全零IO,完成落盘;The host IO simultaneously performs write operations to the thin volume and the ordinary volume in the storage system. When writing through unmapIO, the metadata of the thin volume is deleted according to the preset deletion strategy, space is reclaimed, and all zero IO is written to the ordinary volume. Complete the order;
    将普通卷中已写入的数据同步到精简卷时,加入全零IO检测机制,将普通卷中落盘的全零IO进行识别。When synchronizing the data written in the ordinary volume to the thin volume, an all-zero IO detection mechanism is added to identify the all-zero IO in the ordinary volume.
  2. 根据权利要求1所述的存储系统空间回收的兼容处理方法,其特征在于,还包括:The compatible processing method for reclaiming storage system space according to claim 1, further comprising:
    在数据迁移和拷贝同步时,按照unmapIO的场景进行处理。During data migration and copy synchronization, processing is performed in accordance with the scenario of unmapIO.
  3. 根据权利要求1所述的存储系统空间回收的兼容处理方法,其特征在于,所述预设删除策略包括:The compatible processing method for reclaiming storage system space according to claim 1, wherein the preset deletion strategy comprises:
    所述存储系统采用机械盘和SSD磁盘,机械盘采用精简卷和普通卷,SSD磁盘采用精简卷;The storage system uses a mechanical disk and an SSD disk, the mechanical disk uses a thin volume and a normal volume, and the SSD disk uses a thin volume;
    机械盘不需要在删除时进行擦写操作,删除数据块时,直接删除该数据块对应的元数据;同时将该元数据对应的实际物理地址,进行回收,加入unused链表,用于回收利用;The mechanical disk does not need to be erased when deleting. When deleting a data block, the metadata corresponding to the data block is directly deleted; at the same time, the actual physical address corresponding to the metadata is recycled and added to the unused linked list for recycling;
    SSD磁盘删除数据块时需要擦写NANDFlash,在删除数据块时,先将元数据标记为deleting;然后通过后台垃圾回收模块,通过trim异步擦写SSD,用于空间回收。When an SSD disk deletes a data block, it needs to erase and write NANDFlash. When deleting a data block, first mark the metadata as deleting; then through the background garbage collection module, the SSD is asynchronously erased and written through trim for space recovery.
  4. 根据权利要求3所述的存储系统空间回收的兼容处理方法,其特征在于,所述普通卷内没有维护的元数据,普通卷的空间通过LBA到PBA映射关系预先分配,当普通卷接收到operating-copde为op_unmapIO时,将其作为全零数据写入后端磁盘。The compatible processing method of storage system space reclamation according to claim 3, characterized in that there is no metadata maintained in the ordinary volume, and the space of the ordinary volume is pre-allocated through the LBA to PBA mapping relationship. When the ordinary volume receives the operating -When copde is op_unmapIO, write it as all zero data to the back-end disk.
  5. 根据权利要求3所述的存储系统空间回收的兼容处理方法,其特征在于,所述机械盘内的普通卷,在删除操作之前,通过设置grainSize空间确定回收粒度。The compatible processing method for reclaiming storage system space according to claim 3, characterized in that the reclaiming granularity of the ordinary volume in the mechanical disk is determined by setting the grainSize space before the deletion operation.
  6. 一种存储系统空间回收的兼容处理系统,其特征在于,包括:A compatible processing system for reclaiming storage system space, which is characterized in that it comprises:
    删除操作单元,用于主机IO同时向存储系统内的精简卷和普通卷执行 写入操作,通过unmapIO写入时,按预设策略删除精简卷的元数据,进行空间回收,并对普通卷写入全零IO,完成落盘;The delete operation unit is used for the host IO to simultaneously write to the thin volume and the ordinary volume in the storage system. When writing through unmapIO, the metadata of the thin volume is deleted according to the preset strategy, space is reclaimed, and the ordinary volume is written Enter all zero IO and complete the order placement;
    全零IO识别单元,用于将普通卷中已写入的数据同步到精简卷时,加入全零IO检测机制,将普通卷中落盘的全零IO进行识别。The all-zero IO identification unit is used to synchronize the data written in the ordinary volume to the thin volume, adding an all-zero IO detection mechanism to identify all-zero IOs placed in the ordinary volume.
  7. 根据权利要求6所述的存储系统空间回收的兼容处理系统,其特征在于,还包括:The compatible processing system for reclaiming storage system space according to claim 6, further comprising:
    数据处理单元,用于在数据迁移和拷贝同步时,按照unmapIO的场景进行处理。The data processing unit is used for processing in accordance with the scenario of unmapIO during data migration and copy synchronization.
  8. 一种存储系统空间回收的兼容处理设备,其特征在于,包括:A compatible processing device for reclaiming storage system space, which is characterized in that it includes:
    存储器,用于存储计算机程序;Memory, used to store computer programs;
    处理器,用于执行所述计算机程序时实现如权利要求1至5任一项所述存储系统空间回收的兼容处理方法步骤。The processor is configured to implement the steps of the compatible processing method for reclaiming the storage system space according to any one of claims 1 to 5 when the computer program is executed.
PCT/CN2020/093085 2019-10-31 2020-05-29 Compatibility processing method, system and device for space reclamation of storage system WO2021082422A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911052313.0 2019-10-31
CN201911052313.0A CN111007985B (en) 2019-10-31 2019-10-31 Compatible processing method, system and equipment for space recovery of storage system

Publications (1)

Publication Number Publication Date
WO2021082422A1 true WO2021082422A1 (en) 2021-05-06

Family

ID=70111862

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/093085 WO2021082422A1 (en) 2019-10-31 2020-05-29 Compatibility processing method, system and device for space reclamation of storage system

Country Status (2)

Country Link
CN (1) CN111007985B (en)
WO (1) WO2021082422A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111007985B (en) * 2019-10-31 2021-10-22 苏州浪潮智能科技有限公司 Compatible processing method, system and equipment for space recovery of storage system
CN111813344B (en) * 2020-07-16 2022-06-17 济南浪潮数据技术有限公司 IO processing method, device, equipment and storage medium in remote copy
CN112162701B (en) * 2020-09-18 2023-12-22 北京浪潮数据技术有限公司 Storage space recycling method, device, equipment and computer storage medium
CN115757192A (en) * 2021-09-03 2023-03-07 华为技术有限公司 Recovery method of storage block and related device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984641A (en) * 2014-05-22 2014-08-13 华为技术有限公司 Storage space recycling method and storage space recycling device based on thin provisioning technology
US20140298326A1 (en) * 2013-03-29 2014-10-02 Vmware, Inc. Asynchronous unmap of thinly provisioned storage for virtual machines
CN105573666A (en) * 2014-11-05 2016-05-11 日本电气株式会社 Disk array device, disk control device, solid state drive, disk control method, and recording medium
CN111007985A (en) * 2019-10-31 2020-04-14 苏州浪潮智能科技有限公司 Compatible processing method, system and equipment for space recovery of storage system

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008146574A (en) * 2006-12-13 2008-06-26 Hitachi Ltd Storage controller and storage control method
US20090077327A1 (en) * 2007-09-18 2009-03-19 Junichi Hara Method and apparatus for enabling a NAS system to utilize thin provisioning
US8856471B2 (en) * 2012-12-05 2014-10-07 Infinidat Ltd. System, method and a non-transitory computer readable medium for creating a warranted snapshot
JP6160173B2 (en) * 2013-03-28 2017-07-12 富士通株式会社 Storage device, allocation release control method, and allocation release control program
WO2015000503A1 (en) * 2013-07-02 2015-01-08 Hitachi Data Systems Engineering UK Limited Method and apparatus for migration of a virtualized file system, data storage system for migration of a virtualized file system, and file server for use in a data storage system
CN104536816A (en) * 2014-12-17 2015-04-22 中电科华云信息技术有限公司 Method for improving migration efficiency of virtual machine
US20180165037A1 (en) * 2015-04-23 2018-06-14 Hewlett Packard Enterprise Development Lp Storage Reclamation in a Thin Provisioned Storage Device
CN107122131B (en) * 2017-04-18 2020-08-14 杭州宏杉科技股份有限公司 Thin provisioning method and device
US10754556B2 (en) * 2017-06-27 2020-08-25 International Business Machines Corporation Prioritization of virtual volumes to take offline in a thin provisioning system
CN108363552B (en) * 2018-01-31 2020-06-02 华为技术有限公司 Method and system for recycling disk space of virtual machine
CN109388347A (en) * 2018-10-15 2019-02-26 郑州云海信息技术有限公司 A kind of data migration method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140298326A1 (en) * 2013-03-29 2014-10-02 Vmware, Inc. Asynchronous unmap of thinly provisioned storage for virtual machines
CN103984641A (en) * 2014-05-22 2014-08-13 华为技术有限公司 Storage space recycling method and storage space recycling device based on thin provisioning technology
CN105573666A (en) * 2014-11-05 2016-05-11 日本电气株式会社 Disk array device, disk control device, solid state drive, disk control method, and recording medium
CN111007985A (en) * 2019-10-31 2020-04-14 苏州浪潮智能科技有限公司 Compatible processing method, system and equipment for space recovery of storage system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HAN PUJIE ,KANG MU-NING, ZHANG XIAO: "Research on Method to Reclaim Storage in Thin-Provisioning Storage Systems", COMPUTER AND MODERNIZATION, no. 12, 20 December 2012 (2012-12-20), pages 168 - 173+177, XP055810066, ISSN: 1006-2475, DOI: 10.3969/j.issn.1006-2475.2012.12.011 *

Also Published As

Publication number Publication date
CN111007985B (en) 2021-10-22
CN111007985A (en) 2020-04-14

Similar Documents

Publication Publication Date Title
WO2021082422A1 (en) Compatibility processing method, system and device for space reclamation of storage system
US8626987B2 (en) Flash memory system and defragmentation method
US8762627B2 (en) Memory logical defragmentation during garbage collection
US8527720B2 (en) Methods of capturing and naming dynamic storage tiering configurations to support data pre-staging
TWI569139B (en) Valid data merging method, memory controller and memory storage apparatus
KR20110119408A (en) Data storage device and method for operating thereof
US10852948B2 (en) System and method for data organization in shingled magnetic recording drive
CN102667703A (en) System and method for optimized reclamation processing in a virtual tape library system
CN110399310A (en) A kind of recovery method and device of memory space
US11108864B2 (en) System and method for client policy assignment in a data storage system
CN104360914A (en) Incremental snapshot method and device
US20190243758A1 (en) Storage control device and storage control method
US20120089765A1 (en) Method for performing automatic boundary alignment and related non-volatile memory device
WO2020192710A1 (en) Method for processing garbage based on lsm database, solid state hard disk, and storage apparatus
CN105493080A (en) Method and apparatus for context aware based data de-duplication
KR20090031102A (en) Method and apparatus for formatting for a potable storage device
JP6531574B2 (en) Storage device, storage device control program and storage device control method
WO2020172821A1 (en) Write amplification optimization method for solid state drivers
CN104572492A (en) Method and apparatus of burning data to FAT (File Allocation Table)32 partition
CN114303123A (en) Data storage method and device of solid state disk and Solid State Disk (SSD)
CN110312986B (en) Opportunistic use of streams for storing data on solid state devices
US9235352B2 (en) Datastore for non-overwriting storage devices
US11513702B2 (en) Placement of metadata on data storage drives in a first storage enclosure of a data storage system
US20180307419A1 (en) Storage control apparatus and storage control method
CN103064926A (en) Data processing method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20882250

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20882250

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20882250

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10.11.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20882250

Country of ref document: EP

Kind code of ref document: A1