[go: up one dir, main page]

CN114253463A - Cloud disk management method and device for cloud host, computer equipment, and storage medium - Google Patents

Cloud disk management method and device for cloud host, computer equipment, and storage medium Download PDF

Info

Publication number
CN114253463A
CN114253463A CN202011027363.6A CN202011027363A CN114253463A CN 114253463 A CN114253463 A CN 114253463A CN 202011027363 A CN202011027363 A CN 202011027363A CN 114253463 A CN114253463 A CN 114253463A
Authority
CN
China
Prior art keywords
cloud
disk
cloud disk
host
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011027363.6A
Other languages
Chinese (zh)
Inventor
罗思标
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Cloud Computing Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Cloud Computing Technologies Co Ltd filed Critical Huawei Cloud Computing Technologies Co Ltd
Priority to CN202011027363.6A priority Critical patent/CN114253463A/en
Priority to PCT/CN2021/119848 priority patent/WO2022063161A1/en
Publication of CN114253463A publication Critical patent/CN114253463A/en
Pending legal-status Critical Current

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/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0632Configuration or reconfiguration of storage systems by initialisation or re-initialisation of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • 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/0629Configuration or reconfiguration of storage systems
    • G06F3/0631Configuration or reconfiguration of storage systems by allocating resources to storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0662Virtualisation aspects
    • G06F3/0665Virtualisation aspects at area level, e.g. provisioning of virtual or logical volumes
    • 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]

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

The application discloses a cloud disk management method and device of a cloud host, computer equipment and a storage medium, and belongs to the technical field of cloud services. The cloud disk management method of the cloud host comprises the following steps: the cloud management platform receives a cloud disk association request which is input by a tenant and carries a cloud disk identifier and a cloud host identifier, wherein the cloud disk identifier is used for identifying a cloud disk of the tenant, and the cloud host identifier is used for identifying a cloud host of the tenant; the cloud management platform receives a cloud disk configuration request input by a tenant, and disk configuration information is set in a cloud disk according to the cloud disk configuration request; the cloud management platform determines a cloud disk and a cloud host according to the cloud disk association request, and sets the cloud disk on the cloud host, wherein the disk configuration information is used for indicating the cloud host to configure the cloud disk. The method and the system realize the automatic process of arranging the cloud disk on the cloud host.

Description

Cloud disk management method and device of cloud host, computer equipment and storage medium
Technical Field
The present application relates to the field of cloud computing technologies, and in particular, to a cloud disk management method and apparatus for a cloud host, a computer device, and a storage medium.
Background
With the rapid development of cloud computing technology, more and more users use cloud hosts to realize their own services. The cloud host refers to a complete computer system which has a complete hardware system function and runs in a completely isolated environment through software simulation, and is also called a virtual machine. In addition, in order to ensure that the cloud host can operate, a cloud disk needs to be configured for the cloud host. The cloud disk is a disk simulated by software, has the same function as a physical disk, and can be mounted on a cloud host for use. The cloud disk comprises: system disks and data disks. The system disk is used for storing relevant data of an operating system of the cloud host. The data disk is used for storing non-operating system data of the cloud host. For example, a data disk of a cloud host is used to store user data of the cloud host.
Currently, after a user purchases a data disc, the user needs to perform a series of configuration operations on the data disc to use the data disc. For example, after a user purchases a data disc, the user needs to complete configuration operations such as online, initialization, partitioning, and formatting of the data disc, and then the user can use the purchased data disc.
However, the configuration operation that the user needs to perform on the data disk is complicated, and data loss is easily caused by misoperation. Therefore, it is desirable to provide a method for automatically configuring a data disk.
Disclosure of Invention
The application provides a cloud disk management method and device of a cloud host, computer equipment and a storage medium, and realizes an automatic process of arranging a cloud disk on the cloud host. The technical scheme provided by the application is as follows:
in a first aspect, the application provides a cloud disk management method for a cloud host. The cloud disk management method of the cloud host comprises the following steps: the cloud management platform receives a cloud disk association request which is input by a tenant and carries a cloud disk identifier and a cloud host identifier, wherein the cloud disk identifier is used for identifying a cloud disk of the tenant, and the cloud host identifier is used for identifying a cloud host of the tenant; the cloud management platform receives a cloud disk configuration request input by a tenant, and disk configuration information is set in a cloud disk according to the cloud disk configuration request; the cloud management platform determines a cloud disk and a cloud host according to the cloud disk association request, and sets the cloud disk on the cloud host, wherein the disk configuration information is used for indicating the cloud host to configure the cloud disk.
In this way, the cloud management platform can determine the cloud disk and the cloud host which need to be associated by receiving the cloud disk association request sent by the tenant, and by receiving the cloud disk configuration request sent by the tenant, the cloud management platform can set disk configuration information in the cloud disk according to the cloud disk configuration request and set the cloud disk which needs to be associated in the cloud host which needs to be associated, so that the cloud host can set the cloud disk according to the disk configuration information, an automatic process of setting the cloud disk in the cloud host is realized, the tenant does not need to manually configure the cloud disk, and adverse effects caused by misoperation due to manual configuration of the tenant are correspondingly reduced.
Optionally, when the tenant needs to configure a cloud disk for the cloud host purchased by the tenant, the tenant may send a cloud disk creation request to the cloud management platform to request the cloud management platform to create the cloud disk according to the cloud disk creation request, so as to configure the cloud disk for the cloud host purchased by the tenant. And the cloud disk has a cloud disk identifier, and the cloud disk identifier is used for uniquely identifying the cloud disk. Correspondingly, before the cloud management platform receives a cloud disk setting request carrying a cloud disk identifier and a cloud host identifier, which is input by a tenant, the cloud disk management method of the cloud host further includes: the cloud management platform receives a cloud disk creation request input by a tenant, and creates a cloud disk according to the cloud disk creation request, wherein the cloud disk is provided with a cloud disk identifier.
It should be noted that the cloud disk requested to be created by the cloud disk creation request may be a cloud disk purchased together with the cloud host, or may be a cloud disk purchased separately by a tenant, or may be a cloud disk that expands an original cloud disk of the cloud host. And the source of the data volume according to which the cloud disk is created can be selected according to the application requirements.
The cloud disk configuration request is used for reflecting the setting requirement of the tenant on the cloud disk. According to different setting requirements, the contents included in the cloud disk configuration request are different, for example, the cloud disk configuration request has at least the following realizable manners:
in an implementation manner, the disk configuration information includes a capacity expansion identifier, where the capacity expansion identifier is used to instruct the cloud host to expand the capacity of the existing disk by using the cloud disk. When the cloud host reads the capacity expansion identification of the cloud disk, it can be known that the capacity expansion of the cloud disk is needed, and then the capacity expansion operation is executed on the capacity-expanded cloud disk.
In another implementation manner, the disk configuration information includes a formatting identifier, where the formatting identifier is used to instruct the cloud host to format the cloud disk, and set the formatted cloud disk as a bare disk. When the cloud host reads the formatting identification of the cloud disk, it can be known that the cloud disk needs to be formatted, and the formatted cloud disk is set as a bare disk.
In another implementation manner, the disk configuration information includes a data reservation identifier, where the data reservation identifier is used to instruct the cloud host to reserve data in the cloud disk, and set the cloud disk as a newly added disk. When the cloud host reads the data reservation identifier, the data in the cloud disk can be reserved while the cloud disk is set.
Optionally, the cloud host managed by the cloud management platform includes: a container, a virtual machine, or a bare metal server.
In a second aspect, the present application provides a cloud disk management apparatus for a cloud host, including: the system comprises a receiving module, a processing module and a sending module, wherein the receiving module is used for receiving a cloud disk association request which is input by a tenant and carries a cloud disk identifier and a cloud host identifier, the cloud disk identifier is used for identifying a cloud disk of the tenant, and the cloud host identifier is used for identifying a cloud host of the tenant; the receiving module is further used for receiving a cloud disk configuration request input by a tenant and setting disk configuration information in the cloud disk according to the cloud disk configuration request; and the processing module is used for determining the cloud disk and the cloud host according to the cloud disk association request and setting the cloud disk in the cloud host, wherein the disk configuration information is used for indicating the cloud host to configure the cloud disk.
Optionally, the receiving module is further configured to receive a cloud disk creation request input by a tenant, and create a cloud disk according to the cloud disk creation request, where the cloud disk is provided with a cloud disk identifier.
Optionally, the disk configuration information includes a capacity expansion identifier, where the capacity expansion identifier is used to instruct the cloud host to expand the capacity of the existing disk by using the cloud disk.
Optionally, the disk configuration information includes a formatting identifier, where the formatting identifier is used to instruct the cloud host to format the cloud disk, and set the formatted cloud disk as a bare disk.
Optionally, the disk configuration information includes a data reservation identifier, where the data reservation identifier is used to instruct the cloud host to reserve data in the cloud disk, and set the cloud disk as a newly added disk.
Optionally, the cloud host managed by the cloud disk management apparatus includes: a container, a virtual machine, or a bare metal server.
In a third aspect, the present application provides a computer device comprising: a processor and a memory, the memory having stored therein a computer program; when the processor executes the computer program, the computer device implements the method provided by the first aspect of the present application.
In a fourth aspect, the present application provides a storage medium which is a non-volatile computer-readable storage medium, and when instructions in the storage medium are executed by a processor, the method provided by the first aspect of the present application is implemented.
In a fifth aspect, the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method as provided in the first aspect of the present application.
Drawings
Fig. 1 is a schematic view of an implementation scenario related to a cloud disk management method for a cloud host according to an embodiment of the present application;
fig. 2 is a flowchart of a method for managing a cloud disk of a cloud host according to an embodiment of the present application;
fig. 3 is a schematic diagram of a purchase interface for purchasing a cloud disk according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a management interface of a cloud management platform according to an embodiment of the present application;
fig. 5 is a schematic view of a management interface of another cloud management platform provided in an embodiment of the present application;
fig. 6 is a flowchart of a method for configuring a cloud disk by a cloud host according to an embodiment of the present application;
fig. 7 is a schematic diagram of information of a cloud disk of a cloud host obtained according to an embodiment of the present application;
fig. 8 is a schematic diagram of information of a logical volume of a cloud host obtained according to an embodiment of the present application;
fig. 9 is a schematic state diagram of a disk 1 before performing a capacity expansion operation according to an embodiment of the present application;
fig. 10 is a schematic diagram illustrating a state of the disk 1 after performing the capacity expansion operation according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a cloud disk management apparatus of a cloud host according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
For the sake of understanding, the terms referred to in the embodiments of the present application will be explained below.
The embodiment of the application provides a cloud disk management method of a cloud host. The cloud disk management method of the cloud host is applied to a cloud management platform. The cloud management platform receives a cloud disk association request which is input by a tenant and carries a cloud disk identifier and a cloud host identifier, receives a cloud disk configuration request input by the tenant, sets disk configuration information in a cloud disk according to the cloud disk configuration request, then determines the cloud disk and the cloud host according to the cloud disk association request, and sets the cloud disk in the cloud host. The cloud disk identification is used for identifying a cloud disk of a tenant, and the cloud host identification is used for identifying a cloud host of the tenant. The disk configuration information is used for instructing the cloud host to configure the cloud disk.
In this way, the cloud management platform can determine the cloud disk and the cloud host which need to be associated by receiving the cloud disk association request sent by the tenant, and by receiving the cloud disk configuration request sent by the tenant, the cloud management platform can set disk configuration information in the cloud disk according to the cloud disk configuration request and set the cloud disk which needs to be associated in the cloud host which needs to be associated, so that the cloud host can set the cloud disk according to the disk configuration information, an automatic process of setting the cloud disk in the cloud host is realized, the tenant does not need to manually configure the cloud disk, and adverse effects caused by misoperation due to manual configuration of the tenant are correspondingly reduced.
Fig. 1 is a schematic view of an implementation scenario related to a cloud disk management method for a cloud host according to an embodiment of the present application. As shown in fig. 1, the implementation scenario includes: the cloud management platform 11, the cloud host 12 and the cloud disk 13 are deployed in the cloud platform 1. A large amount of basic resources owned by a cloud service provider are deployed in the cloud platform 1, and the cloud platform 1 can provide cloud services to tenants by using the basic resources. The underlying resources may include computing resources, storage resources, network resources, and the like, and the computing resources may be a large number of computing devices (e.g., servers).
The cloud management platform 11, the cloud host 12, and the cloud disk 13 may be implemented according to basic resources in the cloud platform 1. In an implementation manner, the cloud management platform 11 may be implemented by software deployed on a computing resource, where the software is used to implement the cloud disk management method for a cloud host provided in the embodiment of the present application. Optionally, the cloud host 12 may be a virtual machine or a container simulated by software on a base resource, or the base resource includes a bare metal server, and the cloud host 12 may be the bare metal server in the cloud platform 1. The cloud host 12 is used for implementing the business of the tenant and providing cloud service for the tenant. The tenant service includes a software application service created by the cloud platform 1 according to the service requirement of the user, for example: a language identification service, a video review service, or an image rendering service, etc. The cloud disk 13 may be a disk simulated by software using a base resource, and the cloud disk 13 has a function substantially identical to a physical disk.
Optionally, the cloud disk 13 may be a cloud disk purchased together with the cloud host 12, and at this time, the cloud disk 13 may be referred to as a newly added cloud disk. In this case, after the tenant completes the purchase, the cloud disk mounted on the cloud host 12 can be obtained. At this time, before the cloud host 12 uses the cloud disk 13, the cloud disk 13 and the cloud host 12 need to be connected, the cloud disk 13 needs to be initially configured, and the like. The initialization configuration of the cloud disk 13 includes creating a partition for the cloud disk 13, initializing a file system of the cloud disk 13, allocating a drive letter to the cloud disk 13, and the like. The mounting means that the cloud disk 13 is configured as a component of the cloud host 12, so that the cloud host 12 can recognize the cloud disk 13, and the cloud host 12 can operate the cloud disk 13. The online connection of the cloud disk 13 and the cloud host 12 means that a communication connection between the cloud disk 13 and the cloud host 12 is established, so that the cloud disk 13 and the cloud host 12 can communicate information with each other.
Alternatively, the cloud disk 13 may be a cloud disk purchased by a tenant separately, and in this case, the cloud disk 13 may also be referred to as an added cloud disk. At this time, before the cloud host 12 uses the cloud disk 13, it is necessary to mount the cloud disk 13 on the cloud host 12, connect the cloud disk 13 online, create a partition for the cloud disk 13, initialize a file system of the cloud disk 13, and allocate a drive letter to the cloud disk 13.
Or, the cloud disk 13 may be a cloud disk that expands the original cloud disk of the cloud host, and in this case, the cloud disk 13 may also be referred to as an expansion cloud disk. At this time, before the cloud host 12 uses the cloud disk 13, it is necessary to perform a capacity expansion operation on the original cloud disk of the cloud host 12 according to the capacity expansion data disk, that is, to add the capacity of the capacity expansion data disk to the file system of the original cloud disk of the cloud host 12.
Moreover, when the cloud disk 13 is a newly added cloud disk purchased together with the cloud host 12, or a newly added cloud disk purchased separately by a tenant, the newly added cloud disk may be further divided into two types according to the data volume source of the cloud disk 13. That is, when the source of the newly added data volume is a blank volume, the newly added cloud disk is a blank cloud disk, that is, there is no data in the newly added cloud disk, and at this time, the newly added cloud disk may be referred to as a new cloud disk without data or a blank newly added cloud disk. When the data volume of the newly added cloud disk is created according to the data volume with data, such as the mirror image, the backup or the snapshot of the data disk, the newly added cloud disk obtained by creating the volume may be referred to as the newly added cloud disk with data. And if the capacity of the data volume according to which the volume is created is equal to the capacity of the newly-added cloud disk obtained by creating the volume, the newly-added cloud disk obtained by creating the volume can be called as a newly-added cloud disk without capacity expansion, and if the capacity of the data volume according to which the volume is created is smaller than the capacity of the newly-added cloud disk obtained by creating the volume, the newly-added cloud disk obtained by creating the volume can be called as a newly-added cloud disk with capacity expansion.
According to the cloud disk management method of the cloud host, the cloud disk can be automatically arranged on the cloud host, so that after a tenant purchases the cloud disk, the purchased cloud disk can be directly used without manual configuration of the cloud disk by the tenant, and the experience of the tenant is improved.
The following describes an implementation process of a cloud disk management method for a cloud host according to an embodiment of the present application. As shown in fig. 2, an implementation process of the cloud disk management method of the cloud host may include the following steps:
step 201, a cloud management platform receives a cloud disk creation request input by a tenant, and creates a cloud disk according to the cloud disk creation request, wherein the cloud disk is provided with a cloud disk identifier.
When a tenant needs to configure a cloud disk for a cloud host purchased by the tenant, the tenant may send a cloud disk creation request to the cloud management platform to request the cloud management platform to create the cloud disk according to the cloud disk creation request, so that the cloud host purchased by the tenant is configured with the cloud disk. And the cloud disk has a cloud disk identifier, and the cloud disk identifier is used for uniquely identifying the cloud disk. Correspondingly, the cloud disk creating request may carry a cloud disk identifier of the cloud disk, so as to request the cloud management platform to create the cloud disk identified by the cloud disk identifier. After the tenant sends a cloud disk creation request, the cloud management platform may receive the cloud disk creation request input by the tenant, and create a cloud disk according to the cloud disk creation request.
Optionally, the cloud disk created by the cloud disk creation request may be a cloud disk purchased together with the cloud host, or may be a cloud disk purchased separately by a tenant, or may be a cloud disk that expands an original cloud disk of the cloud host, and a source of the data volume on which the cloud disk is created may be selected according to an application requirement, which is not specifically limited in the embodiment of the present application.
In an implementation manner, the cloud disk creation request may be triggered by an operation of a tenant purchasing a cloud disk on a management interface of the cloud management platform. For example, the cloud disk creation request may be triggered by an operation of a tenant inputting a purchase parameter on a purchase interface of the cloud disk purchased by the tenant on the cloud management platform, wherein the purchase parameter is used for reflecting the demand of the tenant on the cloud disk.
Moreover, in order to ensure that the tenant can purchase the cloud disk as required, the cloud management platform may provide one or more of the following purchase parameters for purchasing the cloud disk: the method comprises the steps of charging modes of the cloud disks, deployment regions of basic resources used for creating the cloud disks, specific available regions of the basic resources in the deployment regions, performance specifications of the cloud disks, sizes (capacities) of the cloud disks, cloud backup functions of the cloud disks, cloud disk identifications of the cloud disks, purchase duration and purchase quantity of the cloud disks. The charging mode of the cloud disk is used for indicating the charging mode of the cloud disk, and the charging mode can include a year/month/year. And the deployment region of the basic resources used by the cloud disk is created and used for indicating the geographical position of the physical machine according to which the cloud disk is created. The specific available area of the basic resource in the deployment area is used for indicating the available area to which the physical machine according to which the cloud disk is created belongs. The performance specification of the cloud disk is used to indicate performance indexes of the cloud disk, such as maximum values, maximum throughputs, read-write delays and other performances of the input/output operations per second (IOPS) of the cloud disk.
For example, fig. 3 is a schematic diagram of a purchase interface for purchasing a cloud disk on a cloud management platform according to an embodiment of the present disclosure. As shown in fig. 3, when the charging mode of the tenant may select a cloud disk in a selection box of the charging mode is year/month or when charging is required, the tenant may select any one of the areas in south china, north china, east china, south west and the like of the deployment region of the basic resource used by the cloud disk in the selection box of the area, the tenant may select a specific available area unavailable area 1, available area 2, available area 3, or available area 7 of the basic resource in the deployment region in the selection box of the available area, the tenant may select the performance specification of the cloud disk in the selection box of the disk specification to meet the performance specification of the ultra-high IO, the performance specification of the general SSD, the performance specification of the high IO, or the performance specification of the general IO, the tenant may select the size (capacity) of the cloud disk in the selection box of the disk size, and the tenant may select whether it is necessary to configure the cloud backup function for the cloud disk in the selection box of the cloud backup, the tenant may fill in the cloud disk identifier of the cloud disk to be purchased in the box of the disk name, for example, the cloud disk identifier is "volume e-e672," the tenant may select the purchase duration of the cloud disk in the selection box of the purchase duration, and the tenant may select the total number of the cloud disks to be created in the selection box of the purchase amount. In addition, as shown in fig. 3, the cloud management platform is further configured with more options, so that the tenant can select some other settings of the cloud disk, such as whether to select a shared disk, whether to select an interface between the cloud disk and the cloud host as a Small Computer System Interface (SCSI), whether to select the cloud disk as an encrypted disk, or whether to add a label to the cloud disk.
It should be noted that fig. 3 is only an example of a purchase interface, where setting items may be added, deleted, or changed according to application requirements, and the embodiment of the present application is not particularly limited thereto.
Step 202, the cloud management platform receives a cloud disk association request carrying a cloud disk identifier and a cloud host identifier, which is input by a tenant.
After purchasing the cloud disk, the tenant may instruct to mount the purchased cloud disk to the cloud host. The instruction operation of instructing to mount the purchased cloud disk to the cloud host triggers the cloud disk association request. That is, the cloud disk association request is used to request that the cloud disk related to the cloud disk association request is mounted to the cloud host related to the cloud disk association request. Moreover, since the cloud disk can be identified by the cloud disk identifier, and the cloud host can be identified by the cloud host identifier, the tenant indication operation further includes inputting the cloud disk identifier of the cloud disk and the cloud host identifier of the cloud host that need to be associated, and accordingly, the cloud disk association request carries the cloud disk identifier and the cloud host identifier. After the tenant inputs the cloud disk association request carrying the cloud disk identifier and the cloud host identifier, the cloud management platform can receive the cloud disk association request.
Optionally, when the cloud disk is mounted to the cloud host, from the perspective of the cloud disk, the cloud disk is selected first, then the mounting function of the cloud disk is selected, and then the cloud host on which the cloud disk needs to be mounted is selected under the mounting function of the cloud disk. Or, from the perspective of the cloud host, the cloud host is selected first, then the mounting function of the cloud host is selected, and then the cloud disk to be mounted to the cloud host is selected under the mounting function of the cloud host.
For example, fig. 4 is a schematic view of a management interface of a cloud management platform according to an embodiment of the present application. When the cloud disk needs to be mounted to the cloud host, the tenant may first select the cloud disk that needs to be mounted, for example, the cloud disk identified as "slo-ecs-9138-volume-001" is selected in fig. 4. After the tenant selects the mount function of the cloud disk, a mount disk interface of the cloud disk shown in fig. 4 is displayed in a terminal of the tenant, and then the tenant may select a cloud host that needs to be mounted in the mount disk interface shown in fig. 4. The list of the selectable cloud hosts shown in fig. 4 includes an elastic cloud server list and a bare metal server list, the bare metal server list includes cloud host identifiers "slo-ecs-001", "zrm-kylin-001", "zrm-neo-001", and "zrm-uos-001", and the like, and the option, the state, the name of the mirror image file, the private Internet Protocol (IP) address, the IP address of the elastic public network, and the available area of the tenant of the physical machine to which the cloud host belongs are also shown in fig. 4, so that the cloud host to be mounted on the cloud disk can be selected according to the above information. And after the tenant completes the selection of the cloud host to which the cloud disk needs to be mounted, the tenant may click "determine" in the mounted disk interface, the operation of clicking "determine" may trigger the cloud disk association request, and the cloud disk association request carries the cloud disk identifier "slo-ecs-9138-volume-001" and the cloud host identifier of the cloud host selected by the tenant.
For example, fig. 5 is a schematic view of a management interface of another cloud management platform provided in the embodiment of the present application. When the cloud disk needs to be mounted to the cloud host, the tenant may first select the cloud host that needs to be mounted, for example, the cloud host identified as "slo-ecs-6075" is selected in fig. 5. After the tenant selects the mount function of the cloud host, a mount disk interface of the cloud host shown in fig. 5 is displayed in a terminal of the tenant, and then the tenant may select a cloud disk that needs to be mounted to the cloud host from the mount disk interface shown in fig. 5. The list of selectable cloud disks is shown in fig. 5, where the list includes a cloud disk identifier "slo-ecs-9138-volume-001", and the button of "view cloud disk list" is also shown in fig. 5, and in addition, a search box S is also shown in fig. 5, and a cloud disk identifier of a cloud disk that needs to be mounted to the cloud host may be input in the search box S, so as to implement selection of a cloud disk that needs to be mounted to the cloud host. In addition, fig. 5 also shows related information such as a cloud disk identifier, a capacity, indication information of whether the cloud disk is a boot disk, and a disk type of the cloud disk, so that a tenant can know about the cloud disk. And after the tenant completes the selection of the cloud disk to be mounted to the cloud host, the tenant may click "determine" in the mounted disk interface, the operation of clicking "determine" may trigger the cloud disk association request, and the cloud disk association request carries the cloud host identifier "slo-ecs-6075" of the cloud host and the cloud disk identifier of the cloud disk selected by the tenant.
Step 203, the cloud management platform receives a cloud disk configuration request input by a tenant, and sets disk configuration information in the cloud disk according to the cloud disk configuration request.
The cloud disk configuration request is used for reflecting the setting requirement of the tenant on the cloud disk. For example, when a tenant needs to expand a cloud host, the tenant may input a cloud disk configuration request requesting expansion to instruct the cloud management platform to expand the capacity of the cloud host. Or when the tenant needs to add a new cloud disk to the cloud host, the tenant may input a cloud disk configuration request requesting the new cloud disk to indicate that the cloud management platform adds the new cloud disk to the cloud host. Or when the tenant needs to add a blank newly-added cloud disk to the cloud host, the tenant may input a cloud disk configuration request requesting to add the blank newly-added cloud disk to the cloud host, so as to instruct the cloud management platform to add the blank newly-added cloud disk to the cloud host. Or when the tenant needs to add a new cloud disk with data to the cloud host, the tenant may input a cloud disk configuration request requesting the new cloud disk with data added to the cloud host, so as to instruct the cloud management platform to add the new cloud disk with data to the cloud host.
After the tenant triggers the cloud disk configuration request, the cloud management platform may receive the cloud disk configuration request. After receiving the cloud disk configuration request, the cloud management platform can learn the setting requirements of the tenant on the cloud disk, and perform corresponding configuration operation on the cloud disk according to the setting requirements. The configuration operation of the cloud management platform on the cloud disk can cause the cloud disk to change, and the change can be represented by disk configuration information. That is, after receiving the cloud disk configuration request input by the tenant, the cloud management platform may set disk configuration information in the cloud disk according to the cloud disk configuration request. When the cloud disk carries the disk configuration information, the cloud host can know what the cloud disk is when reading the cloud disk, and then executes corresponding configuration on the cloud disk.
For example, when a tenant inputs a cloud disk configuration request requesting expansion, the cloud management platform may set an expanded cloud disk according to the cloud disk configuration request, and the configuration of the expanded cloud disk may be represented by disk configuration information, so that the cloud host may know that the cloud disk is the expanded cloud disk when reading the disk configuration information, and perform expansion operation on the expanded cloud disk. At this time, the disk configuration information includes a capacity expansion identifier, where the capacity expansion identifier is used to instruct the cloud host to expand the capacity of the existing disk by using the cloud disk. That is, when the cloud host reads the capacity expansion identifier of the cloud disk, it is known that the capacity expansion needs to be performed on the cloud disk, and then the capacity expansion operation is performed on the capacity-expanded cloud disk.
For another example, when a tenant inputs a cloud disk configuration request requesting a newly added cloud disk, the cloud management platform may set the newly added cloud disk according to the cloud disk configuration request, and the configuration of the newly added cloud disk may be represented by disk configuration information, so that the cloud host may know that the cloud disk is the newly added cloud disk when reading the disk configuration information, and perform operations such as initialization configuration on the newly added cloud disk. At this time, the disk configuration information includes a new identifier, where the new identifier is used to instruct the cloud host to perform operations such as initialization configuration on the new cloud disk. That is, when the cloud host reads the new identifier of the cloud disk, it is known that operations such as corresponding initialization configuration need to be performed on the cloud disk.
For another example, when a tenant inputs a cloud disk configuration request requesting that a blank newly added cloud disk is added to a cloud host, the cloud management platform may create the cloud disk, format the created cloud disk, set the formatted cloud disk as a bare disk, and characterize the configuration of the blank newly added cloud disk by disk configuration information, so that the cloud host may know that the cloud disk is the blank newly added cloud disk when reading the disk configuration information, and perform operations such as initialization configuration and the like on the blank newly added cloud disk. At this time, the disk configuration information includes a formatting identifier, where the formatting identifier is used to instruct the cloud host to format the cloud disk, and set the formatted cloud disk as a bare disk. That is, when the cloud host reads the formatting identifier of the cloud disk, it is known that the cloud disk needs to be formatted, and the formatted cloud disk is set as a bare disk.
For another example, when a tenant inputs a cloud disk configuration request that requests a cloud host to add a new cloud disk with data, the cloud management platform may create a cloud disk according to a data volume with data, retain the data in the cloud disk in the process of creating the cloud disk, and set the cloud disk as a new disk, and the configuration of the new cloud disk with data may be represented by disk configuration information, so that the cloud host may know that the cloud disk is the new cloud disk with data when reading the disk configuration information, and perform corresponding operations such as initialization configuration on the new cloud disk with data. At this time, the disk configuration information includes a data reservation identifier, where the data reservation identifier is used to instruct the cloud host to reserve data in the cloud disk, and set the cloud disk as a newly added disk. That is, when the cloud host reads the data reservation identifier, the data in the cloud disk can be reserved while the cloud disk is set.
Further, when the user inputs the cloud disk configuration request, the user may also indicate a partition manner in which the cloud disk is partitioned. Such as indicating how many partitions the cloud disk is divided into and the size of each partition. At this time, the disk configuration information further includes a partition instruction, where the partition instruction is used to indicate a partition manner of the cloud disk. By setting the division instruction in the cloud disk, the cloud disk can be divided according to the division instruction when the cloud host reads the division instruction.
It should be noted that the above description of the cloud disk configuration request and the disk configuration information is only an exemplary description, and is not used to limit the specific form of the cloud disk configuration request that can be input by the tenant, and the matters requested by the cloud disk configuration request may be adjusted according to the application requirements, which is not specifically limited in the embodiment of the present application. The disk configuration information may include one or more of the above information, which is not specifically limited in this embodiment. For example, the disk configuration information may include any one of a capacity expansion flag, a format flag, and a data retention flag. Alternatively, the disk configuration information may include a capacity expansion identifier and a data retention identifier. Alternatively, the disk configuration information may include a formatting flag and a data retention flag. Alternatively, the disk configuration information may include a capacity expansion identifier and a formatting identifier. Alternatively, the disk configuration information may include a capacity expansion identifier, a format identifier, and a data retention identifier.
Step 204, the cloud management platform determines the cloud disk and the cloud host according to the cloud disk association request, and sets the cloud disk on the cloud host.
After receiving the cloud disk association request, the cloud management platform may determine a cloud disk to be configured according to a cloud disk identifier carried in the cloud disk association request, determine a cloud host that establishes an association relationship with the cloud disk to be configured according to a cloud host identifier carried in the cloud disk association request, and mount the cloud disk to the cloud host, that is, mount the cloud disk to the cloud host, so that the cloud host can read disk configuration information set in the cloud disk, and configure the cloud disk by the cloud host according to the disk configuration information.
Step 205, the cloud host configures the cloud disk according to the disk configuration information.
Optionally, as shown in fig. 6, the implementation process of step 205 includes:
step 2051, the cloud host modifies the online state of the cloud disk into online and modifies the read-write permission of the cloud disk into readable and writable permission.
The cloud disk and the cloud host are connected, namely the communication connection between the cloud disk and the cloud host is established, so that the cloud disk and the cloud host can communicate information. That is, when the online state of the cloud disk relative to the cloud host is online, the cloud host and the cloud disk can communicate with each other, and therefore, when the cloud disk is set, the online state of the cloud disk needs to be modified to be online. Moreover, when the cloud disk is set, information needs to be written into the cloud disk, so that when the cloud disk is set, it is required to ensure that the read-write permission of the cloud disk by the cloud host is at least a readable permission, that is, the read-write permission of the cloud disk needs to be modified into a readable and writable permission. Optionally, the read-write permission of the cloud disk to be set is modified into a readable and writable permission, which can be realized by erasing the read-only permission of the cloud disk.
In addition, the process of setting the cloud disk by the cloud host may be executed for all data disks in all cloud disks of the cloud host, and may also be executed for detected cloud disks that are not configured. The cloud disk comprises a system disk and a cloud disk. The system disk is used for storing relevant data of an operating system of the cloud host. The cloud disk is used for storing non-operating system data of the cloud host. For example, a cloud disk of a cloud host is used to store user data of the cloud host. When all data disks of the cloud host are executed, the cloud disks in steps 2051 to 2053 refer to all data disks of the cloud host, and before executing step 2051, information of all cloud disks of the cloud host needs to be acquired, all data disks are screened out according to the information of all cloud disks, and all data disks are set. In an implementation manner, information of all cloud disks of the cloud host can be acquired through a disk partition management tool in an operating system of the cloud host, and a data disk is screened out from all the cloud disks of the cloud host according to a logic set by the operating system of the cloud host for the cloud disks. For example, a disk partition management tool disk of the windows operating system may be used to obtain information of all cloud disks of the cloud host, and since the disk number of the system disk in the windows system is equal to 0, that is, the cloud disks with the disk number greater than 0 are all data disks, all cloud disks with the disk number greater than 0 may be set.
For example, fig. 7 is a schematic diagram of information of all cloud disks of a cloud host obtained according to an embodiment of the present disclosure, as shown in fig. 7, the cloud host includes two cloud disks, where the disk numbers of the two cloud disks are 0 and 1, a state (status) of a cloud disk with a disk number of 0 is an online state (online), a total capacity (size) is 40 Gigabytes (GB), an available capacity (free) is 0 byte (B), a state of a cloud disk with a disk number of 1 is an offline state (offline), a total capacity is 10GB, and an available capacity is 9GB, and then it may be determined that a cloud disk with a disk number of 1 is a data disk, and modify an online state of a cloud disk with a disk number of 1 into an online state, and modify a read-write permission of a cloud disk with a disk number of 1 into a writable permission.
And step 2052, the cloud host expands the capacity of the cloud disk of the cloud host.
The expansion of the cloud disk of the cloud host refers to adding the capacity of the expansion cloud disk into the expanded cloud disk to increase the capacity of the cloud disk. Optionally, the implementation process of step 2052 may include:
step 2052a, the cloud host determines the expanded logical volume in the cloud disk and the expansion volume for expanding the logical volume.
In an implementation manner, the cloud disk to be expanded and the cloud disk to be used for expansion are usually logical volumes in the cloud disk, that is, the cloud disk to be expanded may be regarded as a logical volume to be expanded, and the cloud disk to be used for expanding the logical volume to be expanded may be regarded as an expansion volume (which is also a logical volume, but for convenience of distinction, this embodiment of the present application is referred to as an expansion volume). And, the logic volume that is expanded satisfies with the expansion volume: the expanded logical volume and the expanded volume belong to the same cloud disk, and the storage address of the expanded logical volume is continuous with the storage address of the expanded volume. Therefore, the volume information of all the logical volumes of the cloud host can be acquired, and the expanded logical volume in the cloud disk and the expansion volume for expanding the logical volume can be determined according to the storage addresses of the cloud disk and the logical volume to which the logical volume belongs, which are indicated by the volume information of the logical volume.
In addition, the process of the cloud host expanding the capacity of the cloud disk may be executed for all the logical volumes in all the cloud disks of the cloud host except the system volume, and may also be executed for the detected logical volumes which do not complete expansion, which is not specifically limited in the embodiment of the present application. Moreover, when all the logical volumes of the cloud host except the system volume are executed, before the step 2052 is executed, it is further required to acquire information of all the logical volumes of the cloud host, screen out all the logical volumes except the system volume according to the information of all the logical volumes, and perform a capacity expansion operation on all the logical volumes except the system volume. In an implementation manner, information of all logical volumes of the cloud host may be acquired through a disk partition management tool in an operating system of the cloud host, and all logical volumes except the system volume may be screened out from all logical volumes of the cloud host according to a logic set by the operating system of the cloud host. For example, a disk partition management tool disk of the windows operating system may be used to obtain information of all cloud disks of the cloud host, and since the volume number of the system volume in the windows system is equal to 0 or 1, that is, the logical volume with the volume number greater than 1 is not the system volume, the capacity expansion operation may be performed on all logical volumes with the volume number greater than 1.
For example, fig. 8 is a schematic diagram of information of all logical volumes of a cloud host obtained according to an embodiment of the present application, and as shown in fig. 8, the cloud host includes three logical volumes, where the volume numbers of the three logical volumes are 0, 1, and 2, respectively. The label of the logical volume with volume number 0 is reserved (system reserved) drive letter for the system, the file system used is New Technology File System (NTFS), the type is partition type, the total capacity (size) is 500 Megabytes (MB), the status (status) is health (health), and the information (info) identifies it as system (system) volume. The cloud disk to which the logical volume with the volume number of 1 belongs is a C disk, the used file system is NTFS, the type is a partition type, the total capacity is 39GB, the state is healthy, and the information identifier is a boot volume. The cloud disk to which the logical volume with the volume number of 2 belongs is a D disk, the used file system is NTFS, the type is a partition type, the total capacity is 2014MB, and the state is healthy. It may be determined that the volume number 2 logical volume is not a system volume and a capacity expansion operation may be performed on the volume number 2 logical volume.
And step 2052b, the cloud host adds the capacity of the expansion volume to the file system of the logical volume.
After determining the expanded logical volume in the cloud disk and the expansion volume for expanding the logical volume, the cloud host may add the capacity of the expansion volume to the file system of the logical volume to complete the expansion operation on the logical volume. For example, fig. 9 is a schematic diagram of a state of the disk 1 before the capacity expansion operation is performed, and fig. 10 is a schematic diagram of a state of the disk 1 after the capacity expansion operation is performed. As shown in FIG. 9, before the capacity expansion operation is performed, the disk 1 includes two portions of capacity, one portion of capacity being 100GB of capacity included in the newly added volume (D:), and the other portion of capacity being 50GB of capacity that has not yet been allocated. From this, it can be seen that the unallocated 50GB capacity is the capacity of the expansion volume for expanding the new added volume (D:), and the 50GB capacity of the expansion volume can be added to the file system of the new added volume (D:) to expand the new added volume (D:). As shown in FIG. 10, the capacity of the newly added volume (D:) after the capacity expansion is 150GB, the capacity is equal to the sum of the capacity of the newly added volume (D:) before the capacity expansion and the unallocated capacity of 50GB, and the file systems used by the newly added volume (D:) before and after the capacity expansion are NTFS.
Step 2053, the cloud host formats the cloud disk.
The step of formatting the cloud disk of the cloud host refers to the step of formatting the newly added cloud disk. And the available capacity of the newly-added cloud disk is greater than 0. In an implementation manner, information of all cloud disks of the cloud host can be acquired through a disk partition management tool in an operating system of the cloud host, and a newly added cloud disk is determined according to the information of the cloud disks. For example, a disk partition management tool disk of the windows operating system may be used to obtain information of all cloud disks of the cloud host, and determine a cloud disk whose information indicates that the available capacity is greater than 0 as a newly added cloud disk. For example, continuing to refer to fig. 7, the available capacity of the cloud disk with disk number 0 is 0 byte (B), the available capacity of the cloud disk with disk number 1 is 9GB, and the cloud disk with disk number 1 may be determined to be the newly added cloud disk, and the newly added cloud disk may be formatted.
Optionally, when the newly added cloud disk is a blank newly added cloud disk, formatting the newly added cloud disk by the cloud host may include: and creating a partition for the newly added cloud disk, initializing a file system of the newly added cloud disk, and distributing drive symbols for the newly added cloud disk. When the newly added cloud disk is a newly added cloud disk with data, because the file system and the partition information exist in the newly added cloud disk with data, formatting the newly added cloud disk by the cloud host may include: and allocating drive symbols for the newly added cloud disk. The creating of the partition for the newly added cloud disk may refer to creating a main partition for the newly added cloud disk, or creating a cloud partition and an extended partition for the newly added cloud disk. The file system for initializing the newly added cloud disk is a file system used by the newly added cloud disk. Optionally, the file system used by the newly-added cloud disk may be an NTFS or other file system, which is not specifically limited in this embodiment of the present application. Allocating the drive letter to the newly added cloud disk may include: and eliminating the drive letter occupied by the cloud disk of the current cloud host from the alphabet to obtain a standby drive letter table, and determining the drive letter of the newly added cloud disk according to the letters in the standby drive letter table. For example, when there are multiple new cloud disks, disk signatures may be sequentially assigned to the multiple new cloud disks in the backup disk signature table according to the order of letters.
It should be noted that, when the cloud host reads the disk configuration information in the cloud disk, the cloud host may perform part or all of the steps 2051 to 2053 on the cloud disk, and the step performed by the cloud host on the cloud disk may be determined according to an application requirement, which is not specifically limited in the embodiment of the present application. For example, when the disk configuration information in the cloud disk is read, the cloud host may perform the above steps 2051 to 2053 on the cloud disk, regardless of the specific information carried in the disk configuration information. Or, when the disk configuration information includes the capacity expansion identifier, the cloud host may perform step 2051 and step 2052 on the cloud disk. Alternatively, when the disk configuration information includes the formatting identifier, the cloud host may perform the above step 2051 and step 2053 on the cloud disk.
Moreover, there may be various implementation manners for the cloud host to read the disk configuration information in the cloud disk and execute part or all of the steps 2051 to 2053 on the cloud disk. In an implementation manner, cloud management agent software may be set in an operating system of the cloud host, and the cloud management agent software may monitor and read a signal that a disk in the cloud disk in the operating system has capacity expansion or a newly added disk, and perform part or all of steps 2051 to 2053 on the cloud disk. In another implementation manner, the disk configuration information in the cloud disk is read, and part or all of the operations in steps 2051 to 2053 are performed on the cloud disk, which may be set as a boot entry of the cloud host, so that the operation is performed during the boot process of the cloud host, and thus, the tenant can use the set cloud disk after booting. In another implementation manner, reading disk configuration information in the cloud disk, and performing part or all of the operations in steps 2051 to 2053 on the cloud disk may be set as a system task plan of the cloud host operating system, so that the operations can be performed in time, and the cloud disk can be configured in time.
When the cloud management agent software and/or the system task plan are implemented, the configuration operation on the cloud disk can be executed at regular time, or the configuration operation on the cloud disk can be executed when a trigger event is detected. And the triggering event may include one or more of: the cloud host receives the starting-up instruction, detects an event that a new cloud disk is added to the cloud host, and detects an event that the original cloud disk of the cloud host is expanded.
In addition, when the steps 2051 to 2053 need to be executed, if the step 2052 is executed first and then the step 2053 is executed, since capacity expansion does not result in data loss in the cloud disk, and formatting the cloud disk may result in data loss in the cloud disk, the security of data in the cloud disk can be ensured by first performing capacity expansion on the cloud disk, and the risk that data is lost by formatting due to misoperation is avoided.
In summary, in the cloud disk management method for the cloud host provided in the embodiment of the present application, the cloud management platform can determine the cloud disk and the cloud host that need to be associated by receiving the cloud disk association request sent by the tenant, and can set disk configuration information in the cloud disk according to the cloud disk configuration request by receiving the cloud disk configuration request sent by the tenant, and set the cloud disk that needs to be associated in the cloud host that needs to be associated by the cloud management platform, so that the cloud host sets the cloud disk according to the disk configuration information, an automation process of setting the cloud disk in the cloud host is achieved, the cloud disk does not need to be manually configured by the tenant, and adverse effects caused by misoperation due to manual configuration by the tenant are correspondingly reduced.
It should be noted that, in the cloud disk management method of the cloud host provided in the embodiment of the present application, the order of steps may be appropriately adjusted, and the steps may also be increased or decreased according to the situation. Any method that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present application is covered by the protection scope of the present application, and thus the detailed description thereof is omitted.
The embodiment of the application also provides a cloud disk management device of the cloud host. The cloud disk management device of the cloud host can be deployed in a cloud management platform. As shown in fig. 11, the cloud disk management apparatus 110 of the cloud host includes:
the receiving module 1101 is configured to receive a cloud disk association request which is input by a tenant and carries a cloud disk identifier and a cloud host identifier, where the cloud disk identifier is used to identify a cloud disk of the tenant, and the cloud host identifier is used to identify a cloud host of the tenant.
The receiving module 1101 is further configured to receive a cloud disk configuration request input by a tenant, and set disk configuration information in a cloud disk according to the cloud disk configuration request.
The processing module 1102 is configured to determine a cloud disk and a cloud host according to the cloud disk association request, and set the cloud disk in the cloud host, where the disk configuration information is used to instruct the cloud host to configure the cloud disk.
Optionally, the receiving module 1101 is further configured to receive a cloud disk creation request input by a tenant, and create a cloud disk according to the cloud disk creation request, where the cloud disk is provided with a cloud disk identifier.
Optionally, the disk configuration information includes a capacity expansion identifier, where the capacity expansion identifier is used to instruct the cloud host to expand the capacity of the existing disk by using the cloud disk.
Optionally, the disk configuration information includes a formatting identifier, where the formatting identifier is used to instruct the cloud host to format the cloud disk, and set the formatted cloud disk as a bare disk.
Optionally, the disk configuration information includes a data reservation identifier, where the data reservation identifier is used to instruct the cloud host to reserve data in the cloud disk, and set the cloud disk as a newly added disk.
Optionally, the cloud host managed by the cloud disk management apparatus includes: a container, a virtual machine, or a bare metal server.
In summary, in the cloud disk management apparatus for a cloud host provided in the embodiment of the present application, the receiving module receives a cloud disk association request sent by a tenant, so that the cloud disk management apparatus can determine a cloud disk and a cloud host that need to be associated, and the receiving module receives a cloud disk configuration request sent by the tenant, so that the cloud disk management apparatus can set disk configuration information in the cloud disk according to the cloud disk configuration request, and the processing module sets the cloud disk that needs to be associated in the cloud host that needs to be associated, so that the cloud host sets the cloud disk according to the disk configuration information, thereby implementing an automation process of setting the cloud disk in the cloud host, requiring no tenant to manually configure the cloud disk, and correspondingly reducing adverse effects caused by misoperation due to manual configuration of the tenant.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding contents in the foregoing method embodiments, and are not described herein again.
The embodiment of the application provides computer equipment. Fig. 12 illustratively provides a possible architecture diagram for a computer device. As shown in fig. 12, the computer device 120 may include a processor 1201, a memory 1202, a communication interface 1203, and a bus 1204. In a computer device, the number of the processors 1201 may be one or more, and fig. 12 illustrates only one of the processors 1201. Alternatively, the processor 1201 may be a Central Processing Unit (CPU). If the computer device has multiple processors 1201, the types of the multiple processors 1201 may be different, or may be the same. Optionally, multiple processors of the computer device may also be integrated into a multi-core processor.
The memory 1202 stores computer instructions and data, and the memory 1202 may store computer instructions and data required to implement the cloud disk management method of the cloud host provided by the present application. Memory 1202 may be any one or any combination of the following storage media: nonvolatile Memory (e.g., Read-Only Memory (ROM), Solid State Disk (SSD), Hard Disk Drive (HDD), optical disc, etc., volatile Memory.
The communication interface 1203 may be any one or any combination of the following devices: network interface (such as Ethernet interface), wireless network card, etc.
The communication interface 1203 is used for data communication of the computer device with other nodes or other computer devices.
Fig. 12 also illustratively depicts bus 1204. The bus 1204 may connect the processor 1201 with the memory 1202 and the communication interface 1203. Thus, the processor 1201 has access to the memory 1202 via the bus 1204, and may also interact with other nodes or other computer devices using the communication interface 1203.
In this application, the computer device executes the computer instructions in the memory 1202, and may implement the functions of the cloud management platform in the cloud disk management method of the cloud host provided in this application. For example, a cloud disk association request which is input by a tenant and carries a cloud disk identifier and a cloud host identifier is received, a cloud disk configuration request which is input by the tenant is received, disk configuration information is set in a cloud disk according to the cloud disk configuration request, the cloud disk and the cloud host are determined according to the cloud disk association request, and the cloud disk is set in the cloud host. Moreover, by executing the computer instructions in the memory 1202, the implementation process of executing the steps of the computer device may refer to the corresponding description in the above method embodiments.
The embodiment of the present application further provides a storage medium, where the storage medium is a nonvolatile computer-readable storage medium, and when an instruction in the storage medium is executed by a processor, the cloud disk management method of a cloud host according to the embodiment of the present application is implemented.
The embodiment of the present application further provides a computer program product containing instructions, and when the computer program product runs on a computer, the computer is enabled to execute the cloud disk management method of the cloud host provided in the embodiment of the present application.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
In the embodiments of the present application, the terms "first", "second", and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. The term "at least one" means one or more, and the term "plurality" means two or more, unless expressly defined otherwise.
The term "and/or" in this application is only one kind of association relationship describing the associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The above description is only exemplary of the present application and is not intended to limit the present application, and any modifications, equivalents, improvements, etc. made within the spirit and principles of the present application are intended to be included within the scope of the present application.

Claims (14)

1. A cloud disk management method of a cloud host is characterized by comprising the following steps:
the method comprises the steps that a cloud disk association request which is input by a tenant and carries a cloud disk identifier and a cloud host identifier is received by a cloud management platform, wherein the cloud disk identifier is used for identifying a cloud disk of the tenant, and the cloud host identifier is used for identifying a cloud host of the tenant;
the cloud management platform receives a cloud disk configuration request input by the tenant, and disk configuration information is set in a cloud disk according to the cloud disk configuration request;
the cloud management platform determines the cloud disk and the cloud host according to the cloud disk association request, and sets the cloud disk in the cloud host, wherein the disk configuration information is used for indicating the cloud host to configure the cloud disk.
2. The method according to claim 1, wherein before the cloud management platform receives the cloud disk setting request carrying the cloud disk identifier and the cloud host identifier and input by the tenant, the method further comprises:
the cloud management platform receives a cloud disk creation request input by the tenant, and creates the cloud disk according to the cloud disk creation request, wherein the cloud disk is provided with the cloud disk identifier.
3. The method according to claim 1 or 2, wherein the disk configuration information includes a capacity expansion flag, and the capacity expansion flag is used to instruct the cloud host to expand the capacity of an existing disk by using the cloud disk.
4. The method according to claim 1 or 2, wherein the disk configuration information includes a formatting identifier, and the formatting identifier is used to instruct the cloud host to format the cloud disk, and set the formatted cloud disk as a bare disk.
5. The method according to claim 1 or 2, wherein the disk configuration information includes a data reservation identifier, and the data reservation identifier is used to instruct the cloud host to reserve data in the cloud disk and set the cloud disk as a newly added disk.
6. The method of claim 1 or 2, wherein the cloud hosts managed by the cloud management platform comprise: a container, a virtual machine, or a bare metal server.
7. A cloud disk management device of a cloud host is characterized by comprising:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a cloud disk association request which is input by a tenant and carries a cloud disk identifier and a cloud host identifier, the cloud disk identifier is used for identifying a cloud disk of the tenant, and the cloud host identifier is used for identifying a cloud host of the tenant;
the receiving module is further configured to receive a cloud disk configuration request input by the tenant, and set disk configuration information in a cloud disk according to the cloud disk configuration request;
and the processing module is used for determining the cloud disk and the cloud host according to the cloud disk association request and arranging the cloud disk on the cloud host, wherein the disk configuration information is used for indicating the cloud host to configure the cloud disk.
8. The apparatus of claim 7,
the receiving module is further configured to receive a cloud disk creation request input by the tenant, and create the cloud disk according to the cloud disk creation request, where the cloud disk is provided with the cloud disk identifier.
9. The apparatus according to claim 7 or 8, wherein the disk configuration information includes a capacity expansion flag, and the capacity expansion flag is used to instruct the cloud host to expand the capacity of an existing disk by using the cloud disk.
10. The apparatus according to claim 7 or 8, wherein the disk configuration information includes a formatting identifier, and the formatting identifier is used to instruct the cloud host to format the cloud disk, and set the formatted cloud disk as a bare disk.
11. The apparatus according to claim 7 or 8, wherein the disk configuration information includes a data reservation identifier, and the data reservation identifier is configured to instruct the cloud host to reserve data in the cloud disk and set the cloud disk as a newly added disk.
12. The apparatus according to claim 7 or 8, wherein the cloud host managed by the cloud disk management apparatus comprises: a container, a virtual machine, or a bare metal server.
13. A computer device, characterized in that the computer device comprises: a processor and a memory, the memory having stored therein a computer program; the computer device implementing the method of any one of claims 1 to 6 when the processor executes the computer program.
14. A storage medium, wherein instructions of the storage medium, when executed by a processor, implement the method of any one of claims 1 to 6.
CN202011027363.6A 2020-09-25 2020-09-25 Cloud disk management method and device for cloud host, computer equipment, and storage medium Pending CN114253463A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011027363.6A CN114253463A (en) 2020-09-25 2020-09-25 Cloud disk management method and device for cloud host, computer equipment, and storage medium
PCT/CN2021/119848 WO2022063161A1 (en) 2020-09-25 2021-09-23 Management method and apparatus for cloud disk by cloud host, and computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011027363.6A CN114253463A (en) 2020-09-25 2020-09-25 Cloud disk management method and device for cloud host, computer equipment, and storage medium

Publications (1)

Publication Number Publication Date
CN114253463A true CN114253463A (en) 2022-03-29

Family

ID=80789395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011027363.6A Pending CN114253463A (en) 2020-09-25 2020-09-25 Cloud disk management method and device for cloud host, computer equipment, and storage medium

Country Status (2)

Country Link
CN (1) CN114253463A (en)
WO (1) WO2022063161A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116009777A (en) * 2022-12-23 2023-04-25 京东科技信息技术有限公司 Cloud hard disk management method, device, equipment and medium
WO2025139741A1 (en) * 2023-12-27 2025-07-03 中兴通讯股份有限公司 Disk processing method and apparatus

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150180948A1 (en) * 2012-07-06 2015-06-25 Zte Corporation United cloud disk client, server, system and united cloud disk serving method
CN106886369A (en) * 2017-01-22 2017-06-23 武汉噢易云计算股份有限公司 A kind of cloud hard disk management method and system based on OpenStack cloud platforms
CN108196943A (en) * 2018-02-06 2018-06-22 北京百度网讯科技有限公司 Virtual machine management method and device
CN109995814A (en) * 2017-12-29 2019-07-09 中移(苏州)软件技术有限公司 Moving method and device, communication equipment, the storage medium of cloud host resource
CN110046026A (en) * 2019-04-22 2019-07-23 无锡华云数据技术服务有限公司 Cloud host specifies virtual disk method for limiting speed, calculates equipment and cloud platform
CN110209342A (en) * 2018-03-26 2019-09-06 腾讯科技(深圳)有限公司 Expansion method, device, equipment and the system of cloud hard disk
CN110515539A (en) * 2019-07-22 2019-11-29 平安科技(深圳)有限公司 Cloud disk hanging method, device, equipment and storage medium based on cloud storage

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8726020B2 (en) * 2006-05-31 2014-05-13 Microsoft Corporation Updating configuration information to a perimeter network
CN105808312B (en) * 2014-12-30 2019-08-06 华为技术有限公司 A method and device for provisioning virtual volumes
CN105095023B (en) * 2015-08-18 2018-07-06 北京皮尔布莱尼软件有限公司 A kind of cloud host creating device, method and computing device
CN108322325B (en) * 2017-06-27 2020-10-09 新华三云计算技术有限公司 Virtual machine management method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150180948A1 (en) * 2012-07-06 2015-06-25 Zte Corporation United cloud disk client, server, system and united cloud disk serving method
CN106886369A (en) * 2017-01-22 2017-06-23 武汉噢易云计算股份有限公司 A kind of cloud hard disk management method and system based on OpenStack cloud platforms
CN109995814A (en) * 2017-12-29 2019-07-09 中移(苏州)软件技术有限公司 Moving method and device, communication equipment, the storage medium of cloud host resource
CN108196943A (en) * 2018-02-06 2018-06-22 北京百度网讯科技有限公司 Virtual machine management method and device
CN110209342A (en) * 2018-03-26 2019-09-06 腾讯科技(深圳)有限公司 Expansion method, device, equipment and the system of cloud hard disk
CN110046026A (en) * 2019-04-22 2019-07-23 无锡华云数据技术服务有限公司 Cloud host specifies virtual disk method for limiting speed, calculates equipment and cloud platform
CN110515539A (en) * 2019-07-22 2019-11-29 平安科技(深圳)有限公司 Cloud disk hanging method, device, equipment and storage medium based on cloud storage

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116009777A (en) * 2022-12-23 2023-04-25 京东科技信息技术有限公司 Cloud hard disk management method, device, equipment and medium
WO2025139741A1 (en) * 2023-12-27 2025-07-03 中兴通讯股份有限公司 Disk processing method and apparatus

Also Published As

Publication number Publication date
WO2022063161A1 (en) 2022-03-31

Similar Documents

Publication Publication Date Title
EP3686739B1 (en) Method and system for enabling agentless backup and restore operations on a container orchestration platform
US8127094B2 (en) Data migration and copying in a storage system with dynamically expansible volumes
KR102100323B1 (en) Method and server for the service of machine learning platform
US8434078B2 (en) Quick deployment method
US8412901B2 (en) Making automated use of data volume copy service targets
US9052940B2 (en) System for customized virtual machine for a target hypervisor by copying image file from a library, and increase file and partition size prior to booting
JP4797636B2 (en) Complex information platform apparatus and information processing apparatus configuration method thereof
US10666513B2 (en) Filesystem share auto-detect
CN106331075B (en) Method, metadata server and manager for storing files
JP2009237826A (en) Storage system and volume management method therefor
CN105095103A (en) Storage device management method and device used for cloud environment
WO2022063161A1 (en) Management method and apparatus for cloud disk by cloud host, and computer device and storage medium
JP2011248658A (en) Virtual server deployment management apparatus and method, and program for the same
WO2019162829A1 (en) Fast recovery from failures in a chronologically ordered log-structured key-value storage system
CN109857519A (en) The processing method and relevant apparatus of virtual disk
CN110321077B (en) Method and device for managing centrally stored files
US20160036632A1 (en) Computer system
CN110870275B (en) Method and apparatus for shared memory file transfer
CN113127258A (en) Data backup method, device, equipment and medium
US11734136B1 (en) Quick disaster recovery in distributed computing environment
US11853782B2 (en) Method and system for composing systems using resource sets
JP2024524398A (en) Method, apparatus and system for managing storage resources of a container cluster - Patents.com
US10496305B2 (en) Transfer of a unique name to a tape drive
CN113760446A (en) Resource scheduling method, device, equipment and medium
CN117251297B (en) Equipment distribution method, electronic equipment and storage medium

Legal Events

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