[go: up one dir, main page]

HK1206839B - Method for controlling hybrid storage and hybrid storage system - Google Patents

Method for controlling hybrid storage and hybrid storage system Download PDF

Info

Publication number
HK1206839B
HK1206839B HK15107342.3A HK15107342A HK1206839B HK 1206839 B HK1206839 B HK 1206839B HK 15107342 A HK15107342 A HK 15107342A HK 1206839 B HK1206839 B HK 1206839B
Authority
HK
Hong Kong
Prior art keywords
storage
ssd
storage device
hdd
type storage
Prior art date
Application number
HK15107342.3A
Other languages
Chinese (zh)
Other versions
HK1206839A1 (en
Inventor
杜华兵
麻杨军
阳振坤
Original Assignee
北京奥星贝斯科技有限公司
Filing date
Publication date
Priority claimed from CN201310618239.0A external-priority patent/CN104679661B/en
Application filed by 北京奥星贝斯科技有限公司 filed Critical 北京奥星贝斯科技有限公司
Publication of HK1206839A1 publication Critical patent/HK1206839A1/en
Publication of HK1206839B publication Critical patent/HK1206839B/en

Links

Description

混合存储的控制方法及混合存储系统Hybrid storage control method and hybrid storage system

技术领域Technical Field

本申请涉及数据存储领域,尤其涉及一种混合存储的控制方法及混合存储系统。The present application relates to the field of data storage, and in particular to a hybrid storage control method and a hybrid storage system.

背景技术Background Art

目前,混合存储技术已经成为一种趋势,混合存储,即是指根据不同的存储设备不同的特性,将多种不同存储设备依照一定的策略组成的存储系统,使用混合存储系统一般可以具有比使用单一存储更好的系统性能。比如:CPU的随机存储部分,有一级缓存(L1Cache)、二级缓存(L2Cache)、三级缓存(L3Cache)、主存储器(主内存Main Memory),这些存储设备的数据访问速度逐步减低,但是容量逐步增大,按照一定的缓存Cache一致性机制,可以让大量的数据访问在容量较小、单速度更快的缓存Cache进行,以提高整体系统性能。Hybrid storage technology has become a trend. Hybrid storage refers to a storage system composed of multiple different storage devices according to specific strategies based on their distinct characteristics. Using a hybrid storage system generally results in better system performance than using a single storage system. For example, the random access memory portion of a CPU consists of a level 1 cache (L1Cache), a level 2 cache (L2Cache), a level 3 cache (L3Cache), and main memory. While the data access speed of these storage devices gradually decreases, their capacity gradually increases. Using a specific cache consistency mechanism, large amounts of data can be accessed from a smaller, faster cache, improving overall system performance.

现有的混合存储技术,主要有混合硬盘技术、flashcache技术等。Existing hybrid storage technologies mainly include hybrid hard disk technology, flash cache technology, etc.

混合硬盘技术,硬盘内部直接集成一定大小SSD(固态硬盘)的混合HDD硬盘并由磁盘控制器控制的SSD与HDD融合技术,HDD一般容量大,但数据访问速度稍慢,而SSD一般容量小,数据访问速度快,SSD与HDD的配比一般是固定的,无法有效适配不同的场景获得最佳性价比。Hybrid hard drive technology is a hybrid HDD technology that directly integrates a certain size SSD (solid-state drive) inside the hard drive and controls the SSD and HDD fusion technology. HDDs generally have large capacity but slightly slower data access speeds, while SSDs generally have small capacity and fast data access speeds. The ratio of SSD to HDD is generally fixed, which cannot effectively adapt to different scenarios to achieve the best cost-effectiveness.

flashcache技术,通过在文件系统(VFS)和设备驱动之间新增了一缓存层,来实现对热门数据的缓存。flashcache,一般用SSD作为介质的缓存(一般的缓存用的是内存),通过将传统硬盘上的热门数据缓存到SSD上,然后利用SSD优秀的读性能来加速系统。Flashcache technology caches popular data by adding a new caching layer between the file system (VFS) and the device driver. Flashcache typically uses an SSD as the cache medium (compared to traditional caches that use memory). By caching popular data on traditional hard drives to SSDs, it leverages the SSD's superior read performance to accelerate the system.

混合硬盘技术和flashcache技术都是基于单机的混合机制,单机设备配置复杂,且灵活性较差。而随着分布式存储技术的发展,在集群层面也需要混合存储技术。但现有的混合存储技术还无法在集群层面实现。Hybrid hard drive technology and FlashCache technology are both based on standalone hybrid mechanisms. These standalone devices are complex to configure and lack flexibility. However, with the development of distributed storage technology, hybrid storage technology is also required at the cluster level. However, existing hybrid storage technologies are not yet feasible at the cluster level.

发明内容Summary of the Invention

本申请的主要目的在于提供一种混合存储的控制方法及混合存储系统,以解决现有技术存在的上述问题,其中:The main purpose of this application is to provide a hybrid storage control method and a hybrid storage system to solve the above-mentioned problems existing in the prior art, wherein:

本申请提供了一种混合存储的控制方法,应用于具有一个或多个HDD型存储设备以及一个或多个SSD型存储设备的存储系统中的每一个HDD型存储设备和每一个SSD型存储设备中,所述存储系统中的每一个HDD型存储设备和SSD型存储设备相连接,所述每一个HDD型存储设备和每一个SSD型存储设备中分别存储有一个或多个数据块,该方法包括:周期性地获取存储设备中存储的每个数据块的访问信息;根据获取到的所述每个数据块的访问信息,调整所述每个数据块在所述存储系统中的存储位置。The present application provides a hybrid storage control method, which is applied to each HDD-type storage device and each SSD-type storage device in a storage system having one or more HDD-type storage devices and one or more SSD-type storage devices, each HDD-type storage device and each SSD-type storage device in the storage system being connected, and each HDD-type storage device and each SSD-type storage device respectively storing one or more data blocks. The method includes: periodically obtaining access information of each data block stored in the storage device; and adjusting the storage position of each data block in the storage system based on the obtained access information of each data block.

根据本申请的实施例,在该方法中,还包括:记录存储的每个数据块的访问信息,其中,所述访问信息至少包括:数据块的被访问次数。According to an embodiment of the present application, the method further includes: recording access information of each stored data block, wherein the access information includes at least: the number of times the data block has been accessed.

根据本申请的实施例,在该方法中,根据获取到的所述每个数据块的访问信息,调整所述每个数据块在所述存储系统中的存储位置,包括:将HDD型存储设备中存储的被访问次数超过第一预定次数的数据块迁移到所述存储系统中任意的SSD型存储设备中存储;或者,将SSD型存储设备中存储的被访问次数少于第二预定次数的数据块迁移到所述存储系统中任意的HDD型存储设备中存储。According to an embodiment of the present application, in this method, the storage position of each data block in the storage system is adjusted based on the access information of each data block obtained, including: migrating the data blocks stored in the HDD type storage device and accessed more than a first predetermined number of times to any SSD type storage device in the storage system for storage; or migrating the data blocks stored in the SSD type storage device and accessed less than a second predetermined number of times to any HDD type storage device in the storage system for storage.

根据本申请的实施例,在该方法中,将HDD型存储设备中存储的被访问次数超过第一预定次数的数据块迁移到所述存储系统中任意的SSD型存储设备中存储,进一步包括:将HDD型存储设备中存储的被访问次数超过第一预定次数的数据块复制到所述存储系统中任意的SSD型存储设备中,并从原来存储所述数据块的HDD型存储设备中删除所述数据块;将SSD型存储设备中存储的被访问次数少于第二预定次数的数据块迁移到所述存储系统中任意的HDD型存储设备中存储,进一步包括:将SSD型存储设备中存储的被访问次数少于第二预定次数的数据块复制到所述存储系统中任意的HDD型存储设备中,并从原来存储所述数据块的SSD型存储设备中删除所述数据块。According to an embodiment of the present application, in the method, data blocks stored in an HDD-type storage device and accessed more than a first predetermined number of times are migrated to any SSD-type storage device in the storage system for storage, further including: copying data blocks stored in the HDD-type storage device and accessed more than the first predetermined number of times to any SSD-type storage device in the storage system, and deleting the data blocks from the HDD-type storage device that originally stored the data blocks; data blocks stored in an SSD-type storage device and accessed less than a second predetermined number of times are migrated to any HDD-type storage device in the storage system for storage, further including: copying data blocks stored in the SSD-type storage device and accessed less than the second predetermined number of times to any HDD-type storage device in the storage system, and deleting the data blocks from the SSD-type storage device that originally stored the data blocks.

本申请还提供了一种混合存储系统,包括:一个或多个HDD型存储设备以及一个或多个SSD型存储设备,每一个所述HDD型存储设备包括:HDD型存储单元和控制单元;每一个所述SSD型存储设备包括:SSD型存储单元和控制单元;所述HDD型存储单元和所述SSD型存储单元用于存储一个或多个数据块;所述控制单元包括:访问信息获取模块,用于周期性地获取所述HDD型存储单元或SSD型存储单元中存储的每个数据块的访问信息;存储位置调整模块,用于根据获取到的所述每个数据块的访问信息,调整所述每个数据块在所述存储系统中的存储位置。The present application also provides a hybrid storage system, comprising: one or more HDD-type storage devices and one or more SSD-type storage devices, each of the HDD-type storage devices comprising: an HDD-type storage unit and a control unit; each of the SSD-type storage devices comprising: an SSD-type storage unit and a control unit; the HDD-type storage unit and the SSD-type storage unit are used to store one or more data blocks; the control unit comprises: an access information acquisition module, used to periodically acquire access information of each data block stored in the HDD-type storage unit or the SSD-type storage unit; and a storage position adjustment module, used to adjust the storage position of each data block in the storage system according to the acquired access information of each data block.

根据本申请的实施例,在该系统中,所述控制单元还包括:记录模块,用于记录所述HDD型存储单元或SSD型存储单元中存储的每个数据块的访问信息,其中,所述访问信息至少包括:数据块的被访问次数。According to an embodiment of the present application, in the system, the control unit further includes: a recording module for recording access information of each data block stored in the HDD-type storage unit or the SSD-type storage unit, wherein the access information includes at least: the number of times the data block is accessed.

根据本申请的实施例,在该系统中,所述存储位置调整模块进一步用于:将HDD型存储设备的HDD型存储单元中存储的被访问次数超过第一预定次数的数据块迁移到所述存储系统中任意的SSD型存储设备的SSD型存储单元中存储;或者,进一步用于:将SSD型存储设备的SSD型存储单元中存储的被访问次数少于第二预定次数的数据块的迁移到所述存储系统中任意的HDD型存储设备的HDD型存储单元中存储。According to an embodiment of the present application, in the system, the storage position adjustment module is further used to: migrate data blocks stored in the HDD type storage unit of the HDD type storage device and accessed more than a first predetermined number of times to the SSD type storage unit of any SSD type storage device in the storage system for storage; or further used to: migrate data blocks stored in the SSD type storage unit of the SSD type storage device and accessed less than a second predetermined number of times to the HDD type storage unit of any HDD type storage device in the storage system for storage.

根据本申请的实施例,在该系统中,所述存储位置调整模块进一步用于:将HDD型存储设备的HDD型存储单元中存储的被访问次数超过第一预定次数的数据块复制到所述存储系统中任意的SSD型存储设备的SSD型存储单元中,并从原来存储所述数据块的HDD型存储设备的HDD型存储单元中删除所述数据块;或者,进一步用于:将SSD型存储设备的SSD型存储单元中存储的被访问次数少于第二预定次数的数据块复制到所述存储系统中任意的HDD型存储设备的HDD型存储单元中,并从原来存储所述数据块的SSD型存储设备的SSD型存储单元中删除所述数据块。According to an embodiment of the present application, in the system, the storage position adjustment module is further used to: copy a data block stored in an HDD-type storage unit of an HDD-type storage device and accessed more than a first predetermined number of times to an SSD-type storage unit of any SSD-type storage device in the storage system, and delete the data block from the HDD-type storage unit of the HDD-type storage device that originally stored the data block; or further used to: copy a data block stored in an SSD-type storage unit of an SSD-type storage device and accessed less than a second predetermined number of times to an HDD-type storage unit of any HDD-type storage device in the storage system, and delete the data block from the SSD-type storage unit of the SSD-type storage device that originally stored the data block.

与现有技术相比,根据本申请的技术方案,可以充分利用不同存储设备的优势,根据访问频率动态配置数据块的存储位置,以达到在存储容量与数据操作速度上的性能优化。Compared with the prior art, the technical solution of the present application can fully utilize the advantages of different storage devices and dynamically configure the storage location of data blocks according to the access frequency to achieve performance optimization in terms of storage capacity and data operation speed.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

图1是根据本申请一个实施例的混合存储的控制方法的流程图;FIG1 is a flow chart of a method for controlling hybrid storage according to an embodiment of the present application;

图2是根据本申请一个实施例的混合存储系统的结构框图;FIG2 is a structural block diagram of a hybrid storage system according to an embodiment of the present application;

图3a是根据本申请一个实施例的混合存储系统中每一个HDD型存储设备的结构框图;以及FIG3 a is a structural block diagram of each HDD-type storage device in a hybrid storage system according to an embodiment of the present application; and

图3b是根据本申请一个实施例的混合存储系统中每一个SSD型存储设备的结构框图。FIG3 b is a structural block diagram of each SSD-type storage device in a hybrid storage system according to an embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

本申请的主要思想在于,只需配置HDD和SSD两种类型的存储设备,实现并优化数据的混合存储。The main idea of this application is to implement and optimize hybrid storage of data by configuring only two types of storage devices, HDD and SSD.

为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。To make the purpose, technical solutions, and advantages of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the specific embodiments of this application and the corresponding drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

根据本申请的实施例,提供了一种混合存储的控制方法。该方法可以应用于具有一个或多个HDD型存储设备以及一个或多个SSD型存储设备的存储系统中的每一个HDD型存储设备和每一个SSD型存储设备中,所述存储系统中的所有的HDD型存储设备和SSD型存储设备相连接,所述每一个HDD型存储设备和每一个SSD型存储设备中分别存储有一个或多个数据块。其中,数据块是指在存储设备之间进行传输的一个数据单位。According to an embodiment of the present application, a hybrid storage control method is provided. This method can be applied to each HDD-type storage device and each SSD-type storage device in a storage system having one or more HDD-type storage devices and one or more SSD-type storage devices. All HDD-type storage devices and SSD-type storage devices in the storage system are connected, and each HDD-type storage device and each SSD-type storage device respectively stores one or more data blocks. A data block is a unit of data transmitted between storage devices.

应当理解,在所述存储系统中,所述HDD型存储设备和SSD型存储设备分别是单独的计算节点。也即是说,每个计算节点只包含一种类型的存储介质。例如,某个计算节点(存储设备)包含HDD型存储单元,则该计算节点(存储设备)就不会包含SSD型存储单元,从而该计算节点可以为HDD型存储设备。类似地,某个计算节点(存储设备)包含SSD型存储单元,则该计算节点(存储设备)就不会包含HDD型存储单元,从而该计算节点可以为SSD型存储设备。It should be understood that in the storage system, the HDD-type storage device and the SSD-type storage device are each separate computing nodes. That is, each computing node contains only one type of storage medium. For example, if a computing node (storage device) contains an HDD-type storage unit, then it will not contain an SSD-type storage unit, and thus the computing node can be an HDD-type storage device. Similarly, if a computing node (storage device) contains an SSD-type storage unit, then it will not contain an HDD-type storage unit, and thus the computing node can be an SSD-type storage device.

也就是说,HDD型存储设备中只包含HDD(机械硬盘),SSD型存储设备中只包含SSD(固态硬盘),所述一个或多个HDD型存储设备可以是同一尺寸HDD型存储设备,所述一个或多个SSD型存储设备可以是同一尺寸的SSD型存储设备,即每一个HDD型存储设备可以都是相同的,每一个SSD型存储设备也可以都是相同的。当然,也应该理解,所述一个或多个HDD型存储设备也可以是不同尺寸的HDD型存储设备,所述一个或多个SSD型存储设备也可以是不同尺寸的SSD型存储设备。That is, HDD-type storage devices only include HDDs (hard disk drives), and SSD-type storage devices only include SSDs (solid-state drives). The one or more HDD-type storage devices can be HDD-type storage devices of the same size, and the one or more SSD-type storage devices can be SSD-type storage devices of the same size. That is, each HDD-type storage device can be identical, and each SSD-type storage device can also be identical. Of course, it should also be understood that the one or more HDD-type storage devices can also be HDD-type storage devices of different sizes, and the one or more SSD-type storage devices can also be SSD-type storage devices of different sizes.

参考图1,图1是本申请实施例的一种混合存储的控制方法的流程图,如图1所示,对于存储系统中的每个存储设备:Referring to FIG1 , FIG1 is a flow chart of a hybrid storage control method according to an embodiment of the present application. As shown in FIG1 , for each storage device in the storage system:

在步骤S101中,周期性地获取存储设备中存储的每个数据块的访问信息。其中,所述访问信息至少包括:数据块的被访问次数。即,每隔一预定周期,获取HDD或SSD型存储设备中存储的每个数据块的被访问次数。其中,数据块的划分,可以将数据划分为兆字节(MB,MByte)级别的数据块,例如,几兆大小的数据块,以防止元信息过多,节省存储空间。所述访问信息还可以包括:数据块的元信息,例如数据块的存储地址等。In step S101, access information for each data block stored in the storage device is periodically obtained. The access information includes at least the number of times the data block has been accessed. That is, the number of times each data block stored in the HDD or SSD storage device has been accessed is obtained at predetermined intervals. The data blocks can be divided into megabyte (MB)-level blocks, for example, blocks of several megabytes, to prevent excessive metadata and conserve storage space. The access information may also include metadata about the data blocks, such as the storage address of the data blocks.

根据本申请的一个实施例,还包括:记录存储的每个数据块的访问信息的步骤,即,统计并记录存储的每个数据块的被访问次数。记录时,可以采用异步方式记录每个数据块的访问信息,即,可以同时分别记录两个以上的数据块的访问信息,例如,在记录一个数据块的访问信息时,如果另一个数据块也被访问了,那么可以同时再去统计并记录该另一个数据块的访问信息。According to one embodiment of the present application, the method further includes the step of recording access information of each stored data block, that is, counting and recording the number of times each stored data block has been accessed. The access information of each data block can be recorded asynchronously, that is, the access information of two or more data blocks can be recorded simultaneously. For example, when recording the access information of one data block, if another data block is also accessed, the access information of the other data block can be counted and recorded simultaneously.

在步骤S102中,根据获取到的所述每个数据块的访问信息,调整所述每个数据块在所述存储系统中的存储位置。In step S102, the storage location of each data block in the storage system is adjusted according to the acquired access information of each data block.

步骤S102可以包括:将HDD型存储设备中存储的被访问次数超过第一预定次数的数据块迁移到所述存储系统中任意的SSD型存储设备中存储;或者,将SSD型存储设备中存储的被访问次数少于第二预定次数的数据块的迁移到所述存储系统中任意的HDD型存储设备中存储。Step S102 may include: migrating data blocks stored in an HDD-type storage device and having been accessed more than a first predetermined number of times to any SSD-type storage device in the storage system for storage; or migrating data blocks stored in an SSD-type storage device and having been accessed less than a second predetermined number of times to any HDD-type storage device in the storage system for storage.

也即是说,由于HDD型设备一般容量较大,但是数据访问速度较慢,相对来说,SSD设备一般容量较小,但是数据访问速度相对较快,因此,如果存储设备为HDD型设备,则将被访问频率较高(被访问次数超过第一预定次数)的数据块迁移到存储系统中任意的SSD型存储设备中存储,以提高对被访问频率较高的数据块的读取速度。而如果存储设备为SSD型存储设备,则将被访问频率较低(被访问次数少于第二预定次数)的数据块迁移到该存储系统中任意的HDD型存储设备中存储。从而,能够根据数据块的被访问次数,调整数据块在存储系统中的存储的设备,实现存储系统性能的最大优化。In other words, since HDD-type devices generally have larger capacity but slower data access speeds, SSD devices generally have smaller capacity but faster data access speeds. Therefore, if the storage device is an HDD-type device, data blocks that are accessed more frequently (accessed more than a first predetermined number of times) are migrated to any SSD-type storage device in the storage system for storage, thereby improving the read speed of these more frequently accessed data blocks. Conversely, if the storage device is an SSD-type storage device, data blocks that are accessed less frequently (accessed less than a second predetermined number of times) are migrated to any HDD-type storage device in the storage system for storage. This allows the storage device in the storage system to be adjusted based on the number of times a data block is accessed, thereby maximizing storage system performance.

采用上述的方案,则存储系统只需要配置两种类型的存储设备:HDD型的一个或多个存储设备和SSD型的一个或多个存储设备,并且可以根据一般场景的需要分别配置适当数量的两种存储设备,通过周期性地统计每个存储设备中所存储的数据块的被访问次数,将访问较频繁的数据块迁移至读取速度较快的SSD型存储设备中存储,将访问不频繁的数据块迁移至容量较大的HDD型存储设备中存储,以充分利用不同类型设备的优势,达到存储容量与数据操作速度上的性能平衡。By adopting the above solution, the storage system only needs to be configured with two types of storage devices: one or more HDD-type storage devices and one or more SSD-type storage devices. In addition, an appropriate number of the two types of storage devices can be configured according to the needs of general scenarios. By periodically counting the number of times the data blocks stored in each storage device are accessed, the data blocks that are accessed more frequently are migrated to the SSD-type storage devices with faster reading speeds for storage, and the data blocks that are accessed less frequently are migrated to the HDD-type storage devices with larger capacity for storage, so as to fully utilize the advantages of different types of devices and achieve a performance balance between storage capacity and data operation speed.

根据本申请的实施例,将数据块从一个存储设备(原存储设备中)迁移到另一个存储设备(目标存储设备)中,可以先将该数据块复制到目标存储设备中,再从原存储设备中将该数据块删除,即完成了迁移。According to an embodiment of the present application, to migrate a data block from one storage device (the original storage device) to another storage device (the target storage device), the data block can be first copied to the target storage device and then deleted from the original storage device to complete the migration.

也就是说,将HDD型存储设备中存储的被访问次数超过第一预定次数的数据块迁移到所述存储系统中任意的SSD型存储设备中存储,即是将HDD型存储设备中存储的被访问次数超过第一预定次数的数据块复制到所述存储系统中任意的SSD型存储设备中,并从原来存储所述数据块的HDD型存储设备中删除所述数据块。将SSD型存储设备中存储的被访问次数少于第二预定次数的数据块迁移到所述存储系统中任意的HDD型存储设备中存储,即是将SSD型存储设备中存储的被访问次数少于第二预定次数的数据块复制到所述存储系统中任意的HDD型存储设备中,并从原来存储所述数据块的SSD型存储设备中删除所述数据块。That is, migrating a data block stored in an HDD-type storage device and accessed more than a first predetermined number of times to any SSD-type storage device in the storage system for storage means copying a data block stored in an HDD-type storage device and accessed more than the first predetermined number of times to any SSD-type storage device in the storage system, and deleting the data block from the HDD-type storage device that originally stored the data block. Migrating a data block stored in an SSD-type storage device and accessed less than a second predetermined number of times to any HDD-type storage device in the storage system for storage means copying a data block stored in an SSD-type storage device and accessed less than the second predetermined number of times to any HDD-type storage device in the storage system, and deleting the data block from the SSD-type storage device that originally stored the data block.

本申请还提供了一种混合存储系统。The present application also provides a hybrid storage system.

图2示意性地示出了根据本申请一个实施例的混合存储系统的结构框图。根据本申请的一个实施例,该混合存储系统200包括:一个或多个HDD型存储设备210以及一个或多个SSD型存储设备220。2 schematically shows a block diagram of a hybrid storage system according to an embodiment of the present application. According to an embodiment of the present application, the hybrid storage system 200 includes: one or more HDD-type storage devices 210 and one or more SSD-type storage devices 220.

为了更清楚的说明每个存储设备的结构,图3a、图3b分别示意性地示出了根据本申请的一个实施例的混合存储系统中每个HDD型存储设备和SSD型存储设备的结构框图。如图3a所示,每一个所述HDD型存储设备310包括:HDD型存储单元311和控制单元312;如图3b所示,每一个所述SSD型存储设备320包括:SSD型存储单元321和控制单元322。To more clearly illustrate the structure of each storage device, Figures 3a and 3b schematically illustrate the structural block diagrams of each HDD-type storage device and SSD-type storage device, respectively, in a hybrid storage system according to an embodiment of the present application. As shown in Figure 3a, each HDD-type storage device 310 includes an HDD-type storage unit 311 and a control unit 312; as shown in Figure 3b, each SSD-type storage device 320 includes an SSD-type storage unit 321 and a control unit 322.

其中,HDD型存储设备310和SSD型存储设备320的构成可以如前所述,在此不再重复描述。The structures of the HDD type storage device 310 and the SSD type storage device 320 may be as described above, and will not be described again here.

所述HDD型存储单元311和所述SSD型存储单元321可以用于存储一个或多个数据块。The HDD-type storage unit 311 and the SSD-type storage unit 321 may be used to store one or more data blocks.

所述控制单元312/322可以包括:访问信息获取模块3121/3221和存储位置调整模块3122/3222。The control unit 312 / 322 may include: an access information acquisition module 3121 / 3221 and a storage location adjustment module 3122 / 3222 .

访问信息获取模块3121/3221可以用于周期性地获取所述HDD型存储单元311或SSD型存储单元321中存储的每个数据块的访问信息。The access information acquisition module 3121 / 3221 may be configured to periodically acquire access information of each data block stored in the HDD storage unit 311 or the SSD storage unit 321 .

存储位置调整模块3122/3222可以用于根据获取到的所述每个数据块的访问信息,调整所述每个数据块在所述存储系统中的存储位置。The storage position adjustment module 3122 / 3222 may be configured to adjust the storage position of each data block in the storage system according to the acquired access information of each data block.

所述控制单元312/322还可以包括记录模块,用于记录所述HDD型存储单元311或SSD型存储单元321中存储的每个数据块的访问信息,其中,所述访问信息至少包括:数据块的被访问次数。The control unit 312 / 322 may further include a recording module for recording access information of each data block stored in the HDD storage unit 311 or the SSD storage unit 321 , wherein the access information includes at least the number of times the data block has been accessed.

HDD型存储设备310的HDD型存储单元311中,存储位置调整模块3122可以进一步用于:将HDD型存储设备310的HDD型存储单元311中存储的被访问次数超过第一预定次数的数据块迁移到所述存储系统中任意的SSD型存储设备320的SSD型存储单元321中存储。SSD型存储设备320的SSD型存储单元321中,存储位置调整模块3222可以进一步用于:将SSD型存储设备320的SSD型存储单元321中存储的被访问次数少于第二预定次数的数据块的迁移到所述存储系统中任意的HDD型存储设备310的HDD型存储单元311中存储。In the HDD storage unit 311 of the HDD storage device 310, the storage location adjustment module 3122 may be further configured to: migrate data blocks stored in the HDD storage unit 311 of the HDD storage device 310 and accessed more than a first predetermined number of times to an SSD storage unit 321 of any SSD storage device 320 in the storage system for storage. In the SSD storage unit 321 of the SSD storage device 320, the storage location adjustment module 3222 may be further configured to: migrate data blocks stored in the SSD storage unit 321 of the SSD storage device 320 and accessed less than a second predetermined number of times to an HDD storage unit 311 of any HDD storage device 310 in the storage system for storage.

HDD型存储设备310的HDD型存储单元311中,存储位置调整模块3122可以进一步用于:将HDD型存储设备310的HDD型存储单元311中存储的被访问次数超过第一预定次数的数据块复制到所述存储系统中任意的SSD型存储设备320的SSD型存储单元321中,并从原来存储所述数据块的HDD型存储设备310的HDD型存储单元311中删除所述数据块。SSD型存储设备320的SSD型存储单元321中,存储位置调整模块3222可以进一步用于:将SSD型存储设备320的SSD型存储单元321中存储的被访问次数少于第二预定次数的数据块复制到所述存储系统中任意的HDD型存储设备310的HDD型存储单元311中,并从原来存储所述数据块的SSD型存储设备320的SSD型存储单元321中删除所述数据块。In the HDD storage unit 311 of the HDD storage device 310, the storage position adjustment module 3122 may be further configured to copy a data block stored in the HDD storage unit 311 of the HDD storage device 310 and accessed more than a first predetermined number of times to an SSD storage unit 321 of any SSD storage device 320 in the storage system, and delete the data block from the HDD storage unit 311 of the HDD storage device 310 that originally stored the data block. In the SSD storage unit 321 of the SSD storage device 320, the storage position adjustment module 3222 may be further configured to copy a data block stored in the SSD storage unit 321 of the SSD storage device 320 and accessed less than a second predetermined number of times to an HDD storage unit 311 of any HDD storage device 310 in the storage system, and delete the data block from the SSD storage unit 321 of the SSD storage device 320 that originally stored the data block.

由于本实施例的系统所实现的功能基本相应于前述图1所示的方法实施例,故本实施例的描述中未详尽之处,可以参见前述实施例中的相关说明,在此不做赘述。Since the functions implemented by the system of this embodiment basically correspond to the method embodiment shown in FIG1 , for details not fully described in this embodiment, please refer to the relevant descriptions in the aforementioned embodiments and will not be elaborated here.

在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.

内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and/or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括非暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include non-transitory media such as modulated data signals and carrier waves.

还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个......”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a list of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a..." does not preclude the presence of additional identical elements in the process, method, commodity, or apparatus that includes the element.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

以上所述仅为本申请的实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The foregoing is merely an embodiment of the present application and is not intended to limit the present application. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present application shall be included within the scope of the claims of the present application.

Claims (8)

1.一种混合存储的控制方法,应用于具有一个或多个HDD型存储设备以及一个或多个SSD型存储设备的存储系统中,所述存储系统中的每一个HDD型存储设备和SSD型存储设备相连接,所述每一个HDD型存储设备和每一个SSD型存储设备中分别存储有一个或多个数据块;1. A hybrid storage control method, applied to a storage system having one or more HDD storage devices and one or more SSD storage devices, wherein each HDD storage device and each SSD storage device in the storage system are connected, and each HDD storage device and each SSD storage device respectively stores one or more data blocks; 每一个HDD型存储设备和SSD型存储设备分别是单独的计算节点;每一个所述HDD型存储设备包括:HDD型存储单元和控制单元;每一个所述SSD型存储设备包括:SSD型存储单元和控制单元;Each HDD storage device and each SSD storage device is a separate computing node; each HDD storage device includes an HDD storage unit and a control unit; each SSD storage device includes an SSD storage unit and a control unit. 所述方法包括:The method includes: 所述存储系统中的任一存储设备的控制单元,周期性地获取本设备数据块的访问信息,所述本设备数据块存储于本设备的存储单元;The control unit of any storage device in the storage system periodically obtains access information of the data block of the device, which is stored in the storage unit of the device. 根据获取到的数据块的访问信息,将本设备数据块调整到所述存储系统中的其他存储设备。Based on the access information of the acquired data blocks, the data blocks of this device are adjusted to other storage devices in the storage system. 2.根据权利要求1所述的方法,其特征在于,还包括:记录存储的每个数据块的访问信息,其中,所述访问信息至少包括:数据块的被访问次数。2. The method according to claim 1, characterized in that it further comprises: recording access information for each stored data block, wherein the access information includes at least: the number of times the data block has been accessed. 3.根据权利要求1所述的方法,其特征在于,根据获取到的所述每个数据块的访问信息,将本设备数据块调整到所述存储系统中的其他存储设备,包括:3. The method according to claim 1, characterized in that, adjusting the data blocks of this device to other storage devices in the storage system according to the access information of each data block obtained, includes: HDD型存储设备,将本设备中存储的被访问次数超过第一预定次数的数据块迁移到所述存储系统中任意的SSD型存储设备中存储;HDD type storage device, migrate data blocks that have been accessed more than a first predetermined number of times stored in this device to any SSD type storage device in the storage system for storage; 或者,or, SSD型存储设备,将本设备中存储的被访问次数少于第二预定次数的数据块迁移到所述存储系统中任意的HDD型存储设备中存储。An SSD-type storage device may migrate data blocks that have been accessed less than a second predetermined number of times from this device to any HDD-type storage device in the storage system. 4.根据权利要求3所述的方法,其特征在于,4. The method according to claim 3, characterized in that, 将HDD型存储设备中存储的被访问次数超过第一预定次数的数据块迁移到所述存储系统中任意的SSD型存储设备中存储,进一步包括:将HDD型存储设备中存储的被访问次数超过第一预定次数的数据块复制到所述存储系统中任意的SSD型存储设备中,并从原来存储所述数据块的HDD型存储设备中删除所述数据块;Migrating data blocks that have been accessed more than a first predetermined number of times from an HDD storage device to any SSD storage device in the storage system further includes: copying the data blocks that have been accessed more than a first predetermined number of times from an HDD storage device to any SSD storage device in the storage system, and deleting the data blocks from the original HDD storage device where the data blocks were stored. 将SSD型存储设备中存储的被访问次数少于第二预定次数的数据块迁移到所述存储系统中任意的HDD型存储设备中存储,进一步包括:将SSD型存储设备中存储的被访问次数少于第二预定次数的数据块复制到所述存储系统中任意的HDD型存储设备中,并从原来存储所述数据块的SSD型存储设备中删除所述数据块。Migrating data blocks that have been accessed less than a second predetermined number of times from an SSD storage device to any HDD storage device in the storage system further includes: copying the data blocks that have been accessed less than a second predetermined number of times from an SSD storage device to any HDD storage device in the storage system, and deleting the data blocks from the original SSD storage device where they were stored. 5.一种混合存储系统,包括:一个或多个HDD型存储设备以及一个或多个SSD型存储设备,所述存储系统中的每一个HDD型存储设备和SSD型存储设备相连接,所述每一个HDD型存储设备和每一个SSD型存储设备中分别存储有一个或多个数据块;5. A hybrid storage system, comprising: one or more HDD-type storage devices and one or more SSD-type storage devices, wherein each HDD-type storage device and each SSD-type storage device in the storage system are connected to each other, and each HDD-type storage device and each SSD-type storage device respectively stores one or more data blocks; 每一个HDD型存储设备和SSD型存储设备分别是单独的计算节点;每一个所述HDD型存储设备包括:HDD型存储单元和控制单元;每一个所述SSD型存储设备包括:SSD型存储单元和控制单元;Each HDD storage device and each SSD storage device is a separate computing node; each HDD storage device includes an HDD storage unit and a control unit; each SSD storage device includes an SSD storage unit and a control unit. 所述控制单元包括:The control unit includes: 访问信息获取模块,用于周期性地获取本设备数据块的访问信息,所述本设备数据块存储于本设备的存储单元;The access information acquisition module is used to periodically acquire access information of data blocks of this device, wherein the data blocks of this device are stored in the storage unit of this device; 存储位置调整模块,用于根据获取到的所述每个数据块的访问信息,将本设备数据块调整到所述存储系统中的其他存储设备。The storage location adjustment module is used to adjust the data blocks of this device to other storage devices in the storage system based on the access information of each data block obtained. 6.根据权利要求5所述的系统,其特征在于,所述控制单元还包括:记录模块,用于记录所述HDD型存储单元或SSD型存储单元中存储的每个数据块的访问信息,其中,所述访问信息至少包括:数据块的被访问次数。6. The system according to claim 5, wherein the control unit further comprises: a recording module, used to record access information of each data block stored in the HDD-type storage unit or the SSD-type storage unit, wherein the access information includes at least: the number of times the data block has been accessed. 7.根据权利要求5所述的系统,其特征在于,7. The system according to claim 5, characterized in that, HDD型存储设备的存储位置调整模块进一步用于:将HDD型存储设备的HDD型存储单元中存储的被访问次数超过第一预定次数的数据块迁移到所述存储系统中任意的SSD型存储设备的SSD型存储单元中存储;The storage location adjustment module of the HDD type storage device is further used to: migrate data blocks that have been accessed more than a first predetermined number of times stored in the HDD type storage unit of the HDD type storage device to any SSD type storage unit of the SSD type storage device in the storage system for storage; SSD型存储设备的存储位置调整模块进一步用于:将SSD型存储设备的SSD型存储单元中存储的被访问次数少于第二预定次数的数据块的迁移到所述存储系统中任意的HDD型存储设备的HDD型存储单元中存储。The storage location adjustment module for SSD-type storage devices is further used to: migrate data blocks stored in the SSD-type storage cells of the SSD-type storage device that have been accessed less than a second predetermined number of times to any HDD-type storage cell of the HDD-type storage device in the storage system. 8.根据权利要求7所述的系统,其特征在于,8. The system according to claim 7, characterized in that, HDD型存储设备的存储位置调整模块进一步用于:将HDD型存储设备的HDD型存储单元中存储的被访问次数超过第一预定次数的数据块复制到所述存储系统中任意的SSD型存储设备的SSD型存储单元中,并从原来存储所述数据块的HDD型存储设备的HDD型存储单元中删除所述数据块;The storage location adjustment module of the HDD type storage device is further used to: copy the data block stored in the HDD type storage cell of the HDD type storage device that has been accessed more than a first predetermined number of times to the SSD type storage cell of any SSD type storage device in the storage system, and delete the data block from the HDD type storage cell of the HDD type storage device that originally stored the data block; SSD型存储设备的存储位置调整模块进一步用于:将SSD型存储设备的SSD型存储单元中存储的被访问次数少于第二预定次数的数据块复制到所述存储系统中任意的HDD型存储设备的HDD型存储单元中,并从原来存储所述数据块的SSD型存储设备的SSD型存储单元中删除所述数据块。The storage location adjustment module of the SSD type storage device is further configured to: copy data blocks that have been accessed less than a second predetermined number of times from the SSD type storage cell of the SSD type storage device to the HDD type storage cell of any HDD type storage device in the storage system, and delete the data blocks from the SSD type storage cell of the SSD type storage device that originally stored the data blocks.
HK15107342.3A 2015-07-31 Method for controlling hybrid storage and hybrid storage system HK1206839B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310618239.0A CN104679661B (en) 2013-11-27 2013-11-27 hybrid storage control method and hybrid storage system

Publications (2)

Publication Number Publication Date
HK1206839A1 HK1206839A1 (en) 2016-01-15
HK1206839B true HK1206839B (en) 2021-03-12

Family

ID=

Similar Documents

Publication Publication Date Title
CN104679661B (en) hybrid storage control method and hybrid storage system
CN105940386B (en) Method, system and medium for moving data between memories
JP6338208B2 (en) Method and apparatus for accessing virtual machine data
US8650379B2 (en) Data processing method for nonvolatile memory system
EP4087212B1 (en) Method and apparatus for cloning file system
CN103838676B (en) Data-storage system, date storage method and PCM bridges
CN104850358A (en) Magnetic-optical-electric hybrid storage system and data acquisition and storage method thereof
CN103713861A (en) File processing method and system based on hierarchical division
CN108932114A (en) A kind of method and device of data storage
CN107241444B (en) A distributed cache data management system, method and device
WO2022156649A1 (en) Capacity adjustment method and related device
US20220244876A1 (en) Data migration using cache state change
US10915262B2 (en) Hybrid storage device partitions with storage tiers
US11662949B2 (en) Storage server, a method of operating the same storage server and a data center including the same storage server
HK1206839B (en) Method for controlling hybrid storage and hybrid storage system
CN112328181A (en) Metadata reading and writing method and device of distributed storage system
WO2018186455A1 (en) Available-space management method for nonvolatile memory, access device which stores data to information storage device with nonvolatile memory, information storage device, and information storage system
CN117785035A (en) A data management method, device, equipment and storage medium
CN121116154A (en) Data storage and retrieval methods, devices, systems, storage media and program products
JP2017146722A (en) Storage device
KR20230069800A (en) Memory system for backing-up data in case of sudden power-off and method of operation thereof