Method and system for performing replica redundancy management on cloud hard disk data
By allowing users to customize the copy redundancy strategy of cloud disks, it solves the problem that existing systems cannot dynamically switch multiple copy strategies, realizes flexible data redundancy management, and meets different storage cost and security requirements.
Patent Information
- Application Number
- CN202410877045.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-10-22
AI Technical Summary
The existing cloud disk copy redundancy management system cannot dynamically switch multiple copy strategies according to user needs, making it difficult for storage costs and data security to meet different needs.
Provide a cloud disk data copy redundancy management method and system that allows users to customize copy redundancy strategies, including selecting copy technology and erasure coding technology, and supports redundancy strategies across physical machines, cabinets, cabinet rows, and computer room levels , realize the creation and change of custom replica redundancy scheme through Ceph cluster and Cinder Volume service.
It improves the flexibility of the data redundancy strategy, meets the storage cost and data security requirements of different user needs, and provides the flexibility of the multi-copy strategy and the cost reduction effect of the erasure code redundancy strategy.
Smart Images

Figure CN118819954A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cloud computing storage technology, and in particular to a method and system for managing duplicate redundancy of cloud hard disk data. Background Art
[0002] With the rapid development and popularization of cloud computing technology, more and more governments, enterprises and individual customers are storing data in the cloud. The amount of data storage has shown explosive growth. Faced with massive amounts of user data, how to effectively utilize storage space and reduce user costs while ensuring data security and reliability has become a key issue for cloud service providers. Cloud service providers usually use multi-copy redundancy strategies to enhance data security and reliability and prevent data loss due to single point failures. Cloud hard disk copy redundancy management mainly includes multi-copy technology and erasure coding technology.
[0003] Multi-copy technology: Cloud hard disk service providers usually use three or more copies of technology, that is, each data block will be copied to different physical locations within the cluster to ensure that even if some hardware fails, there will be no data loss. For users with high security and reliability requirements, different multi-copy strategies are supported, including cross-physical machine level, cross-cabinet level, cross-cabinet column level, cross-computer room level, etc. The multi-copy mechanism has the advantages of easy implementation, high data security and reliability, but there is a problem of low storage space utilization, especially in large-scale storage systems, multiple copies will bring significant storage costs.
[0004] Erasure coding technology: Multiple check blocks are generated by encoding the original data, and these check blocks are stored together with the original data blocks. When some data blocks fail, only the remaining few data blocks and the corresponding check blocks are needed to restore the original data, which greatly reduces the requirements for storage redundancy and effectively reduces storage costs.
[0005] For cost-sensitive users, cloud hard disk service providers usually use K+2 erasure code storage technology. The number of data shards K is generally 2, and the redundancy strategy is cross-physical machine level.
[0006] For the above two replica redundancy mechanisms, cloud service providers generally provide a redundancy strategy. Users cannot customize the replica strategy to a 2-replica cross-data center redundancy strategy, or an erasure code to a 6+2 cross-cabinet redundancy strategy.
[0007] How to provide different multi-copy strategies to meet users' different needs for storage costs and data security and reliability, as well as dynamic switching at runtime, is a technical problem that needs to be solved. Summary of the invention
[0008] The technical task of the present invention is to address the above shortcomings and provide a method and system for copy redundancy management of cloud hard disk data to solve the technical problem of how to provide different multi-copy strategies to meet users' different needs for storage cost and data security and reliability, as well as dynamic switching during runtime.
[0009] In a first aspect, the present invention provides a method for managing duplicate redundancy of cloud hard disk data, comprising the following steps:
[0010] Cloud disk replica redundancy solution management: Form a customized replica redundancy solution based on the redundancy mechanism and redundancy strategy selected by the user;
[0011] Cloud disk creation: Read the locally customized volume type. If the locally customized volume type matches the volume type of the user-defined replica redundancy solution, create a cloud disk with the customized replica redundancy solution. If the locally customized volume type does not match the volume type of the user-defined replica redundancy solution and the Ceph cluster supports the user-defined replica redundancy solution, create the Ceph cluster storage pool and volume type corresponding to the user-defined replica redundancy solution, and create a cloud disk with the customized replica redundancy solution.
[0012] Cloud disk change: Read the locally customized volume type. If the locally customized volume type matches the volume type of the user-defined replica redundancy scheme, change the cloud disk's replica redundancy scheme. If the locally customized volume type does not match the volume type of the user-defined replica redundancy scheme and the Ceph cluster supports the user-defined replica redundancy scheme, create a Ceph cluster storage pool and volume type corresponding to the user-defined replica redundancy scheme, and change the cloud disk's replica redundancy scheme.
[0013] Preferably, the attributes of the volume type include media type, copy mechanism, number of copies, minimum number of copies, number of data shards, number of check blocks, redundancy strategy and storage pool. The media type is used to select the underlying medium for data storage. The copy mechanism includes copy technology and erasure coding technology. The redundancy strategy includes cross-physical level, cross-cabinet level, cross-cabinet column level and cross-computer room level. The storage pool attributes include the specific pool name.
[0014] Preferably, the creation of the storage pool is triggered by the Cinder Volume service and created by Cephrbd. The creation of the storage pool includes the following steps:
[0015] For the replication technology, a crushrule is created based on the media type and redundancy policy attributes to specify the server for data storage. The crush rule name is SelfRule_Media Type_Replication_Redundancy Policy. A replica data pool is created based on the crush rule, the number of replicas, and the minimum number of replicas. The data pool name is SelfPool_Media Type_Replication_Redundancy Policy_Number of Replicas_Minimum Number of Replicas.
[0016] For erasure coding technology, a crushprofile is created based on the four attributes of media type, redundancy strategy, number of data shards, and number of check blocks to specify the server for data storage. The name of the crushprofile is "SelfProfile"_"Media Type"_"KCont"_"MCont"_"Redundancy Strategy". Based on the crushprofile, an erasure coding data pool is created. The name of the data pool is "SelfPool"_"Media Type"_"KCont"_"MCont"_"Redundancy Strategy".
[0017] Preferably, the cloud hard disk creation of the customized replica redundancy solution is performed through the Cinder Volume creation interface.
[0018] As a preferred method, the cloud hard disk replica redundancy solution is changed through the Cinder Volume retype interface.
[0019] In a second aspect, the present invention provides a system for implementing redundant copy management of cloud hard disk data, which is used to implement redundant copy management of cloud hard disk data by using a method for implementing redundant copy management of cloud hard disk data as described in any one of the first aspects, wherein the system includes a cloud hard disk product management module, a Cinder Volume virtual block storage management module, and an underlying Cephrbd storage module.
[0020] The cloud hard disk product management module interacts with the user through the operation interface, is used to support the redundancy mechanism and redundancy strategy selected by the user and form a custom replica redundancy plan to configure the custom replica redundancy plan, and is used to call the judgment interface provided by the CinderVolume service to confirm whether the custom replica redundancy plan is supportable;
[0021] The Cinder Volume virtual block storage management module provides a Cinder Volume service, and provides the following operations through the CinderVolume service: determining whether a custom redundant copy scheme is supported, managing the volume type and Ceph cluster storage pool corresponding to the custom copy redundant scheme, and providing a volume creation interface for the custom copy redundant scheme and a volume change interface for the custom copy redundant scheme, wherein the management of the volume type and Ceph cluster storage pool corresponding to the custom copy redundant scheme includes query and creation;
[0022] The Cephrbd storage module cooperates with the Cinder Volume service to perform the following: storing the underlying data of the rbd data, determining whether the custom replica redundancy scheme is supported and creating a storage pool.
[0023] Preferably, the attributes of the volume type include media type, copy mechanism, number of copies, minimum number of copies, number of data shards, number of check blocks, redundancy strategy and storage pool. The media type is used to select the underlying medium for data storage. The copy mechanism includes copy technology and erasure coding technology. The redundancy strategy includes cross-physical level, cross-cabinet level, cross-cabinet column level and cross-computer room level. The storage pool attributes include the specific pool name.
[0024] Preferably, the Cinder Volume virtual block storage management module performs the following operations through the Cinder Volume service to create a storage pool:
[0025] For the replication technology, a crushrule is created based on the media type and redundancy policy attributes to specify the server for data storage. The crush rule name is SelfRule_Media Type_Replication_Redundancy Policy. A replica data pool is created based on the crush rule, the number of replicas, and the minimum number of replicas. The data pool name is SelfPool_Media Type_Replication_Redundancy Policy_Number of Replicas_Minimum Number of Replicas.
[0026] For erasure coding technology, a crushprofile is created based on the four attributes of media type, redundancy strategy, number of data shards, and number of check blocks to specify the server for data storage. The name of the crushprofile is "SelfProfile"_"Media Type"_"KCont"_"MCont"_"Redundancy Strategy". Based on the crushprofile, an erasure coding data pool is created. The name of the data pool is "SelfPool"_"Media Type"_"KCont"_"MCont"_"Redundancy Strategy".
[0027] Preferably, the Cephrbd storage module cooperates with the Cinder Volume service to create a crush rule corresponding to the custom replica redundancy scheme, and creates a storage pool corresponding to the custom replica redundancy scheme.
[0028] The method and system for implementing copy redundancy management of cloud hard disk data of the present invention have the following advantages:
[0029] 1. By providing users with customized data copy redundancy strategy technology, the flexibility of data redundancy strategy is improved, meeting users' different needs for storage cost and data security and reliability;
[0030] 2. For users with higher requirements for data security and reliability, different multi-copy strategies are provided, including cross-physical machine level, cross-cabinet level, cross-cabinet row level, cross-computer room level, etc., to effectively improve data security and reliability;
[0031] 3. For cost-sensitive users, we provide a K+M-based erasure code redundancy strategy, support user-defined data sharding, and effectively reduce usage costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0033] The present invention is further described below in conjunction with the accompanying drawings.
[0034] Figure 1 This is a flowchart of a cloud hard disk creation process in a method for implementing copy redundancy management of cloud hard disk data in Example 1;
[0035] Figure 2 This is a flowchart of a cloud hard disk change process in a method for implementing copy redundancy management of cloud hard disk data in Example 1. DETAILED DESCRIPTION
[0036] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it. However, the embodiments are not intended to limit the present invention. In the absence of conflict, the embodiments of the present invention and the technical features in the embodiments may be combined with each other.
[0037] The embodiments of the present invention provide a method and system for implementing redundant copy management of cloud hard disk data, which are used to solve the technical problem of how to provide different multi-copy strategies to meet users' different requirements for storage cost and data security and reliability, as well as dynamic switching during runtime.
[0038] Embodiment 1:
[0039] The present invention discloses a method for implementing copy redundancy management of cloud hard disk data, including three steps: cloud hard disk copy redundancy solution management, cloud hard disk creation and cloud hard disk change.
[0040] Cloud disk replica redundancy solution management: Form a customized replica redundancy solution based on the redundancy mechanism and redundancy strategy selected by the user.
[0041] Cloud disk creation: Read the locally customized volume type. If the locally customized volume type matches the volume type of the user-defined replica redundancy solution, create a cloud disk with the customized replica redundancy solution. If the locally customized volume type does not match the volume type of the user-defined replica redundancy solution and the Ceph cluster supports the user-defined replica redundancy solution, create the Ceph cluster storage pool and volume type corresponding to the user-defined replica redundancy solution, and create a cloud disk with the customized replica redundancy solution.
[0042] In this implementation, a cloud hard disk with a custom replica redundancy scheme can be created through the cloud hard disk creation operation, which specifically involves the following operations: determining whether the custom replica redundancy scheme is supported, creating a volume type corresponding to the custom replica redundancy scheme, creating a storage pool, and creating a volume for the Cinder Volume.
[0043] Determine whether the custom replica redundancy scheme is supported: First read the local custom volume type. If it can match the existing volume type, it means that the custom replica redundancy scheme is supported. If it is not found, call the rbd driver to query whether the Ceph cluster can support it. If it can, create the corresponding volume type and return support; if the Ceph cluster returns that it cannot support it, inform the user that it is not supported yet.
[0044] The custom replica redundancy solution includes two aspects: replica mechanism and redundancy strategy. The replica mechanism is divided into two types: replica and erasure code. The redundancy strategy can support cross-physical machine level, cross-cabinet level, cross-cabinet column level, cross-computer room level, etc. The specific support is determined by the Cinder Volume backend configuration item. The operation and maintenance delivery personnel need to configure the configuration item according to the actual deployment of the platform.
[0045] Create a volume type corresponding to a custom replica redundancy scheme: For custom replica redundancy schemes that are supported by the underlying Ceph cluster but for which no corresponding volume type has been created locally, you need to create a volume type when you use it for the first time. In the Cinder Volume service, the custom replica redundancy scheme is ultimately used and persisted in the form of a volume type. The name format of a volume type is SelfDef_"media type"_"replication mechanism"_"redundancy strategy"_"". The properties of a volume type consist of key-value pairs, adding properties such as media type, replication mechanism, number of replicas, minimum number of replicas, number of data shards, number of check blocks, and redundancy strategy, as well as the underlying Ceph storage pool.
[0046] Media Type: The key value is "MediumType", which is used to select the underlying media for data storage. The values include STAT-HDD, SAS-HDD, and SSD.
[0047] Replication mechanism: The key value is "ReplicationMech", and the values include Replication (replication technology) and ErasureCode (erasure code technology).
[0048] Redundancy policy: The key value is "RedundancyPoli", and the values include host (across physical machine level), rack (across cabinet level), row (across cabinet column level), and datacenter (across computer room level).
[0049] For Replication (replication technology), it also includes a ReplicationCont key value, whose value is an integer greater than or equal to 1, and a ReplicationMin key value, whose value is an integer greater than or equal to 1 and less than or equal to ReplicationCont.
[0050] For ErasureCode (erasure code technology), it also includes two attributes: KCont (number of data fragments) and MCont (number of check blocks).
[0051] The key value of the storage pool attribute is "datapool" and the value is the specific pool name. Before creating a volume type, you need to create a Ceph cluster storage pool. For the specific process, see "Creating a Storage Pool".
[0052] Create a Ceph cluster storage pool: The creation of the storage pool is triggered by the Cinder Volume service and is completed by Cephrbd.
[0053] For the copy technology, first create a crushrule based on the media type and redundancy policy attributes to specify the server for data storage. The crush rule is named "SelfRule"_"Media Type"_"Replication"_"Redundancy Policy". Then use the newly created crush rule and the number of copies and the minimum number of copies to create a copy data pool. The data pool name is "SelfPool"_"Media Type"_"Replication"_"Redundancy Policy"_"Number of Copies"_"Minimum Number of Copies".
[0054] For erasure coding technology, first create a crushprofile based on the four attributes of media type, redundancy strategy, number of data shards, and number of check blocks to specify the server for data storage. The profile name is "SelfProfile"_"Media Type"_"KCont"_"MCont"_"Redundancy Strategy"; then use the newly created profile to create an erasure coding data pool. The data pool name is "SelfPool"_"Media Type"_"KCont"_"MCont"_"Redundancy Strategy".
[0055] Create a Cinder Volume: After the underlying data pool of the Ceph cluster and the Cinder Volume type are ready, use the regular Cinder Volume creation interface to complete the creation of the cloud disk.
[0056] Cloud disk change: Read the locally customized volume type. If the locally customized volume type matches the volume type of the user-defined replica redundancy scheme, change the cloud disk's replica redundancy scheme. If the locally customized volume type does not match the volume type of the user-defined replica redundancy scheme and the Ceph cluster supports the user-defined replica redundancy scheme, create a Ceph cluster storage pool and volume type corresponding to the user-defined replica redundancy scheme, and change the cloud disk's replica redundancy scheme.
[0057] For cloud hard disks created according to a customized replica redundancy scheme, the replica redundancy scheme can be changed during use if the data security and reliability requirements change, or for cost considerations. The changes are divided into online changes and offline changes. During the online change process, data migration operations will occur, which will affect the real-time performance of the cloud hard disk.
[0058] The change of the replica redundancy scheme uses the dynamic type conversion function of Cinder Volume, which includes the following four steps:
[0059] (1) Determine whether the target customized replica redundancy solution is supportable;
[0060] (2) Create a volume type corresponding to the target custom replica redundancy scheme;
[0061] (3) Create a target storage pool;
[0062] (4) Use the regular Cinder Volume retype interface to change the volume type, that is, change the replica redundancy scheme.
[0063] Among them, in the change operation, judging whether the target custom replica redundancy scheme is supported, creating the volume type corresponding to the target custom replica redundancy scheme, and creating the target storage pool are consistent with the response operations in the above-mentioned cloud hard disk creation process.
[0064] The method of this embodiment is applicable to a cloud computing platform that uses Cephrbd for underlying data storage and Openstack for virtualization management. By modifying the Openstack Cinder service, it supports user-defined copy redundancy strategies, supports two copy mechanisms, namely, multiple copies and erasure codes, and supports strategies across physical machine levels, across cabinet levels, across cabinet row levels, and across computer room levels.
[0065] Embodiment 2:
[0066] The present invention discloses a system for implementing copy redundancy management of cloud hard disk data, comprising a cloud hard disk product management module, a Cinder Volume virtual block storage management module and an underlying Cephrbd storage module.
[0067] The cloud disk product management module interacts with users through the operation interface to support the redundancy mechanism and redundancy strategy selected by users and form a customized copy redundancy plan to configure a customized copy redundancy plan, and to call the judgment interface provided by the CinderVolume service to confirm whether the customized copy redundancy plan is supportable.
[0068] The Cinder Volume virtual block storage management module provides the Cinder Volume service, which provides the following operations through the CinderVolume service: determining whether the custom redundant copy scheme is supported, managing the volume type and Ceph cluster storage pool corresponding to the custom replica redundancy scheme, providing a volume creation interface for the custom replica redundancy scheme and a volume change interface for the custom replica redundancy scheme. The management of the volume type and Ceph cluster storage pool corresponding to the custom replica redundancy scheme includes query and creation.
[0069] As a specific implementation, the Cinder Volume virtual block storage management module provides the Cinder Volume service, which implements cloud hard disk creation through the following operations: read the locally customized volume type, and if the locally customized volume type matches the volume type of the user-defined replica redundancy solution, create a cloud hard disk; if the locally customized volume type does not match the volume type of the user-defined replica redundancy solution and the Ceph cluster supports the user-defined replica redundancy solution, create a Ceph cluster storage pool and volume type corresponding to the user-defined replica redundancy solution, and create a cloud hard disk.
[0070] In this embodiment, the customized replica redundancy solution includes two aspects: replica mechanism and redundancy strategy. The replica mechanism is divided into two types: replica and erasure code. The redundancy strategy can support cross-physical machine level, cross-cabinet level, cross-cabinet column level, cross-computer room level, etc. The specific support is determined by the Cinder Volume backend configuration item. The operation and maintenance delivery personnel need to configure the configuration item according to the actual deployment of the platform.
[0071] Create a volume type corresponding to a custom replica redundancy scheme: For custom replica redundancy schemes that are supported by the underlying Ceph cluster but for which no corresponding volume type has been created locally, you need to create a volume type when you use it for the first time. In the Cinder Volume service, the custom replica redundancy scheme is ultimately used and persisted in the form of a volume type. The name format of a volume type is SelfDef_"media type"_"replication mechanism"_"redundancy strategy"_"". The properties of a volume type consist of key-value pairs, adding properties such as media type, replication mechanism, number of replicas, minimum number of replicas, number of data shards, number of check blocks, and redundancy strategy, as well as the underlying Ceph storage pool.
[0072] Media Type: The key value is "MediumType", which is used to select the underlying media for data storage. The values include STAT-HDD, SAS-HDD, and SSD.
[0073] Replication mechanism: The key value is "ReplicationMech", and the values include Replication (replication technology) and ErasureCode (erasure code technology).
[0074] Redundancy policy: The key value is "RedundancyPoli", and the values include host (across physical machine level), rack (across cabinet level), row (across cabinet column level), and datacenter (across computer room level).
[0075] For Replication (replication technology), it also includes a ReplicationCont key value, whose value is an integer greater than or equal to 1, and a ReplicationMin key value, whose value is an integer greater than or equal to 1 and less than or equal to ReplicationCont.
[0076] For ErasureCode (erasure code technology), it also includes two attributes: KCont (number of data fragments) and MCont (number of check blocks).
[0077] The key value of the storage pool attribute is "datapool" and the value is the specific pool name. Before creating a volume type, you need to create a Ceph cluster storage pool. For the specific process, see "Creating a Storage Pool".
[0078] Create a Ceph cluster storage pool: The creation of the storage pool is triggered by the Cinder Volume service and is completed by Cephrbd.
[0079] For the copy technology, first create a crushrule based on the media type and redundancy policy attributes to specify the server for data storage. The crush rule is named "SelfRule"_"Media Type"_"Replication"_"Redundancy Policy". Then use the newly created crush rule and the number of copies and the minimum number of copies to create a copy data pool. The data pool name is "SelfPool"_"Media Type"_"Replication"_"Redundancy Policy"_"Number of Copies"_"Minimum Number of Copies".
[0080] For erasure coding technology, first create a crushprofile based on the four attributes of media type, redundancy strategy, number of data shards, and number of check blocks to specify the server for data storage. The profile name is "SelfProfile"_"Media Type"_"KCont"_"MCont"_"Redundancy Strategy"; then use the newly created profile to create an erasure coding data pool. The data pool name is "SelfPool"_"Media Type"_"KCont"_"MCont"_"Redundancy Strategy".
[0081] Create a Cinder Volume: After the underlying data pool of the Ceph cluster and the Cinder Volume type are ready, use the regular Cinder Volume creation interface to complete the creation of the cloud disk.
[0082] The Cinder Volume virtual block storage management module provides the Cinder Volume service, which implements the cloud hard disk change through the following operations: read the locally customized volume type, if the locally customized volume type matches the volume type of the user-defined replica redundancy scheme, change the cloud hard disk; if the locally customized volume type does not match the volume type of the user-defined replica redundancy scheme and the Ceph cluster supports the user-defined replica redundancy scheme, create a Ceph cluster storage pool and volume type corresponding to the user-defined replica redundancy scheme, and change the cloud hard disk.
[0083] The volume type name format of the custom copy redundancy scheme is SelfDef_"media type"_"copy mechanism"_"redundancy strategy"_"", and the corresponding attributes include type attributes and storage pool attributes;
[0084] Type attributes include media type, replication mechanism, number of replicas, minimum number of replicas, number of data shards, number of check blocks, and redundancy strategy. Media type is used to select the underlying media for data storage. Replication mechanism includes replication technology and erasure coding technology. Redundancy strategies include cross-physical level, cross-cabinet level, cross-cabinet column level, and cross-computer room level.
[0085] Storage pool properties include the specific pool name.
[0086] The change of the replica redundancy scheme uses the dynamic type conversion function of Cinder Volume, which includes the following four steps:
[0087] (1) Determine whether the target customized replica redundancy solution is supportable;
[0088] (2) Create a volume type corresponding to the target custom replica redundancy scheme;
[0089] (3) Create a target storage pool;
[0090] (4) Use the regular Cinder Volume retype interface to change the volume type, that is, change the replica redundancy scheme.
[0091] Among them, in the change operation, judging whether the target custom replica redundancy scheme is supported, creating the volume type corresponding to the target custom replica redundancy scheme, and creating the target storage pool are consistent with the response operations in the above-mentioned cloud hard disk creation process.
[0092] The Cephrbd storage module works with the Cinder Volume service to perform the following: store the underlying data of the rbd data, determine whether the custom replica redundancy scheme is supported, and create a storage pool.
[0093] The system of this embodiment can execute the method disclosed in Example 1 to implement cloud hard disk data copy redundancy management.
[0094] The present invention has been shown and described in detail above through the accompanying drawings and preferred embodiments. However, the present invention is not limited to these disclosed embodiments. Based on the above multiple embodiments, those skilled in the art can know that the means in the above different embodiments can be combined to obtain more embodiments of the present invention, and these embodiments are also within the protection scope of the present invention.
Claims
1. A method for managing duplicate redundancy of cloud hard disk data. It is characterized in that The steps include: Cloud disk replica redundancy solution management: Form a customized replica redundancy solution based on the redundancy mechanism and redundancy strategy selected by the user; Cloud disk creation: Read the locally customized volume type. If the locally customized volume type matches the volume type of the user-defined replica redundancy solution, create a cloud disk with the customized replica redundancy solution. If the locally customized volume type does not match the volume type of the user-defined replica redundancy solution and the Ceph cluster supports the user-defined replica redundancy solution, create the Ceph cluster storage pool and volume type corresponding to the user-defined replica redundancy solution, and create a cloud disk with the customized replica redundancy solution. Cloud disk change: Read the locally customized volume type. If the locally customized volume type matches the volume type of the user-defined replica redundancy scheme, change the cloud disk's replica redundancy scheme. If the locally customized volume type does not match the volume type of the user-defined replica redundancy scheme and the Ceph cluster supports the user-defined replica redundancy scheme, create a Ceph cluster storage pool and volume type corresponding to the user-defined replica redundancy scheme, and change the cloud disk's replica redundancy scheme.
2. The method for implementing copy redundancy management of cloud hard disk data according to claim 1, It is characterized in that The attributes of a volume type include media type, replication mechanism, number of replicas, minimum number of replicas, number of data shards, number of check blocks, redundancy strategy, and storage pool. The media type is used to select the underlying media for data storage. The replication mechanism includes replication technology and erasure coding technology. Redundancy strategies include cross-physical level, cross-cabinet level, cross-cabinet column level, and cross-computer room level. Storage pool attributes include the specific pool name.
3. The method for implementing copy redundancy management of cloud hard disk data according to claim 2, It is characterized in that The creation of a storage pool is triggered by the Cinder Volume service and created by Cephrbd. The creation of a storage pool includes the following steps: For the replication technology, a crush rule is created based on the media type and redundancy policy attributes to specify the server for data storage. The crush rule name is "SelfRule"_"Media Type"_"Replication"_"Redundancy Policy". A replica data pool is created based on the crush rule, the number of replicas, and the minimum number of replicas. The data pool name is "SelfPool"_"Media Type"_"Replication"_"Redundancy Policy"_"Number of Replicas"_"Minimum Number of Replicas". For erasure coding technology, a crushprofile is created based on the four attributes of media type, redundancy strategy, number of data shards, and number of check blocks to specify the server where data is stored. The name of the crushprofile is "SelfProfile"_"Media Type"_"KCont"_"MCont"_"Redundancy Strategy". An erasure coding data pool is created based on the crushprofile. The name of the data pool is "SelfPool"_"Media Type"_"KCont"_"MCont"_"Redundancy Strategy".
4. The method for implementing copy redundancy management of cloud hard disk data according to any one of claims 1 to 3, It is characterized in that Use the Cinder Volume creation interface to create a cloud disk with a custom replica redundancy solution.
5. The method for implementing copy redundancy management of cloud hard disk data according to any one of claims 1 to 3, It is characterized in that Use the Cinder Volume retype interface to change the replica redundancy solution of the cloud disk.
6. A system for implementing redundant copy management of cloud hard disk data. It is characterized in that The system is used to perform copy redundancy management by using a method for implementing copy redundancy management of cloud hard disk data according to any one of claims 1 to 5, wherein the system includes a cloud hard disk product management module, a Cinder Volume virtual block storage management module, and an underlying Cephrbd storage module; The cloud hard disk product management module interacts with the user through the operation interface, is used to support the redundancy mechanism and redundancy strategy selected by the user and form a custom replica redundancy plan to configure the custom replica redundancy plan, and is used to call the judgment interface provided by the CinderVolume service to confirm whether the custom replica redundancy plan is supportable; The Cinder Volume virtual block storage management module provides a Cinder Volume service, and provides the following operations through the CinderVolume service: determining whether a custom redundant copy scheme is supported, managing the volume type and Ceph cluster storage pool corresponding to the custom copy redundant scheme, and providing a volume creation interface for the custom copy redundant scheme and a volume change interface for the custom copy redundant scheme, wherein the management of the volume type and Ceph cluster storage pool corresponding to the custom copy redundant scheme includes query and creation; The Cephrbd storage module cooperates with the Cinder Volume service to perform the following: storing the underlying data of the rbd data, determining whether the custom replica redundancy scheme is supported and creating a storage pool.
7. The system for implementing copy redundancy management of cloud hard disk data according to claim 6, It is characterized in that The attributes of a volume type include media type, replication mechanism, number of replicas, minimum number of replicas, number of data shards, number of check blocks, redundancy strategy, and storage pool. The media type is used to select the underlying media for data storage. The replication mechanism includes replication technology and erasure coding technology. Redundancy strategies include cross-physical level, cross-cabinet level, cross-cabinet column level, and cross-computer room level. Storage pool attributes include the specific pool name.
8. A system for implementing copy redundancy management of cloud hard disk data according to claim 6 or 7, It is characterized in that The Cinder Volume virtual block storage management module performs the following operations through the Cinder Volume service to create a storage pool: For the replication technology, a crush rule is created based on the media type and redundancy policy attributes to specify the server for data storage. The crush rule name is "SelfRule"_"Media Type"_"Replication"_"Redundancy Policy". A replica data pool is created based on the crush rule, the number of replicas, and the minimum number of replicas. The data pool name is "SelfPool"_"Media Type"_"Replication"_"Redundancy Policy"_"Number of Replicas"_"Minimum Number of Replicas". For erasure coding technology, a crushprofile is created based on the four attributes of media type, redundancy strategy, number of data shards, and number of check blocks to specify the server where data is stored. The name of the crushprofile is "SelfProfile"_"Media Type"_"KCont"_"MCont"_"Redundancy Strategy". An erasure coding data pool is created based on the crushprofile. The name of the data pool is "SelfPool"_"Media Type"_"KCont"_"MCont"_"Redundancy Strategy".
9. The system for implementing copy redundancy management of cloud hard disk data according to claim 8, It is characterized in that The Cephrbd storage module cooperates with the Cinder Volume service to create a crushrule corresponding to the custom replica redundancy scheme, and creates a storage pool corresponding to the custom replica redundancy scheme.
