[go: up one dir, main page]

CN107122126B - Data migration method, device and system - Google Patents

Data migration method, device and system Download PDF

Info

Publication number
CN107122126B
CN107122126B CN201611199849.1A CN201611199849A CN107122126B CN 107122126 B CN107122126 B CN 107122126B CN 201611199849 A CN201611199849 A CN 201611199849A CN 107122126 B CN107122126 B CN 107122126B
Authority
CN
China
Prior art keywords
storage device
data
unit time
ratio
capacity ratio
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201611199849.1A
Other languages
Chinese (zh)
Other versions
CN107122126A (en
Inventor
周臣
董浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201611199849.1A priority Critical patent/CN107122126B/en
Priority to PCT/CN2017/096784 priority patent/WO2018113317A1/en
Publication of CN107122126A publication Critical patent/CN107122126A/en
Application granted granted Critical
Publication of CN107122126B publication Critical patent/CN107122126B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; 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/0638Organizing or formatting or addressing of data
    • G06F3/064Management of blocks
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; 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/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/068Hybrid storage device

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

一种存储系统中迁移数据的方法,存储系统包括第一存储设备和第二存储设备,此方法包括以下步骤:获取第二存储设备单位时间内的读写次数;根据第二存储设备单位时间内的读写次数,获取所述第二存储设备的强度比;查询强度比与容量比对应表,获得与所述强度比对应的容量比;根据获得的容量比得到需要从第一存储设备迁移到第二存储设备的数据块的数量;根据所述数量将对应的数据块从第一存储设备迁移到第二存储设备。通过本方法,可以精确确定从第一存储设备迁移到第二存储设备的数据块的数量,在把尽量多的数据迁移到第二存储设备的同时,又可以保证第二存储设备的性能不受影响,提高了存储系统的性能和效率。

Figure 201611199849

A method for migrating data in a storage system, the storage system includes a first storage device and a second storage device, the method includes the following steps: acquiring the number of reads and writes per unit time of the second storage device; The number of times of reading and writing is obtained, and the intensity ratio of the second storage device is obtained; the corresponding table of intensity ratio and capacity ratio is inquired, and the capacity ratio corresponding to the intensity ratio is obtained; according to the obtained capacity ratio, the need to migrate from the first storage device to the The number of data blocks of the second storage device; and the corresponding data blocks are migrated from the first storage device to the second storage device according to the number. With this method, the number of data blocks to be migrated from the first storage device to the second storage device can be accurately determined, and while migrating as much data as possible to the second storage device, the performance of the second storage device can be guaranteed not to be affected. impact, improving the performance and efficiency of the storage system.

Figure 201611199849

Description

数据的迁移方法、装置和系统Data migration method, device and system

技术领域technical field

本申请涉及通信技术领域,尤其涉及一种数据的迁移方法、装置和系统。The present application relates to the field of communication technologies, and in particular, to a data migration method, device and system.

背景技术Background technique

随着网络的发展,有越来越多的数据产生。不同的数据具备不同的使用价值,有些数据会被频繁访问,有些数据会在很长时间之内都不会被访问,还有些数据会在某些时刻被频繁访问。With the development of the network, more and more data is generated. Different data have different use values. Some data will be accessed frequently, some data will not be accessed for a long time, and some data will be frequently accessed at certain times.

数据的使用价值有自己的生命周期,可以有规律可循。通常,各类元数据(例如虚拟机的部分操作系统数据)使用价值高,会被频繁访问,并且对响应速度要求也很高。新产生的数据的通常被访问的频率也比较高。而随着时间的推移,新产生的数据的使用频率会下降,不再被频繁访问。The use value of data has its own life cycle and can be followed by rules. Generally, various types of metadata (for example, some operating system data of virtual machines) are of high use value, are frequently accessed, and require high response speed. The newly generated data is usually accessed more frequently. Over time, the frequency of use of newly generated data will decrease and it will no longer be accessed frequently.

自动分级存储技术因此而产生,并被广泛应用于各行各业。自动分级存储技术根据数据的访问频率、重要性、保留时间等特性,将数据存储在不同性能的存储设备上;并且基于数据被访问的频率,将被访问频率低的数据迁移到性能较低的存储设备中,将被频繁访问的数据迁移到性能高的存储设备中。Therefore, the automatic tiered storage technology is produced and is widely used in all walks of life. The automatic hierarchical storage technology stores data on storage devices with different performances according to the characteristics of data access frequency, importance, retention time, etc.; In storage devices, frequently accessed data is migrated to storage devices with high performance.

数据迁移策略包括把被访问频率低的数据迁移到性能较低的存储设备中,以及将被频繁访问的数据迁移到高性能的存储设备中。数据迁移时优先选择将被频繁访问的数据往高性能的存储设备中迁移,迁移的数据量往往是根据高性能存储设备当前的可用容量来决定的,而且一般是通过对访问数据的IO请求进行监控,将访问的IO请求数量达到一定数量的数据迁移到高性能的存储设备中。The data migration strategy includes migrating data that is accessed infrequently to storage devices with lower performance, and data that is frequently accessed to storage devices with high performance. When migrating data, it is preferred to migrate frequently accessed data to high-performance storage devices. The amount of data to be migrated is often determined based on the current available capacity of high-performance storage devices, and is generally performed through IO requests to access data. Monitor, migrate the data whose number of accessed IO requests reaches a certain amount to high-performance storage devices.

发明人在发明过程中发现,目前自动分级存储技术的数据迁移策略比较简单,迁移后的存储系统的整体性能无法预判,可能导致高性能的存储设备出现过载的问题。During the invention process, the inventor found that the data migration strategy of the current automatic hierarchical storage technology is relatively simple, and the overall performance of the migrated storage system cannot be predicted, which may lead to the problem of overloading of high-performance storage devices.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种迁移数据的方法、装置和系统,可以精确确定需要从第一存储设备迁移到第二存储设备的数据的数据量,在把尽量多的数据迁移到第二存储设备的同时,又可以保证第二存储设备的性能不受影响,提高了存储系统的性能和效率。Embodiments of the present application provide a method, apparatus, and system for migrating data, which can accurately determine the amount of data that needs to be migrated from a first storage device to a second storage device, and then migrate as much data as possible to the second storage device. At the same time, it can also ensure that the performance of the second storage device is not affected, thereby improving the performance and efficiency of the storage system.

本申请实施例提供如下技术方案:The embodiments of the present application provide the following technical solutions:

第一方面,提供一种存储系统中迁移数据的方法,存储系统第一存储设备和第二存储设备,方法包括:获取第二存储设备单位时间内的读写次数;根据所述第二存储设备单位时间内的读写次数,获取所述第二存储设备的强度比;查询强度比与容量比对应表,获得与所述强度比对应的容量比;根据所述容量比得到需要从所述第一存储设备迁移到所述第二存储设备的数据块的数量;根据所述数量将对应的数据块从所述第一存储设备迁移到所述第二存储设备。A first aspect provides a method for migrating data in a storage system, including a first storage device and a second storage device in the storage system, the method comprising: acquiring the number of reads and writes per unit time of the second storage device; according to the second storage device The number of reads and writes per unit time, to obtain the intensity ratio of the second storage device; query the correspondence table between the intensity ratio and the capacity ratio to obtain the capacity ratio corresponding to the intensity ratio; The number of data blocks migrated from a storage device to the second storage device; and the corresponding data blocks are migrated from the first storage device to the second storage device according to the number.

获取第二存储设备的强度比后,根据强度比与容量比对应表得到需要迁移到第二存储设备的数据块的数量。这样可以根据第二存储设备的性能确定迁移的数据的具体数值,可以确保迁入数据之后第二存储设备的性能不受影响,保证了整个存储系统的性能。After the intensity ratio of the second storage device is acquired, the number of data blocks that need to be migrated to the second storage device is obtained according to the correspondence table between the intensity ratio and the capacity ratio. In this way, the specific value of the migrated data can be determined according to the performance of the second storage device, which can ensure that the performance of the second storage device is not affected after the data is migrated, and the performance of the entire storage system is guaranteed.

在一种可能的设计中,强度比与容量比对应表是预先监测分析得到的。In a possible design, the intensity ratio and capacity ratio correspondence table is obtained by pre-monitoring and analysis.

这样在得到第二存储设备的强度比之后,可以直接查询强度比与容量比对应表,快速得到需要从第一存储设备迁移到第二存储设备的数据块的数量。In this way, after obtaining the intensity ratio of the second storage device, the corresponding table of the intensity ratio and the capacity ratio can be directly queried to quickly obtain the number of data blocks that need to be migrated from the first storage device to the second storage device.

在一种可能的设计中,查询强度比与容量比对应表,通过模糊匹配规则获取与所述强度比对应的容量比。In a possible design, the intensity ratio and capacity ratio correspondence table is queried, and the capacity ratio corresponding to the intensity ratio is obtained through a fuzzy matching rule.

强度比与容量比对应表中不可能将所有可能出现的数据都记录出来,因此当计算出来的强度比的具体的数值在强度比与容量比对应表中无法找到时,可以根据模糊匹配规则,以强度比与容量比对应表比计算出来的强度比高一级的强度比的值为准确定对应的容量比,提高查找效率。It is impossible to record all possible data in the correspondence table of intensity ratio and capacity ratio, so when the specific value of the calculated intensity ratio cannot be found in the correspondence table of intensity ratio and capacity ratio, according to the fuzzy matching rule, The corresponding capacity ratio is determined based on the value of the intensity ratio that is one level higher than the calculated intensity ratio in the corresponding table of intensity ratio and capacity ratio, so as to improve the search efficiency.

在一种可能的设计中,获取所述存储系统中的每个数据块单位时间内的读写次数,并将获取到的每个数据块的单位时间内的读写次数从高到低按顺序排列。根据所述容量比得到需要从所述第一存储设备迁移到所述第二存储设备的数据块的数量具体包括:根据所述容量比和所述获取到的每个数据块的单位时间内的读写次数确定与所述容量比对应的数据块;确认在所述第一存储设备中与所述容量比对应的数据块的数量。In a possible design, the number of reads and writes per unit time of each data block in the storage system is acquired, and the acquired numbers of reads and writes per unit time of each data block are in order from high to low arrangement. Obtaining, according to the capacity ratio, the number of data blocks that need to be migrated from the first storage device to the second storage device specifically includes: according to the capacity ratio and the obtained data block per unit time The number of reads and writes determines the data blocks corresponding to the capacity ratio; and confirms the number of data blocks corresponding to the capacity ratio in the first storage device.

为了确定将访问次数较多的数据从第一存储设备中迁移到第二存储设备,将获取到的存储系统中每个数据块的单位时间内的读写次数从高到低按顺序排列,这样可以根据确定的需要迁移的数据块的数量按顺序将单位时间内的读写次数较高的数据块从第一存储设备中迁移到性能更高的第二存储设备中,更快的响应IO请求。In order to determine to migrate data with more access times from the first storage device to the second storage device, the obtained read and write times per unit time of each data block in the storage system are arranged in order from high to low, so that According to the determined number of data blocks that need to be migrated, the data blocks with higher number of reads and writes per unit time can be migrated from the first storage device to the second storage device with higher performance in order to respond to IO requests faster. .

在一种可能的设计中,获取所述第一存储设备单位时间内的读写次数;In a possible design, the number of times of reading and writing per unit time of the first storage device is obtained;

所述第二存储设备的强度比为所述第二存储设备单位时间内的读写次数占第一存储设备单位时间内的读写次数与第二存储设备单位时间内的读写次数之和的比重。The strength ratio of the second storage device is the sum of the number of reads and writes per unit time of the second storage device to the sum of the number of reads and writes per unit time of the first storage device and the number of reads and writes per unit time of the second storage device. proportion.

在一种可能的设计中,第一存储设备单位时间内的读写次数为所述第一存储设备中单盘单位时间内的读写次数与所述第一存储设备中的盘的数量的积再除以第一换算系数,所述第一换算系数与所述第一存储设备的读请求与写请求的比例以及第一存储设备的RAID级别有关;所述第二存储设备单位时间内的读写次数为所述第二存储设备中单盘单位时间内的读写次数与所述第二存储设备中的盘的数量的积再除以第二换算系数,所述第二换算系数与所述第二存储设备的读请求与写请求的比例以及第二存储设备的RAID级别有关。In a possible design, the number of times of reading and writing per unit time of the first storage device is the product of the number of times of reading and writing per disk in the first storage device per unit time and the number of disks in the first storage device Divide by the first conversion factor, the first conversion factor is related to the ratio of read requests to write requests of the first storage device and the RAID level of the first storage device; The number of writes is the product of the number of times of reading and writing a single disk in the second storage device per unit time and the number of disks in the second storage device, and then divided by a second conversion factor, the second conversion factor and the The ratio of the read request to the write request of the second storage device is related to the RAID level of the second storage device.

在一种可能的设计中,所述第一存储设备中单盘单位时间内的读写次数与所述第一存储设备的负载特征以及响应时长相关;所述第二存储设备中单盘单位时间内的读写次数与所述第二存储设备的负载特征以及响应时长相关。In a possible design, the number of reads and writes per disk per unit time in the first storage device is related to the load characteristics and response time of the first storage device; the second storage device in the single disk per unit time The number of times of reading and writing in the second storage device is related to the load characteristics and the response time of the second storage device.

通过对各个参数具体数值的设置和获取,可以准确的得到需要从第一存储设备迁移到第二存储设备的数据块的数量,可以在尽可能多的把热数据迁移到高性能的第二存储设备的同时,又可以保证存储设备的性能,提高存储系统的效率和性能。By setting and obtaining the specific values of each parameter, the number of data blocks that need to be migrated from the first storage device to the second storage device can be accurately obtained, and as much hot data can be migrated to the high-performance second storage device as much as possible. At the same time, it can ensure the performance of the storage device and improve the efficiency and performance of the storage system.

第二方面,提供一种实现数据迁移的存储系统,存储系统包括第一存储设备、第二存储设备和处理器,处理器用于上述方法中的各个步骤。各个步骤的实现细节以及带来的相应的好处,请参见第一方面中的相关描述。In a second aspect, a storage system for implementing data migration is provided. The storage system includes a first storage device, a second storage device, and a processor, and the processor is used for each step in the above method. For the implementation details of each step and the corresponding benefits, please refer to the relevant description in the first aspect.

第三方面,提供一种实现数据迁移的存储系统,存储系统包括第一存储设备、第二存储设备和处理器,处理器包括数据采集分析模块和数据迁移模块。数据采集分析模块用于获取第二存储设备单位时间内的读写次数;根据所述第二存储设备单位时间内的读写次数获取所述第二存储设备的强度比;查询强度比与容量比对应表,获得与所述强度比对应的容量比;根据所述容量比得到需要从所述第一存储设备迁移到所述第二存储设备的数据块的数量;将得到的需要迁移的数据块的数量发送给数据迁移模块。数据迁移模块用于将得到数量的数据块从第一存储设备迁移到第二存储设备。In a third aspect, a storage system for implementing data migration is provided. The storage system includes a first storage device, a second storage device, and a processor, and the processor includes a data acquisition and analysis module and a data migration module. The data collection and analysis module is used to obtain the read and write times of the second storage device per unit time; obtain the intensity ratio of the second storage device according to the read and write times of the second storage device per unit time; query the ratio of intensity to capacity Correspondence table, obtain the capacity ratio corresponding to the strength ratio; obtain the number of data blocks that need to be migrated from the first storage device to the second storage device according to the capacity ratio; obtain the data blocks that need to be migrated The number sent to the data migration module. The data migration module is used for migrating the obtained number of data blocks from the first storage device to the second storage device.

数据采集分析模块获取第二存储设备的强度比,并根据强度比与容量比对应表得到需要迁移到第二存储设备的数据块的数量。这样可以根据第二存储设备的性能确定迁移的数据的具体数值,可以确保迁入数据之后第二存储设备的性能不受影响,保证了整个存储系统的性能。The data acquisition and analysis module acquires the intensity ratio of the second storage device, and obtains the number of data blocks that need to be migrated to the second storage device according to the correspondence table between the intensity ratio and the capacity ratio. In this way, the specific value of the migrated data can be determined according to the performance of the second storage device, which can ensure that the performance of the second storage device is not affected after the data is migrated, and the performance of the entire storage system is guaranteed.

在一种可能的设计中,数据采集分析模块还用于:预先采集分析应用对存储系统的IO请求,得到强度比与容量比对应表。In a possible design, the data collection and analysis module is further used to: collect and analyze the IO requests of the application to the storage system in advance, and obtain a correspondence table of the intensity ratio and the capacity ratio.

这样在得到第二存储设备的强度比之后,数据采集分析模块可以直接查询强度比与容量比对应表,快速得到需要从第一存储设备迁移到第二存储设备的数据块的数量。In this way, after obtaining the intensity ratio of the second storage device, the data collection and analysis module can directly query the intensity ratio and capacity ratio correspondence table to quickly obtain the number of data blocks that need to be migrated from the first storage device to the second storage device.

在一种可能的设计中,数据采集分析模块用于查询强度比与容量比对应表获得与所述强度比对应的容量比具体为:数据采集分析模块用于查询强度比与容量比对应表,通过模糊匹配规则获取与所述强度比对应的容量比。In a possible design, the data acquisition and analysis module is used to query the intensity ratio and capacity ratio correspondence table to obtain the capacity ratio corresponding to the intensity ratio. Specifically, the data acquisition and analysis module is used to query the intensity ratio and capacity ratio correspondence table, The capacity ratio corresponding to the intensity ratio is obtained through fuzzy matching rules.

强度比与容量比对应表中不可能将所有可能出现的数据都记录出来,因此当计算出来的强度比的具体的数值在强度比与容量比对应表中无法找到时,可以根据模糊匹配规则,以强度比与容量比对应表比计算出来的强度比高一级的强度比的值为准确定对应的容量比,提高查找效率。It is impossible to record all possible data in the correspondence table of intensity ratio and capacity ratio, so when the specific value of the calculated intensity ratio cannot be found in the correspondence table of intensity ratio and capacity ratio, according to the fuzzy matching rule, The corresponding capacity ratio is determined based on the value of the intensity ratio that is one level higher than the calculated intensity ratio in the corresponding table of intensity ratio and capacity ratio, so as to improve the search efficiency.

在一种可能的设计中,数据采集分析模块还用于获取所述存储系统中的每个数据块单位时间内的读写次数,并将获取到的每个数据块的单位时间内的读写次数从高到低按顺序排列;数据采集分析模块根据所述容量比得到需要从所述第一存储设备迁移到所述第二存储设备的数据块的数量具体为:数据采集分析模块根据所述容量比按顺序得到需要从所述第一存储设备迁移到所述第二存储设备的数据块的数量。In a possible design, the data acquisition and analysis module is further configured to obtain the number of reads and writes per unit time of each data block in the storage system, and to obtain the read and write times per unit time of each data block obtained. The times are arranged in order from high to low; the data acquisition and analysis module obtains the number of data blocks that need to be migrated from the first storage device to the second storage device according to the capacity ratio. Specifically: The capacity ratio derives in order the number of data blocks that need to be migrated from the first storage device to the second storage device.

为了确定将访问次数较多的数据从第一存储设备中迁移到第二存储设备,数据采集分析模块将获取到的存储系统中每个数据块的单位时间内的读写次数从高到低按顺序排列,这样可以根据确定的需要迁移的数据块的数量按顺序将单位时间内的读写次数较高的数据块从第一存储设备中迁移到性能更高的第二存储设备中,更快的响应IO请求。In order to determine to migrate the data with more access times from the first storage device to the second storage device, the data acquisition and analysis module will obtain the read and write times per unit time of each data block in the storage system from high to low by pressing In this way, according to the determined number of data blocks that need to be migrated, the data blocks with higher number of reads and writes per unit time can be migrated from the first storage device to the second storage device with higher performance in order, which is faster The response to the IO request.

在一种可能的设计中,数据采集分析模块还用于获取第一存储设备单位时间内的读写次数。第二存储设备的强度比为第二存储设备单位时间内的读写次数占第一存储设备单位时间内的读写次数与第二存储设备单位时间内的读写次数之和的比重。In a possible design, the data acquisition and analysis module is further configured to acquire the number of times of reading and writing in a unit time of the first storage device. The strength ratio of the second storage device is the ratio of the number of reads and writes per unit time of the second storage device to the sum of the number of reads and writes per unit time of the first storage device and the number of reads and writes per unit time of the second storage device.

在一种可能的设计中,第一存储设备单位时间内的读写次数为第一存储设备中单盘单位时间内的读写次数与第一存储设备中的盘的数量的积再除以第一换算系数,述第一换算系数与第一存储设备的读请求与写请求的比例以及第一存储设备的RAID级别有关;第二存储设备单位时间内的读写次数为第二存储设备中单盘单位时间内的读写次数与第二存储设备中的盘的数量的积再除以第二换算系数,第二换算系数与第二存储设备的读请求与写请求的比例以及第二存储设备的RAID级别有关。In a possible design, the number of reads and writes per unit time of the first storage device is the product of the number of reads and writes per disk per unit time in the first storage device and the number of disks in the first storage device divided by the number of A conversion factor, the first conversion factor is related to the ratio of read requests and write requests of the first storage device and the RAID level of the first storage device; The product of the number of reads and writes per disk unit time and the number of disks in the second storage device is divided by the second conversion factor, the ratio of the second conversion factor to the read request and write request of the second storage device, and the second storage device related to the RAID level.

通过对各个参数具体数值的设置和获取,可以准确的得到需要从第一存储设备迁移到第二存储设备的数据块的数量,可以在尽可能多的把热数据迁移到高性能的第二存储设备的同时,又可以保证存储设备的性能,提高存储系统的效率和性能。By setting and obtaining the specific values of each parameter, the number of data blocks that need to be migrated from the first storage device to the second storage device can be accurately obtained, and as much hot data can be migrated to the high-performance second storage device as much as possible. At the same time, it can ensure the performance of the storage device and improve the efficiency and performance of the storage system.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments.

图1为本发明实施例中存储系统的结构示意图;1 is a schematic structural diagram of a storage system in an embodiment of the present invention;

图2为本发明实施例提供的迁移数据的方法流程示意图;2 is a schematic flowchart of a method for migrating data according to an embodiment of the present invention;

图3为本发明实施例提供的另一存储系统的结构示意图。FIG. 3 is a schematic structural diagram of another storage system according to an embodiment of the present invention.

具体实施方式Detailed ways

本发明实施例提供一种存储系统中迁移数据的方法,通过对访问存储系统的IO请求的负载特征的采集与统计、以及存储系统中存储设备性能的估算,计算出需要迁移的数据的大小,以达到按需迁移数据的目的,充分发挥存储系统的性能An embodiment of the present invention provides a method for migrating data in a storage system. The size of the data to be migrated is calculated by collecting and counting load characteristics of IO requests accessing the storage system and estimating the performance of the storage device in the storage system. In order to achieve the purpose of migrating data on demand and give full play to the performance of the storage system

在本发明实施例中,将被访问频率达到预定的数值的数据称为热数据,将访问频率低于预定的数值的数据称为冷数据。In the embodiment of the present invention, the data whose access frequency reaches a predetermined value is called hot data, and the data whose access frequency is lower than the predetermined value is called cold data.

本发明实施例适用的存储系统如附图1所示。存储系统1中包括有存储介质101,处理器103和缓存105。存储系统1中的存储介质101可以有多种,并根据存储介质的性能划分为不同的性能层。例如,存储系统中的存储介质有SSD盘和普通硬盘组成,SSD盘组成高性能层存储设备,普通硬盘组成普通性能层的存储设备。在本发明实施例中,以存储系统中包含高性能层和普通性能层为例进行说明,为了便于描述,将存储系统中的普通性能层称之为第一存储设备,存储系统中的高性能层称为第二存储设备。另外,本发明实施例中以把热数据迁到高性能层为例进行说明,热数据变冷从高性能层迁移到普通性能层也可以采用相同的方法来处理。当存储系统中增加其他性能层时,数据在不同性能层之间迁移时可以采用相同的方法来处理。处理器103用于执行下述的迁移数据的方法,缓存105用于存储需要的信息。A storage system applicable to the embodiment of the present invention is shown in FIG. 1 . The storage system 1 includes a storage medium 101 , a processor 103 and a cache 105 . There may be various storage media 101 in the storage system 1, and they are divided into different performance layers according to the performance of the storage media. For example, the storage medium in the storage system consists of SSD disks and common hard disks, SSD disks form high-performance tier storage devices, and common hard disks form common performance tier storage devices. In the embodiments of the present invention, the storage system includes a high-performance layer and a common performance layer as an example for description. For convenience of description, the common performance layer in the storage system is referred to as the first storage device, and the high-performance layer in the storage system is referred to as the first storage device. The tier is called the second storage device. In addition, in the embodiment of the present invention, the hot data is migrated to the high-performance tier as an example for description, and the same method can also be used for the migration of hot data from the high-performance tier to the common performance tier when the hot data becomes cold. When other performance tiers are added to the storage system, the same method can be used for data migration between different performance tiers. The processor 103 is used for executing the following method of migrating data, and the cache 105 is used for storing required information.

本发明实施例提供的在存储系统中迁移数据的方法流程如附图2所示,由存储系统中的处理器来完成。本方法实施例主要描述的是将数据从普通性能层迁移到高性能层的实现方式,详细描述如下文所述。如上所述,将存储系统中的普通性能层称之为第一存储设备,存储系统中的高性能层称为第二存储设备。另外,本发明实施例中的IO请求以访问存储介质的IO请求为监测和分析对象。The process of the method for migrating data in the storage system provided by the embodiment of the present invention is shown in FIG. 2 , which is completed by the processor in the storage system. The embodiments of this method mainly describe the implementation manner of migrating data from the common performance layer to the high performance layer, and the detailed description is as follows. As mentioned above, the common performance layer in the storage system is called the first storage device, and the high-performance layer in the storage system is called the second storage device. In addition, the IO request in the embodiment of the present invention takes the IO request for accessing the storage medium as the monitoring and analysis object.

步骤201:获取第二存储设备单位时间内的读写次数。Step 201: Acquire the number of times of reading and writing within a unit time of the second storage device.

处理器获取第二存储设备单位时间内的读写次数,单位时间可以根据业务类型由用户自己决定,在本发明实施例中不做限定。当单位时间为1秒,得到的为第二存储设备的每秒的读写次数(Input/Output per second,IOPS)。The processor acquires the number of reads and writes of the second storage device per unit time, and the unit time may be determined by the user according to the service type, which is not limited in this embodiment of the present invention. When the unit time is 1 second, what is obtained is the number of times of reading and writing per second (Input/Output per second, IOPS) of the second storage device.

在本发明实施例中,同一性能层存储设备中每个磁盘的类型相同。本发明实施例提供一种第二存储设备单位时间内的读写次数的获取方法。例如,第二存储设备单位时间内的读写次数=(单盘单位时间内的读写次数*盘的数量)/RAID换算系数。其中,盘的数量为第二存储设备中盘的数量。对于随机写IO,存储设备采用RAID方式要计算校验数据,所以需要产生额外的IO,RAID换算系数与读写IO的比例以及写惩罚系数有关,写惩罚系数是指盘的写IO放大系数,与采用的RAID的级别相关,写惩罚系数的取值与RAID级别的对应关系可以参考表一。具体来说,RAID换算系数=读请求比例+写请求比例*写惩罚系数。In this embodiment of the present invention, each disk in the same performance tier storage device is of the same type. An embodiment of the present invention provides a method for acquiring the number of times of reading and writing in a unit time of a second storage device. For example, the number of times of reading and writing of the second storage device per unit time=(the number of times of reading and writing of a single disk per unit time * the number of disks)/RAID conversion factor. The number of disks is the number of disks in the second storage device. For random write IO, the storage device uses RAID to calculate the parity data, so additional IO needs to be generated. The RAID conversion factor is related to the ratio of read and write IO and the write penalty factor. The write penalty factor refers to the write IO amplification factor of the disk. It is related to the RAID level used. For the corresponding relationship between the value of the write penalty coefficient and the RAID level, refer to Table 1. Specifically, RAID conversion factor=read request ratio+write request ratio*write penalty factor.

RAID级别RAID level 写惩罚系数write penalty factor 00 11 11 22 55 44 66 66 1010 22

表一:RAID级别对应的写惩罚系数Table 1: Write penalty coefficients corresponding to RAID levels

单盘单位时间内的读写次数与第二存储设备的负载特征和响应时长相关,可以预先采集数据并统计获得,如表二所示。此处的第二存储设备的负载特征为访问第二存储设备的IO请求的负载特征。这样在需要获取第二存储设备单位时间内的读写次数时,可以直接根据访问第二存储设备的IO请求的负载特征和响应时长的值查找到第二存储设备中单盘的IOPS,再通过上述方法计算得到第二存储设备时间内的读写次数。The number of reads and writes of a single disk per unit time is related to the load characteristics and response time of the second storage device, and data can be collected in advance and obtained by statistics, as shown in Table 2. The load characteristic of the second storage device here is the load characteristic of the IO request for accessing the second storage device. In this way, when the number of reads and writes per unit time of the second storage device needs to be obtained, the IOPS of a single disk in the second storage device can be found directly according to the load characteristics of the IO request accessing the second storage device and the value of the response time, and then the IOPS of a single disk in the second storage device can be found through The above method calculates and obtains the number of times of reading and writing within the time of the second storage device.

Figure BDA0001188848280000071
Figure BDA0001188848280000071

表二:第二存储设备中单盘单位时间内的读写次数查找表Table 2: Lookup table of read and write times per disk per unit time in the second storage device

可选的,单盘单位时间内的读写次数也可以根据访问第二存储设备的IO请求的负载特征和响应时长统计获得,无需预先获得所述表二的数值。Optionally, the number of reads and writes of a single disk per unit time may also be statistically obtained according to the load characteristics and response duration of the IO request for accessing the second storage device, and it is not necessary to obtain the values in Table 2 in advance.

步骤203:根据所述第二存储设备单位时间内的访问次数,获取所述第二存储设备的强度比。Step 203: Acquire a strength ratio of the second storage device according to the number of accesses of the second storage device per unit time.

所述第二存储设备的强度比为所述第二存储设备单位时间内的访问次数占所述存储系统单位时间内的访问次数的比例。The strength ratio of the second storage device is the ratio of the access times per unit time of the second storage device to the access times per unit time of the storage system.

在本发明实施例中,存储系统中包括第一存储设备和第二存储设备两种性能层的存储设备,第二存储设备的强度比=第二存储设备单位时间内的访问次数/(第二存储设备单位时间内的访问次数+第一存储设备单位时间内的访问次数),即第二存储设备的强度比为所述第二存储设备单位时间内的读写次数占第一存储设备单位时间内的读写次数与第二存储设备单位时间内的读写次数之和的比重。第二存储设备单位时间内的访问次数在步骤201中已经进行了描述,在此不再另行说明。In the embodiment of the present invention, the storage system includes storage devices with two performance layers: a first storage device and a second storage device, and the strength ratio of the second storage device=the number of accesses per unit time of the second storage device/(the second storage device The number of accesses per unit time of the storage device + the number of accesses per unit time of the first storage device), that is, the strength ratio of the second storage device is the number of reads and writes per unit time of the second storage device in the unit time of the first storage device. The proportion of the number of reads and writes within the second storage device to the sum of the number of reads and writes per unit time of the second storage device. The access times of the second storage device per unit time has been described in step 201, and will not be further described here.

第一存储设备单位时间内的访问次数的获取方法与所述第二存储设备单位时间内的访问次数的获取方法相同,也不再另行说明。同理,第一存储设备中单盘单位时间内的读写次数也可以预先采集数据并统计获得,如表三所示。The method for acquiring the number of accesses per unit time of the first storage device is the same as the method for acquiring the number of accesses per unit time of the second storage device, and will not be further described. Similarly, the number of reads and writes of a single disk per unit time in the first storage device may also be pre-collected data and obtained by statistics, as shown in Table 3.

Figure BDA0001188848280000081
Figure BDA0001188848280000081

表三:第一存储设备中单盘单位时间内的读写次数查找表Table 3: Lookup table of read and write times per disk per unit time in the first storage device

需要说明的是,表二和表三中的内容可以合并成一个表存储,即存储系统中各性能层中的单个盘单位时间内的读写次数可以在一个表格中体现,如表四所示。当存储系统中还有其他不同性能层的存储设备时,其他性能层中单盘的单位时间内的读写次数可以在一个表中体现,也可以分别用不同的表格来体现,在本发明实施例中不做限定。It should be noted that the contents in Tables 2 and 3 can be combined into one table for storage, that is, the number of reads and writes per disk per unit time in each performance tier in the storage system can be reflected in one table, as shown in Table 4. . When there are other storage devices with different performance tiers in the storage system, the number of reads and writes per unit time of a single disk in other performance tiers can be reflected in one table, or can be reflected in different tables respectively. In the implementation of the present invention The example is not limited.

Figure BDA0001188848280000082
Figure BDA0001188848280000082

表四:存储系统中单盘单位时间内的读写次数查找表Table 4: Look-up table for read and write times per disk per unit time in the storage system

步骤205:查询强度比与容量比的对应表,获得与强度比对应的容量比。Step 205 : query the correspondence table of the intensity ratio and the capacity ratio to obtain the capacity ratio corresponding to the intensity ratio.

强度比与容量比的对应表,是预先对业务数据进行监测并分析计算得到的。将存储系统(包括第一存储设备和第二存储设备)中的业务数据拆分为多个数据块,获得这些数据块在单位时间内的读写次数,即数据块的访问强度。业务数据可以按迁粒度拆分为多个数据块,也可以按指定大小拆分为多个数据块。统计监控时间内访问这些数据块的读写次数,再计算这些数据块单位时间内的读写次数IOPS,即访问强度。将存储系统中的数据块按访问强度从高到低进行排序,然后按一定的容量比值将数据块分成若干组。例如表格3所示,以容量比值2.5%为维度将数据块进行分组,即data1~dataA组成容量比为2.5%的组,即data1~data2A组成容量比为5%的组……以此类推,如表五所示。The correspondence table between the intensity ratio and the capacity ratio is obtained by monitoring and analyzing the business data in advance. The service data in the storage system (including the first storage device and the second storage device) is divided into multiple data blocks, and the number of reads and writes of these data blocks per unit time is obtained, that is, the access strength of the data blocks. Business data can be divided into multiple data blocks according to the migration granularity, or divided into multiple data blocks according to the specified size. Count the read and write times of accessing these data blocks within the monitoring time, and then calculate the IOPS of the read and write times of these data blocks per unit time, that is, the access strength. Sort the data blocks in the storage system according to the access intensity from high to low, and then divide the data blocks into several groups according to a certain capacity ratio. For example, as shown in Table 3, the data blocks are grouped with the capacity ratio of 2.5% as the dimension, that is, data1~dataA form a group with a capacity ratio of 2.5%, that is, data1~data2A form a group with a capacity ratio of 5%... and so on, As shown in Table 5.

Figure BDA0001188848280000091
Figure BDA0001188848280000091

表五:热点数据块的统计表Table 5: Statistics of hotspot data blocks

计算每个数据块在单位时间内的读写次数,再将每个容量比对应的数据块的单位时间内的读写次数之和与存储系统中的全部数据块在单位时间内的读写次数的总和进行比较,得到与容量比对应的强度比,即强度比与容量比的对应表,如表六所示。表六中的数据为示例性说明,具体数据根据业务不同取值会不同。容量比的取值也可以按需设定。Calculate the number of reads and writes of each data block per unit time, and then calculate the sum of the number of reads and writes per unit time of each data block corresponding to the capacity ratio and the number of reads and writes per unit time of all data blocks in the storage system Compare the sum of , and obtain the intensity ratio corresponding to the capacity ratio, that is, the correspondence table between the intensity ratio and the capacity ratio, as shown in Table 6. The data in Table 6 is an exemplary description, and the specific data will have different values according to different services. The value of the capacity ratio can also be set as required.

容量比capacity ratio 强度比Intensity ratio 0.0%0.0% 0.0%0.0% 2.5%2.5% 35.0%35.0% 5.0%5.0% 50.0%50.0% 7.5%7.5% 60.0%60.0% 10.0%10.0% 65.0%65.0% 12.5%12.5% 67.0%67.0% 15.0%15.0% 69.0%69.0% 20.0%20.0% 70.0%70.0% 25.0%25.0% 71.5%71.5% 30.0%30.0% 72.0%72.0% 100.0%100.0% 100.0%100.0%

表六:某典型负载的强度比与容量比对应表Table 6: Corresponding table of intensity ratio and capacity ratio of a typical load

如表六所示,当存储系统中数据块的容量比为10%时,对应的强度比为65%,即P强度比[10%]=65%,表示占据总数据量10%的数据块的I/O访问数量占存储系统中全部数据块I/O访问数量的比重为65%。反过来,当数据块的强度比为70%时,对应的容量比为20%,P热点容量比[70%]=20%,则表示I/O访问数量占存储系统中全部数据块I/O访问数量70%的数据块占存储系统中全部数据块的20%。从表格中的数据规律我们可以看到,10%数据块对应的强度比已经高达65%;而更多数据块对应的强度比的变化不大,说明该场景的热数据很集中,适合使用分级技术来提升性能。As shown in Table 6, when the capacity ratio of data blocks in the storage system is 10%, the corresponding intensity ratio is 65%, that is, the P intensity ratio [10%]=65%, indicating that the data blocks occupy 10% of the total data volume The number of I/O accesses in the storage system accounts for 65% of the total data block I/O accesses in the storage system. Conversely, when the intensity ratio of the data block is 70%, the corresponding capacity ratio is 20%, and the P hotspot capacity ratio [70%]=20%, which means that the number of I/O accesses accounts for all the data block I/O in the storage system. Data blocks with 70% of the access quantity account for 20% of all data blocks in the storage system. From the data rules in the table, we can see that the intensity ratio corresponding to 10% data blocks has reached 65%; while the intensity ratio corresponding to more data blocks does not change much, indicating that the hot data in this scene is very concentrated and suitable for using classification technology to improve performance.

为了提高数据的准确性,可选的,可以将一次业务模型的数据块访问情况做为统计基础来获得强度比与容量比对应表。In order to improve the accuracy of the data, optionally, a data block access situation of a business model can be used as a statistical basis to obtain a corresponding table of the intensity ratio and the capacity ratio.

通过步骤203得到的第二存储设备的强度比后,可以通过查询所述与容量比对应表得到与第二存储设备的强度比对应的容量比。查询规则可以采用模糊匹配的规则,即查询强度比与容量比对应表,通过模糊匹配规则获取与所述强度比对应的容量比。如果需要查询的强度比在强度比与容量比对应表中无法精确匹配,则按得到的第二存储设备的强度比高一级的强度比查找对应的容量比。如果根据查询得到的容量比确定出的需要迁移的数据块满足条件,则按此容量比计算。如果根据查询得到的容量比确定出的需要迁移的数据块不满足条件,则按得到的第二存储设备的强度比低一级的强度比查找对应的容量比。具体的条件在下文进行说明,在此不再详述。After the intensity ratio of the second storage device is obtained through step 203, the capacity ratio corresponding to the intensity ratio of the second storage device can be obtained by querying the corresponding table with the capacity ratio. The query rule may adopt a fuzzy matching rule, that is, query the correspondence table of the intensity ratio and the capacity ratio, and obtain the capacity ratio corresponding to the intensity ratio through the fuzzy matching rule. If the intensity ratio to be queried cannot be exactly matched in the intensity ratio and capacity ratio correspondence table, the corresponding capacity ratio is searched according to the obtained intensity ratio of the second storage device one level higher. If the data block that needs to be migrated determined according to the capacity ratio obtained by the query meets the conditions, it is calculated according to the capacity ratio. If the data block to be migrated determined according to the capacity ratio obtained by the query does not satisfy the condition, the corresponding capacity ratio is searched according to the obtained strength ratio of the second storage device one level lower. The specific conditions will be described below, and will not be described in detail here.

步骤207:根据所述容量比得到需要从所述第一存储设备迁移到第二存储设备的数据块的数量。Step 207: Obtain the number of data blocks that need to be migrated from the first storage device to the second storage device according to the capacity ratio.

根据步骤205获得的容量比,得到所述容量比对应的数据块的数量。获取所述存储系统中的每个数据块单位时间内的读写次数,并将获取到的每个数据块的单位时间内的读写次数从高到低按顺序排列;根据得到的与所述容量比对应的数据块的数量,按访问强度从高到低选取相应数量的数据块,确定需要从第一存储设备迁移到第二存储设备的数据块的数量。According to the capacity ratio obtained in step 205, the number of data blocks corresponding to the capacity ratio is obtained. Acquire the number of times of reading and writing in the unit time of each data block in the storage system, and arrange the times of reading and writing in the unit time of each data block obtained in order from high to low; according to the obtained and described For the number of data blocks corresponding to the capacity ratio, select the corresponding number of data blocks according to the access intensity from high to low, and determine the number of data blocks that need to be migrated from the first storage device to the second storage device.

若选取的相应数量的数据块中有些已经在第二存储设备中时,则确定这些数据块中在第一存储设备中的数据块的数量,并确定这需要从第一存储设备迁移到第二存储设备的数据块的数量。If some of the selected corresponding number of data blocks are already in the second storage device, determine the number of data blocks in the first storage device among these data blocks, and determine that this needs to be migrated from the first storage device to the second storage device The number of data blocks for the storage device.

下面以第二存储设备中还未迁入数据块为例进行说明,如果第二存储设备中已有数据块时,相应的将计算出来的数值减去第二存储设备中已经有的数值即可,不再一一说明。迁移数据量=P容量比[第二存储设备IOPS/(第二存储设备IOPS+第一存储设备IOPS)]*总数据量。如果计算出的需要迁移的数据块的数据量小于第二存储设备的总容量,则需要迁移的数据块的数量为计算出来的数据块的数量。如果计算出的需要迁移的数据块的数据量大于第二存储设备的总容量,则需要迁移的数据块的数量以第二存储设备的总容量为准。In the following, the data block has not been moved into the second storage device as an example. If there is a data block in the second storage device, the calculated value can be subtracted from the value already in the second storage device. , and no longer explain them one by one. Migration data volume=P capacity ratio [second storage device IOPS/(second storage device IOPS+first storage device IOPS)]*total data volume. If the calculated data volume of the data blocks to be migrated is less than the total capacity of the second storage device, the number of data blocks to be migrated is the calculated number of data blocks. If the calculated data volume of the data blocks to be migrated is greater than the total capacity of the second storage device, the number of data blocks to be migrated is subject to the total capacity of the second storage device.

步骤209:根据所述数量将对应的数据块从所述第一存储设备迁移到所述第二存储设备。根据步骤207计算得到的需要从所述第一存储设备迁移到第二存储设备的数据块的数量,按访问强度从高到低将对应数量的数据块从第一存储设备迁移到第二存储设备中。Step 209: Migrate the corresponding data blocks from the first storage device to the second storage device according to the quantity. According to the number of data blocks that need to be migrated from the first storage device to the second storage device calculated in step 207, the corresponding number of data blocks are migrated from the first storage device to the second storage device according to the access intensity from high to low middle.

下面以一具体的例子来进一步对本发明实施例的方法进行示例说明。The following uses a specific example to further illustrate the method of the embodiment of the present invention.

通过对典型业务数据的监测和分析,得到以下参数的数值,如表七所示:Through the monitoring and analysis of typical business data, the values of the following parameters are obtained, as shown in Table 7:

Figure BDA0001188848280000111
Figure BDA0001188848280000111

表七:业务参数取值表Table 7: Service parameter value table

第二存储设备IOPS=3500*10/(0.7+0.3*4),第一存储设备IOPS=180*100/(0.7+0.3*4),则第二存储设备强度比=第二存储设备IOPS/(第二存储设备IOPS+第一存储设备IOPS)=66%,根据模糊匹配规则查找表六所示的强度比与容量比对应表,以强度比66%的高一级强度比67%为准,确定对应的容量比为12.5%,则迁移数据量=存储系统中的数据量*12.5%=3.75TB;因为高性能层容量(6TB)>3.75TB,则最终迁移数据量为3.75TB,根据访问强度由高到低将3.75TB的数据从第一存储设备迁移到第二存储设备。占存储系统访问强度66%的数据迁移到第二存储设备中,由于第二存储设备为高性能存储设备,可以及时响应用户的请求。并且迁移的数据量没有超过第二存储设备的容量,不会影响第二存储设备的性能,保证了存储系统的整体性能。Second storage device IOPS=3500*10/(0.7+0.3*4), first storage device IOPS=180*100/(0.7+0.3*4), then the second storage device strength ratio=second storage device IOPS/ (IOPS of the second storage device + IOPS of the first storage device)=66%, look up the corresponding table of intensity ratio and capacity ratio shown in Table 6 according to the fuzzy matching rule, and take the intensity ratio 67% higher than the 66% intensity ratio as the criterion, It is determined that the corresponding capacity ratio is 12.5%, then the amount of migrated data = the amount of data in the storage system * 12.5% = 3.75TB; because the high-performance tier capacity (6TB)> 3.75TB, the final migration data volume is 3.75TB, according to the access Migrate 3.75TB of data from the first storage device to the second storage device in intensity from high to low. Data accounting for 66% of the access intensity of the storage system is migrated to the second storage device. Since the second storage device is a high-performance storage device, it can respond to user requests in time. In addition, the amount of migrated data does not exceed the capacity of the second storage device, and the performance of the second storage device will not be affected, thereby ensuring the overall performance of the storage system.

本发明实施例还提供一种存储系统3,可以实现如前所述的数据迁移方法,所述存储系统3的结构如附图3所示。存储系统3包含了第一存储设备321和第二存储设备323,第一存储设备321和第二存储设备323的性能不相同。在本发明实施例中,第一存储设备321由普通性能的存储介质如传统磁盘组成,可以存储用户数据;第二存储设备323由高性能的存储介质如SSD盘组成,可以用来存储热数据。当需要指出第一存储设备321和第二存储设备323的相同特征时,使用存储设备加以说明。本发明实施例中的存储设备仅为示例性的说明,在实际应用中,还可以增加不同性能的存储介质。存储设备中包含的存储介质的数量也可以根据需要设定,在本发明实施例中不做限定。另外,存储设备可以由相同性能的存储介质组成,也可以由性能接近的存储介质组成。本发明实施例以将第一存储设备321中的数据迁移到第二存储设备323中为例进行说明。本实施例部份仅对存储系统3中各组成部件的功能做简单的描述,涉及到的方法步骤的细节特征请参阅前文方法实施例部份的描述。An embodiment of the present invention further provides a storage system 3 that can implement the data migration method as described above. The structure of the storage system 3 is shown in FIG. 3 . The storage system 3 includes a first storage device 321 and a second storage device 323, and the performance of the first storage device 321 and the second storage device 323 are different. In this embodiment of the present invention, the first storage device 321 is composed of a storage medium with ordinary performance, such as a traditional disk, and can store user data; the second storage device 323 is composed of a high-performance storage medium, such as an SSD disk, and can be used to store hot data . When it is necessary to point out the same features of the first storage device 321 and the second storage device 323, the storage device is used for explanation. The storage devices in the embodiments of the present invention are only illustrative, and in practical applications, storage media with different performances may also be added. The number of storage media included in the storage device may also be set as required, which is not limited in this embodiment of the present invention. In addition, the storage device may be composed of storage media with the same performance, or may be composed of storage media with similar performance. The embodiment of the present invention is described by taking the data in the first storage device 321 to the second storage device 323 as an example for description. This embodiment only briefly describes the functions of the components in the storage system 3. For details of the involved method steps, please refer to the description of the foregoing method embodiment.

存储系统3还包括处理器31,处理器中包括数据采集分析模块311和数据迁移模块313。数据采集分析模块311用于对应用访问存储设备的IO请求进行分析计算,得到需要从第一存储设备321迁移到第二存储设备323的数据块的数量,并通知数据迁移模块313。数据迁移模块313用于将得到数量的数据块从第一存储设备321迁移到第二存储设备323。The storage system 3 further includes a processor 31 , and the processor includes a data acquisition and analysis module 311 and a data migration module 313 . The data collection and analysis module 311 is configured to analyze and calculate the IO request of the application accessing the storage device, obtain the number of data blocks that need to be migrated from the first storage device 321 to the second storage device 323, and notify the data migration module 313. The data migration module 313 is configured to migrate the obtained number of data blocks from the first storage device 321 to the second storage device 323 .

具体的,数据采集分析模块311用于获取第二存储设备323单位时间内的读写次数;根据所述第二存储设备323单位时间内的读写次数获取所述第二存储设备323的强度比;查询强度比与容量比对应表,获得与所述强度比对应的容量比;根据所述容量比得到需要从所述第一存储设备321迁移到所述第二存储设备323的据块的数量;将得到的需要迁移的数据块的数量发送给数据迁移模块313。详细的处理方法在前文方法中已进行了详细的描述,在此处不再另行描述。Specifically, the data collection and analysis module 311 is used to obtain the read and write times of the second storage device 323 within a unit time; and obtain the intensity ratio of the second storage device 323 according to the read and write times of the second storage device 323 within a unit time. ; Query the strength ratio and capacity ratio correspondence table to obtain the capacity ratio corresponding to the strength ratio; obtain the number of data blocks that need to be migrated from the first storage device 321 to the second storage device 323 according to the capacity ratio ; Send the obtained number of data blocks to be migrated to the data migration module 313 . The detailed processing method has been described in detail in the previous method, and will not be further described here.

数据采集分析模块311获取第二存储设备323的强度比,并根据强度比与容量比对应表,得到需要迁移到第二存储设备323的数据块的数量。这样可以根据第二存储设备323的性能确定迁移的数据的量,可以确保迁入数据之后第二存储设备323的性能不受影响,保证了整个存储系统的性能。The data acquisition and analysis module 311 obtains the intensity ratio of the second storage device 323, and obtains the number of data blocks that need to be migrated to the second storage device 323 according to the correspondence table between the intensity ratio and the capacity ratio. In this way, the amount of data to be migrated can be determined according to the performance of the second storage device 323, which can ensure that the performance of the second storage device 323 is not affected after the data is migrated, and the performance of the entire storage system is guaranteed.

数据迁移模块313用于根据接收到的需要迁移的数据块的数量将对应的数据块从所述第一存储设备321迁移到所述第二存储设备323。The data migration module 313 is configured to migrate corresponding data blocks from the first storage device 321 to the second storage device 323 according to the received number of data blocks that need to be migrated.

数据采集分析模块311还用于预先采集分析应用对存储系统3的IO请求,得到强度比与容量比对应表。这样在得到第二存储设备323的强度比之后,可以直接查询强度比与容量比对应表,快速得到需要从第一存储设备321迁移到第二存储设备323的数据块的数量。The data collection and analysis module 311 is further configured to collect and analyze the IO requests of the application to the storage system 3 in advance, and obtain a correspondence table between the intensity ratio and the capacity ratio. In this way, after obtaining the intensity ratio of the second storage device 323 , the corresponding table of the intensity ratio and the capacity ratio can be directly queried to quickly obtain the number of data blocks that need to be migrated from the first storage device 321 to the second storage device 323 .

数据采集分析模块311用于查询强度比与容量比对应表获得与所述强度比对应的容量比具体为:数据采集分析模块311用于查询强度比与容量比对应表,通过模糊匹配规则获取与所述强度比对应的容量比。The data collection and analysis module 311 is used to query the intensity ratio and capacity ratio correspondence table to obtain the capacity ratio corresponding to the intensity ratio. Specifically: the data collection and analysis module 311 is used to query the intensity ratio and capacity ratio correspondence table, and obtains the corresponding table through fuzzy matching rules. The intensity ratio corresponds to the capacity ratio.

强度比与容量比对应表中不可能将所有可能出现的数据都记录出来,因此当计算出来的强度比的具体的数值在强度比与容量比对应表中无法找到时,可以根据模糊匹配规则,以强度比与容量比对应表比计算出来的强度比高一级的强度比的值为准确定对应的容量比,提高查找效率。It is impossible to record all possible data in the correspondence table of intensity ratio and capacity ratio, so when the specific value of the calculated intensity ratio cannot be found in the correspondence table of intensity ratio and capacity ratio, according to the fuzzy matching rule, The corresponding capacity ratio is determined based on the value of the intensity ratio that is one level higher than the calculated intensity ratio in the corresponding table of intensity ratio and capacity ratio, so as to improve the search efficiency.

数据采集分析模块311还用于获取所述存储系统3中的每个数据块单位时间内的读写次数,并将获取到的每个数据块的单位时间内的读写次数从高到低按顺序排列;根据所述容量比和所述获取到的每个数据块的单位时间内的读写次数确定与所述容量比对应的数据块;按顺序确认在所述第一存储设备321中与所述容量比对应的数据块的数量。The data acquisition and analysis module 311 is also used to obtain the read and write times per unit time of each data block in the storage system 3, and press the obtained read and write times per unit time of each data block from high to low. Arrange in order; determine the data blocks corresponding to the capacity ratio according to the capacity ratio and the obtained read and write times per unit time of each data block; The capacity ratio corresponds to the number of data blocks.

为了确定将访问次数较多的热数据从第一存储设备321中迁移到第二存储设备323,数据采集分析模块311将获取到的存储系统3中每个数据块的单位时间内的读写次数从高到低按顺序排列,这样可以根据确定的需要迁移的数据块的数量按顺序将单位时间内的读写次数较高的数据块从第一存储设备321中迁移到性能更高的第二存储设备323中,更快的响应IO请求。In order to determine the migration of hot data with more access times from the first storage device 321 to the second storage device 323, the data acquisition and analysis module 311 obtains the read and write times per unit time of each data block in the storage system 3. Arrange them in order from high to low, so that the data blocks with higher number of reads and writes per unit time can be migrated from the first storage device 321 to the second storage device 321 with higher performance in order according to the determined number of data blocks to be migrated. In the storage device 323, the IO request is responded faster.

数据采集分析模块311还用于获取所述第一存储设备321单位时间内的读写次数。第二存储设备323的强度比为所述第二存储设备323单位时间内的读写次数占第一存储设备321单位时间内的读写次数与第二存储设备323单位时间内的读写次数之和的比重。The data acquisition and analysis module 311 is further configured to acquire the read and write times of the first storage device 321 within a unit time. The intensity ratio of the second storage device 323 is the ratio of the number of reads and writes per unit time of the second storage device 323 to the number of reads and writes per unit time of the first storage device 321 and the number of reads and writes per unit time of the second storage device 323 and proportion.

所述第一存储设备321单位时间内的读写次数为所述第一存储设备321中单盘单位时间内的读写次数与所述第一存储设备321中的盘的数量的积再除以第一换算系数,所述第一换算系数与所述第一存储设备321的读请求与写请求的比例以及第一存储设备321的RAID级别有关;The number of times of reading and writing in the first storage device 321 per unit time is the product of the number of times of reading and writing per disk in the first storage device 321 per unit time and the number of disks in the first storage device 321 divided by a first conversion factor, where the first conversion factor is related to the ratio of read requests to write requests of the first storage device 321 and the RAID level of the first storage device 321;

所述第二存储设备323单位时间内的读写次数为所述第二存储设备323中单盘单位时间内的读写次数与所述第二存储设备323中的盘的数量的积再除以第二换算系数,所述第二换算系数与所述第二存储设备323的读请求与写请求的比例以及第二存储设备323的RAID级别有关。The number of reads and writes in the second storage device 323 per unit time is the product of the number of reads and writes per disk in the second storage device 323 per unit time and the number of disks in the second storage device 323 divided by The second scaling factor is related to the ratio of the read request to the write request of the second storage device 323 and the RAID level of the second storage device 323 .

通过对各个参数具体数值的设置和获取,可以准确的得到需要从第一存储设备321迁移到第二存储设备323的数据块的数量,可以在尽可能多的把热数据迁移到高性能的第二存储设备323的同时,又可以保证存储设备323的性能,提高存储系统的效率和性能。By setting and obtaining the specific values of each parameter, the number of data blocks that need to be migrated from the first storage device 321 to the second storage device 323 can be accurately obtained, and as much hot data can be migrated to the high-performance second storage device as much as possible. In addition to the storage device 323, the performance of the storage device 323 can be guaranteed, and the efficiency and performance of the storage system can be improved.

具体各个参数可能的取值以及计算方法,在前文方法实施例中已进行了详细的描述,在此处不在详细描述。The possible values and calculation methods of specific parameters have been described in detail in the foregoing method embodiments, and will not be described in detail here.

本申请实施例还提供了一种计算机存储介质,用于储存为上述存储系统所用的计算机软件指令,其包含用于执行上述方法实施例所设计的程序。通过执行存储的程序,可以实现存储设备间迁移数据的方法。Embodiments of the present application further provide a computer storage medium for storing computer software instructions used by the above-mentioned storage system, including a program designed to execute the above-mentioned method embodiments. By executing the stored program, a method for migrating data between storage devices can be implemented.

本申请实施例还提供了一种计算机程序,该计算机程序包括指令,当该计算机程序被计算机执行时,使得计算机可以执行上述方法实施例的流程。Embodiments of the present application further provide a computer program, where the computer program includes instructions, when the computer program is executed by a computer, the computer can execute the processes of the above method embodiments.

尽管在此结合各实施例对本申请进行了描述,然而,在实施所要求保护的本申请过程中,本领域技术人员通过查看所述附图、公开内容、以及所附权利要求书,可理解并实现所述公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。Although the application is described herein in conjunction with the various embodiments, those skilled in the art will understand and understand from a review of the drawings, the disclosure, and the appended claims in practicing the claimed application. Other variations of the disclosed embodiments are implemented. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that these measures cannot be combined to advantage.

本领域技术人员应明白,本申请的实施例可提供为方法、装置(设备)、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机程序存储/分布在合适的介质中,与其它硬件一起提供或作为硬件的一部分,也可以采用其他分布形式,如通过Internet或其它有线或无线电信系统。It should be understood by those skilled in the art that the embodiments of the present application may be provided as a method, an apparatus (apparatus), or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein. The computer program is stored/distributed in a suitable medium, provided with or as part of other hardware, or may take other forms of distribution, such as over the Internet or other wired or wireless telecommunication systems.

本申请是参照本申请实施例的方法、装置(设备)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to the flowcharts and/or block diagrams of the methods, apparatuses (devices) and computer program products of the embodiments of the present application. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.

以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案脱离权利要求书的范围。The above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that the foregoing embodiments can still be used for The technical solutions described in the examples are modified, or some or all of the technical features thereof are equivalently replaced; and these modifications or replacements do not make the corresponding technical solutions depart from the scope of the claims.

Claims (12)

1.一种存储系统中迁移数据的方法,所述存储系统包括第一存储设备和第二存储设备,其特征在于,包括:1. A method for migrating data in a storage system, the storage system comprising a first storage device and a second storage device, characterized in that, comprising: 获取第二存储设备单位时间内的读写次数;Obtain the number of reads and writes per unit time of the second storage device; 根据所述第二存储设备单位时间内的读写次数,获取所述第二存储设备的强度比;Obtain the intensity ratio of the second storage device according to the number of reads and writes per unit time of the second storage device; 查询强度比与容量比对应表,获得与所述强度比对应的容量比;query the correspondence table of intensity ratio and capacity ratio, and obtain the capacity ratio corresponding to the intensity ratio; 根据所述容量比得到需要从所述第一存储设备迁移到所述第二存储设备的数据块的数量;obtaining the number of data blocks that need to be migrated from the first storage device to the second storage device according to the capacity ratio; 根据所述数量将对应的数据块从所述第一存储设备迁移到所述第二存储设备。The corresponding data blocks are migrated from the first storage device to the second storage device according to the number. 2.根据权利要求1所述的方法,其特征在于,所述强度比比与容量比对应表是预先监测分析得到的。2 . The method according to claim 1 , wherein the correspondence table between the intensity ratio and the capacity ratio is obtained by pre-monitoring and analysis. 3 . 3.根据权利要求1或2所述的方法,其特征在于,步骤查询强度比与容量比对应表,获取与所述强度比对应的容量比具体为:3. The method according to claim 1 or 2, wherein the step of querying a correspondence table of intensity ratio and capacity ratio, and obtaining the capacity ratio corresponding to the intensity ratio is specifically: 查询强度比与容量比对应表,通过模糊匹配规则获取与所述强度比对应的容量比。The corresponding table of intensity ratio and capacity ratio is queried, and the capacity ratio corresponding to the intensity ratio is obtained through the fuzzy matching rule. 4.根据权利要求1或2所述的方法,其特征在于,所述方法还包括:4. The method according to claim 1 or 2, wherein the method further comprises: 获取所述存储系统中的每个数据块单位时间内的读写次数,并将获取到的每个数据块的单位时间内的读写次数从高到低按顺序排列;Acquiring the number of times of reading and writing in the unit time of each data block in the storage system, and arranging the number of times of reading and writing in the unit time of each data block obtained in order from high to low; 根据所述容量比得到需要从所述第一存储设备迁移到所述第二存储设备的数据块的数量具体包括:Obtaining the number of data blocks to be migrated from the first storage device to the second storage device according to the capacity ratio specifically includes: 根据所述容量比和所述获取到的每个数据块的单位时间内的读写次数确定与所述容量比对应的数据块;Determine the data block corresponding to the capacity ratio according to the capacity ratio and the obtained read and write times per unit time of each data block; 确认在所述第一存储设备中与所述容量比对应的数据块的数量。The number of data blocks corresponding to the capacity ratio in the first storage device is confirmed. 5.根据权利要求1或2所述的方法,其特征在于,所述方法还包括:5. The method according to claim 1 or 2, wherein the method further comprises: 获取所述第一存储设备单位时间内的读写次数;Obtain the number of times of reading and writing in the first storage device per unit time; 所述第二存储设备的强度比为所述第二存储设备单位时间内的读写次数占第一存储设备单位时间内的读写次数与第二存储设备单位时间内的读写次数之和的比重。The strength ratio of the second storage device is the sum of the number of reads and writes per unit time of the second storage device to the sum of the number of reads and writes per unit time of the first storage device and the number of reads and writes per unit time of the second storage device. proportion. 6.根据权利要求5所述的方法,其特征在于,所述第一存储设备单位时间内的读写次数为所述第一存储设备中单盘单位时间内的读写次数与所述第一存储设备中的盘的数量的积再除以第一换算系数,所述第一换算系数与所述第一存储设备的读请求与写请求的比例以及第一存储设备的RAID级别有关;6. The method according to claim 5, wherein the number of times of reading and writing per unit time of the first storage device is the number of times of reading and writing per disk in the first storage device and the number of times of reading and writing per unit time of the first storage device. dividing the product of the number of disks in the storage device by a first conversion factor, the first conversion factor being related to the ratio of read requests to write requests of the first storage device and the RAID level of the first storage device; 所述第二存储设备单位时间内的读写次数为所述第二存储设备中单盘单位时间内的读写次数与所述第二存储设备中的盘的数量的积再除以第二换算系数,所述第二换算系数与所述第二存储设备的读请求与写请求的比例以及第二存储设备的RAID级别有关。The number of reads and writes per unit time of the second storage device is the product of the number of reads and writes per disk per unit time in the second storage device and the number of disks in the second storage device, and then divided by the second conversion coefficient, the second conversion coefficient is related to the ratio of the read request to the write request of the second storage device and the RAID level of the second storage device. 7.根据权利要求6所述的方法,其特征在于,所述方法还包括:所述第一存储设备中单盘单位时间内的读写次数与所述第一存储设备的负载特征以及响应时长相关;7 . The method according to claim 6 , wherein the method further comprises: the number of reads and writes per disk per unit time in the first storage device and the load characteristics and response duration of the first storage device. 8 . related; 所述第二存储设备中单盘单位时间内的读写次数与所述第二存储设备的负载特征以及响应时长相关。The number of reads and writes of a single disk in the second storage device per unit time is related to the load characteristics and response duration of the second storage device. 8.一种实现数据迁移的存储系统,其特征在于,所述存储系统包括第一存储设备、第二存储设备和处理器,所述处理器用于执行权利要求1-7所述的方法。8. A storage system for implementing data migration, wherein the storage system comprises a first storage device, a second storage device, and a processor, and the processor is configured to execute the method of claims 1-7. 9.一种实现数据迁移的存储系统,其特征在于,所述存储系统包括第一存储设备、第二存储设备和处理器,所述处理器包括数据采集分析模块和数据迁移模块;9. A storage system for implementing data migration, wherein the storage system comprises a first storage device, a second storage device and a processor, and the processor includes a data acquisition and analysis module and a data migration module; 所述数据采集分析模块用于获取第二存储设备单位时间内的读写次数;根据所述第二存储设备单位时间内的读写次数获取所述第二存储设备的强度比;查询强度比与容量比对应表,获得与所述强度比对应的容量比;根据所述容量比得到需要从所述第一存储设备迁移到所述第二存储设备的数据块的数量;将得到的需要迁移的数据块的数量发送给数据迁移模块;The data acquisition and analysis module is used to obtain the read and write times of the second storage device per unit time; obtain the intensity ratio of the second storage device according to the read and write times of the second storage device per unit time; capacity ratio correspondence table, obtain the capacity ratio corresponding to the strength ratio; obtain the number of data blocks that need to be migrated from the first storage device to the second storage device according to the capacity ratio; The number of data blocks is sent to the data migration module; 数据迁移模块用于将得到数量的数据块从第一存储设备迁移到第二存储设备。The data migration module is used for migrating the obtained number of data blocks from the first storage device to the second storage device. 10.根据权利要求9所述的存储系统,其特征在于,数据采集分析模块还用于:10. The storage system according to claim 9, wherein the data acquisition and analysis module is also used for: 预先采集分析应用对存储系统的IO请求,得到强度比与容量比对应表。Collect and analyze the IO requests of the application to the storage system in advance, and obtain the corresponding table of intensity ratio and capacity ratio. 11.根据权利要求9或10所述的存储系统,其特征在于,数据采集分析模块用于查询强度比与容量比对应表获得与所述强度比对应的容量比具体为:数据采集分析模块用于查询强度比与容量比对应表,通过模糊匹配规则获取与所述强度比对应的容量比。11. The storage system according to claim 9 or 10, wherein the data acquisition and analysis module is used to query the intensity ratio and capacity ratio correspondence table to obtain the capacity ratio corresponding to the intensity ratio, specifically: the data acquisition and analysis module uses For querying the strength ratio and capacity ratio correspondence table, obtain the capacity ratio corresponding to the strength ratio through a fuzzy matching rule. 12.根据权利要求9或10所述的存储系统,其特征在于,数据采集分析模块还用于获取所述存储系统中的每个数据块单位时间内的读写次数,并将获取到的每个数据块的单位时间内的读写次数从高到低按顺序排列;12. The storage system according to claim 9 or 10, wherein the data acquisition and analysis module is also used to obtain the number of times of reading and writing in the unit time of each data block in the storage system, and will obtain each data block. The number of reads and writes within a unit time of a data block is arranged in order from high to low; 数据采集分析模块根据所述容量比得到需要从所述第一存储设备迁移到所述第二存储设备的数据块的数量具体为:数据采集分析模块根据所述容量比按顺序得到需要从所述第一存储设备迁移到所述第二存储设备的数据块的数量。The data acquisition and analysis module obtains, according to the capacity ratio, the number of data blocks that need to be migrated from the first storage device to the second storage device. The number of data blocks migrated from the first storage device to the second storage device.
CN201611199849.1A 2016-12-22 2016-12-22 Data migration method, device and system Active CN107122126B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201611199849.1A CN107122126B (en) 2016-12-22 2016-12-22 Data migration method, device and system
PCT/CN2017/096784 WO2018113317A1 (en) 2016-12-22 2017-08-10 Data migration method, apparatus, and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611199849.1A CN107122126B (en) 2016-12-22 2016-12-22 Data migration method, device and system

Publications (2)

Publication Number Publication Date
CN107122126A CN107122126A (en) 2017-09-01
CN107122126B true CN107122126B (en) 2020-09-08

Family

ID=59717905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611199849.1A Active CN107122126B (en) 2016-12-22 2016-12-22 Data migration method, device and system

Country Status (2)

Country Link
CN (1) CN107122126B (en)
WO (1) WO2018113317A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107894873A (en) * 2017-11-07 2018-04-10 长沙曙通信息科技有限公司 A kind of memory virtualization system data processing implementation method
CN110413209B (en) * 2018-04-28 2023-05-30 伊姆西Ip控股有限责任公司 Method and apparatus for managing storage system
CN110018797B (en) * 2019-04-11 2020-03-06 苏州浪潮智能科技有限公司 Data migration method, device and equipment and readable storage medium
CN110825908B (en) * 2019-11-04 2023-04-25 安超云软件有限公司 Object migration method and device, electronic equipment and storage medium
CN111124281B (en) * 2019-11-29 2023-11-03 浪潮(北京)电子信息产业有限公司 Data storage method, device, equipment and storage medium of all-flash storage system
CN111078160B (en) * 2020-03-23 2020-06-23 上海飞旗网络技术股份有限公司 Data migration and storage method and device based on call proportion and response duration
CN112015347A (en) * 2020-08-28 2020-12-01 北京浪潮数据技术有限公司 Data migration method and device and related equipment
CN112379841A (en) * 2020-11-16 2021-02-19 北京金山云网络技术有限公司 Data processing method and device and electronic equipment
CN113741810B (en) * 2021-07-30 2023-08-11 苏州浪潮智能科技有限公司 A data migration method and device
CN114327253B (en) * 2021-10-18 2024-05-28 杭州逗酷软件科技有限公司 Data migration method, device, electronic equipment and storage medium
CN116390166A (en) * 2023-03-16 2023-07-04 华信咨询设计研究院有限公司 A Fuzzy Matching 5G Load Balancing Method

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369451A (en) * 2007-08-14 2009-02-18 三星电子株式会社 Solid state memory, computer system including the same, and method of operating the same
CN102033717A (en) * 2010-12-07 2011-04-27 清华大学 Data storage method and system based on RAID (Redundant Array of Inexpensive Disk)
CN102317901A (en) * 2011-07-25 2012-01-11 华为技术有限公司 Methods for object adjustment and devices for remove control, node and storage system
CN102541460A (en) * 2010-12-20 2012-07-04 中国移动通信集团公司 Multiple disc management method and equipment
CN103091707A (en) * 2012-12-31 2013-05-08 中国石油集团川庆钻探工程有限公司地球物理勘探公司 Device and method of seismic data hierarchical storage
CN103106044A (en) * 2012-12-13 2013-05-15 深圳先进技术研究院 Classification storage energy-saving method
CN103106152A (en) * 2012-12-13 2013-05-15 深圳先进技术研究院 Data scheduling method based on gradation storage medium
CN103616944A (en) * 2013-10-18 2014-03-05 杭州电子科技大学 Consumption reduction method in cloud storage system based on pre-judging green data classification strategy
CN103688248A (en) * 2013-06-29 2014-03-26 华为技术有限公司 Management method, device and controller of a storage array
CN104102454A (en) * 2013-04-07 2014-10-15 杭州信核数据科技有限公司 Method for automatically realizing hierarchical storage and system for managing hierarchical storage
CN104268099A (en) * 2014-08-29 2015-01-07 浪潮(北京)电子信息产业有限公司 Management data reading and writing method and device
CN104536904A (en) * 2014-12-29 2015-04-22 杭州华为数字技术有限公司 Data management method, equipment and system
WO2015145532A1 (en) * 2014-03-24 2015-10-01 株式会社日立製作所 Storage system and data processing method
CN105653524A (en) * 2014-11-10 2016-06-08 阿里巴巴集团控股有限公司 Data storage method, device and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8700841B2 (en) * 2010-04-19 2014-04-15 International Business Machines Corporation Sub-LUN input/output profiling for SSD devices
CN104572684B (en) * 2013-10-17 2018-12-28 深圳市腾讯计算机系统有限公司 Capacity adjustment method, device and the data-storage system of data-storage system
CN104598495A (en) * 2013-10-31 2015-05-06 南京中兴新软件有限责任公司 Hierarchical storage method and system based on distributed file system

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369451A (en) * 2007-08-14 2009-02-18 三星电子株式会社 Solid state memory, computer system including the same, and method of operating the same
CN102033717A (en) * 2010-12-07 2011-04-27 清华大学 Data storage method and system based on RAID (Redundant Array of Inexpensive Disk)
CN102541460A (en) * 2010-12-20 2012-07-04 中国移动通信集团公司 Multiple disc management method and equipment
CN102317901A (en) * 2011-07-25 2012-01-11 华为技术有限公司 Methods for object adjustment and devices for remove control, node and storage system
CN103106152A (en) * 2012-12-13 2013-05-15 深圳先进技术研究院 Data scheduling method based on gradation storage medium
CN103106044A (en) * 2012-12-13 2013-05-15 深圳先进技术研究院 Classification storage energy-saving method
CN103091707A (en) * 2012-12-31 2013-05-08 中国石油集团川庆钻探工程有限公司地球物理勘探公司 Device and method of seismic data hierarchical storage
CN104102454A (en) * 2013-04-07 2014-10-15 杭州信核数据科技有限公司 Method for automatically realizing hierarchical storage and system for managing hierarchical storage
CN103688248A (en) * 2013-06-29 2014-03-26 华为技术有限公司 Management method, device and controller of a storage array
CN103616944A (en) * 2013-10-18 2014-03-05 杭州电子科技大学 Consumption reduction method in cloud storage system based on pre-judging green data classification strategy
WO2015145532A1 (en) * 2014-03-24 2015-10-01 株式会社日立製作所 Storage system and data processing method
CN104268099A (en) * 2014-08-29 2015-01-07 浪潮(北京)电子信息产业有限公司 Management data reading and writing method and device
CN105653524A (en) * 2014-11-10 2016-06-08 阿里巴巴集团控股有限公司 Data storage method, device and system
CN104536904A (en) * 2014-12-29 2015-04-22 杭州华为数字技术有限公司 Data management method, equipment and system

Also Published As

Publication number Publication date
WO2018113317A1 (en) 2018-06-28
CN107122126A (en) 2017-09-01

Similar Documents

Publication Publication Date Title
CN107122126B (en) Data migration method, device and system
CN110825733B (en) Multi-sampling-stream-oriented time series data management method and system
CN103631538B (en) Cold and hot data identification threshold value calculation, device and system
CN104008017B (en) Weight is distributed to host services quality index
US9405695B2 (en) Cache modeling using random sampling and a timestamp histogram
CN104978324B (en) Data processing method and device
CN112100293A (en) Data processing method, data access method, data processing device, data access device and computer equipment
US8924642B2 (en) Monitoring record management method and device
CN112148690A (en) File caching method, file access request processing method and device
CN106775464B (en) A data hierarchical storage system and method
CN109783443A (en) The cold and hot judgment method of mass data in a kind of distributed memory system
CN108804351B (en) Cache replacement method and device
CN105094700B (en) The data temperature of bedding storage calculates method and apparatus in cloud storage system
CN105493024A (en) Data threshold prediction method and related apparatus
CN109408302B (en) Fault detection method and device and electronic equipment
CN104321754B (en) A kind of setting method and device of Cache working mode
CN118733367A (en) Disk performance analysis method based on high-density storage
WO2024260350A1 (en) Memory data migration method, related apparatus and computer device
CN110018797B (en) Data migration method, device and equipment and readable storage medium
US8938479B1 (en) Systems and methods for dynamically selecting a logical location for an index
CN112446490A (en) Network training data set caching method, device, equipment and storage medium
CN116069594A (en) Load balancing prediction method, device and system and storage medium
CN109344043A (en) A performance analysis method and related device
CN111459738B (en) Parallel storage system fault diagnosis method and system based on fail-slow model
JP6562478B2 (en) Information processing apparatus, information processing method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant