WO2019033949A1 - Data migration method, apparatus and device - Google Patents

Data migration method, apparatus and device Download PDF

Info

Publication number
WO2019033949A1
WO2019033949A1 PCT/CN2018/098981 CN2018098981W WO2019033949A1 WO 2019033949 A1 WO2019033949 A1 WO 2019033949A1 CN 2018098981 W CN2018098981 W CN 2018098981W WO 2019033949 A1 WO2019033949 A1 WO 2019033949A1
Authority
WO
WIPO (PCT)
Prior art keywords
migrated
data
storage
storage device
migration
Prior art date
Application number
PCT/CN2018/098981
Other languages
French (fr)
Chinese (zh)
Inventor
彭文文
Original Assignee
阿里巴巴集团控股有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2019033949A1 publication Critical patent/WO2019033949A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0607Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0647Migration mechanisms

Definitions

  • the present application relates to the field of computer technologies, and in particular, to a data migration method, apparatus, and device.
  • Distributed data storage is a storage technology that distributes data across multiple independent storage devices and uses multiple storage devices to share the load.
  • the distributed data storage system stores data
  • the data is distributedly distributed to the corresponding storage device to implement distributed storage of the data.
  • data migration is required. Does not affect the normal use of the business.
  • a new cluster is built using the replaced storage device, and the data of the original cluster is migrated to the new cluster.
  • the hardware performance of the device is higher and higher, if the server in the original cluster is SATA. (Serial Advanced Technology Attachment, serial high-tech configuration interface) server, and the current original cluster is out of warranty, you need to replace the SATA server in the original cluster with a HYBRID server, including the following:
  • the original cluster provides normal external services, and at the same time, build In the new cluster of the HYBRID server, the data in the original cluster is copied from the SATA server in the original cluster to the HYBRID server of the new cluster in a snapshot manner.
  • the data is incrementally migrated for the newly written data in the original cluster.
  • the data received during the migration of the above data is separately written into the new cluster and the original cluster.
  • switch all read and write functions to the new cluster and then modify the label attribute information to match the HYBRID server in the new cluster (ie, enable HYBRID server's hybrid storage write function), thus completing data migration and cluster replacement.
  • the purpose of the embodiments of the present application is to provide a data migration method, device, and device, which can complete data migration and without disrupting service and quality of service without affecting online services through capacity expansion processing and volume reduction processing.
  • the replacement of the device does not affect the user's reading and writing of data in the storage system, and can increase the speed of data migration and reduce the time spent on data migration.
  • a method for migrating data provided by an embodiment of the present application, where the method includes:
  • a data migration device provided by an embodiment of the present application, the device includes:
  • a capacity expansion module configured to add a target migration device to the storage system to perform capacity expansion processing on the storage system according to a capacity of the storage device to be migrated in the storage system;
  • a data migration module configured to perform a write-protection process on the to-be-migrated storage device, and migrate data stored in the to-be-migrated storage device to the target migration device;
  • a shrinking module configured to remove the to-be-migrated storage device in the storage system to perform a shrinking process on the storage system.
  • a data migration device is further provided by the embodiment of the present application, where the device includes:
  • a memory arranged to store computer executable instructions that, when executed, cause the processor to:
  • the technical solution provided by the foregoing embodiment of the present application can be used to expand the storage system to add the target migration device to the storage system by using the capacity of the storage device to be migrated in the storage system, and then the migration storage device is to be migrated. Perform the write-protection process and migrate the data stored in the storage device to be migrated to the target migration device. Finally, the storage system is compressed to remove the storage device to be migrated from the storage system. Processing and shrinking processing can complete data migration and device replacement without interrupting service and quality of service that does not affect online services. It does not affect users' reading and writing of data in the storage system, and can improve data. The speed of migration reduces the time spent on data migration.
  • FIG. 2A is a schematic diagram of expansion of a storage system according to the present application.
  • 2B is a schematic diagram of a storage system shrinkage according to the present application.
  • FIG. 3 is a schematic diagram of a data migration method according to the present application.
  • FIG. 4A is a schematic diagram of another storage system expansion of the present application.
  • 4B is a schematic diagram of another storage system of the present application.
  • FIG. 5A is a schematic diagram of another storage system expansion according to the present application.
  • FIG. 5B is a schematic diagram of another storage system shrinkage according to the present application.
  • FIG. 7 is an embodiment of a data migration device according to the present application.
  • the embodiment of the present application provides a data migration method, device, and device.
  • the embodiment of the present application provides a data migration method, where the execution entity of the method may be a server or a terminal device, where the server may be a metadata server in the storage system, or may be preset.
  • the terminal device may be a personal computer or the like. The method may specifically include the following steps:
  • step S101 the target migration device is added to the storage system to perform capacity expansion processing on the storage system according to the capacity of the storage device to be migrated in the storage system.
  • the storage system may be a distributed data storage system or a centralized data storage system.
  • the storage device to be migrated may be any one of the storage systems or may be composed of multiple storage devices in the storage system, including all storage devices in the storage system.
  • the storage device to be migrated may be a storage device that needs to be replaced.
  • the target migration device may be a device for replacing the storage device to be migrated, and the storage space of the target migration device is greater than or equal to the storage space of the storage device to be migrated.
  • the capacity expansion process may be the process of adding a storage device to the storage system and the service provided by the storage device.
  • a plurality of storage devices may be included in the storage system, and the data that needs to be stored may be stored by the storage device.
  • the storage system stores multiple copies (for example, 3 copies or 5 copies, etc.) for the same data, and the plurality of data are respectively set in different storage devices, and the plurality of data are used as backup data. In this way, when the storage device where the data is located is abnormal, the storage device where the other backup data of the data is located can continue to provide services for the user.
  • the storage devices of different interfaces have different performances, for example, IDE (Integrated Drive Electronics, The storage device of the electronic integrated drive) interface, the SCSI (Small Computer System Interface) storage device, the storage device of the SATA interface, or the storage device of the HYBRID interface, etc.
  • the performance of the corresponding storage device follows the sequence shown above. Enhance in turn.
  • the service quality of the storage system can be processed by the expansion and processing of the storage system, such as the service that can be read and written in real time, in the process of data migration.
  • the storage capacity of the 7 storage devices that need to be replaced such as 120TB or 100TB.
  • a management device such as a metadata server
  • a data storage device at the management layer wherein the management device is used to manage data in the data storage device (such as data distribution and data).
  • Data storage devices can be used to store data, such as queries, data deletions, and so on. If you need to replace the management device and the data storage device, you can replace the management device with the above processing method. After the management device is replaced, the replacement management device can replace the data storage device through the above processing. If you only need to replace the management device or data storage device, you can directly perform the above processing.
  • step S102 the storage operation to be migrated is performed on the storage device to be migrated, and the data stored in the storage device to be migrated is migrated to the target migration device.
  • the write operation may be an operation of writing data to the storage device to be migrated.
  • the storage device may be provided with a permission setting option of a read operation and a permission setting option of a write operation.
  • the above two options may be used to control a read operation and/or a write operation of the storage device, for example, when a certain storage is used.
  • the data stored in the device does not allow the user to modify or delete, but when the user is allowed to download, copy or view, the permission setting option of the read operation can be set to allow, and the permission setting option of the write operation is set to be rejected, so that the user will The storage device could not be written.
  • the storage device to be migrated needs to be replaced. When the user needs to write data to the storage system (that is, perform a write operation), the data can be written to the target migration device.
  • the write to the migration storage device can be stopped. Operation, that is, the permission setting option of the read operation of the storage device to be migrated can be set to allow, and the permission setting option of the write operation is set to be rejected.
  • the write operation may be allocated to the target migration device, and the storage device to be migrated no longer performs the write operation, but at this time, Users can still view or download data stored in the storage device to be migrated.
  • multiple copies (such as 3 copies or 5 copies, etc.) are stored in the storage system for the same data, and the multiple copies of the data are respectively set in different storage devices.
  • the data migration operation is not performed.
  • the storage device to be migrated includes 5 different data, and each data includes 3 copies, wherein any storage device A, storage device B, and storage device C store data. 1.
  • the triggering manner of performing the data migration operation may include multiple types.
  • a trigger condition may be preset, and when a storage device in the storage system satisfies the trigger condition, performing a data migration operation, where performing data migration Before the operation, you can select and set the storage device that needs to perform data migration, and the storage device that receives the migrated data. For example, you can set the trigger status for each storage device, and you can detect the status of each storage device in real time. When the state is converted to the above trigger state, data migration can be performed on the storage device.
  • a plurality of triggering modes may be included, which may be determined according to actual conditions, and are not described herein again.
  • step S103 the storage device to be migrated is removed from the storage system to perform a shrinking process on the storage system.
  • the shrinking process may be the process of deleting the storage device from the storage system and the service provided by the storage device.
  • the storage system can be subjected to a shrinking process to remove the to-be-migrated storage device from the storage system, as shown in FIG. 2B.
  • the storage system no longer includes the storage device to be migrated, but the target migration device, so that the data can be completed without capacity interruption and service quality without affecting the online service through capacity expansion processing and shrink processing.
  • Migration improves the speed of data migration and reduces the time it takes to migrate data.
  • the data storage format of the storage device (such as a disk) in the storage device or the storage device is different, the format of the data stored in the storage device is different. Therefore, if the storage device to be migrated and the target migration device have the above, If the data to be migrated is migrated to the target migration device, you can modify the configuration parameters of the migrated data to match the target migration device. If the storage device to be migrated and the target migration device do not exist, Different, you do not need to modify the configuration parameters of the migrated data.
  • the foregoing steps S101 to S103 may be applied to a storage device of a certain data storage type, such as a management device (such as a metadata server) or a data storage device of the management layer mentioned above.
  • the storage device of the data storage type may be applied to the storage device of different data storage types.
  • the storage device of the different data storage type may perform the processing of the foregoing steps S101 to S103.
  • the priority of the management device may be set to be higher than the priority of the data storage device, so that the management device may be replaced first, that is, the processing of steps S101 to S103 described above is performed, and then, The data storage device is replaced.
  • the embodiment of the present application provides a method for migrating data, and the capacity of the storage device to be migrated in the storage system is expanded to add the target migration device to the storage system, and then the write operation is prohibited.
  • the data stored in the storage device to be migrated is migrated to the target migration device.
  • the storage system is compressed to remove the storage device to be migrated from the storage system. Processing can complete data migration and device replacement without interrupting service and quality of service that does not affect online services. It does not affect the user's reading and writing of data in the storage system, and can improve the speed of data migration. Reduce the time it takes for data migration.
  • the embodiment of the present application provides a data migration method.
  • the execution entity of the method may be a server or a terminal device, where the server may be a metadata server in the storage system, or may be preset.
  • a server for data migration, the terminal device may be a personal computer or the like.
  • the embodiment of the present application is described by taking all the storage devices in the storage system as an example, considering that the data is not lost when the HYBRID storage device is powered off.
  • the data of the SATA storage device may be lost when the device is powered off. Therefore, the storage device to be migrated may be a SATA storage device, and the target migration device may be a HYBRID storage device.
  • the storage device to be migrated is a metadata server and/or data storage in the storage system.
  • a server, wherein the metadata server is used to manage metadata of data stored in the data storage server.
  • the data migration method provided by the embodiment of the present application may include the following steps:
  • step S301 the target migration device is added to the storage system to perform capacity expansion processing on the storage system according to the capacity of the storage device to be migrated in the storage system.
  • step S301 The content of the step S301 is the same as that of the step S101 in the first embodiment.
  • step S301 For the specific processing of the step S301, refer to the related content in the above step S101, and details are not described herein again.
  • the data to be migrated in the storage device to be migrated is determined according to a predetermined load balancing rule according to the storage space utilization ratio of the storage device to be migrated and the target migration device.
  • the storage space utilization can be used to represent the relationship between the used storage space and the unused storage space. The higher the storage space utilization, the more frequently the corresponding storage device is used, the data read operation and/or The more frequent the write operation.
  • the load balancing rule may be a rule for transferring data in a storage device with a higher load to a storage device with a lower load. The purpose is to balance the load of the storage device to be migrated and the target migration device to achieve data. Balanced distribution, load balancing rules can be set according to actual conditions.
  • the data to be migrated may be data that needs to be transferred to a storage device with a lower load, and the data to be migrated may be all data stored in the storage device to be migrated. Part of the data.
  • the processing manner of stopping the writing operation to the metadata server and the data storage server may include multiple types.
  • the following provides a feasible processing manner, and the metadata server and the data storage server may be added to the blacklist respectively.
  • the metadata server and the data storage server can perform a read operation and cannot perform a write operation.
  • the user cannot write data to the metadata server and the data storage server, and thus, as shown in FIG. 4A, the write operation of the storage system
  • the device can only be migrated by the target (in order to distinguish it from the aforementioned name, the target migration device is the target metadata server and the target data storage server).
  • the write operation corresponding to the write data may be allocated to the target metadata server and the target data storage server, and the metadata server and the data storage server may provide the user with the storage thereof. Services such as reading or downloading data.
  • a storage system can be pre-configured with load balancing rules, such as the Rebalance mechanism. After the write-protected storage device is disabled, the storage system's Rebalance mechanism can be started. In this case, the target metadata server and target data are generated. The storage server's storage space utilization (or disk utilization) is lower, and the storage capacity of the metadata server and the data storage server is higher. This results in uneven load in the storage system. After the Rebalance mechanism is started, you can follow the The load balancing rule determines that the data to be migrated in the metadata server and the data storage server (that is, the storage device to be migrated) needs to be migrated to the target metadata server and the target data storage server (ie, the target migration device), for example, the data volume is 1 TB. Data A, etc.
  • the data to be migrated is migrated to the target migration device by using a predetermined load balancing rule, and the storage device to be migrated is set to the quasi-offline state, and the remaining data to be migrated is controlled to be migrated to the storage device to be migrated.
  • Target migration device
  • the quasi-downline state (ie, the ShutDown state) may be a state before the offline state, or may be understood as a state in which the offline line is prepared.
  • the quasi-offline state requires the storage device to complete the predetermined operation. After the predetermined operation is completed, The storage device is offline.
  • the data to be migrated in the storage device to be migrated is determined according to a predetermined load balancing rule, the data to be migrated stored in the metadata server and the data storage server are migrated to the target metadata server and Target data storage server.
  • a storage device in a quasi-downline state For a storage device in a quasi-downline state, one or more operations that need to be performed, such as data migration operations, flow control of data migration, or network bandwidth control, may be preset.
  • the storage device to be migrated can be set to the quasi-offline state. At this time, the storage device to be migrated is still in a state of being readable and unwritable (that is, a read operation can be performed but a write operation cannot be performed).
  • the metadata server and/or the data storage server in the quasi-downline state can be found and determined, and the amount of data of the remaining data other than the data to be migrated in the stored data is counted, and then the corresponding target metadata server and/or can be determined.
  • the remaining data other than the data to be migrated in the metadata server and/or the data storage server may be migrated to the corresponding target metadata server and/or the target data storage server, and may be through a preset network.
  • Bandwidth controls the amount of traffic migrated by data, such as 30MB/s or 35MB/s.
  • the processing of the foregoing step S303 can be various. The following provides a feasible processing manner.
  • the processing of the foregoing step S303 may be specifically: according to the preset rack in which the storage device to be migrated is located in the storage system, respectively The storage device to be migrated in the preset rack is set to the quasi-offline state, and the storage device to be migrated is controlled to migrate the remaining data stored in the target migration device.
  • the preset rack may include multiple storage devices, and the storage system may include multiple preset racks, and based on the storage system, multiple copies (for example, three copies) may be stored for the same data. Multiple pieces of data are respectively set in different storage devices, and multiple pieces of data are used as backup data for each other.
  • Each preset rack can store one piece of data of any one of the data, for example, storage.
  • the system includes three preset racks, namely rack 1, rack 2 and rack 3, and the storage system includes three types of data, namely data 1, data 2 and data 3, data 1, data 2 and Data 3 includes 3 pieces of data, respectively, and any of the racks 1, rack 2, and rack 3 stores data 1, data 2, and data 3, that is, data 1 is stored in rack 1. Data 2 and Data 3, Data 1, Data 2, and Data 3 are stored in the Rack 2, and Data 1, Data 2, and Data 3 are stored in the Rack 3.
  • the data migration operation may be performed in units of preset racks, for example, based on the above example, in the rack 1, the rack 2 and the rack 3 If any of the preset racks stores data 1, data 2, and data 3, you can first set the metadata server or data storage server in rack 1 to the quasi-offline state, and the metadata server and / Or the remaining data other than the data to be migrated stored in the data storage server is migrated to the corresponding target metadata server and/or the target data storage server.
  • the metadata server or the data storage server in the rack 2 may be all Set to the quasi-downline state, and migrate the remaining data except the data to be migrated stored in the metadata server and/or the data storage server to the corresponding target metadata server and/or target data storage server, and finally, the machine
  • the metadata server or data storage server in shelf 3 is all set to the quasi offline state, and the metadata server and/or data storage is The remaining data other than the migration of migrating data traffic is to be stored in the respective target metadata server and / or the target data storage server, thereby completing the data migration operation.
  • the metadata server or the data storage server is all set to the quasi offline state, and the remaining data other than the data to be migrated stored in the metadata server and/or the data storage server is migrated to the corresponding target metadata server and/or
  • step S302 the purpose of the process of migrating data stored in the storage device to be migrated to the target migration device by using a predetermined load balancing rule according to the storage space utilization ratio of the storage device to be migrated and the target migration device
  • the above-described processing may be performed without performing the above processing.
  • the processing of the foregoing steps S302 to S303 is a specific processing manner of the step S102 in the first embodiment.
  • the storage device to be migrated may include a metadata server and a data storage server in the storage system.
  • the target migration device may include a target metadata server and a target data storage server.
  • step S102 can also be implemented in the following manner, and specifically includes the following: performing a write inhibit operation on the metadata server, and migrating the data stored in the metadata server to the target metadata server; performing the data storage server on the data storage server The write operation processing is prohibited, and the data stored in the data storage server is migrated to the target data storage server.
  • performing a write inhibit operation on the metadata server and migrating the data stored in the metadata server to the target metadata server
  • performing the data storage server on the data storage server The write operation processing is prohibited, and the data stored in the data storage server is migrated to the target data storage server.
  • steps S301 to S303 and the following steps S304 to S305 may be performed on the metadata server and the data storage server, respectively.
  • step S304 the storage device to be migrated is removed from the storage system to perform a shrinking process on the storage system.
  • the content of the step S304 is the same as the content of the step S103 in the first embodiment.
  • the processing result of the above step S304 can be as shown in Fig. 4B.
  • data migration and device replacement may be performed on the metadata server, and then data migration and device replacement may be performed on the data storage server, and the metadata server and data may be simultaneously performed.
  • the storage server performs the data migration and the device replacement, and the data storage server performs data migration and device replacement, and then performs data migration and device replacement on the metadata server. limited.
  • the data migration and device replacement for the metadata server can be handled by other means, for example, by writing the data written by the user to the target metadata server and the metadata server simultaneously by the double write function, when the target metadata server When the data stored in the data catches up with the data stored in the metadata server, all the read/write functions are switched to the target metadata server, and the processing of steps S301 to S304 described above can be performed for the data storage server.
  • step S305 the tag attribute information that matches the storage device to be migrated is modified to the tag attribute information that matches the target migration device.
  • the tag attribute information is used to record information such as configuration parameters of the data, and the tag attribute information is adapted to the storage device.
  • the storage device to be migrated ie, the metadata server and/or the data storage server
  • the target migration device ie, the target metadata server and/or the target data storage server
  • the label attribute information (such as configuration parameters) of the migrated data after the data stored in the storage device to be migrated is migrated to the target migration device. Etc.) to match the target migration device.
  • the data migration method provided by the foregoing embodiment is an example of replacing all the storage devices in the storage system.
  • the data migration method provided by the embodiment of the present application may also be applied to replacing the storage system.
  • the storage device to be migrated is a part of the data storage server in the storage system, and the storage device to be migrated may also be a SATA storage device, and the target migration device may also be a HYBRID storage device.
  • the data migration method provided by the embodiment of the present application may specifically include the following: adding a target data storage server to the storage system according to the capacity of the storage device to be migrated in the storage system (the data storage server in FIG. 5A)
  • the storage system is expanded.
  • the storage device to be migrated is forbidden.
  • the data to be migrated in the storage device to be migrated is determined according to a predetermined load balancing rule.
  • the scheduled load balancing rule migrates the data to be migrated to the target migration device, and sets the to-be-migrated storage device in the preset chassis to the off-line according to the preset rack where the storage device to be migrated is located in the storage system.
  • the storage device to be migrated (the data storage server in FIG. 5A) is removed from the storage system to perform a shrinking process on the storage system, as shown in FIG. 5B.
  • the tag attribute information that matches the storage device to be migrated is modified to the tag attribute information that matches the target data storage server (ie, the HYBRID storage device).
  • the storage device to be migrated and the target migration device may be any of the serial high-tech interface SATA storage device, the hybrid HYBRID storage device, and the SSD storage device, that is, if the storage device to be migrated is SATA.
  • the storage device, the HYBRID storage device, and the SSD storage device may be any one of the types of storage devices, and the target migration device may be a SATA storage device, a HYBRID storage device, and an SSD storage device. Any type of storage device other than the type.
  • the target migration device may be any one of a HYBRID storage device and an SSD storage device, that is, a HYBRID storage device or an SSD. Storage device.
  • the embodiment of the present application provides a method for migrating data, and the capacity of the storage device to be migrated in the storage system is expanded to add the target migration device to the storage system, and then the write operation is prohibited.
  • the data stored in the storage device to be migrated is migrated to the target migration device.
  • the storage system is compressed to remove the storage device to be migrated from the storage system. Processing can complete data migration and device replacement without interrupting service and quality of service that does not affect online services. It does not affect the user's reading and writing of data in the storage system, and can improve the speed of data migration. Reduce the time it takes for data migration.
  • the embodiment of the present application further provides a data migration device, as shown in FIG. 6 .
  • the data migration device includes: a expansion module 601, a data migration module 602, and a reduction module 603, wherein:
  • the expansion module 601 is configured to add a target migration device to the storage system to perform capacity expansion processing on the storage system according to the capacity of the storage device to be migrated in the storage system;
  • the data migration module 602 is configured to perform a write-protection process on the to-be-migrated storage device, and migrate data stored in the to-be-migrated storage device to the target migration device.
  • the volume reduction module 603 is configured to remove the to-be-migrated storage device in the storage system to perform a shrinking process on the storage system.
  • the data migration module 602 includes:
  • the data to be migrated determining unit is configured to determine data to be migrated in the to-be-migrated storage device according to a predetermined load balancing rule according to the storage space utilization ratio of the storage device to be migrated and the target migration device;
  • a data migration unit configured to migrate the data to be migrated to the target migration device by using the predetermined load balancing rule, and set the to-be-migrated storage device to a quasi-offline state, and control the to-be-migrated storage device Remaining data other than the data to be migrated is migrated to the target migration device.
  • the to-be-migrated storage device and the target migration device are any two of a serial high-tech configuration interface SATA storage device, a hybrid HYBRID storage device, and a solid-state hard disk SSD storage device.
  • the device further includes:
  • the information modification module is configured to modify the tag attribute information that matches the to-be-migrated storage device to the tag attribute information that matches the target migration device.
  • the data migration unit is configured to sequentially perform the to-be-migrated storage device in the preset rack according to the preset rack in which the storage device to be migrated is located in the storage system.
  • the storage device to be migrated is configured to migrate the remaining data except the data to be migrated to the target migration device.
  • the to-be-migrated storage device is a metadata server or a data storage server in the storage system, where the metadata server is configured to manage metadata of data stored in the data storage server.
  • the to-be-migrated storage device includes a metadata server and a data storage server in the storage system, where the target migration device includes a target metadata server and a target data storage server.
  • the data migration module 602 is configured to perform a write inhibit operation on the metadata server, and migrate data stored in the metadata server to the target metadata server; and the data storage server A write inhibit operation process is performed to migrate data stored in the data storage server to the target data storage server.
  • the embodiment of the present application provides a data migration device, which is configured to expand a storage system by using a capacity of the storage device to be migrated in the storage system to add the target migration device to the storage system, and then perform a write disable operation on the migration storage device.
  • the data stored in the storage device to be migrated is migrated to the target migration device.
  • the storage system is compressed to remove the storage device to be migrated from the storage system. Processing can complete data migration and device replacement without interrupting service and quality of service that does not affect online services. It does not affect the user's reading and writing of data in the storage system, and can improve the speed of data migration. Reduce the time it takes for data migration.
  • the embodiment of the present application further provides a data migration device, as shown in FIG. 7 .
  • the data migration device may be provided by the above embodiment.
  • the migration device for data may vary considerably depending on configuration or performance, and may include one or more processors 701 and memory 702 in which one or more storage applications or data may be stored.
  • the memory 702 can be short-term storage or persistent storage.
  • An application stored in memory 702 may include one or more modules (not shown), each of which may include a series of computer executable instructions in a migration device for data.
  • the processor 701 can be arranged to communicate with the memory 702 to execute a series of computer executable instructions in the memory 702 on the migration device of the data.
  • the data migration device may also include one or more power sources 703, one or more wired or wireless network interfaces 704, one or more input and output interfaces 705, one or more keyboards 706.
  • the data migration device includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and one or more programs may include one or more modules, and each The modules may include a series of computer executable instructions in a migration device for data, and are configured to be executed by one or more processors.
  • the one or more programs are included for performing the following computer executable instructions:
  • executable instructions when executed, may also cause the processor to:
  • the data to be migrated is migrated to the target migration device by the predetermined load balancing rule, and the storage device to be migrated is set to a quasi offline state, and the data to be migrated is controlled by the to-be-migrated storage device.
  • the remaining data outside is migrated to the target migration device.
  • the to-be-migrated storage device and the target migration device are any two of a serial high-tech configuration interface SATA storage device, a hybrid HYBRID storage device, and a solid-state hard disk SSD storage device.
  • executable instructions when executed, may also cause the processor to:
  • executable instructions when executed, may also cause the processor to:
  • the storage device to be migrated in the preset rack is set to a quasi-offline state, and the storage device to be migrated is controlled according to the preset rack in which the storage device to be migrated is located in the storage system. Remaining data other than the data to be migrated is migrated to the target migration device.
  • the to-be-migrated storage device is a metadata server or a data storage server in the storage system, where the metadata server is configured to manage metadata of data stored in the data storage server.
  • executable instructions when executed, may also cause the processor to:
  • the storage device to be migrated includes a metadata server and a data storage server in the storage system, and the target migration device includes a target metadata server and a target data storage server.
  • the performing the forbidden write operation on the to-be-migrated storage device, and the data stored in the to-be-migrated storage device is migrated to the target migration device, including:
  • the embodiment of the present application provides a data migration device, which is configured to expand a storage system to add a target migration device to the storage system, and then perform a write-free operation on the migration storage device.
  • the data stored in the storage device to be migrated is migrated to the target migration device.
  • the storage system is compressed to remove the storage device to be migrated from the storage system. Processing can complete data migration and device replacement without interrupting service and quality of service that does not affect online services. It does not affect the user's reading and writing of data in the storage system, and can improve the speed of data migration. Reduce the time it takes for data migration.
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • HDL Hardware Description Language
  • the controller can be implemented in any suitable manner, for example, the controller can take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (eg, software or firmware) executable by the (micro)processor.
  • computer readable program code eg, software or firmware
  • examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, The Microchip PIC18F26K20 and the Silicone Labs C8051F320, the memory controller can also be implemented as part of the memory's control logic.
  • the controller can be logically programmed by means of logic gates, switches, ASICs, programmable logic controllers, and embedding.
  • Such a controller can therefore be considered a hardware component, and the means for implementing various functions included therein can also be considered as a structure within the hardware component.
  • a device for implementing various functions can be considered as a software module that can be both a method of implementation and a structure within a hardware component.
  • the system, device, module or unit illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product having a certain function.
  • a typical implementation device is a computer.
  • the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or A combination of any of these devices.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can 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.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory.
  • RAM random access memory
  • ROM read only memory
  • Memory is an example of a computer readable medium.
  • Computer readable media includes both permanent and non-persistent, removable and non-removable media.
  • Information storage can be implemented by any method or technology.
  • the information can be computer readable instructions, data structures, modules of programs, 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 disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device.
  • computer readable media does not include temporary storage of computer readable media, such as modulated data signals and carrier waves.
  • embodiments of the present application can be provided as a method, system, or computer program product.
  • the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment in combination of software and hardware.
  • the application can 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.) including computer usable program code.
  • the application can be described in the general context of computer-executable instructions executed by a computer, such as a program module.
  • program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types.
  • the present application can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network.
  • program modules can be located in both local and remote computer storage media including storage devices.

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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Disclosed are a data migration method, apparatus and device. The method comprises: according to the capacity of a storage device to be migrated in a storage system, adding a target migration device to the storage system, so as to perform capacity expansion processing on the storage system; performing write operation-prohibiting processing on the storage device to be migrated, and migrating, to the target migration device, data stored in the storage device to be migrated; and removing, from the storage system, the storage device to be migrated, so as to perform capacity shrinking processing on the storage system. By means of the embodiments of the present application, in the case where a service is not interrupted and the quality of service of an online service is not affected, data migration and device replacement can be completed by means of capacity expansion processing and capacity shrinking processing without affecting a user's reading and writing of data in a storage system, and the speed of data migration can be increased and the time spent on data migration can be reduced.

Description

一种数据的迁移方法、装置及设备Data migration method, device and device
本申请要求2017年08月18日递交的申请号为201710713324.3、发明名称为“一种数据的迁移方法、装置及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims the priority of the Japanese Patent Application Serial No. No. No. No. No. No. No. No. No. No. No.
技术领域Technical field
本申请涉及计算机技术领域,尤其涉及一种数据的迁移方法、装置及设备。The present application relates to the field of computer technologies, and in particular, to a data migration method, apparatus, and device.
背景技术Background technique
分布式数据存储,是将数据分散存储在多台独立的存储设备上,利用多台存储设备来分担负载的存储技术。在分布式数据存储系统存储数据时,将数据分布式路由到相应的存储设备中,实现数据的分布式存储。在某些情况下(例如,分布式数据存储系统对应的整个服务器集群进行地域性迁移、整个服务器集群过保或整个服务器集群中的服务器的全部或部分更换等),需要进行数据的迁移,而不影响业务的正常使用。Distributed data storage is a storage technology that distributes data across multiple independent storage devices and uses multiple storage devices to share the load. When the distributed data storage system stores data, the data is distributedly distributed to the corresponding storage device to implement distributed storage of the data. In some cases (for example, geographical migration of the entire server cluster corresponding to the distributed data storage system, over-service of the entire server cluster, or replacement of all or part of the servers in the entire server cluster, etc.), data migration is required. Does not affect the normal use of the business.
通常,使用更换的存储设备搭建新集群,将原集群的数据向新集群中进行迁移,例如,随着硬件的不断发展,设备中的硬件性能越来越高,如果原集群中的服务器为SATA(Serial Advanced Technology Attachment,串行高技术配置接口)服务器,且当前原集群已过保,需要将原集群中SATA服务器更换为HYBRID服务器,具体包括以下内容:原集群正常对外提供服务,同时,搭建HYBRID服务器的新集群,原集群中的数据以快照方式从原集群中的SATA服务器复制到新集群的HYBRID服务器。在进行复制的过程中,针对原集群中新写入的数据,再进行数据增量迁移。通过分布式数据存储系统中的双写功能,将上述数据的迁移过程中接收到的数据分别写入新集群和原集群中。当新集群中存储的数据追赶上原集群中存储的数据时,将全部读写功能切换到新集群上,然后,修改标签属性信息,以使其与新集群中的HYBRID服务器相适配(即开启HYBRID服务器的混合存储写功能),从而完成数据的迁移和集群的更换。Usually, a new cluster is built using the replaced storage device, and the data of the original cluster is migrated to the new cluster. For example, as the hardware continues to evolve, the hardware performance of the device is higher and higher, if the server in the original cluster is SATA. (Serial Advanced Technology Attachment, serial high-tech configuration interface) server, and the current original cluster is out of warranty, you need to replace the SATA server in the original cluster with a HYBRID server, including the following: The original cluster provides normal external services, and at the same time, build In the new cluster of the HYBRID server, the data in the original cluster is copied from the SATA server in the original cluster to the HYBRID server of the new cluster in a snapshot manner. In the process of copying, the data is incrementally migrated for the newly written data in the original cluster. Through the double write function in the distributed data storage system, the data received during the migration of the above data is separately written into the new cluster and the original cluster. When the data stored in the new cluster catches up with the data stored in the original cluster, switch all read and write functions to the new cluster, and then modify the label attribute information to match the HYBRID server in the new cluster (ie, enable HYBRID server's hybrid storage write function), thus completing data migration and cluster replacement.
然而,当新集群中存储的数据与原集群中存储的数据达到一致时,需要将全部读写功能切换到新集群上,在此过程中,需要在新集群和原集群中存储的数据一致时执行数据的迁移,此时会停止原集群的服务,并启动新集群以对分布式数据存储系统提供服务,而在上述切换过程中会造成分布式数据存储系统一定时长内不能使用,使得用户无法读写分布式数据存储系统中的数据。However, when the data stored in the new cluster is consistent with the data stored in the original cluster, all read and write functions need to be switched to the new cluster. In this process, when the data stored in the new cluster and the original cluster are consistent. Performing the data migration, the service of the original cluster is stopped, and the new cluster is started to provide services to the distributed data storage system. In the above switching process, the distributed data storage system cannot be used for a certain period of time, so that the user cannot Read and write data in a distributed data storage system.
发明内容Summary of the invention
本申请实施例的目的是提供一种数据的迁移方法、装置及设备,以通过扩容处理和缩容处理,可以在不中断服务和不影响在线业务的服务质量的情况下,完成数据的迁移和设备的更换,不会影响用户对存储系统中数据的读写,而且,可以提高数据迁移的速度,减少数据迁移所消耗的时间。The purpose of the embodiments of the present application is to provide a data migration method, device, and device, which can complete data migration and without disrupting service and quality of service without affecting online services through capacity expansion processing and volume reduction processing. The replacement of the device does not affect the user's reading and writing of data in the storage system, and can increase the speed of data migration and reduce the time spent on data migration.
为解决上述技术问题,本申请实施例是这样实现的:To solve the above technical problem, the embodiment of the present application is implemented as follows:
本申请实施例提供的一种数据的迁移方法,所述方法包括:A method for migrating data provided by an embodiment of the present application, where the method includes:
根据存储系统中待迁移存储设备的容量,在所述存储系统中添加目标迁移设备以对所述存储系统进行扩容处理;Adding a target migration device to the storage system to perform capacity expansion processing on the storage system according to the capacity of the storage device to be migrated in the storage system;
对所述待迁移存储设备进行禁止写操作处理,将所述待迁移存储设备中存储的数据迁移到所述目标迁移设备中;Performing a write-protection process on the to-be-migrated storage device, and migrating data stored in the to-be-migrated storage device to the target migration device;
在所述存储系统中移除所述待迁移存储设备以对所述存储系统进行缩容处理。Removing the storage device to be migrated in the storage system to perform a shrinking process on the storage system.
本申请实施例提供的一种数据的迁移装置,所述装置包括:A data migration device provided by an embodiment of the present application, the device includes:
扩容模块,用于根据存储系统中待迁移存储设备的容量,在所述存储系统中添加目标迁移设备以对所述存储系统进行扩容处理;a capacity expansion module, configured to add a target migration device to the storage system to perform capacity expansion processing on the storage system according to a capacity of the storage device to be migrated in the storage system;
数据迁移模块,用于对所述待迁移存储设备进行禁止写操作处理,将所述待迁移存储设备中存储的数据迁移到所述目标迁移设备中;a data migration module, configured to perform a write-protection process on the to-be-migrated storage device, and migrate data stored in the to-be-migrated storage device to the target migration device;
缩容模块,用于在所述存储系统中移除所述待迁移存储设备以对所述存储系统进行缩容处理。And a shrinking module, configured to remove the to-be-migrated storage device in the storage system to perform a shrinking process on the storage system.
本申请实施例另提供的一种数据的迁移设备,所述设备包括:A data migration device is further provided by the embodiment of the present application, where the device includes:
处理器;以及Processor;
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器:A memory arranged to store computer executable instructions that, when executed, cause the processor to:
根据存储系统中待迁移存储设备的容量,在所述存储系统中添加目标迁移设备以对所述存储系统进行扩容处理;Adding a target migration device to the storage system to perform capacity expansion processing on the storage system according to the capacity of the storage device to be migrated in the storage system;
对所述待迁移存储设备进行禁止写操作处理,将所述待迁移存储设备中存储的数据迁移到所述目标迁移设备中;Performing a write-protection process on the to-be-migrated storage device, and migrating data stored in the to-be-migrated storage device to the target migration device;
在所述存储系统中移除所述待迁移存储设备以对所述存储系统进行缩容处理。Removing the storage device to be migrated in the storage system to perform a shrinking process on the storage system.
由以上本申请实施例提供的技术方案可见,本申请实施例通过存储系统中待迁移存 储设备的容量,对存储系统进行扩容处理以将目标迁移设备添加到存储系统中,然后,对待迁移存储设备进行禁止写操作处理,并将待迁移存储设备中存储的数据迁移到目标迁移设备中,最后,再对存储系统进行缩容处理以将待迁移存储设备从存储系统中移除,这样,通过扩容处理和缩容处理,可以在不中断服务和不影响在线业务的服务质量的情况下,完成数据的迁移和设备的更换,不会影响用户对存储系统中数据的读写,而且,可以提高数据迁移的速度,减少数据迁移所消耗的时间。It can be seen that the technical solution provided by the foregoing embodiment of the present application can be used to expand the storage system to add the target migration device to the storage system by using the capacity of the storage device to be migrated in the storage system, and then the migration storage device is to be migrated. Perform the write-protection process and migrate the data stored in the storage device to be migrated to the target migration device. Finally, the storage system is compressed to remove the storage device to be migrated from the storage system. Processing and shrinking processing can complete data migration and device replacement without interrupting service and quality of service that does not affect online services. It does not affect users' reading and writing of data in the storage system, and can improve data. The speed of migration reduces the time spent on data migration.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings to be used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only It is a few embodiments described in the present application, and other drawings can be obtained from those skilled in the art without any inventive labor.
图1为本申请一种数据的迁移方法实施例;1 is an embodiment of a data migration method according to the present application;
图2A为本申请一种存储系统扩容的示意图;2A is a schematic diagram of expansion of a storage system according to the present application;
图2B为本申请一种存储系统缩容的示意图;2B is a schematic diagram of a storage system shrinkage according to the present application;
图3为本申请一种数据的迁移方法实施例;FIG. 3 is a schematic diagram of a data migration method according to the present application; FIG.
图4A为本申请另一种存储系统扩容的示意图;4A is a schematic diagram of another storage system expansion of the present application;
图4B为本申请另一种存储系统缩容的示意图;4B is a schematic diagram of another storage system of the present application;
图5A为本申请再一种存储系统扩容的示意图;FIG. 5A is a schematic diagram of another storage system expansion according to the present application; FIG.
图5B为本申请再一种存储系统缩容的示意图;FIG. 5B is a schematic diagram of another storage system shrinkage according to the present application; FIG.
图6为本申请一种数据的迁移装置实施例;6 is an embodiment of a data migration apparatus of the present application;
图7为本申请一种数据的迁移设备实施例。FIG. 7 is an embodiment of a data migration device according to the present application.
具体实施方式Detailed ways
本申请实施例提供一种数据的迁移方法、装置及设备。The embodiment of the present application provides a data migration method, device, and device.
为了使本技术领域的人员更好地理解本申请中的技术方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following, in which the technical solutions in the embodiments of the present application are clearly and completely described. The embodiments are only a part of the embodiments of the present application, and not all of them. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope shall fall within the scope of the application.
实施例一Embodiment 1
如图1所示,本申请实施例提供一种数据的迁移方法,该方法的执行主体可以为服务器或终端设备,其中的服务器可以为存储系统中的元数据服务器,也可以是预先设置的用于数据迁移的服务器,终端设备可以是个人计算机等。该方法具体可以包括以下步骤:As shown in FIG. 1 , the embodiment of the present application provides a data migration method, where the execution entity of the method may be a server or a terminal device, where the server may be a metadata server in the storage system, or may be preset. For the server for data migration, the terminal device may be a personal computer or the like. The method may specifically include the following steps:
在步骤S101中,根据存储系统中待迁移存储设备的容量,在该存储系统中添加目标迁移设备以对该存储系统进行扩容处理。In step S101, the target migration device is added to the storage system to perform capacity expansion processing on the storage system according to the capacity of the storage device to be migrated in the storage system.
其中,存储系统可以是分布式数据存储系统,也可以是集中式数据存储系统。待迁移存储设备可以是存储系统中任意一个存储设备或者可以是由存储系统中的多个存储设备(其中包括存储系统中的所有存储设备)构成。待迁移存储设备可以是需要被更换的存储设备。目标迁移设备可以是用于替换待迁移存储设备的设备,目标迁移设备的存储空间大于或等于待迁移存储设备的存储空间。扩容处理可以是向存储系统中添加存储设备,以及该存储设备所提供的服务的处理。The storage system may be a distributed data storage system or a centralized data storage system. The storage device to be migrated may be any one of the storage systems or may be composed of multiple storage devices in the storage system, including all storage devices in the storage system. The storage device to be migrated may be a storage device that needs to be replaced. The target migration device may be a device for replacing the storage device to be migrated, and the storage space of the target migration device is greater than or equal to the storage space of the storage device to be migrated. The capacity expansion process may be the process of adding a storage device to the storage system and the service provided by the storage device.
在实施中,存储系统中可以包括多个存储设备,通过存储设备可以将需要存储的数据进行存储。为了保证数据的安全性,存储系统中对于同一数据会存储多份(如3份或5份等),该多份数据分别设置在不同的存储设备中,多份数据相互之间作为备份数据,这样,当某数据所在的存储设备异常,则可以通过该数据的其它备份数据所在的存储设备继续为用户提供服务。In an implementation, a plurality of storage devices may be included in the storage system, and the data that needs to be stored may be stored by the storage device. In order to ensure the security of the data, the storage system stores multiple copies (for example, 3 copies or 5 copies, etc.) for the same data, and the plurality of data are respectively set in different storage devices, and the plurality of data are used as backup data. In this way, when the storage device where the data is located is abnormal, the storage device where the other backup data of the data is located can continue to provide services for the user.
随着硬件的不断发展,硬件设备的更新换代越来越快,性能也越来越好,对于存储设备来说,不同接口的存储设备,其性能也不相同,例如,IDE(Integrated Drive Electronics,电子集成驱动器)接口的存储设备、SCSI(Small Computer System Interface,小型计算机系统接口)存储设备、SATA接口的存储设备或HYBRID接口的存储设备等,相应的存储设备的性能随着上述展示的前后顺序依次增强。为了更好的为用户提供相关的服务,可以对存储系统中性能较落后的存储设备进行更换,而考虑到通常存储系统中会包含大量存储设备,需要更换的存储设备往往也较多,例如存储系统中的所有存储设备或者存储系统中一部分存储设备等,这样就需要将需要更换的存储设备(即待迁移存储设备)中存储的数据迁移到新存储设备(即目标迁移设备)中。为了在数据迁移的过程中不影响在线业务(即不可中断服务的业务,可以实时进行读操作和写操作的业务)的服务质量,可以通过存储系统的扩容处理和缩容处理的方式处理,具体地,如图2A所示,如果需要更换存储系统中的7个存储设备,则可以计算需要更换的7 个存储设备的存储容量,如120TB或100TB等。可以选取存储容量大于或等于上述存储容量的目标迁移设备,并将目标迁移设备添加到存储系统的拓扑结构中。可以选取目标迁移设备,并启动存储系统的扩容处理,此时,可以将目标迁移设备添加到存储系统中,得到扩容后的存储系统,可如图2A所示。With the continuous development of hardware, the upgrading of hardware devices is getting faster and faster, and the performance is getting better and better. For storage devices, the storage devices of different interfaces have different performances, for example, IDE (Integrated Drive Electronics, The storage device of the electronic integrated drive) interface, the SCSI (Small Computer System Interface) storage device, the storage device of the SATA interface, or the storage device of the HYBRID interface, etc., the performance of the corresponding storage device follows the sequence shown above. Enhance in turn. In order to provide users with related services, you can replace the storage devices with poor performance in the storage system. Considering that a large number of storage devices are included in the storage system, there are often more storage devices that need to be replaced, such as storage. All the storage devices in the system or some storage devices in the storage system, etc., so that the data stored in the storage device to be replaced (that is, the storage device to be migrated) needs to be migrated to the new storage device (that is, the target migration device). The service quality of the storage system can be processed by the expansion and processing of the storage system, such as the service that can be read and written in real time, in the process of data migration. As shown in Figure 2A, if you need to replace 7 storage devices in the storage system, you can calculate the storage capacity of the 7 storage devices that need to be replaced, such as 120TB or 100TB. You can select a target migration device with a storage capacity greater than or equal to the above storage capacity, and add the target migration device to the topology of the storage system. You can select the target migration device and start the storage system expansion process. In this case, you can add the target migration device to the storage system to obtain the expanded storage system, as shown in Figure 2A.
需要说明的是,在存储系统中往往会包括处于管理层的管理设备(如元数据服务器)和数据存储设备,其中,管理设备用于对数据存储设备中的数据进行管理(如数据分发、数据查询、数据删除等),数据存储设备可以用于存储数据。如果需要将管理设备和数据存储设备全部更换,则可以先通过上述处理方式更换管理设备,当管理设备更换完毕后,可以由更换后的管理设备通过上述处理方式更换数据存储设备。如果只需要更换管理设备或数据存储设备,则可以直接通过上述处理方式执行。It should be noted that, in the storage system, a management device (such as a metadata server) and a data storage device at the management layer are often included, wherein the management device is used to manage data in the data storage device (such as data distribution and data). Data storage devices can be used to store data, such as queries, data deletions, and so on. If you need to replace the management device and the data storage device, you can replace the management device with the above processing method. After the management device is replaced, the replacement management device can replace the data storage device through the above processing. If you only need to replace the management device or data storage device, you can directly perform the above processing.
在步骤S102中,对上述待迁移存储设备进行禁止写操作处理,将该待迁移存储设备中存储的数据迁移到上述目标迁移设备中。In step S102, the storage operation to be migrated is performed on the storage device to be migrated, and the data stored in the storage device to be migrated is migrated to the target migration device.
其中,写操作可以是向待迁移存储设备中写入数据的操作。The write operation may be an operation of writing data to the storage device to be migrated.
在实施中,存储设备中可以设置有读操作的权限设置选项和写操作的权限设置选项,通过上述两个选项,可以对存储设备的读操作和/或写操作进行控制,例如,当某存储设备中存储的数据不允许用户修改或删除,但允许用户下载、复制或查看时,可以将读操作的权限设置选项设置为允许,并将写操作的权限设置选项设置为拒绝,这样,用户将无法对该存储设备进行写操作。由于待迁移存储设备需要被更换,当用户需要向存储系统中写入数据(即执行写操作)时,可以将该数据写入到目标迁移设备中,为此,可以停止对待迁移存储设备执行写操作,即可以将待迁移存储设备的读操作的权限设置选项设置为允许,并将写操作的权限设置选项设置为拒绝。通过上述处理后,当存储设备需要执行写操作,并为本次写操作分配存储设备时,可以将该写操作分配给目标迁移设备,而待迁移存储设备不再执行写操作,但此时,用户仍然可以查看或下载待迁移存储设备中存储的数据。In an implementation, the storage device may be provided with a permission setting option of a read operation and a permission setting option of a write operation. The above two options may be used to control a read operation and/or a write operation of the storage device, for example, when a certain storage is used. The data stored in the device does not allow the user to modify or delete, but when the user is allowed to download, copy or view, the permission setting option of the read operation can be set to allow, and the permission setting option of the write operation is set to be rejected, so that the user will The storage device could not be written. The storage device to be migrated needs to be replaced. When the user needs to write data to the storage system (that is, perform a write operation), the data can be written to the target migration device. To this end, the write to the migration storage device can be stopped. Operation, that is, the permission setting option of the read operation of the storage device to be migrated can be set to allow, and the permission setting option of the write operation is set to be rejected. After the foregoing processing, when the storage device needs to perform a write operation and allocates a storage device for the write operation, the write operation may be allocated to the target migration device, and the storage device to be migrated no longer performs the write operation, but at this time, Users can still view or download data stored in the storage device to be migrated.
基于上述相关内容,为了保证数据的安全性,存储系统中对于同一数据会存储多份(如3份或5份等),该多份数据分别设置在不同的存储设备中。为了不中断在线业务,而且不影响在线业务的服务质量,可以查找待迁移存储设备中存储的各个数据所在的存储设备,在进行数据迁移的过程中始终保证任一数据都存在一份或多份数据未执行数据迁移操作,例如,待迁移存储设备中包括5个不同数据,每个数据包括3份,其中,存储设备A、存储设备B和存储设备C中的任一存储设备都存储了数据1、数据2、数据3、 数据4和数据5,在进行数据迁移时,存储设备A、存储设备B和存储设备C不能同时进行数据迁移,而只能存储设备A、存储设备B和存储设备C依次进行数据迁移,即其中的任一存储设备先进行数据迁移,完成后,再对剩余的存储设备中的任一存储设备进行数据迁移,最后对剩余的存储设备进行数据迁移,或者存储设备A、存储设备B和存储设备C中任意两个存储设备先进行数据迁移,完成后,再对剩余的存储设备进行数据迁移,或者存储设备A、存储设备B和存储设备C中任意一个存储设备先进行数据迁移,完成后,再对剩余的存储设备同时进行数据迁移。Based on the above related content, in order to ensure the security of the data, multiple copies (such as 3 copies or 5 copies, etc.) are stored in the storage system for the same data, and the multiple copies of the data are respectively set in different storage devices. In order to not interrupt the online service and not affect the service quality of the online service, you can find the storage device where the data stored in the storage device to be migrated is located. During the data migration process, one or more copies of any data are always guaranteed. The data migration operation is not performed. For example, the storage device to be migrated includes 5 different data, and each data includes 3 copies, wherein any storage device A, storage device B, and storage device C store data. 1. Data 2, data 3, data 4, and data 5, when data migration occurs, storage device A, storage device B, and storage device C cannot simultaneously perform data migration, but only device A, storage device B, and storage device. C performs data migration in sequence, that is, any one of the storage devices performs data migration first, and then performs data migration on any of the remaining storage devices, and finally performs data migration on the remaining storage devices, or the storage device. A. Any two storage devices in storage device B and storage device C are first migrated. After the completion, the remaining Migration data storage device, or a storage device A, storage device B and storage device C prior to any storage device for a data migration is completed, then the remaining storage devices while data migration.
需要说明的是,执行数据迁移操作的触发方式可以包括多种,例如,可以预先设置触发条件,当存储系统中的某存储设备满足该触发条件时,执行数据迁移操作,其中,在执行数据迁移操作之前,可以选取并设置需要进行数据迁移的存储设备,以及接收迁移的数据的存储设备;再例如,可以为每个存储设备设置触发状态,可以实时检测各个存储设备的状态,当某存储设备的状态转换为上述触发状态时,可以对该存储设备进行数据迁移。除了上述触发方式外,还可以包括多种触发方式,具体可以根据实际情况确定,在此不再赘述。It should be noted that the triggering manner of performing the data migration operation may include multiple types. For example, a trigger condition may be preset, and when a storage device in the storage system satisfies the trigger condition, performing a data migration operation, where performing data migration Before the operation, you can select and set the storage device that needs to perform data migration, and the storage device that receives the migrated data. For example, you can set the trigger status for each storage device, and you can detect the status of each storage device in real time. When the state is converted to the above trigger state, data migration can be performed on the storage device. In addition to the foregoing triggering manners, a plurality of triggering modes may be included, which may be determined according to actual conditions, and are not described herein again.
在步骤S103中,在上述存储系统中移除上述待迁移存储设备以对该存储系统进行缩容处理。In step S103, the storage device to be migrated is removed from the storage system to perform a shrinking process on the storage system.
其中,缩容处理可以是从存储系统中删减存储设备,以及该存储设备所提供的服务的处理。The shrinking process may be the process of deleting the storage device from the storage system and the service provided by the storage device.
在实施中,完成上述步骤S102的数据迁移后,可以确定待迁移存储设备中存储的数据已经全部迁移到目标迁移设备中,同时新写入存储系统中的数据被写入目标迁移设备中,此时,待迁移存储设备在存储系统中失去了存在的意义,因此,可以对上述存储系统执行缩容处理,以将该待迁移存储设备从该存储系统中移除,这样,如图2B所示,存储系统中不再包含待迁移存储设备,而是包含目标迁移设备,这样,通过扩容处理和缩容处理便可以在不需要中断服务和不影响在线业务的服务质量的情况下,完成数据的迁移,提高了数据迁移的速度,减少数据迁移所消耗的时间。In the implementation, after the data migration in the foregoing step S102 is completed, it may be determined that the data stored in the storage device to be migrated has all migrated to the target migration device, and the data newly written in the storage system is written into the target migration device. The storage device to be migrated has lost its meaning in the storage system. Therefore, the storage system can be subjected to a shrinking process to remove the to-be-migrated storage device from the storage system, as shown in FIG. 2B. The storage system no longer includes the storage device to be migrated, but the target migration device, so that the data can be completed without capacity interruption and service quality without affecting the online service through capacity expansion processing and shrink processing. Migration improves the speed of data migration and reduces the time it takes to migrate data.
此外,由于存储设备的接口或存储设备中的存储部件(如磁盘)的数据存储格式等不同,存储设备中存储的数据的格式也会不同,因此,如果待迁移存储设备和目标迁移设备存在上述不同,则将待迁移存储设备中存储的数据迁移到目标迁移设备后,可以修改迁移后的数据的配置参数,使其与目标迁移设备相匹配,如果待迁移存储设备和目标迁移设备不存在上述不同,则可以不需要修改迁移后的数据的配置参数。In addition, because the data storage format of the storage device (such as a disk) in the storage device or the storage device is different, the format of the data stored in the storage device is different. Therefore, if the storage device to be migrated and the target migration device have the above, If the data to be migrated is migrated to the target migration device, you can modify the configuration parameters of the migrated data to match the target migration device. If the storage device to be migrated and the target migration device do not exist, Different, you do not need to modify the configuration parameters of the migrated data.
需要说明的是,上述步骤S101~步骤S103的处理可以应用于某一种数据存储类型的存储设备,例如上述内容提到的管理层的管理设备(如元数据服务器)或数据存储设备等,也可以应用于不同数据存储类型的存储设备,在此情况下,可以不同数据存储类型的存储设备同时执行上述步骤S101~步骤S103的处理,也可以预先设置不同数据存储类型的存储设备执行上述处理的优先级,例如,如上述内容,可以设置管理设备的优先级高于数据存储设备的优先级,这样,可以先对管理设备进行更换,即执行上述步骤S101~步骤S103的处理,然后,再对数据存储设备进行更换。It should be noted that the foregoing steps S101 to S103 may be applied to a storage device of a certain data storage type, such as a management device (such as a metadata server) or a data storage device of the management layer mentioned above. The storage device of the data storage type may be applied to the storage device of different data storage types. In this case, the storage device of the different data storage type may perform the processing of the foregoing steps S101 to S103. Priority, for example, as described above, the priority of the management device may be set to be higher than the priority of the data storage device, so that the management device may be replaced first, that is, the processing of steps S101 to S103 described above is performed, and then, The data storage device is replaced.
本申请实施例提供一种数据的迁移方法,通过存储系统中待迁移存储设备的容量,对存储系统进行扩容处理以将目标迁移设备添加到存储系统中,然后,对待迁移存储设备进行禁止写操作处理,并将待迁移存储设备中存储的数据迁移到目标迁移设备中,最后,再对存储系统进行缩容处理以将待迁移存储设备从存储系统中移除,这样,通过扩容处理和缩容处理,可以在不中断服务和不影响在线业务的服务质量的情况下,完成数据的迁移和设备的更换,不会影响用户对存储系统中数据的读写,而且,可以提高数据迁移的速度,减少数据迁移所消耗的时间。The embodiment of the present application provides a method for migrating data, and the capacity of the storage device to be migrated in the storage system is expanded to add the target migration device to the storage system, and then the write operation is prohibited. The data stored in the storage device to be migrated is migrated to the target migration device. Finally, the storage system is compressed to remove the storage device to be migrated from the storage system. Processing can complete data migration and device replacement without interrupting service and quality of service that does not affect online services. It does not affect the user's reading and writing of data in the storage system, and can improve the speed of data migration. Reduce the time it takes for data migration.
实施例二Embodiment 2
如图3所示,本申请实施例提供了一种数据的迁移方法,该方法的执行主体可以为服务器或终端设备,其中的服务器可以为存储系统中的元数据服务器,也可以是预先设置的用于数据迁移的服务器,终端设备可以是个人计算机等。As shown in FIG. 3, the embodiment of the present application provides a data migration method. The execution entity of the method may be a server or a terminal device, where the server may be a metadata server in the storage system, or may be preset. A server for data migration, the terminal device may be a personal computer or the like.
为了更加清楚明了的说明本申请实施例提供的数据的迁移方法,本申请实施例以更换存储系统中的所有存储设备为例进行说明,考虑到HYBRID存储设备在掉电时数据不会丢失,而SATA存储设备在掉电时数据可能会丢失,因此,待迁移存储设备可以为SATA存储设备,目标迁移设备可以为HYBRID存储设备,待迁移存储设备为存储系统中的元数据服务器和/或数据存储服务器,其中,元数据服务器用于管理数据存储服务器中存储的数据的元数据。以待迁移存储设备为存储系统中的元数据服务器和数据存储服务器为例,本申请实施例提供的数据的迁移方法具体可以包括以下步骤:For a more detailed description of the data migration method provided by the embodiment of the present application, the embodiment of the present application is described by taking all the storage devices in the storage system as an example, considering that the data is not lost when the HYBRID storage device is powered off. The data of the SATA storage device may be lost when the device is powered off. Therefore, the storage device to be migrated may be a SATA storage device, and the target migration device may be a HYBRID storage device. The storage device to be migrated is a metadata server and/or data storage in the storage system. A server, wherein the metadata server is used to manage metadata of data stored in the data storage server. For example, the data migration method provided by the embodiment of the present application may include the following steps:
在步骤S301中,根据存储系统中待迁移存储设备的容量,在该存储系统中添加目标迁移设备以对该存储系统进行扩容处理。In step S301, the target migration device is added to the storage system to perform capacity expansion processing on the storage system according to the capacity of the storage device to be migrated in the storage system.
上述步骤S301的步骤内容与上述实施例一中步骤S101的步骤内容相同,步骤S301的具体处理可以参见上述步骤S101中的相关内容,在此不再赘述。The content of the step S301 is the same as that of the step S101 in the first embodiment. For the specific processing of the step S301, refer to the related content in the above step S101, and details are not described herein again.
在步骤S302中,对上述待迁移存储设备进行禁止写操作处理,根据待迁移存储设备和目标迁移设备的存储空间利用率,按照预定的负载均衡规则确定待迁移存储设备中的待迁移数据。In the step S302, the data to be migrated in the storage device to be migrated is determined according to a predetermined load balancing rule according to the storage space utilization ratio of the storage device to be migrated and the target migration device.
其中,存储空间利用率可以用于表征已使用的存储空间与未使用的存储空间之间的关系,存储空间利用率越高,则表明相应的存储设备使用越频繁,数据的读操作和/或写操作越频繁。负载均衡规则可以是用于将负载较高的存储设备中的数据转移到负载较低的存储设备中的规则,其目的是将待迁移存储设备和目标迁移设备的负载进行均衡,以达到数据的均衡分布,负载均衡规则具体可以根据实际情况设定。待迁移数据可以是根据上述负载均衡规则确定的、需要将负载较高的存储设备中的数据转移到负载较低的存储设备中的数据,待迁移数据可以是待迁移存储设备中存储的所有数据的一部分数据。The storage space utilization can be used to represent the relationship between the used storage space and the unused storage space. The higher the storage space utilization, the more frequently the corresponding storage device is used, the data read operation and/or The more frequent the write operation. The load balancing rule may be a rule for transferring data in a storage device with a higher load to a storage device with a lower load. The purpose is to balance the load of the storage device to be migrated and the target migration device to achieve data. Balanced distribution, load balancing rules can be set according to actual conditions. The data to be migrated may be data that needs to be transferred to a storage device with a lower load, and the data to be migrated may be all data stored in the storage device to be migrated. Part of the data.
在实施中,停止对上述元数据服务器和数据存储服务器执行写操作的处理方式可以包括多种,以下提供一种可行的处理方式,可以将元数据服务器和数据存储服务器分别加入黑名单,此时,元数据服务器和数据存储服务器可以执行读操作,而不能执行写操作,此时,用户无法向元数据服务器和数据存储服务器中写入数据,这样,如图4A所示,存储系统的写操作只能由目标迁移设备(为了与前述名称区分,目标迁移设备为目标元数据服务器和目标数据存储服务器)执行。当用户需要向存储系统中写入数据时,可以将本次写入数据对应的写操作分配给目标元数据服务器和目标数据存储服务器执行,元数据服务器和数据存储服务器可以为用户提供其存储的数据的读取或下载等服务。In the implementation, the processing manner of stopping the writing operation to the metadata server and the data storage server may include multiple types. The following provides a feasible processing manner, and the metadata server and the data storage server may be added to the blacklist respectively. The metadata server and the data storage server can perform a read operation and cannot perform a write operation. At this time, the user cannot write data to the metadata server and the data storage server, and thus, as shown in FIG. 4A, the write operation of the storage system The device can only be migrated by the target (in order to distinguish it from the aforementioned name, the target migration device is the target metadata server and the target data storage server). When the user needs to write data to the storage system, the write operation corresponding to the write data may be allocated to the target metadata server and the target data storage server, and the metadata server and the data storage server may provide the user with the storage thereof. Services such as reading or downloading data.
存储系统中可以预先设置有负载均衡规则,如Rebalance(再平衡)机制,在对待迁移存储设备进行禁止写操作处理后,可以启动存储系统的Rebalance机制,此时,由于目标元数据服务器和目标数据存储服务器的存储空间利用率(也可以为磁盘利用率)较低,而元数据服务器和数据存储服务器的存储空间利用率较高,从而造成存储系统中负载不均,启动Rebalance机制后,可以按照上述负载均衡规则确定元数据服务器和数据存储服务器(即待迁移存储设备)中需要迁移到目标元数据服务器和目标数据存储服务器(即目标迁移设备)中的待迁移数据,例如,数据量为1TB的数据A等。A storage system can be pre-configured with load balancing rules, such as the Rebalance mechanism. After the write-protected storage device is disabled, the storage system's Rebalance mechanism can be started. In this case, the target metadata server and target data are generated. The storage server's storage space utilization (or disk utilization) is lower, and the storage capacity of the metadata server and the data storage server is higher. This results in uneven load in the storage system. After the Rebalance mechanism is started, you can follow the The load balancing rule determines that the data to be migrated in the metadata server and the data storage server (that is, the storage device to be migrated) needs to be migrated to the target metadata server and the target data storage server (ie, the target migration device), for example, the data volume is 1 TB. Data A, etc.
在步骤S303中,通过预定的负载均衡规则将上述待迁移数据迁移至目标迁移设备,并将待迁移存储设备设置为准下线状态,控制待迁移存储设备将待迁移数据以外的剩余数据迁移至目标迁移设备。In the step S303, the data to be migrated is migrated to the target migration device by using a predetermined load balancing rule, and the storage device to be migrated is set to the quasi-offline state, and the remaining data to be migrated is controlled to be migrated to the storage device to be migrated. Target migration device.
其中,准下线状态(即ShutDown状态)可以为下线状态之前的一种状态,也可以理解为准备下线的一种状态,准下线状态需要存储设备完成预定操作,预定操作完成后,存储设备下线。The quasi-downline state (ie, the ShutDown state) may be a state before the offline state, or may be understood as a state in which the offline line is prepared. The quasi-offline state requires the storage device to complete the predetermined operation. After the predetermined operation is completed, The storage device is offline.
在实施中,启动Rebalance机制,并按照预定的负载均衡规则确定待迁移存储设备中的待迁移数据后,元数据服务器和数据存储服务器中存储的待迁移数据将会被迁移到目标元数据服务器和目标数据存储服务器中。In the implementation, after the Rebalance mechanism is started, and the data to be migrated in the storage device to be migrated is determined according to a predetermined load balancing rule, the data to be migrated stored in the metadata server and the data storage server are migrated to the target metadata server and Target data storage server.
对于处于准下线状态的存储设备,可以预先设置一个或多个需要执行的操作,例如,数据迁移操作、数据迁移的流量控制或网络带宽控制等。可以将上述待迁移存储设备设置为准下线状态,此时,待迁移存储设备仍然处于可读不可写(即可以执行读操作,但不能执行写操作)的状态。可以查找并确定处于准下线状态的元数据服务器和/或数据存储服务器,统计其中存储的数据中除待迁移数据以外的剩余数据的数据量,然后,可以确定相应的目标元数据服务器和/或目标数据存储服务器,可以将元数据服务器和/或数据存储服务器中的待迁移数据以外的剩余数据迁移到相应的目标元数据服务器和/或目标数据存储服务器中,同时可以通过预先设置的网络带宽控制数据迁移的流量大小,如30MB/s或35MB/s等。For a storage device in a quasi-downline state, one or more operations that need to be performed, such as data migration operations, flow control of data migration, or network bandwidth control, may be preset. The storage device to be migrated can be set to the quasi-offline state. At this time, the storage device to be migrated is still in a state of being readable and unwritable (that is, a read operation can be performed but a write operation cannot be performed). The metadata server and/or the data storage server in the quasi-downline state can be found and determined, and the amount of data of the remaining data other than the data to be migrated in the stored data is counted, and then the corresponding target metadata server and/or can be determined. Or the target data storage server, the remaining data other than the data to be migrated in the metadata server and/or the data storage server may be migrated to the corresponding target metadata server and/or the target data storage server, and may be through a preset network. Bandwidth controls the amount of traffic migrated by data, such as 30MB/s or 35MB/s.
上述步骤S303的处理方式可以多种多样,以下提供一种可行的处理方式,则上述步骤S303的处理具体可以为:依次按照存储系统中上述待迁移存储设备所在的预置机架,分别将该预置机架中的待迁移存储设备设置为准下线状态,并控制该待迁移存储设备将存储的剩余数据迁移到目标迁移设备中。The processing of the foregoing step S303 can be various. The following provides a feasible processing manner. The processing of the foregoing step S303 may be specifically: according to the preset rack in which the storage device to be migrated is located in the storage system, respectively The storage device to be migrated in the preset rack is set to the quasi-offline state, and the storage device to be migrated is controlled to migrate the remaining data stored in the target migration device.
其中,预置机架(即Rack)中可以包括多个存储设备,存储系统中可以包括多个预置机架,而且,基于存储系统中对于同一数据会存储多份(如3份),该多份数据分别设置在不同的存储设备中,多份数据相互之间作为备份数据的考虑,每个预置机架中可以存储任一种数据的多份数据中的一份数据,例如,存储系统中包括3个预置机架,分别为机架1、机架2和机架3,且存储系统中包括三种数据,分别为数据1、数据2和数据3,数据1、数据2和数据3分别包括3份数据,则机架1、机架2和机架3中的任一预置机架都存储了数据1、数据2和数据3,即机架1中存储了数据1、数据2和数据3,机架2中存储了数据1、数据2和数据3,机架3中存储了数据1、数据2和数据3。The preset rack (ie, the Rack) may include multiple storage devices, and the storage system may include multiple preset racks, and based on the storage system, multiple copies (for example, three copies) may be stored for the same data. Multiple pieces of data are respectively set in different storage devices, and multiple pieces of data are used as backup data for each other. Each preset rack can store one piece of data of any one of the data, for example, storage. The system includes three preset racks, namely rack 1, rack 2 and rack 3, and the storage system includes three types of data, namely data 1, data 2 and data 3, data 1, data 2 and Data 3 includes 3 pieces of data, respectively, and any of the racks 1, rack 2, and rack 3 stores data 1, data 2, and data 3, that is, data 1 is stored in rack 1. Data 2 and Data 3, Data 1, Data 2, and Data 3 are stored in the Rack 2, and Data 1, Data 2, and Data 3 are stored in the Rack 3.
在实施中,为了不中断在线业务,而且不影响在线业务的服务质量,可以以预置机架为单位进行数据迁移操作,例如,基于上述示例,机架1、机架2和机架3中的任一预置机架都存储了数据1、数据2和数据3,则可以先将机架1中的元数据服务器或数 据存储服务器全部设置为准下线状态,并将元数据服务器和/或数据存储服务器中存储的待迁移数据以外的剩余数据迁移到相应的目标元数据服务器和/或目标数据存储服务器中,迁移完成后,可以将机架2中的元数据服务器或数据存储服务器全部设置为准下线状态,并将元数据服务器和/或数据存储服务器中存储的待迁移数据以外的剩余数据迁移到相应的目标元数据服务器和/或目标数据存储服务器中,最后,再将机架3中的元数据服务器或数据存储服务器全部设置为准下线状态,并将元数据服务器和/或数据存储服务器中存储的待迁移数据以外的剩余数据迁移到相应的目标元数据服务器和/或目标数据存储服务器中,从而完成数据的迁移操作。其中的将元数据服务器或数据存储服务器全部设置为准下线状态,并将元数据服务器和/或数据存储服务器中存储的待迁移数据以外的剩余数据迁移到相应的目标元数据服务器和/或目标数据存储服务器中的具体处理过程可以参见上述相关内容,在此不再赘述。In the implementation, in order to not interrupt the online service and not affect the quality of service of the online service, the data migration operation may be performed in units of preset racks, for example, based on the above example, in the rack 1, the rack 2 and the rack 3 If any of the preset racks stores data 1, data 2, and data 3, you can first set the metadata server or data storage server in rack 1 to the quasi-offline state, and the metadata server and / Or the remaining data other than the data to be migrated stored in the data storage server is migrated to the corresponding target metadata server and/or the target data storage server. After the migration is completed, the metadata server or the data storage server in the rack 2 may be all Set to the quasi-downline state, and migrate the remaining data except the data to be migrated stored in the metadata server and/or the data storage server to the corresponding target metadata server and/or target data storage server, and finally, the machine The metadata server or data storage server in shelf 3 is all set to the quasi offline state, and the metadata server and/or data storage is The remaining data other than the migration of migrating data traffic is to be stored in the respective target metadata server and / or the target data storage server, thereby completing the data migration operation. The metadata server or the data storage server is all set to the quasi offline state, and the remaining data other than the data to be migrated stored in the metadata server and/or the data storage server is migrated to the corresponding target metadata server and/or For the specific processing procedure in the target data storage server, refer to the related content above, and details are not described herein again.
需要说明的是,上述步骤S302中的根据待迁移存储设备和目标迁移设备的存储空间利用率,将待迁移存储设备中存储的数据通过预定的负载均衡规则向目标迁移设备中迁移的处理的目的是为了加快数据的迁移,减少数据迁移所消耗的时间,在实际应用中,也可以不需要执行上述处理,而直接执行上述步骤S303的处理。It should be noted that, in the foregoing step S302, the purpose of the process of migrating data stored in the storage device to be migrated to the target migration device by using a predetermined load balancing rule according to the storage space utilization ratio of the storage device to be migrated and the target migration device In order to speed up the migration of data and reduce the time consumed for data migration, in actual applications, the above-described processing may be performed without performing the above processing.
上述步骤S302~步骤S303的处理过程是上述实施例一中步骤S102的一种具体处理方式,在实际应用中,往往会遇到需要将存储系统中的元数据服务器和数据存储服务器中的数据迁移到相应的目标迁移设备中,基于此情况,上述待迁移存储设备可以包括存储系统中的元数据服务器和数据存储服务器,相应的,目标迁移设备可以包括目标元数据服务器和目标数据存储服务器,则上述步骤S102的处理方式还可以通过以下方式实现,具体可以包括以下内容:对元数据服务器进行禁止写操作处理,将元数据服务器中存储的数据迁移到目标元数据服务器中;对数据存储服务器进行禁止写操作处理,将数据存储服务器中存储的数据迁移到目标数据存储服务器中。上述内容的具体处理过程可以参见上述步骤S102或步骤S302和步骤S303的相关内容,在此不再赘述。The processing of the foregoing steps S302 to S303 is a specific processing manner of the step S102 in the first embodiment. In practical applications, data migration in the metadata server and the data storage server in the storage system is often encountered. In the corresponding target migration device, the storage device to be migrated may include a metadata server and a data storage server in the storage system. Accordingly, the target migration device may include a target metadata server and a target data storage server. The processing manner of the foregoing step S102 can also be implemented in the following manner, and specifically includes the following: performing a write inhibit operation on the metadata server, and migrating the data stored in the metadata server to the target metadata server; performing the data storage server on the data storage server The write operation processing is prohibited, and the data stored in the data storage server is migrated to the target data storage server. For the specific processing of the foregoing, refer to the related content of step S102 or step S302 and step S303, and details are not described herein again.
另外,还可以对元数据服务器和数据存储服务器分别执行上述步骤S301~步骤S303,以及下述步骤S304~步骤S305。In addition, the above steps S301 to S303 and the following steps S304 to S305 may be performed on the metadata server and the data storage server, respectively.
在步骤S304中,在上述存储系统中移除上述待迁移存储设备以对该存储系统进行缩容处理。In step S304, the storage device to be migrated is removed from the storage system to perform a shrinking process on the storage system.
上述步骤S304的步骤内容与上述实施例一中步骤S103的步骤内容相同,步骤S304的具体处理可以参见上述步骤S103中的相关内容,在此不再赘述。上述步骤S304的处 理结果可以如图4B所示。The content of the step S304 is the same as the content of the step S103 in the first embodiment. For the specific processing of the step S304, refer to the related content in the above step S103, and details are not described herein again. The processing result of the above step S304 can be as shown in Fig. 4B.
需要说明的是,在执行上述数据迁移的过程中,可以先对元数据服务器进行数据迁移和设备更换,然后,再对数据存储服务器进行数据迁移和设备更换,也可以同时对元数据服务器和数据存储服务器分别进行数据迁移和设备更换,还可以先对数据存储服务器进行数据迁移和设备更换,然后,再对元数据服务器进行数据迁移和设备更换,本申请实施例对两者的执行顺序不做限定。It should be noted that, in the process of performing the foregoing data migration, data migration and device replacement may be performed on the metadata server, and then data migration and device replacement may be performed on the data storage server, and the metadata server and data may be simultaneously performed. The storage server performs the data migration and the device replacement, and the data storage server performs data migration and device replacement, and then performs data migration and device replacement on the metadata server. limited.
此外,对于元数据服务器的数据迁移和设备更换,可以通过其它方式处理,例如,通过双写功能,将用户写入的数据同时写入目标元数据服务器和元数据服务器中,当目标元数据服务器中存储的数据追赶上元数据服务器中存储的数据时,再将全部读写功能切换到目标元数据服务器上,而对于数据存储服务器可以执行上述步骤S301~步骤S304的处理。In addition, the data migration and device replacement for the metadata server can be handled by other means, for example, by writing the data written by the user to the target metadata server and the metadata server simultaneously by the double write function, when the target metadata server When the data stored in the data catches up with the data stored in the metadata server, all the read/write functions are switched to the target metadata server, and the processing of steps S301 to S304 described above can be performed for the data storage server.
在步骤S305中,将待迁移存储设备相匹配的标签属性信息修改为与目标迁移设备相匹配的标签属性信息。In step S305, the tag attribute information that matches the storage device to be migrated is modified to the tag attribute information that matches the target migration device.
其中,标签属性信息用于记录数据的配置参数等信息,标签属性信息与存储设备相适配。The tag attribute information is used to record information such as configuration parameters of the data, and the tag attribute information is adapted to the storage device.
在实施中,由于待迁移存储设备(即元数据服务器和/或数据存储服务器)为SATA存储设备,目标迁移设备(即目标元数据服务器和/或目标数据存储服务器)为HYBRID存储设备,两种存储设备的接口不同,则其存储的数据的格式也会不同,因此,需要在将待迁移存储设备中存储的数据迁移到目标迁移设备后,修改迁移后的数据的标签属性信息(如配置参数等),使其与目标迁移设备相匹配。In an implementation, since the storage device to be migrated (ie, the metadata server and/or the data storage server) is a SATA storage device, the target migration device (ie, the target metadata server and/or the target data storage server) is a HYBRID storage device, and two types. If the interface of the storage device is different, the format of the data to be migrated is different. Therefore, you need to modify the label attribute information (such as configuration parameters) of the migrated data after the data stored in the storage device to be migrated is migrated to the target migration device. Etc.) to match the target migration device.
另外,上述实施例提供的数据的迁移方法,是以更换存储系统中的全部存储设备为例进行的说明,在实际应用中,本申请实施例提供的数据的迁移方法还可以应用于更换存储系统中的部分存储设备的情况下,如图5A所示,待迁移存储设备为存储系统中的部分数据存储服务器,待迁移存储设备还可以为SATA存储设备,目标迁移设备还可以为HYBRID存储设备。In addition, the data migration method provided by the foregoing embodiment is an example of replacing all the storage devices in the storage system. In actual applications, the data migration method provided by the embodiment of the present application may also be applied to replacing the storage system. In the case of a part of the storage device, as shown in FIG. 5A, the storage device to be migrated is a part of the data storage server in the storage system, and the storage device to be migrated may also be a SATA storage device, and the target migration device may also be a HYBRID storage device.
基于上述内容,本申请实施例提供的数据的迁移方法具体可以包括以下内容:根据存储系统中待迁移存储设备(图5A中的数据存储服务器)的容量,在存储系统中添加目标数据存储服务器以对存储系统进行扩容处理;对待迁移存储设备进行禁止写操作处理,根据待迁移存储设备和目标迁移设备的存储空间利用率,按照预定的负载均衡规则确定待迁移存储设备中的待迁移数据,通过预定的负载均衡规则将待迁移数据迁移至目 标迁移设备,并依次按照存储系统中待迁移存储设备所在的预置机架,分别将该预置机架中的待迁移存储设备设置为准下线状态,控制待迁移存储设备将待迁移数据以外的剩余数据迁移至目标迁移设备。在存储系统中移除待迁移存储设备(图5A中的数据存储服务器)以对存储系统进行缩容处理,如图5B所示。将待迁移存储设备相匹配的标签属性信息修改为与目标数据存储服务器(即HYBRID存储设备)相匹配的标签属性信息。Based on the foregoing, the data migration method provided by the embodiment of the present application may specifically include the following: adding a target data storage server to the storage system according to the capacity of the storage device to be migrated in the storage system (the data storage server in FIG. 5A) The storage system is expanded. The storage device to be migrated is forbidden. According to the storage load utilization of the storage device and the target migration device, the data to be migrated in the storage device to be migrated is determined according to a predetermined load balancing rule. The scheduled load balancing rule migrates the data to be migrated to the target migration device, and sets the to-be-migrated storage device in the preset chassis to the off-line according to the preset rack where the storage device to be migrated is located in the storage system. Status, which controls the storage device to be migrated to migrate the remaining data except the data to be migrated to the target migration device. The storage device to be migrated (the data storage server in FIG. 5A) is removed from the storage system to perform a shrinking process on the storage system, as shown in FIG. 5B. The tag attribute information that matches the storage device to be migrated is modified to the tag attribute information that matches the target data storage server (ie, the HYBRID storage device).
上述处理过程的具体处理方式可以参见上述实施例一和实施例二中的相关内容,在此不再赘述。For the specific processing of the foregoing processing, refer to the related content in the foregoing Embodiment 1 and Embodiment 2, and details are not described herein again.
需要说明的是,上述步骤S301~步骤S305的处理是基于待迁移存储设备为串行高技术配置接口SATA存储设备、目标迁移设备为混合HYBRID存储设备的情况进行的详细说明,在实际应用中,并不限于上述情况,待迁移存储设备和目标迁移设备可以为串行高技术配置接口SATA存储设备、混合HYBRID存储设备和固态硬盘SSD存储设备中的任意两种,即如果待迁移存储设备为SATA存储设备、HYBRID存储设备和SSD存储设备3种类型的存储设备中的任意一种类型的存储设备,则目标迁移设备可以为SATA存储设备、HYBRID存储设备和SSD存储设备中除待迁移存储设备所属类型外的任意一种类型的存储设备,例如,如果待迁移存储设备为SATA存储设备,则目标迁移设备可以为HYBRID存储设备和SSD存储设备中的任一种存储设备,即HYBRID存储设备或SSD存储设备。It should be noted that the foregoing steps S301 to S305 are based on the detailed description of the case where the storage device to be migrated is a serial high-tech interface SATA storage device and the target migration device is a hybrid HYBRID storage device. In practical applications, The storage device to be migrated and the target migration device may be any of the serial high-tech interface SATA storage device, the hybrid HYBRID storage device, and the SSD storage device, that is, if the storage device to be migrated is SATA. The storage device, the HYBRID storage device, and the SSD storage device may be any one of the types of storage devices, and the target migration device may be a SATA storage device, a HYBRID storage device, and an SSD storage device. Any type of storage device other than the type. For example, if the storage device to be migrated is a SATA storage device, the target migration device may be any one of a HYBRID storage device and an SSD storage device, that is, a HYBRID storage device or an SSD. Storage device.
本申请实施例提供一种数据的迁移方法,通过存储系统中待迁移存储设备的容量,对存储系统进行扩容处理以将目标迁移设备添加到存储系统中,然后,对待迁移存储设备进行禁止写操作处理,并将待迁移存储设备中存储的数据迁移到目标迁移设备中,最后,再对存储系统进行缩容处理以将待迁移存储设备从存储系统中移除,这样,通过扩容处理和缩容处理,可以在不中断服务和不影响在线业务的服务质量的情况下,完成数据的迁移和设备的更换,不会影响用户对存储系统中数据的读写,而且,可以提高数据迁移的速度,减少数据迁移所消耗的时间。The embodiment of the present application provides a method for migrating data, and the capacity of the storage device to be migrated in the storage system is expanded to add the target migration device to the storage system, and then the write operation is prohibited. The data stored in the storage device to be migrated is migrated to the target migration device. Finally, the storage system is compressed to remove the storage device to be migrated from the storage system. Processing can complete data migration and device replacement without interrupting service and quality of service that does not affect online services. It does not affect the user's reading and writing of data in the storage system, and can improve the speed of data migration. Reduce the time it takes for data migration.
实施例三Embodiment 3
以上为本申请实施例提供的数据的迁移方法,基于同样的思路,本申请实施例还提供一种数据的迁移装置,如图6所示。The above is the data migration method provided by the embodiment of the present application. Based on the same idea, the embodiment of the present application further provides a data migration device, as shown in FIG. 6 .
所述数据的迁移装置包括:扩容模块601、数据迁移模块602和缩容模块603,其中:The data migration device includes: a expansion module 601, a data migration module 602, and a reduction module 603, wherein:
扩容模块601,用于根据存储系统中待迁移存储设备的容量,在所述存储系统中添 加目标迁移设备以对所述存储系统进行扩容处理;The expansion module 601 is configured to add a target migration device to the storage system to perform capacity expansion processing on the storage system according to the capacity of the storage device to be migrated in the storage system;
数据迁移模块602,用于对所述待迁移存储设备进行禁止写操作处理,将所述待迁移存储设备中存储的数据迁移到所述目标迁移设备中;The data migration module 602 is configured to perform a write-protection process on the to-be-migrated storage device, and migrate data stored in the to-be-migrated storage device to the target migration device.
缩容模块603,用于在所述存储系统中移除所述待迁移存储设备以对所述存储系统进行缩容处理。The volume reduction module 603 is configured to remove the to-be-migrated storage device in the storage system to perform a shrinking process on the storage system.
本申请实施例中,所述数据迁移模块602,包括:In the embodiment of the present application, the data migration module 602 includes:
待迁移数据确定单元,用于根据所述待迁移存储设备和所述目标迁移设备的存储空间利用率,按照预定的负载均衡规则确定所述待迁移存储设备中的待迁移数据;The data to be migrated determining unit is configured to determine data to be migrated in the to-be-migrated storage device according to a predetermined load balancing rule according to the storage space utilization ratio of the storage device to be migrated and the target migration device;
数据迁移单元,用于通过所述预定的负载均衡规则将所述待迁移数据迁移至所述目标迁移设备,并将所述待迁移存储设备设置为准下线状态,控制所述待迁移存储设备将所述待迁移数据以外的剩余数据迁移至所述目标迁移设备。a data migration unit, configured to migrate the data to be migrated to the target migration device by using the predetermined load balancing rule, and set the to-be-migrated storage device to a quasi-offline state, and control the to-be-migrated storage device Remaining data other than the data to be migrated is migrated to the target migration device.
本申请实施例中,所述待迁移存储设备和所述目标迁移设备为串行高技术配置接口SATA存储设备、混合HYBRID存储设备和固态硬盘SSD存储设备中的任意两种。In the embodiment of the present application, the to-be-migrated storage device and the target migration device are any two of a serial high-tech configuration interface SATA storage device, a hybrid HYBRID storage device, and a solid-state hard disk SSD storage device.
本申请实施例中,所述装置还包括:In the embodiment of the present application, the device further includes:
信息修改模块,用于将所述待迁移存储设备相匹配的标签属性信息修改为与所述目标迁移设备相匹配的标签属性信息。The information modification module is configured to modify the tag attribute information that matches the to-be-migrated storage device to the tag attribute information that matches the target migration device.
本申请实施例中,所述数据迁移单元,用于依次按照所述存储系统中所述待迁移存储设备所在的预置机架,分别将所述预置机架中的所述待迁移存储设备设置为准下线状态,控制所述待迁移存储设备将所述待迁移数据以外的剩余数据迁移至所述目标迁移设备。In the embodiment of the present application, the data migration unit is configured to sequentially perform the to-be-migrated storage device in the preset rack according to the preset rack in which the storage device to be migrated is located in the storage system. The storage device to be migrated is configured to migrate the remaining data except the data to be migrated to the target migration device.
本申请实施例中,所述待迁移存储设备为所述存储系统中的元数据服务器或数据存储服务器,其中,所述元数据服务器用于管理所述数据存储服务器中存储的数据的元数据。In the embodiment of the present application, the to-be-migrated storage device is a metadata server or a data storage server in the storage system, where the metadata server is configured to manage metadata of data stored in the data storage server.
本申请实施例中,所述待迁移存储设备包括所述存储系统中的元数据服务器和数据存储服务器,所述目标迁移设备包括目标元数据服务器和目标数据存储服务器,In the embodiment of the present application, the to-be-migrated storage device includes a metadata server and a data storage server in the storage system, where the target migration device includes a target metadata server and a target data storage server.
相应的,所述数据迁移模块602,用于对所述元数据服务器进行禁止写操作处理,将所述元数据服务器中存储的数据迁移到所述目标元数据服务器中;对所述数据存储服务器进行禁止写操作处理,将所述数据存储服务器中存储的数据迁移到所述目标数据存储服务器中。Correspondingly, the data migration module 602 is configured to perform a write inhibit operation on the metadata server, and migrate data stored in the metadata server to the target metadata server; and the data storage server A write inhibit operation process is performed to migrate data stored in the data storage server to the target data storage server.
本申请实施例提供一种数据的迁移装置,通过存储系统中待迁移存储设备的容量, 对存储系统进行扩容处理以将目标迁移设备添加到存储系统中,然后,对待迁移存储设备进行禁止写操作处理,并将待迁移存储设备中存储的数据迁移到目标迁移设备中,最后,再对存储系统进行缩容处理以将待迁移存储设备从存储系统中移除,这样,通过扩容处理和缩容处理,可以在不中断服务和不影响在线业务的服务质量的情况下,完成数据的迁移和设备的更换,不会影响用户对存储系统中数据的读写,而且,可以提高数据迁移的速度,减少数据迁移所消耗的时间。The embodiment of the present application provides a data migration device, which is configured to expand a storage system by using a capacity of the storage device to be migrated in the storage system to add the target migration device to the storage system, and then perform a write disable operation on the migration storage device. The data stored in the storage device to be migrated is migrated to the target migration device. Finally, the storage system is compressed to remove the storage device to be migrated from the storage system. Processing can complete data migration and device replacement without interrupting service and quality of service that does not affect online services. It does not affect the user's reading and writing of data in the storage system, and can improve the speed of data migration. Reduce the time it takes for data migration.
实施例四Embodiment 4
以上为本申请实施例提供的数据的迁移装置,基于同样的思路,本申请实施例还提供一种数据的迁移设备,如图7所示。The above is the data migration device provided by the embodiment of the present application. Based on the same idea, the embodiment of the present application further provides a data migration device, as shown in FIG. 7 .
所述数据的迁移设备可以为上述实施例提供的The data migration device may be provided by the above embodiment.
数据的迁移设备可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上的处理器701和存储器702,存储器702中可以存储有一个或一个以上存储应用程序或数据。其中,存储器702可以是短暂存储或持久存储。存储在存储器702的应用程序可以包括一个或一个以上模块(图示未示出),每个模块可以包括对数据的迁移设备中的一系列计算机可执行指令。更进一步地,处理器701可以设置为与存储器702通信,在数据的迁移设备上执行存储器702中的一系列计算机可执行指令。数据的迁移设备还可以包括一个或一个以上电源703,一个或一个以上有线或无线网络接口704,一个或一个以上输入输出接口705,一个或一个以上键盘706。The migration device for data may vary considerably depending on configuration or performance, and may include one or more processors 701 and memory 702 in which one or more storage applications or data may be stored. Among them, the memory 702 can be short-term storage or persistent storage. An application stored in memory 702 may include one or more modules (not shown), each of which may include a series of computer executable instructions in a migration device for data. Still further, the processor 701 can be arranged to communicate with the memory 702 to execute a series of computer executable instructions in the memory 702 on the migration device of the data. The data migration device may also include one or more power sources 703, one or more wired or wireless network interfaces 704, one or more input and output interfaces 705, one or more keyboards 706.
具体在本实施例中,数据的迁移设备包括有存储器,以及一个或一个以上的程序,其中一个或者一个以上程序存储于存储器中,且一个或者一个以上程序可以包括一个或一个以上模块,且每个模块可以包括对数据的迁移设备中的一系列计算机可执行指令,且经配置以由一个或者一个以上处理器执行该一个或者一个以上程序包含用于进行以下计算机可执行指令:Specifically in this embodiment, the data migration device includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and one or more programs may include one or more modules, and each The modules may include a series of computer executable instructions in a migration device for data, and are configured to be executed by one or more processors. The one or more programs are included for performing the following computer executable instructions:
根据存储系统中待迁移存储设备的容量,在所述存储系统中添加目标迁移设备以对所述存储系统进行扩容处理;Adding a target migration device to the storage system to perform capacity expansion processing on the storage system according to the capacity of the storage device to be migrated in the storage system;
对所述待迁移存储设备进行禁止写操作处理,将所述待迁移存储设备中存储的数据迁移到所述目标迁移设备中;Performing a write-protection process on the to-be-migrated storage device, and migrating data stored in the to-be-migrated storage device to the target migration device;
在所述存储系统中移除所述待迁移存储设备以对所述存储系统进行缩容处理。Removing the storage device to be migrated in the storage system to perform a shrinking process on the storage system.
可选地,所述可执行指令在被执行时,还可以使所述处理器:Optionally, the executable instructions, when executed, may also cause the processor to:
根据所述待迁移存储设备和所述目标迁移设备的存储空间利用率,按照预定的负载均衡规则确定所述待迁移存储设备中的待迁移数据;Determining data to be migrated in the to-be-migrated storage device according to a predetermined load balancing rule according to the storage space utilization ratio of the to-be-migrated storage device and the target migration device;
通过所述预定的负载均衡规则将所述待迁移数据迁移至所述目标迁移设备,并将所述待迁移存储设备设置为准下线状态,控制所述待迁移存储设备将所述待迁移数据以外的剩余数据迁移至所述目标迁移设备。The data to be migrated is migrated to the target migration device by the predetermined load balancing rule, and the storage device to be migrated is set to a quasi offline state, and the data to be migrated is controlled by the to-be-migrated storage device. The remaining data outside is migrated to the target migration device.
本申请实施例中,所述待迁移存储设备和所述目标迁移设备为串行高技术配置接口SATA存储设备、混合HYBRID存储设备和固态硬盘SSD存储设备中的任意两种。In the embodiment of the present application, the to-be-migrated storage device and the target migration device are any two of a serial high-tech configuration interface SATA storage device, a hybrid HYBRID storage device, and a solid-state hard disk SSD storage device.
可选地,所述可执行指令在被执行时,还可以使所述处理器:Optionally, the executable instructions, when executed, may also cause the processor to:
将所述待迁移存储设备相匹配的标签属性信息修改为与所述目标迁移设备相匹配的标签属性信息。Modifying the tag attribute information that matches the to-be-migrated storage device to the tag attribute information that matches the target migration device.
可选地,所述可执行指令在被执行时,还可以使所述处理器:Optionally, the executable instructions, when executed, may also cause the processor to:
依次按照所述存储系统中所述待迁移存储设备所在的预置机架,分别将所述预置机架中的所述待迁移存储设备设置为准下线状态,控制所述待迁移存储设备将所述待迁移数据以外的剩余数据迁移至所述目标迁移设备。The storage device to be migrated in the preset rack is set to a quasi-offline state, and the storage device to be migrated is controlled according to the preset rack in which the storage device to be migrated is located in the storage system. Remaining data other than the data to be migrated is migrated to the target migration device.
本申请实施例中,所述待迁移存储设备为所述存储系统中的元数据服务器或数据存储服务器,其中,所述元数据服务器用于管理所述数据存储服务器中存储的数据的元数据。In the embodiment of the present application, the to-be-migrated storage device is a metadata server or a data storage server in the storage system, where the metadata server is configured to manage metadata of data stored in the data storage server.
可选地,所述可执行指令在被执行时,还可以使所述处理器:Optionally, the executable instructions, when executed, may also cause the processor to:
所述待迁移存储设备包括所述存储系统中的元数据服务器和数据存储服务器,所述目标迁移设备包括目标元数据服务器和目标数据存储服务器,The storage device to be migrated includes a metadata server and a data storage server in the storage system, and the target migration device includes a target metadata server and a target data storage server.
相应的,所述对所述待迁移存储设备进行禁止写操作处理,将所述待迁移存储设备中存储的数据迁移到所述目标迁移设备中,包括:Correspondingly, the performing the forbidden write operation on the to-be-migrated storage device, and the data stored in the to-be-migrated storage device is migrated to the target migration device, including:
对所述元数据服务器进行禁止写操作处理,将所述元数据服务器中存储的数据迁移到所述目标元数据服务器中;Performing a write inhibit operation on the metadata server, and migrating the data stored in the metadata server to the target metadata server;
对所述数据存储服务器进行禁止写操作处理,将所述数据存储服务器中存储的数据迁移到所述目标数据存储服务器中。Performing a write inhibit operation on the data storage server, and migrating the data stored in the data storage server to the target data storage server.
本申请实施例提供一种数据的迁移设备,通过存储系统中待迁移存储设备的容量,对存储系统进行扩容处理以将目标迁移设备添加到存储系统中,然后,对待迁移存储设备进行禁止写操作处理,并将待迁移存储设备中存储的数据迁移到目标迁移设备中,最后,再对存储系统进行缩容处理以将待迁移存储设备从存储系统中移除,这样,通过扩 容处理和缩容处理,可以在不中断服务和不影响在线业务的服务质量的情况下,完成数据的迁移和设备的更换,不会影响用户对存储系统中数据的读写,而且,可以提高数据迁移的速度,减少数据迁移所消耗的时间。The embodiment of the present application provides a data migration device, which is configured to expand a storage system to add a target migration device to the storage system, and then perform a write-free operation on the migration storage device. The data stored in the storage device to be migrated is migrated to the target migration device. Finally, the storage system is compressed to remove the storage device to be migrated from the storage system. Processing can complete data migration and device replacement without interrupting service and quality of service that does not affect online services. It does not affect the user's reading and writing of data in the storage system, and can improve the speed of data migration. Reduce the time it takes for data migration.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing description of the specific embodiments of the specification has been described. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than the embodiments and still achieve the desired results. In addition, the processes depicted in the figures are not necessarily in a particular order or in a sequential order to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable Gate Array,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。In the 1990s, improvements to a technology could clearly distinguish between hardware improvements (eg, improvements to circuit structures such as diodes, transistors, switches, etc.) or software improvements (for process flow improvements). However, as technology advances, many of today's method flow improvements can be seen as direct improvements in hardware circuit architecture. Designers almost always get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented by hardware entity modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is an integrated circuit whose logic function is determined by the user programming the device. Designers can program themselves to "integrate" a digital system on a single PLD without having to ask the chip manufacturer to design and fabricate a dedicated integrated circuit chip. Moreover, today, instead of manually making integrated circuit chips, this programming is mostly implemented using "logic compiler" software, which is similar to the software compiler used in programming development, but before compiling The original code has to be written in a specific programming language. This is called the Hardware Description Language (HDL). HDL is not the only one, but there are many kinds, such as ABEL (Advanced Boolean Expression Language). AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., are currently the most commonly used VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. It should also be apparent to those skilled in the art that the hardware flow for implementing the logic method flow can be easily obtained by simply programming the method flow into the integrated circuit with a few hardware description languages.
控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机 可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。The controller can be implemented in any suitable manner, for example, the controller can take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (eg, software or firmware) executable by the (micro)processor. In the form of logic gates, switches, application specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers, examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, The Microchip PIC18F26K20 and the Silicone Labs C8051F320, the memory controller can also be implemented as part of the memory's control logic. Those skilled in the art will also appreciate that in addition to implementing the controller in purely computer readable program code, the controller can be logically programmed by means of logic gates, switches, ASICs, programmable logic controllers, and embedding. The form of a microcontroller or the like to achieve the same function. Such a controller can therefore be considered a hardware component, and the means for implementing various functions included therein can also be considered as a structure within the hardware component. Or even a device for implementing various functions can be considered as a software module that can be both a method of implementation and a structure within a hardware component.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The system, device, module or unit illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product having a certain function. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or A combination of any of these devices.
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本申请时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, the above devices are described separately by function into various units. Of course, the functions of each unit may be implemented in the same software or software and/or hardware when implementing the present application.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can 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.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定 方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
在一个典型的配置中,计算设备包括一个或多个处理器(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)。内存是计算机可读介质的示例。The memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory. Memory is an example of a computer readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer readable media includes both permanent and non-persistent, removable and non-removable media. Information storage can be implemented by any method or technology. The information can be computer readable instructions, data structures, modules of programs, 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 disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary storage of computer readable media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It is also to be understood that the terms "comprises" or "comprising" or "comprising" or any other variations are intended to encompass a non-exclusive inclusion, such that a process, method, article, Other elements not explicitly listed, or elements that are inherent to such a process, method, commodity, or equipment. An element defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device including the element.
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序 产品的形式。Those skilled in the art will appreciate that embodiments of the present application can be provided as a method, system, or computer program product. Thus, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment in combination of software and hardware. Moreover, the application can 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.) including computer usable program code.
本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。The application can be described in the general context of computer-executable instructions executed by a computer, such as a program module. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types. The present application can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network. In a distributed computing environment, program modules can be located in both local and remote computer storage media including storage devices.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in the specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above description is only an embodiment of the present application and is not intended to limit the application. Various changes and modifications can be made to the present application by those skilled in the art. Any modifications, equivalents, improvements, etc. made within the spirit and scope of the present application are intended to be included within the scope of the appended claims.

Claims (10)

  1. 一种数据的迁移方法,其特征在于,所述方法包括:A method for migrating data, characterized in that the method comprises:
    根据存储系统中待迁移存储设备的容量,在所述存储系统中添加目标迁移设备以对所述存储系统进行扩容处理;Adding a target migration device to the storage system to perform capacity expansion processing on the storage system according to the capacity of the storage device to be migrated in the storage system;
    对所述待迁移存储设备进行禁止写操作处理,将所述待迁移存储设备中存储的数据迁移到所述目标迁移设备中;Performing a write-protection process on the to-be-migrated storage device, and migrating data stored in the to-be-migrated storage device to the target migration device;
    在所述存储系统中移除所述待迁移存储设备以对所述存储系统进行缩容处理。Removing the storage device to be migrated in the storage system to perform a shrinking process on the storage system.
  2. 根据权利要求1所述的方法,其特征在于,所述将所述待迁移存储设备中存储的数据迁移到所述目标迁移设备中,包括:The method according to claim 1, wherein the migrating the data stored in the storage device to be migrated to the target migration device comprises:
    根据所述待迁移存储设备和所述目标迁移设备的存储空间利用率,按照预定的负载均衡规则确定所述待迁移存储设备中的待迁移数据;Determining data to be migrated in the to-be-migrated storage device according to a predetermined load balancing rule according to the storage space utilization ratio of the to-be-migrated storage device and the target migration device;
    通过所述预定的负载均衡规则将所述待迁移数据迁移至所述目标迁移设备,并将所述待迁移存储设备设置为准下线状态,控制所述待迁移存储设备将所述待迁移数据以外的剩余数据迁移至所述目标迁移设备。The data to be migrated is migrated to the target migration device by the predetermined load balancing rule, and the storage device to be migrated is set to a quasi offline state, and the data to be migrated is controlled by the to-be-migrated storage device. The remaining data outside is migrated to the target migration device.
  3. 根据权利要求1所述的方法,其特征在于,所述待迁移存储设备和所述目标迁移设备为串行高技术配置接口SATA存储设备、混合HYBRID存储设备和固态硬盘SSD存储设备中的任意两种。The method according to claim 1, wherein the to-be-migrated storage device and the target migration device are any two of a serial high-tech configuration interface SATA storage device, a hybrid HYBRID storage device, and a solid-state hard disk SSD storage device. Kind.
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method of claim 3, wherein the method further comprises:
    将所述待迁移存储设备相匹配的标签属性信息修改为与所述目标迁移设备相匹配的标签属性信息。Modifying the tag attribute information that matches the to-be-migrated storage device to the tag attribute information that matches the target migration device.
  5. 根据权利要求2所述的方法,其特征在于,所述将所述待迁移存储设备设置为准下线状态,控制所述待迁移存储设备将所述待迁移数据以外的剩余数据迁移至所述目标迁移设备,包括:The method according to claim 2, wherein the setting the storage device to be migrated to a quasi-offline state, and controlling the to-be-migrated storage device to migrate remaining data other than the data to be migrated to the Target migration equipment, including:
    依次按照所述存储系统中所述待迁移存储设备所在的预置机架,分别将所述预置机架中的所述待迁移存储设备设置为准下线状态,控制所述待迁移存储设备将所述待迁移数据以外的剩余数据迁移至所述目标迁移设备。The storage device to be migrated in the preset rack is set to a quasi-offline state, and the storage device to be migrated is controlled according to the preset rack in which the storage device to be migrated is located in the storage system. Remaining data other than the data to be migrated is migrated to the target migration device.
  6. 根据权利要求1所述的方法,其特征在于,所述待迁移存储设备为所述存储系统中的元数据服务器或数据存储服务器,其中,所述元数据服务器用于管理所述数据存储服务器中存储的数据的元数据。The method according to claim 1, wherein the storage device to be migrated is a metadata server or a data storage server in the storage system, wherein the metadata server is used to manage the data storage server. Metadata for stored data.
  7. 根据权利要求6所述的方法,其特征在于,所述待迁移存储设备包括所述存储系统中的元数据服务器和数据存储服务器,所述目标迁移设备包括目标元数据服务器和目标数据存储服务器,The method according to claim 6, wherein the storage device to be migrated comprises a metadata server and a data storage server in the storage system, and the target migration device comprises a target metadata server and a target data storage server.
    相应的,所述对所述待迁移存储设备进行禁止写操作处理,将所述待迁移存储设备中存储的数据迁移到所述目标迁移设备中,包括:Correspondingly, the performing the forbidden write operation on the to-be-migrated storage device, and the data stored in the to-be-migrated storage device is migrated to the target migration device, including:
    对所述元数据服务器进行禁止写操作处理,将所述元数据服务器中存储的数据迁移到所述目标元数据服务器中;Performing a write inhibit operation on the metadata server, and migrating the data stored in the metadata server to the target metadata server;
    对所述数据存储服务器进行禁止写操作处理,将所述数据存储服务器中存储的数据迁移到所述目标数据存储服务器中。Performing a write inhibit operation on the data storage server, and migrating the data stored in the data storage server to the target data storage server.
  8. 一种数据的迁移装置,其特征在于,所述装置包括:A data migration device, characterized in that the device comprises:
    扩容模块,用于根据存储系统中待迁移存储设备的容量,在所述存储系统中添加目标迁移设备以对所述存储系统进行扩容处理;a capacity expansion module, configured to add a target migration device to the storage system to perform capacity expansion processing on the storage system according to a capacity of the storage device to be migrated in the storage system;
    数据迁移模块,用于对所述待迁移存储设备进行禁止写操作处理,将所述待迁移存储设备中存储的数据迁移到所述目标迁移设备中;a data migration module, configured to perform a write-protection process on the to-be-migrated storage device, and migrate data stored in the to-be-migrated storage device to the target migration device;
    缩容模块,用于在所述存储系统中移除所述待迁移存储设备以对所述存储系统进行缩容处理。And a shrinking module, configured to remove the to-be-migrated storage device in the storage system to perform a shrinking process on the storage system.
  9. 根据权利要求8所述的装置,其特征在于,所述数据迁移模块,包括:The device according to claim 8, wherein the data migration module comprises:
    待迁移数据确定单元,用于根据所述待迁移存储设备和所述目标迁移设备的存储空间利用率,按照预定的负载均衡规则确定所述待迁移存储设备中的待迁移数据;The data to be migrated determining unit is configured to determine data to be migrated in the to-be-migrated storage device according to a predetermined load balancing rule according to the storage space utilization ratio of the storage device to be migrated and the target migration device;
    数据迁移单元,用于通过所述预定的负载均衡规则将所述待迁移数据迁移至所述目标迁移设备,并将所述待迁移存储设备设置为准下线状态,控制所述待迁移存储设备将所述待迁移数据以外的剩余数据迁移至所述目标迁移设备。a data migration unit, configured to migrate the data to be migrated to the target migration device by using the predetermined load balancing rule, and set the to-be-migrated storage device to a quasi-offline state, and control the to-be-migrated storage device Remaining data other than the data to be migrated is migrated to the target migration device.
  10. 一种数据的迁移设备,其特征在于,所述设备包括:A data migration device, characterized in that the device comprises:
    处理器;以及Processor;
    被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器:A memory arranged to store computer executable instructions that, when executed, cause the processor to:
    根据存储系统中待迁移存储设备的容量,在所述存储系统中添加目标迁移设备以对所述存储系统进行扩容处理;Adding a target migration device to the storage system to perform capacity expansion processing on the storage system according to the capacity of the storage device to be migrated in the storage system;
    对所述待迁移存储设备进行禁止写操作处理,将所述待迁移存储设备中存储的数据迁移到所述目标迁移设备中;Performing a write-protection process on the to-be-migrated storage device, and migrating data stored in the to-be-migrated storage device to the target migration device;
    在所述存储系统中移除所述待迁移存储设备以对所述存储系统进行缩容处理。Removing the storage device to be migrated in the storage system to perform a shrinking process on the storage system.
PCT/CN2018/098981 2017-08-18 2018-08-06 Data migration method, apparatus and device WO2019033949A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710713324.3 2017-08-18
CN201710713324.3A CN109407964A (en) 2017-08-18 2017-08-18 A kind of moving method of data, device and equipment

Publications (1)

Publication Number Publication Date
WO2019033949A1 true WO2019033949A1 (en) 2019-02-21

Family

ID=65361920

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/098981 WO2019033949A1 (en) 2017-08-18 2018-08-06 Data migration method, apparatus and device

Country Status (2)

Country Link
CN (1) CN109407964A (en)
WO (1) WO2019033949A1 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918026B (en) * 2019-03-14 2022-03-08 厦门大学嘉庚学院 Data distribution method and system based on vehicle-mounted storage
CN110069222A (en) * 2019-04-30 2019-07-30 北京百度网讯科技有限公司 Using data migration method, device, new storage system and medium
CN110535946A (en) * 2019-08-30 2019-12-03 北京浪潮数据技术有限公司 A kind of distributed memory system and data transmission method, device, equipment, medium
CN112583864B (en) * 2019-09-27 2023-04-28 中国移动通信集团广东有限公司 Data migration method and device
CN111399763B (en) * 2019-12-24 2023-05-16 杭州海康威视系统技术有限公司 Method, device, system, equipment and storage medium for data storage
CN112667148A (en) * 2020-11-30 2021-04-16 上海七牛信息技术有限公司 Method and system for cluster storage data online migration
CN112817935A (en) * 2021-01-22 2021-05-18 平安普惠企业管理有限公司 Data processing method, device and equipment based on field type and storage medium
CN113515502B (en) * 2021-07-14 2023-11-21 重庆度小满优扬科技有限公司 Data migration method, device, equipment and storage medium
CN113553314A (en) * 2021-07-16 2021-10-26 北京天融信网络安全技术有限公司 Service processing method, device, equipment and medium of super-convergence system
CN114501057A (en) * 2021-12-17 2022-05-13 阿里巴巴(中国)有限公司 Data processing method, storage medium, processor and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6530004B1 (en) * 2000-06-20 2003-03-04 International Business Machines Corporation Efficient fault-tolerant preservation of data integrity during dynamic RAID data migration
US20080195808A1 (en) * 2007-02-14 2008-08-14 Via Technologies, Inc. Data migration systems and methods for independent storage device expansion and adaptation
CN105260376A (en) * 2015-08-17 2016-01-20 北京京东尚科信息技术有限公司 Method, equipment and system used for cluster node contraction and expansion
CN105607873A (en) * 2015-12-23 2016-05-25 浪潮电子信息产业股份有限公司 Method for performing LUN expansion by utilizing data migration
CN106302607A (en) * 2015-06-05 2017-01-04 腾讯科技(深圳)有限公司 It is applied to block storage system and the method for cloud computing
CN106843755A (en) * 2017-01-04 2017-06-13 北京百度网讯科技有限公司 For the data balancing method and device of server cluster

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103034664B (en) * 2011-10-10 2018-01-05 上海盛大网络发展有限公司 Control database the method, system and device of Data Migration
CN104615657A (en) * 2014-12-31 2015-05-13 天津南大通用数据技术股份有限公司 Expanding and shrinking method for distributed cluster with nodes supporting multiple data fragments
US9626246B1 (en) * 2015-09-10 2017-04-18 Datadirect Networks, Inc. System and method for I/O optimized data migration between high performance computing entities and a data storage supported by a de-clustered raid (DCR)architecture with vertical execution of I/O commands
CN106777225B (en) * 2016-12-26 2021-04-06 腾讯科技(深圳)有限公司 Data migration method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6530004B1 (en) * 2000-06-20 2003-03-04 International Business Machines Corporation Efficient fault-tolerant preservation of data integrity during dynamic RAID data migration
US20080195808A1 (en) * 2007-02-14 2008-08-14 Via Technologies, Inc. Data migration systems and methods for independent storage device expansion and adaptation
CN106302607A (en) * 2015-06-05 2017-01-04 腾讯科技(深圳)有限公司 It is applied to block storage system and the method for cloud computing
CN105260376A (en) * 2015-08-17 2016-01-20 北京京东尚科信息技术有限公司 Method, equipment and system used for cluster node contraction and expansion
CN105607873A (en) * 2015-12-23 2016-05-25 浪潮电子信息产业股份有限公司 Method for performing LUN expansion by utilizing data migration
CN106843755A (en) * 2017-01-04 2017-06-13 北京百度网讯科技有限公司 For the data balancing method and device of server cluster

Also Published As

Publication number Publication date
CN109407964A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
WO2019033949A1 (en) Data migration method, apparatus and device
US9916207B2 (en) Data backup or restore using main memory and non-volatile storage media
US10025843B1 (en) Adjusting consistency groups during asynchronous replication
CN108228672B (en) Metadata migration method, device, system and equipment
KR20190091484A (en) Blockchain consensus method and device
US9612910B2 (en) Systems and methods for generating catalogs for snapshots
CN108628688B (en) Message processing method, device and equipment
WO2018058944A1 (en) Method and device for deleting cascade snapshot
JP2007226596A (en) Storage controller, and data migration method using storage controller
JP5798258B2 (en) Content selection for storage hierarchy
JP2011165164A (en) System and method for qos-based storage tiering and migration technique
EP2686763A1 (en) Optimized shrinking of virtual disks
US20150293719A1 (en) Storage Space Processing Method and Apparatus, and Non-Volatile Computer Readable Storage Medium
US10394819B2 (en) Controlling mirroring of tables based on access prediction
CN109284066B (en) Data processing method, device, equipment and system
WO2023160083A1 (en) Method for executing transactions, blockchain, master node, and slave node
US9933953B1 (en) Managing copy sessions in a data storage system to control resource consumption
CN111078127A (en) Data migration method, system and device
US11176089B2 (en) Systems and methods for implementing dynamic file systems
JP2017204101A (en) Storage control apparatus, storage system, and storage device control program
JP2016062406A (en) Memory system, control method for memory system, and program
EP3871087B1 (en) Managing power request during cluster operations
CN110764690B (en) Distributed storage system and leader node election method and device thereof
CN110018985B (en) Snapshot deleting method, device and system
CN104461382A (en) Internal writing method for file server operating multiple file systems and server

Legal Events

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

Ref document number: 18846558

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18846558

Country of ref document: EP

Kind code of ref document: A1