WO2022063161A1 - Management method and apparatus for cloud disk by cloud host, and computer device and storage medium - Google Patents

Management method and apparatus for cloud disk by cloud host, and computer device and storage medium Download PDF

Info

Publication number
WO2022063161A1
WO2022063161A1 PCT/CN2021/119848 CN2021119848W WO2022063161A1 WO 2022063161 A1 WO2022063161 A1 WO 2022063161A1 CN 2021119848 W CN2021119848 W CN 2021119848W WO 2022063161 A1 WO2022063161 A1 WO 2022063161A1
Authority
WO
WIPO (PCT)
Prior art keywords
cloud
disk
cloud disk
host
identifier
Prior art date
Application number
PCT/CN2021/119848
Other languages
French (fr)
Chinese (zh)
Inventor
罗思标
Original Assignee
华为云计算技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为云计算技术有限公司 filed Critical 华为云计算技术有限公司
Publication of WO2022063161A1 publication Critical patent/WO2022063161A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/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]

Definitions

  • the present application relates to the technical field of cloud computing, and in particular, to a cloud disk management method and device for a cloud host, computer equipment, and a storage medium.
  • Cloud host refers to a complete computer system with complete hardware system functions simulated by software and running in a completely isolated environment. Cloud host is also called virtual machine.
  • Cloud disk refers to a disk simulated by software, which has the same function as a physical disk and can be mounted to a cloud host for use.
  • Cloud disk includes: system disk and data disk.
  • the system disk is used to store data related to the operating system of the cloud host.
  • the data disk is used to store the non-operating system data of the cloud host. For example, the data disk of the cloud host is used to store user data of the cloud host.
  • the present application provides a cloud disk management method and device, computer equipment, and storage medium of a cloud host, which realizes the automatic process of setting the cloud disk on the cloud host.
  • the technical solutions provided by this application are as follows:
  • the present application provides a cloud disk management method for a cloud host.
  • the cloud disk management method of the cloud host includes: the cloud management platform receives a cloud disk association request input by the tenant and carries the cloud disk identifier and the cloud host identifier, the cloud disk identifier is used to identify the tenant's cloud disk, and the cloud host identifier is used to identify the tenant.
  • the cloud management platform receives the cloud disk configuration request input by the tenant, and sets the disk configuration information in the 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 For the cloud host, the disk configuration information is used to instruct the cloud host to configure the cloud disk.
  • the cloud management platform can determine the cloud disk and cloud host that need to be associated, and by receiving the cloud disk configuration request sent by the tenant, the cloud management platform can The configuration request sets the disk configuration information in the cloud disk, and sets the cloud disk to be associated with the cloud host to be associated, so that the cloud host can set the cloud disk according to the disk configuration information, and realizes the setting of the cloud disk on the cloud host.
  • the automated process eliminates the need for tenants to manually configure cloud disks, and correspondingly reduces the adverse effects of misoperations caused by tenants' manual configuration.
  • the tenant can send a cloud disk creation request to the cloud management platform to request the cloud management platform to create a cloud disk according to the cloud disk creation request, so as to facilitate the provision of the cloud disk to the tenant.
  • the purchased cloud host is configured with a cloud disk.
  • the cloud disk has a cloud disk identifier, and the cloud disk identifier is used to uniquely identify the cloud disk.
  • the cloud disk management method of the cloud host further includes: the cloud management platform receives the cloud disk creation request input by the tenant, according to The cloud disk creation request creates a cloud disk, wherein the cloud disk is set with a cloud disk identifier.
  • the cloud disk created by the cloud disk creation request may be a cloud disk purchased with the cloud host, or may be a cloud disk purchased by the tenant alone, or may be an original cloud disk for the cloud host. A cloud disk for expansion.
  • the source of the data volume on which the cloud disk is created can be selected according to application requirements.
  • the cloud disk configuration request is used to reflect the tenant's setting requirements for the cloud disk. According to different setting requirements, the cloud disk configuration request includes different contents.
  • the cloud disk configuration request can be implemented in at least the following ways:
  • the disk configuration information includes a capacity expansion identifier, and the capacity expansion identifier is used to instruct the cloud host to use the cloud disk to expand the existing disk.
  • the cloud host reads the expansion identifier of the cloud disk, it knows that the cloud disk needs to be expanded, and then performs the expansion operation on the expanded cloud disk.
  • the disk configuration information includes a format identifier, where the format identifier is used to instruct the cloud host to format the cloud disk, and set the formatted cloud disk as a raw disk.
  • the cloud host reads the format identifier of the cloud disk, it knows that the cloud disk needs to be formatted, and the formatted cloud disk is set as a raw disk.
  • the disk configuration information includes a data retention identifier
  • the data retention identifier is used to instruct the cloud host to retain data in the cloud disk, and set the cloud disk as a newly added disk.
  • the cloud host reads the data retention identifier, it can retain the data in the cloud disk while setting the cloud disk.
  • the cloud hosts managed by the cloud management platform include: containers, virtual machines or bare metal servers.
  • the present application provides a cloud disk management device for a cloud host, including: a receiving module for receiving a cloud disk association request input by a tenant and carrying a cloud disk identifier and a cloud host identifier, the cloud disk identifier being used to identify The cloud disk of the tenant, the cloud host identifier is used to identify the cloud host of the tenant; the receiving module is also used to receive the cloud disk configuration request input by the tenant, and set the disk configuration information in the cloud disk according to the cloud disk configuration request; the processing module is used for The cloud disk and the cloud host are determined according to the cloud disk association request, and the cloud disk is set on the cloud host, wherein the disk configuration information is used to instruct the cloud host to configure the cloud disk.
  • the receiving module is further configured to receive a cloud disk creation request input by the tenant, and create a cloud disk according to the cloud disk creation request, wherein the cloud disk is set with a cloud disk identifier.
  • the disk configuration information includes a capacity expansion identifier, and the capacity expansion identifier is used to instruct the cloud host to use the cloud disk to expand the existing disk.
  • the disk configuration information includes a format identifier, where the format identifier is used to instruct the cloud host to format the cloud disk, and set the formatted cloud disk as a raw disk.
  • the disk configuration information includes a data retention identifier, where the data retention identifier is used to instruct the cloud host to retain data in the cloud disk, and set the cloud disk as a newly added disk.
  • the cloud host managed by the cloud disk management apparatus includes: a container, a virtual machine or a bare metal server.
  • the present application provides a computer device, the computer device includes: a processor and a memory, and a computer program is stored in the memory; when the processor executes the computer program, the computer device implements the method provided by the first aspect of the present application.
  • 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 in the first aspect of the present application is implemented.
  • the present application provides a computer program product comprising instructions, which, when the computer program product is run on a computer, causes the computer to execute the method provided in the first aspect of the present application.
  • FIG. 1 is a schematic diagram of an implementation scenario involved in a cloud disk management method for a cloud host provided by an embodiment of the present application;
  • FIG. 2 is a method flowchart of a method for managing a cloud disk of a cloud host provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of a purchase interface for purchasing a cloud disk provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a management interface of a cloud management platform provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a management interface of another cloud management platform provided by an embodiment of the present application.
  • FIG. 6 is a flowchart of a method for configuring a cloud disk by a cloud host provided by an embodiment of the present application
  • FIG. 7 is a schematic diagram of information of a cloud disk of a cloud host acquired according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of acquired logical volume information of a cloud host provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of the state of the disk 1 before a capacity expansion operation is performed according to an embodiment of the present application.
  • FIG. 10 is a schematic diagram of the state of the disk 1 after a capacity expansion operation provided by an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a cloud disk management device of a cloud host provided by an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
  • the embodiment of the present application provides a cloud disk management method for a cloud host.
  • the cloud disk management method of the cloud host is applied to a cloud management platform.
  • the cloud management platform receives the cloud disk association request that carries the cloud disk identifier and the cloud host identifier entered by the tenant, and the cloud management platform receives the cloud disk configuration request input by the tenant, sets the disk configuration information in the cloud disk according to the cloud disk configuration request, and then , 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.
  • the cloud disk identifier is used to identify the tenant's cloud disk
  • the cloud host identifier is used to identify the tenant's cloud host.
  • the disk configuration information is used to instruct the cloud host to configure the cloud disk.
  • the cloud management platform can determine the cloud disk and cloud host that need to be associated, and by receiving the cloud disk configuration request sent by the tenant, the cloud management platform can The configuration request sets the disk configuration information in the cloud disk, and sets the cloud disk to be associated with the cloud host to be associated, so that the cloud host can set the cloud disk according to the disk configuration information, and realizes the setting of the cloud disk on the cloud host.
  • the automated process eliminates the need for tenants to manually configure cloud disks, and correspondingly reduces the adverse effects of misoperations caused by tenants' manual configuration.
  • FIG. 1 is a schematic diagram of an implementation scenario involved in a cloud disk management method for a cloud host provided by an embodiment of the present application.
  • the implementation scenario includes: a cloud management platform 11 , a cloud host 12 and a cloud disk 13 deployed in the cloud platform 1 .
  • a large number of basic resources owned by the cloud service provider are deployed in the cloud platform 1, and the cloud platform 1 can use the basic resources to provide cloud services to tenants.
  • the basic resources may include computing resources, storage resources, network resources, etc., and the computing resources may be a large number of computing devices (eg, servers).
  • the cloud management platform 11 , the cloud host 12 and the cloud disk 13 can be implemented according to the basic resources in the cloud platform 1 .
  • the cloud management platform 11 may be implemented by software deployed on computing resources, where the software is used to implement the cloud disk management method of the cloud host provided by the embodiment of the present application.
  • the cloud host 12 may be a virtual machine or container simulated by software on the basic resource, or the basic resource includes a bare metal server, and the cloud host 12 may be a bare metal server in the cloud platform 1 .
  • the cloud host 12 is used to implement the tenant's business and provide the tenant with cloud services.
  • the tenant's services include software application services created by the cloud platform 1 according to the user's service requirements, such as language recognition services, video review services, or image rendering services.
  • the cloud disk 13 may be a disk simulated by software using basic resources, and the cloud disk 13 has basically the same function as a physical disk.
  • the cloud disk 13 may be a cloud disk purchased together with the cloud host 12 , and in this case, the cloud disk 13 may be called a newly added cloud disk.
  • the cloud disk 13 may be called a newly added cloud disk.
  • the cloud disk that has been mounted on the cloud host 12 can be obtained.
  • Initializing and configuring the cloud disk 13 includes creating a partition for the cloud disk 13 , initializing the file system of the cloud disk 13 , and assigning a drive letter to the cloud disk 13 .
  • the mounting refers to configuring the cloud disk 13 as a component of the cloud host 12 , so that the cloud host 12 can identify the cloud disk 13 , so that the cloud host 12 can operate the cloud disk 13 .
  • the connection between the cloud disk 13 and the cloud host 12 refers to establishing a communication connection between the cloud disk 13 and the cloud host 12 , so that the cloud disk 13 and the cloud host 12 can exchange information.
  • the cloud disk 13 may be a cloud disk purchased by the tenant separately, and in this case, the cloud disk 13 may also be referred to as a newly added cloud disk.
  • 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, create a partition for the cloud disk 13, initialize the file system and Assign configuration such as drive letter to cloud disk 13.
  • the cloud disk 13 may be a cloud disk that expands the original cloud disk of the cloud host.
  • the cloud disk 13 may also be called a capacity-expanding cloud disk.
  • the newly added cloud disk can also be classified into: two kinds. 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. At this time, the newly added cloud disk can be called no data. , or a blank new cloud disk.
  • the data volume of the newly added cloud disk is created from a data volume with data such as a mirror image, backup, or snapshot of the data disk, the new cloud disk obtained by creating the volume can be called a newly added cloud disk with data.
  • the new cloud disk obtained by creating the volume can also be called a new cloud disk without capacity expansion.
  • the capacity of the data volume is smaller than the capacity of the new cloud disk obtained by creating the volume, the new cloud disk obtained by creating the volume can also be called a new cloud disk with capacity expansion.
  • the cloud disk can be automatically set on the cloud host, so that after purchasing the cloud disk, the tenant can directly use the cloud disk without the need for the tenant to manually configure the cloud disk
  • the purchased cloud disk improves the tenant experience.
  • the implementation process of the cloud disk management method of the cloud host may include the following steps:
  • Step 201 The cloud management platform receives a cloud disk creation request input by the tenant, and creates a cloud disk according to the cloud disk creation request, wherein the cloud disk is set with a cloud disk identifier.
  • the tenant can send a cloud disk creation request to the cloud management platform to request the cloud management platform to create a cloud disk according to the cloud disk creation request, so as to facilitate the cloud host purchased from the tenant.
  • Configure cloud disks Moreover, the cloud disk has a cloud disk identifier, and the cloud disk identifier is used to uniquely identify the cloud disk.
  • the cloud disk creation request may carry the cloud disk identifier of the cloud disk to request the cloud management platform to create the cloud disk with the cloud disk identifier.
  • the cloud management platform can receive the cloud disk creation request input by the tenant, and create a cloud disk according to the cloud disk creation request.
  • the cloud disk requested to be created by the cloud disk creation request may be a cloud disk purchased with the cloud host, or may be a cloud disk purchased by the tenant separately, or may be an original cloud disk of the cloud host.
  • the expanded cloud disk, and the source of the data volume on which the cloud disk is created can be selected according to application requirements, which are not specifically limited in this embodiment of the present application.
  • the cloud disk creation request may be triggered by an operation of the tenant purchasing a cloud disk on the management interface of the cloud management platform.
  • the cloud disk creation request may be triggered by the operation of the tenant entering purchase parameters on the purchase interface for purchasing the cloud disk on the cloud management platform, where the purchase parameter is used to reflect the tenant's demand for the cloud disk.
  • the cloud management platform can provide one or more of the following purchase parameters for the purchase of cloud disks: the billing model of the cloud disk, the deployment region of the basic resources used to create the cloud disk, and where the basic resources are located.
  • the specific availability zone in the deployment region the performance specifications of the cloud disk, the size (capacity) of the cloud disk, the cloud backup function of the cloud disk, the cloud disk identifier of the cloud disk, the purchase time and quantity of the cloud disk.
  • the billing mode of the cloud disk is used to indicate the billing method of the cloud disk, which may include annual/monthly and on-demand billing.
  • the deployment region of the basic resources used to create the cloud disk is used to indicate the geographic location of the physical machine on which the cloud disk is created.
  • the specific availability zone of the basic resource in the deployment region is used to indicate the availability zone of the physical machine on which the cloud disk is created.
  • the performance specifications of the cloud disk are used to indicate the performance indicators of the cloud disk, such as the maximum number of read and write operations per second (input/output operations per second, IOPS), the maximum throughput, and the read and write latency of the cloud disk. and other performance.
  • 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 application.
  • tenants can select the billing method for cloud disks as annual/monthly or on-demand billing in the billing mode selection box, and tenants can select the basis for creating cloud disks in the region selection box.
  • the deployment region of the resources is in any of South China, North China, East China, or Southwest China.
  • Tenants can select the specific availability zone of the basic resource in the deployment region in the selection box of the availability zone.
  • Unavailable Zone 1, Availability Zone 2, Available In Zone 3 or Availability Zone 7 tenants can select the performance specifications of cloud disks that meet the ultra-high IO performance specifications, general-purpose SSD performance specifications, high IO performance specifications, or common IO performance specifications in the disk specification selection box. You can select the size (capacity) of the cloud disk in the selection box of the disk size. Tenants can choose whether to configure the cloud backup function for the cloud disk in the selection box of cloud backup. The tenant can fill in the cloud disk to be purchased in the box of the disk name. The cloud disk identifier of the disk.
  • the tenant can select the purchase duration of the cloud disk in the selection box of the purchase duration, and the tenant can select the cloud disk to be created in the selection box of the purchase amount total.
  • the cloud management platform is also configured with more options, so that tenants can choose some other settings of the cloud disk, such as choosing whether to set it as a shared disk, selecting the interface between the cloud disk and the cloud host Whether it is a small computer system interface (SCSI), select whether the cloud disk is an encrypted disk or whether to add a label to the cloud disk, etc.
  • SCSI small computer system interface
  • FIG. 3 is only an example of a purchase interface, and setting items therein may be added, deleted, or changed according to application requirements, which are not specifically limited in this embodiment of the present application.
  • Step 202 The cloud management platform receives a cloud disk association request input by the tenant and carrying the cloud disk identifier and the cloud host identifier.
  • a tenant can instruct to mount the purchased cloud disk to a cloud host.
  • the instruction to mount the purchased cloud disk to the cloud host will trigger a cloud disk association request. That is, the cloud disk association request is used to request that the cloud disk involved in the cloud disk association request be mounted to the cloud host involved in the cloud disk association request for use.
  • the tenant's instruction operation also includes entering the cloud disk identifiers of the cloud disks to be associated with and the cloud host identifiers of the cloud hosts. , correspondingly, 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.
  • a cloud disk when mounting a cloud disk to a cloud host, from the perspective of a cloud disk, first select a cloud disk, then select the mounting function of the cloud disk, and then select the cloud disk under the mounting function of the cloud disk.
  • the cloud disk needs to be mounted on the cloud host.
  • first select the cloud host from the perspective of the cloud host, first select the cloud host, then select the mount function of the cloud host, and then change the mount function of the cloud host to select the cloud disk that needs to be mounted to the cloud host.
  • FIG. 4 is a schematic diagram of a management interface of a cloud management platform provided by an embodiment of the present application.
  • the tenant can first select the cloud disk to be mounted. As shown in Figure 4, the cloud disk identified as "sluo-ecs-9138-volume-001" is selected. After the tenant selects the mount function of the cloud disk, the tenant's terminal will display the disk mount interface of the cloud disk shown in Figure 4, and then the tenant can select the disk to be mounted on the mount disk interface shown in Figure 4. Cloud hosting.
  • the list of optional cloud hosts includes a list of elastic cloud servers and a list of bare metal servers
  • the list of bare metal servers includes cloud host identifiers "sluo-ecs-001", “zrm-kylin- 001", “zrm-neo-001", “zrm-uos-001”, etc.
  • Figure 4 also shows the options, status, image file name, private Internet protocol of the optional mount point of each cloud host (Internet protocol, IP) address, elastic public IP address, and the availability zone to which the physical machine on which the cloud host is based belongs, the tenant can select the cloud host to which the cloud disk needs to be mounted based on the above information.
  • Internet protocol, IP Internet protocol
  • the tenant After the tenant completes the selection of the cloud host to which the cloud disk needs to be mounted, he or she can click "OK” in the mount disk interface. Clicking "OK” will trigger a cloud disk association request, and the cloud disk will be associated with the cloud disk.
  • the request carries the cloud disk ID "sluo-ecs-9138-volume-001" and the cloud host ID of the cloud host selected by the tenant.
  • FIG. 5 is a schematic diagram of a management interface of another cloud management platform provided by an embodiment of the present application.
  • the tenant can first select the cloud host that is required. As shown in Figure 5, the cloud host with the cloud host ID "sluo-ecs-6075" is selected. After the tenant selects the mount function of the cloud host, the tenant's terminal will display the disk mount interface of the cloud host shown in Figure 5, and then the tenant can select the disk to be mounted on the mount disk interface shown in Figure 5.
  • the cloud disk of the cloud host wherein, the list of optional cloud disks is shown in FIG.
  • the list includes the cloud disk identification as “sluo-ecs-9138-volume-001”, and the “view cloud disk list” is also shown in FIG. 5 button, in addition, a search box S is also shown in FIG. 5 , and the cloud disk identifier of the cloud disk that needs to be mounted to the cloud host can be input in the search box S, so as to realize the search for the cloud disk that needs to be mounted to the cloud host.
  • FIG. 5 also shows the cloud disk identifier, capacity, indication information of whether it is a boot disk, disk type and other related information of the cloud disk, so as to facilitate the tenant to understand the cloud disk.
  • the tenant After the tenant completes the selection of the cloud disk to be mounted to the cloud host, he can click "OK” in the mount disk interface. Clicking "OK” will trigger a cloud disk association request, and the cloud disk will be associated with the cloud disk.
  • the request carries the cloud host ID "sluo-ecs-6075" of the cloud host and the cloud disk ID of the cloud disk selected by the tenant.
  • Step 203 The cloud management platform receives the cloud disk configuration request input by the tenant, and sets the disk configuration information in the cloud disk according to the cloud disk configuration request.
  • the cloud disk configuration request is used to reflect the tenant's setting requirements for the cloud disk. For example, when a tenant needs to expand the capacity of a cloud host, the tenant can enter a cloud disk configuration request requesting capacity expansion to instruct the cloud management platform to expand the capacity of the cloud host. Or, when a tenant needs to add a cloud disk to a cloud host, the tenant can enter a cloud disk configuration request for adding a cloud disk to instruct the cloud management platform to add a cloud disk to the cloud host. Or, when a tenant needs to add a blank new cloud disk to a cloud host, the tenant can enter a cloud disk configuration request for adding a blank new cloud disk to the cloud host to instruct the cloud management platform to add a blank new cloud disk to the cloud host. cloud disk.
  • the tenant can enter a cloud disk configuration request for adding a new cloud disk with data to the cloud host to instruct the cloud management platform to add data to the cloud host. 's new cloud disk.
  • the cloud management platform can receive the cloud disk configuration request. After the cloud management platform receives the cloud disk configuration request, it can learn the tenant's setting requirements for the cloud disk, and perform corresponding configuration operations on the cloud disk according to the setting requirements. The configuration operation of the cloud disk by the cloud management platform will change the cloud disk, and the change can be represented by the disk configuration information. That is, after receiving the cloud disk configuration request input by the tenant, the cloud management platform can set the 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 kind of cloud disk the cloud disk is when reading the cloud disk, and then perform corresponding configuration on the cloud disk.
  • the cloud management platform can set a cloud disk for expansion according to the cloud disk configuration request, and the configuration of the expanded cloud disk can be characterized by the disk configuration information, so that the cloud host is reading
  • the configuration information of the disk it can be known that the cloud disk is an expanded cloud disk, and a capacity expansion operation is performed on the expanded cloud disk.
  • the disk configuration information includes a capacity expansion identifier, and the capacity expansion identifier is used to instruct the cloud host to use the cloud disk to expand the existing disk. That is, when the cloud host reads the expansion identifier of the cloud disk, it knows that the cloud disk needs to be expanded, and then performs the expansion operation on the expanded cloud disk.
  • the cloud management platform can set a new cloud disk according to the cloud disk configuration request, and the configuration of the newly added cloud disk can be characterized by the disk configuration information, so that the When the cloud host reads the configuration information of the disk, it can know that the cloud disk is a newly added cloud disk, and perform operations such as initializing the newly added cloud disk.
  • the disk configuration information includes a newly added identifier, and the newly added identifier is used to instruct the cloud host to perform operations such as initializing and configuring the newly added cloud disk. That is, when the cloud host reads the newly added identifier of the cloud disk, it can know that the corresponding initial configuration and other operations need to be performed on the cloud disk.
  • the cloud management platform can create a cloud disk, format the created cloud disk, and then store the formatted cloud disk. It is set to a bare disk, and the configuration of the new blank cloud disk can be represented by the disk configuration information, so that the cloud host can know that the cloud disk is a blank new cloud disk when it reads the disk configuration information, and Perform operations such as initializing the newly added cloud disk.
  • the disk configuration information includes a format identifier, and the format identifier is used to instruct the cloud host to format the cloud disk, and set the formatted cloud disk as a raw disk. That is, when the cloud host reads the format identifier of the cloud disk, it knows that the cloud disk needs to be formatted, and the formatted cloud disk is set as a raw disk.
  • the cloud management platform can create a cloud disk based on the data volume with data, and retain the cloud disk during the process of creating the cloud disk.
  • the data in the disk, and set the cloud disk as a new disk, and the configuration of the new cloud disk with data can be characterized by the disk configuration information, so that the cloud host can know the disk configuration information when it reads the disk configuration information.
  • a cloud disk is a newly added cloud disk with data, and the corresponding initial configuration and other operations are performed on the newly added cloud disk with data.
  • the disk configuration information includes a data retention identifier
  • the data retention identifier is used to instruct the cloud host to retain the data in the cloud disk, and set the cloud disk as a newly added disk. That is, when the cloud host reads the data retention identifier, it can retain the data in the cloud disk while setting the cloud disk.
  • the user when inputting a cloud disk configuration request, may also indicate a division method for dividing the cloud disk. For example, it indicates how many partitions the cloud disk is divided into and the size of each partition.
  • the disk configuration information further includes a division indication, where the division indication is used to indicate a division manner of the cloud disk.
  • the disk configuration information may include one or more of the above information, which is not specifically limited in this embodiment of the present application.
  • the disk configuration information may include any one of a capacity expansion identifier, a format identifier, and a data retention identifier.
  • the disk configuration information may include a capacity expansion identifier and a data retention identifier.
  • the disk configuration information may include a format identifier and a data retention identifier.
  • the disk configuration information may include an expansion identifier and a format identifier.
  • 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.
  • the cloud management platform can determine the cloud disk to be configured according to the cloud disk identifier carried in the cloud disk association request, and determine the cloud disk that needs to be configured according to the cloud host identifier carried in the cloud disk association request. Establish an associated cloud host, and set the cloud disk on the cloud host, that is, mount the cloud disk to the cloud host, so that the cloud host can read the disk configuration information set in the cloud disk, so that the cloud host can read the disk configuration information according to the disk.
  • the configuration information configures the cloud disk.
  • Step 205 The cloud host configures the cloud disk according to the disk configuration information.
  • the implementation process of this step 205 includes:
  • Step 2051 The cloud host modifies the online state of the cloud disk to online, and modifies the read and write permissions of the cloud disk to read and write permissions.
  • the connection between the cloud disk and the cloud host refers to establishing a communication connection between the cloud disk and the cloud host, so that the cloud disk and the cloud host can exchange information. That is, when the online status of the cloud disk relative to the cloud host is online, the cloud host can communicate with the cloud disk. Therefore, when setting the cloud disk, you need to change the online status of the cloud disk to online first. . In addition, when setting the cloud disk, it is necessary to write information to the cloud disk. Therefore, when setting the cloud disk, it is necessary to ensure that the read and write permissions of the cloud host to the cloud disk are at least readable. The read and write permissions are changed to read and write permissions. Optionally, changing the read and write permissions of the cloud disk to be set to read and write permissions can be implemented by erasing the read-only permissions of the cloud disk.
  • the process of setting the cloud disk by the cloud host may be performed on all data disks in all cloud disks of the cloud host, or may be performed on the detected cloud disks that have not been configured, which is not specifically limited in this embodiment of the present application.
  • the cloud disk includes a system disk and a cloud disk.
  • the system disk is used to store data related to the operating system of the cloud host.
  • Cloud disks are used to store non-operating system data of cloud hosts.
  • a cloud disk of a cloud host is used to store user data of the cloud host.
  • the cloud disks in steps 2051 to 2053 refer to all data disks of the cloud host, and before executing step 2051, it is also necessary to obtain the information of all cloud disks of the cloud host, And filter out all data disks according to the information of all cloud disks, and set all data disks.
  • the information of all cloud disks of the cloud host can be obtained through the disk partition management tool in the operating system of the cloud host, and according to the logic of setting the cloud disks in the operating system of the cloud host, in the cloud host's operating system Data disks are filtered out of all cloud disks.
  • the disk partition management tool diskpart of the Windows operating system can be used to obtain the 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 , you can set all cloud disks whose disk numbers are greater than 0.
  • FIG. 7 is a schematic diagram of information of all cloud disks of a cloud host that is acquired according to an embodiment of the present application.
  • the cloud host includes two cloud disks, and the disk numbers of the two cloud disks are respectively 0 and 1, the status (status) of the cloud disk with disk number 0 is online (online), the total capacity (size) is 40 gigabytes (GB), and the free capacity (free) is 0 bytes (B ), the status of the cloud disk with disk number 1 is offline, the total capacity is 10GB, and the available capacity is 9GB, and it can be determined that the cloud disk with disk number 1 is a data disk, and the disk number is Change the online status of cloud disk 1 to online, and change the read and write permissions of the cloud disk with disk number 1 to read and write permissions.
  • Step 2052 The cloud host expands the cloud disk of the cloud host.
  • Expanding the cloud disk of a cloud host means adding the capacity of the expanded cloud disk to the expanded cloud disk to increase the capacity of the cloud disk.
  • the implementation process of this step 2052 may include:
  • Step 2052a the cloud host determines the logical volume to be expanded in the cloud disk and the expansion volume for expanding the logical volume.
  • the cloud disk to be expanded and the cloud disk used for expansion are usually logical volumes in the cloud disk, that is, the cloud disk to be expanded can be regarded as the logical volume to be expanded, which is used for the expansion of the capacity.
  • a cloud disk whose capacity is expanded by a logical volume can be regarded as a capacity expansion volume (in fact, it is also a logical volume, but for convenience of distinction, it is referred to as a capacity expansion volume in this embodiment of the present application).
  • the expanded logical volume and the expanded volume satisfy: 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.
  • the volume information of all logical volumes of the cloud host can be obtained, and according to the storage address of the cloud disk to which the logical volume indicated by the volume information of the logical volume belongs and the storage address of the logical volume to The expansion volume of the volume to be expanded.
  • the process of expanding the cloud disk by the cloud host can be performed on all logical volumes except the system volume in all cloud disks of the cloud host, and can also be performed on the detected logical volumes that have not been expanded. It is not specifically limited.
  • the information of all logical volumes of the cloud host can be obtained through the disk partition management tool in the operating system of the cloud host, and the logical volume of the cloud host can be set according to the logic of the operating system of the cloud host. All logical volumes except system volumes are filtered out of all logical volumes.
  • the disk partition management tool diskpart of the Windows operating system can be used to obtain the 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 system volume, you can perform expansion operations on all logical volumes with volume numbers greater than 1.
  • FIG. 8 is a schematic diagram of information about all logical volumes of a cloud host that is acquired according to an embodiment of the application.
  • the cloud host includes three logical volumes, and the volume numbers of the three logical volumes are respectively are 0, 1 and 2.
  • the label of the logical volume with the volume number 0 is the system reserved drive letter
  • the file system used is the new technology file system (NTFS)
  • the type is partition type
  • the total capacity (size) is 500 megabytes Bytes (MB)
  • the status (status) is healthy (healthy)
  • info identifies it as a system (system) volume.
  • the cloud disk to which the logical volume with volume number 1 belongs is disk C
  • the file system used is NTFS
  • the type is partition type
  • the total capacity 39 GB
  • the status is healthy
  • the information identifies it as a boot volume.
  • the cloud disk to which the logical volume with volume number 2 belongs is disk D
  • the file system used is NTFS
  • the type is partition type
  • the total capacity is 2014MB
  • the status is healthy. Then, it can be determined that the logical volume whose volume number is 2 is not a system volume, and the expansion operation is performed on the logical volume whose volume number is 2.
  • Step 2052b the cloud host adds the capacity of the expanded volume to the file system of the logical volume.
  • FIG. 9 is a schematic diagram of the state of the disk 1 before the capacity expansion operation is performed
  • FIG. 10 is a schematic diagram of the state of the disk 1 after the capacity expansion operation is performed.
  • the disk 1 before the expansion operation is performed, the disk 1 includes two parts of capacity, one part is the 100GB capacity included in the newly added volume (D:), and the other part is the unallocated 50GB capacity.
  • the unallocated 50GB capacity is the capacity of the expansion volume for expanding the newly added volume (D:)
  • the 50GB capacity of the expanded volume can be added to the file system of the newly added volume (D:).
  • the capacity of the newly added volume (D:) after expansion is 150GB
  • its capacity is equal to the sum of the capacity of the newly added volume (D:) before expansion and the unallocated 50GB capacity.
  • the file system used by the volume (D:) is all NTFS.
  • Step 2053 the cloud host formats the cloud disk.
  • Formatting the cloud disk of the cloud host refers to formatting the newly added cloud disk.
  • the available capacity of the newly added cloud disk is greater than 0.
  • information of all cloud disks of the cloud host can be obtained through a disk partition management tool in the operating system of the cloud host, and a new cloud disk can be determined according to the information of the cloud disk.
  • the disk partition management tool diskpart of the Windows operating system can be used to obtain information of all cloud disks of the cloud host, and determine the cloud disks whose available capacity is greater than 0 as indicated by the information of the cloud disks as new cloud disks.
  • the available capacity of the cloud disk with disk number 0 is 0 bytes (B)
  • the available capacity of the cloud disk with disk number 1 is 9 GB
  • the cloud host can format the newly added cloud disk including: creating a partition for the newly added cloud disk, initializing the file system of the newly added cloud disk, for the new cloud disk. Increase cloud disk allocation drive letter.
  • the cloud host can format the newly added cloud disk including: The cloud disk is assigned a drive letter.
  • creating a partition for the newly added cloud disk may refer to creating a primary partition for the newly added cloud disk, or creating a cloud partition and an extended partition for the newly added cloud disk.
  • Initializing the file system of the newly added cloud disk is to specify the file system used by the newly added cloud disk.
  • the file system used by the newly added cloud disk may be NTFS or other file systems, which are not specifically limited in this embodiment of the present application.
  • Allocating a drive letter to the newly added cloud disk may include: removing the drive letter already occupied by the cloud disk of the current cloud host from the alphabet, obtaining a spare drive letter table, and determining the disk of the newly added cloud disk according to the letters in the spare drive letter table. symbol. For example, when there are multiple newly added cloud disks, drive letters may be assigned to the multiple newly added cloud disks in alphabetical order in the spare drive letter table.
  • the cloud host when the cloud host reads the disk configuration information in the cloud disk, the cloud host may perform some or all of the above steps 2051 to 2053 on the cloud disk, and the steps performed by the cloud host on the cloud disk may be It is determined according to application requirements, which is not specifically limited in this embodiment of the present application.
  • the cloud host when the cloud host reads the disk configuration information in the cloud disk, it can perform the above steps 2051 to 2053 on the cloud disk, regardless of the specific information carried in the disk configuration information.
  • the disk configuration information includes the capacity expansion identifier
  • the cloud host may perform the above steps 2051 and 2052 on the cloud disk.
  • the disk configuration information includes the format identifier
  • the cloud host may perform the above steps 2051 and 2053 on the cloud disk.
  • the cloud host reads the disk configuration information in the cloud disk and performs some or all of the above steps 2051 to 2053 on the cloud disk.
  • cloud management agent software may be set in the operating system of the cloud host, and the cloud management agent software may monitor and read a signal that the disk in the cloud disk in the operating system has capacity expansion or a new disk, and Part or all of the above steps 2051 to 2053 are performed on the cloud disk.
  • the disk configuration information in the cloud disk is read, and some or all of the operations in the above steps 2051 to 2053 are performed on the cloud disk, which can be set as a startup item of the cloud host, so that in This operation is performed during the startup process of the cloud host, so that the tenant can use the set cloud disk after startup.
  • the disk configuration information in the cloud disk is read, and some or all of the operations in the above steps 2051 to 2053 are performed on the cloud disk, which can be set as the system task plan of the cloud host operating system, so that In order to be able to perform this operation in a timely manner, the cloud disk can be configured in a timely manner.
  • the configuration operation for the cloud disk when implemented through the cloud management agent software and/or the system task plan, the configuration operation for the cloud disk may be performed regularly, or the configuration operation for the cloud disk may be performed when a trigger event is detected.
  • the trigger event may include one or more of the following: the cloud host receives a power-on instruction, the cloud host detects an event of adding a new cloud disk to the cloud host, and the cloud host detects that the original cloud disk of the cloud host is expanded. event.
  • step 2052 is performed first, and then step 2053 is performed, the data in the cloud disk will not be lost due to capacity expansion, but formatting the cloud disk may cause data in the cloud disk to be lost.
  • step 2053 expanding the cloud disk first can ensure the security of the data in the cloud disk and avoid the risk of data being formatted and lost due to misoperation.
  • 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.
  • the cloud disk configuration request sent by the tenant the cloud management platform can set the disk configuration information in the cloud disk according to the cloud disk configuration request, and set the cloud disk to be associated with the cloud host through the cloud management platform, so that the cloud host can be based on
  • the disk configuration information is used to set the cloud disk, which realizes the automatic process of setting the cloud disk on the cloud host. It does not require the tenant to manually configure the cloud disk, and correspondingly reduces the adverse effects caused by the misoperation caused by the tenant's manual configuration.
  • the embodiment of the present application also provides a cloud disk management apparatus of a cloud host.
  • the cloud disk management device of the cloud host can be deployed in a cloud management platform.
  • the cloud disk management device 110 of the cloud host includes:
  • the receiving module 1101 is configured to receive a cloud disk association request input by a tenant and carry a cloud disk identifier and a cloud host identifier, where the cloud disk identifier is used to identify the tenant's cloud disk, and the cloud host identifier is used to identify the tenant's cloud host.
  • the receiving module 1101 is further configured to receive a cloud disk configuration request input by the tenant, and set disk configuration information in the cloud disk according to the cloud disk configuration request.
  • the processing module 1102 is configured to determine the cloud disk and the cloud host according to the cloud disk association request, and set the cloud disk on the cloud host, wherein the disk configuration information is used to instruct the cloud host to configure the cloud disk.
  • the receiving module 1101 is further configured to receive a cloud disk creation request input by the tenant, and create a cloud disk according to the cloud disk creation request, wherein the cloud disk is set with a cloud disk identifier.
  • the disk configuration information includes a capacity expansion identifier, and the capacity expansion identifier is used to instruct the cloud host to use the cloud disk to expand the existing disk.
  • the disk configuration information includes a format identifier, where the format identifier is used to instruct the cloud host to format the cloud disk, and set the formatted cloud disk as a raw disk.
  • the disk configuration information includes a data retention identifier, where the data retention identifier is used to instruct the cloud host to retain data in the cloud disk, and set the cloud disk as a newly added disk.
  • the cloud host managed by the cloud disk management apparatus includes: a container, a virtual machine or a bare metal server.
  • the cloud disk association request sent by the tenant is received by the receiving module, so that the cloud disk management device can determine the cloud disk and the cloud host that need to be associated.
  • the receiving module receives the cloud disk configuration request sent by the tenant, so that the cloud disk management device can set the disk configuration information in the cloud disk according to the cloud disk configuration request, and set the cloud disk to be associated with the cloud host to be associated through the processing module, It enables the cloud host to set the cloud disk according to the disk configuration information, realizes the automatic process of setting the cloud disk on the cloud host, does not require the tenant to manually configure the cloud disk, and correspondingly reduces the adverse effects caused by the misoperation caused by the tenant's manual configuration. .
  • FIG. 12 exemplarily provides a possible architectural diagram of a computer device.
  • the computer device 120 may include a processor 1201 , a memory 1202 , a communication interface 1203 and a bus 1204 .
  • the number of processors 1201 may be one or more, and FIG. 12 only illustrates one of the processors 1201 .
  • the processor 1201 may be a central processing unit (Central Processing Unit, CPU). If the computer device has multiple processors 1201, the multiple processors 1201 may be of different types, or may be the same. Optionally, multiple processors of the computer device may also be integrated into a multi-core processor.
  • CPU Central Processing Unit
  • 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.
  • the memory 1202 may be any one or any combination of the following storage media: non-volatile memory (such as read-only memory (Read-Only Memory, ROM), solid state disk (Solid State Disk, SSD), hard disk (Hard Disk) Drive, HDD), optical disc, etc., volatile memory.
  • non-volatile memory such as read-only memory (Read-Only Memory, ROM), solid state disk (Solid State Disk, SSD), hard disk (Hard Disk) Drive, HDD), optical disc, etc., volatile memory.
  • the communication interface 1203 may be any one or any combination of the following devices: a network interface (eg, an Ethernet interface), a wireless network card, and other devices with a network access function.
  • the communication interface 1203 is used for data communication between the computer device and other nodes or other computer devices.
  • FIG. 12 also exemplarily depicts bus 1204 .
  • the bus 1204 can connect the processor 1201 with the memory 1202 and the communication interface 1203 .
  • the processor 1201 can access the memory 1202, and can also use the communication interface 1203 to perform data interaction with other nodes or other computer devices.
  • the computer device executes the computer instructions in the memory 1202 to implement the function of the cloud management platform in the cloud disk management method of the cloud host provided by the present application. For example, receive a cloud disk association request input by the tenant and carry the cloud disk identifier and the cloud host identifier, receive a cloud disk configuration request input by the tenant, set the disk configuration information in the cloud disk according to the cloud disk configuration request, and determine according to the cloud disk association request Cloud disk and cloud host, and set the cloud disk on the cloud host.
  • the implementation process of the steps of the computer device may refer to the corresponding descriptions in the foregoing method embodiments.
  • Embodiments of the present application further provide a storage medium, where the storage medium is a non-volatile computer-readable storage medium.
  • a cloud host such as the cloud host provided by the embodiments of the present application is implemented. Disk management methods.
  • Embodiments of the present application also provide a computer program product including instructions, which, when the computer program product runs on a computer, enables the computer to execute the cloud disk management method of the cloud host provided by the embodiments of the present application.
  • the terms “first”, “second” and “third” are only used for description purposes, and cannot be understood as indicating or implying relative importance.
  • the term “at least one” refers to one or more, and the term “plurality” refers to two or more, unless expressly limited otherwise.

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

A management method and apparatus for a cloud disk by a cloud host, and a computer device and a storage medium, which belong to the technical field of cloud services. The management method for a cloud disk by a cloud host comprises: a cloud management platform receiving a cloud disk association request with a cloud disk identifier and a cloud host identifier that is input by a tenant, 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 receiving a cloud disk configuration request input by the tenant, and setting disk configuration information in the cloud disk according to the cloud disk configuration request; and the cloud management platform determining a cloud disk and a cloud host according to the cloud disk association request, and configuring the cloud disk in the cloud host, wherein the disk configuration information is used for instructing the cloud host to configure the cloud disk. As such, an automated process for configuring a cloud disk in a cloud host is realized.

Description

云主机的云磁盘管理方法及装置、计算机设备、存储介质Cloud disk management method and device for cloud host, computer equipment, and storage medium 技术领域technical field
本申请涉及云计算技术领域,特别涉及一种云主机的云磁盘管理方法及装置、计算机设备、存储介质。The present application relates to the technical field of cloud computing, and in particular, to a cloud disk management method and device for a cloud host, computer equipment, and a storage medium.
背景技术Background technique
随着云计算技术的快速发展,越来越多的用户使用云主机实现自己的业务。云主机是指通过软件模拟的具有完整硬件系统功能的、运行在一个完全隔离环境中的完整计算机系统,云主机也称虚拟机。并且,为保证云主机能够运行,还需要为云主机配置云磁盘。云磁盘是指通过软件模拟的磁盘,与物理磁盘功能一致,可以挂载给云主机使用。云磁盘包括:系统盘和数据盘。系统盘用于存储云主机的操作系统的相关数据。数据盘用于存储云主机的非操作系统数据。例如,云主机的数据盘用于存储该云主机的用户数据。With the rapid development of cloud computing technology, more and more users use cloud hosts to realize their own business. Cloud host refers to a complete computer system with complete hardware system functions simulated by software and running in a completely isolated environment. Cloud host is also called virtual machine. In addition, in order to ensure that the cloud host can run, it is also necessary to configure a cloud disk for the cloud host. Cloud disk refers to a disk simulated by software, which has the same function as a physical disk and can be mounted to a cloud host for use. Cloud disk includes: system disk and data disk. The system disk is used to store data related to the operating system of the cloud host. The data disk is used to store the non-operating system data of the cloud host. For example, the data disk of the cloud host is used to store user data of the cloud host.
目前,用户在购买数据盘后,用户需要先对数据盘执行一系列配置操作,才能使用数据盘。例如,用户在购买数据盘后,用户需要完成对数据盘的联机、初始化、分区和格式化等配置操作后,用户才能使用其购买的数据盘。Currently, after a user purchases a data disk, the user needs to perform a series of configuration operations on the data disk before using the data disk. For example, after a user purchases a data disk, the user needs to complete configuration operations such as online, initialization, partitioning, and formatting of the data disk before the user can use the purchased data disk.
但是,用户需要对数据盘执行的配置操作较繁琐,且容易因误操作导致数据丢失。因此,亟需提供一种自动化地对数据盘进行配置的方法。However, the configuration operation that the user needs to perform on the data disk is cumbersome, and it is easy to cause data loss due to misoperation. Therefore, there is an urgent need to provide a method for automatically configuring a data disk.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种云主机的云磁盘管理方法及装置、计算机设备、存储介质,实现了将云磁盘设置于云主机的自动化过程。本申请提供的技术方案如下:The present application provides a cloud disk management method and device, computer equipment, and storage medium of a cloud host, which realizes the automatic process of setting the cloud disk on the cloud host. The technical solutions provided by this application are as follows:
第一方面,本申请提供了一种云主机的云磁盘管理方法。该云主机的云磁盘管理方法包括:云管理平台接收租户输入的携带有云磁盘标识和云主机标识的云磁盘关联请求,云磁盘标识用于标识租户的云磁盘,云主机标识用于标识租户的云主机;云管理平台接收租户输入的云磁盘配置请求,根据云磁盘配置请求在云磁盘中设置磁盘配置信息;云管理平台根据云磁盘关联请求确定云磁盘和云主机,并将云磁盘设置于云主机,其中,磁盘配置信息用于指示云主机对云磁盘进行配置。In a first aspect, the present application provides a cloud disk management method for a cloud host. The cloud disk management method of the cloud host includes: the cloud management platform receives a cloud disk association request input by the tenant and carries the cloud disk identifier and the cloud host identifier, the cloud disk identifier is used to identify the tenant's cloud disk, and the cloud host identifier is used to identify the tenant. The cloud management platform receives the cloud disk configuration request input by the tenant, and sets the disk configuration information in the 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 For the cloud host, the disk configuration information is used to instruct the cloud host to configure the cloud disk.
这样一来,云管理平台通过接收租户发送的云磁盘关联请求,云管理平台能够确定需要关联的云磁盘和云主机,且通过接收租户发送的云磁盘配置请求,云管理平台能够根据该云磁盘配置请求在云磁盘中设置磁盘配置信息,并将需要关联的云磁盘设置于需要关联的云主机,使得云主机能够根据磁盘配置信息对云磁盘进行设置,实现了将云磁盘设置于云主机的自动化过程,无需租户手动对云磁盘进行配置,并相应减少因租户手动配置导致的误操作产生的不良影响。In this way, by receiving the cloud disk association request sent by the tenant, the cloud management platform can determine the cloud disk and cloud host that need to be associated, and by receiving the cloud disk configuration request sent by the tenant, the cloud management platform can The configuration request sets the disk configuration information in the cloud disk, and sets the cloud disk to be associated with the cloud host to be associated, so that the cloud host can set the cloud disk according to the disk configuration information, and realizes the setting of the cloud disk on the cloud host. The automated process eliminates the need for tenants to manually configure cloud disks, and correspondingly reduces the adverse effects of misoperations caused by tenants' manual configuration.
可选地,租户在需要为其购买的云主机配置云磁盘时,租户可以向云管理平台发送云磁盘创建请求,以请求云管理平台根据该云磁盘创建请求创建云磁盘,以便于向 该租户购买的云主机配置云磁盘。并且,云磁盘具有云磁盘标识,该云磁盘标识用于唯一地标识云磁盘。相应的,云管理平台接收租户输入的携带有云磁盘标识和云主机标识的云磁盘设置请求之前,该云主机的云磁盘管理方法还包括:云管理平台接收租户输入的云磁盘创建请求,根据云磁盘创建请求创建云磁盘,其中,云磁盘设置有云磁盘标识。Optionally, when a tenant needs to configure a cloud disk for the cloud host purchased by the tenant, the tenant can send a cloud disk creation request to the cloud management platform to request the cloud management platform to create a cloud disk according to the cloud disk creation request, so as to facilitate the provision of the cloud disk to the tenant. The purchased cloud host is configured with a cloud disk. Moreover, the cloud disk has a cloud disk identifier, and the cloud disk identifier is used to uniquely identify the cloud disk. Correspondingly, before the cloud management platform receives the cloud disk setting request inputted by the tenant and carrying the cloud disk identifier and the cloud host identifier, the cloud disk management method of the cloud host further includes: the cloud management platform receives the cloud disk creation request input by the tenant, according to The cloud disk creation request creates a cloud disk, wherein the cloud disk is set with a cloud disk identifier.
需要说明的是,该云磁盘创建请求请求创建的云磁盘可以是随云主机一起购买的云磁盘,或者,可以是租户单独购买的云磁盘,又或者,可以是对云主机原有的云磁盘进行扩容的云磁盘。并且,创建云磁盘所依据的数据卷的来源可以根据应用需求进行选择。It should be noted that the cloud disk created by the cloud disk creation request may be a cloud disk purchased with the cloud host, or may be a cloud disk purchased by the tenant alone, or may be an original cloud disk for the cloud host. A cloud disk for expansion. In addition, the source of the data volume on which the cloud disk is created can be selected according to application requirements.
云磁盘配置请求用于反映租户对云磁盘的设置需求。根据不同的设置需求,该云磁盘配置请求包括的内容不同,例如,该云磁盘配置请求至少有以下几种可实现方式:The cloud disk configuration request is used to reflect the tenant's setting requirements for the cloud disk. According to different setting requirements, the cloud disk configuration request includes different contents. For example, the cloud disk configuration request can be implemented in at least the following ways:
在一种可实现方式中,磁盘配置信息包括扩容标识,扩容标识用于指示云主机利用云磁盘对已有磁盘进行扩容。当云主机读取到云磁盘的扩容标识时,可知需要对该云磁盘进行扩容,然后对该扩容的云磁盘执行扩容操作。In an implementation manner, the disk configuration information includes a capacity expansion identifier, and the capacity expansion identifier is used to instruct the cloud host to use the cloud disk to expand the existing disk. When the cloud host reads the expansion identifier of the cloud disk, it knows that the cloud disk needs to be expanded, and then performs the expansion operation on the expanded cloud disk.
在另一种可实现方式中,磁盘配置信息包括格式化标识,格式化标识用于指示云主机对云磁盘进行格式化,并将格式化后的云磁盘设置为裸盘。当云主机读取到云磁盘的格式化标识时,可知需要对该云磁盘进行格式化,并将格式化后的云磁盘设置为裸盘。In another implementation manner, the disk configuration information includes a format identifier, where the format identifier is used to instruct the cloud host to format the cloud disk, and set the formatted cloud disk as a raw disk. When the cloud host reads the format identifier of the cloud disk, it knows that the cloud disk needs to be formatted, and the formatted cloud disk is set as a raw disk.
在又一种可实现方式中,磁盘配置信息包括数据保留标识,数据保留标识用于指示云主机保留云磁盘中的数据,并将云磁盘设置为新增磁盘。当云主机在读取到该数据保留标识时,能够在对该云磁盘进行设置的同时保留该云磁盘中的数据。In yet another implementation manner, the disk configuration information includes a data retention identifier, and the data retention identifier is used to instruct the cloud host to retain data in the cloud disk, and set the cloud disk as a newly added disk. When the cloud host reads the data retention identifier, it can retain the data in the cloud disk while setting the cloud disk.
可选地,云管理平台管理的云主机包括:容器、虚拟机或裸金属服务器。Optionally, the cloud hosts managed by the cloud management platform include: containers, virtual machines or bare metal servers.
第二方面,本申请提供了一种云主机的云磁盘管理装置,包括:接收模块,用于接收租户输入的携带有云磁盘标识和云主机标识的云磁盘关联请求,云磁盘标识用于标识租户的云磁盘,云主机标识用于标识租户的云主机;接收模块,还用于接收租户输入的云磁盘配置请求,根据云磁盘配置请求在云磁盘中设置磁盘配置信息;处理模块,用于根据云磁盘关联请求确定云磁盘和云主机,并将云磁盘设置于云主机,其中,磁盘配置信息用于指示云主机对云磁盘进行配置。In a second aspect, the present application provides a cloud disk management device for a cloud host, including: a receiving module for receiving a cloud disk association request input by a tenant and carrying a cloud disk identifier and a cloud host identifier, the cloud disk identifier being used to identify The cloud disk of the tenant, the cloud host identifier is used to identify the cloud host of the tenant; the receiving module is also used to receive the cloud disk configuration request input by the tenant, and set the disk configuration information in the cloud disk according to the cloud disk configuration request; the processing module is used for The cloud disk and the cloud host are determined according to the cloud disk association request, and the cloud disk is set on the cloud host, wherein the disk configuration information is used to instruct the cloud host to configure the cloud disk.
可选地,接收模块,还用于接收租户输入的云磁盘创建请求,根据云磁盘创建请求创建云磁盘,其中,云磁盘设置有云磁盘标识。Optionally, the receiving module is further configured to receive a cloud disk creation request input by the tenant, and create a cloud disk according to the cloud disk creation request, wherein the cloud disk is set with a cloud disk identifier.
可选地,磁盘配置信息包括扩容标识,扩容标识用于指示云主机利用云磁盘对已有磁盘进行扩容。Optionally, the disk configuration information includes a capacity expansion identifier, and the capacity expansion identifier is used to instruct the cloud host to use the cloud disk to expand the existing disk.
可选地,磁盘配置信息包括格式化标识,格式化标识用于指示云主机对云磁盘进行格式化,并将格式化后的云磁盘设置为裸盘。Optionally, the disk configuration information includes a format identifier, where the format identifier is used to instruct the cloud host to format the cloud disk, and set the formatted cloud disk as a raw disk.
可选地,磁盘配置信息包括数据保留标识,数据保留标识用于指示云主机保留云磁盘中的数据,并将云磁盘设置为新增磁盘。Optionally, the disk configuration information includes a data retention identifier, where the data retention identifier is used to instruct the cloud host to retain 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, the computer device includes: a processor and a memory, and a computer program is stored in the memory; 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 in 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 the computer program product is run on a computer, causes the computer to execute the method provided in the first aspect of the present application.
附图说明Description of drawings
图1是本申请实施例提供的一种云主机的云磁盘管理方法涉及的实施场景的示意图;1 is a schematic diagram of an implementation scenario involved in a cloud disk management method for a cloud host provided by an embodiment of the present application;
图2是本申请实施例提供的一种云主机的云磁盘管理方法的方法流程图;2 is a method flowchart of a method for managing a cloud disk of a cloud host provided by an embodiment of the present application;
图3是本申请实施例提供的一种购买云磁盘的购买界面的示意图;3 is a schematic diagram of a purchase interface for purchasing a cloud disk provided by an embodiment of the present application;
图4是本申请实施例提供的一种云管理平台的管理界面的示意图;4 is a schematic diagram of a management interface of a cloud management platform provided by an embodiment of the present application;
图5是本申请实施例提供的另一种云管理平台的管理界面的示意图;5 is a schematic diagram of a management interface of another cloud management platform provided by an embodiment of the present application;
图6是本申请实施例提供的一种云主机对云磁盘进行配置的方法流程图;6 is a flowchart of a method for configuring a cloud disk by a cloud host provided by an embodiment of the present application;
图7是本申请实施例提供的一种获取的云主机的云磁盘的信息的示意图;7 is a schematic diagram of information of a cloud disk of a cloud host acquired according to an embodiment of the present application;
图8是本申请实施例提供的一种获取的云主机的逻辑卷的信息的示意图;FIG. 8 is a schematic diagram of acquired logical volume information of a cloud host provided by an embodiment of the present application;
图9是本申请实施例提供的一种执行扩容操作前磁盘1的状态示意图;FIG. 9 is a schematic diagram of the state of the disk 1 before a capacity expansion operation is performed according to an embodiment of the present application;
图10是本申请实施例提供的一种执行扩容操作后磁盘1的状态示意图;FIG. 10 is a schematic diagram of the state of the disk 1 after a capacity expansion operation provided by an embodiment of the present application;
图11是本申请实施例提供的一种云主机的云磁盘管理装置的结构示意图;11 is a schematic structural diagram of a cloud disk management device of a cloud host provided by an embodiment of the present application;
图12是本申请实施例提供的一种计算机设备的结构示意图。FIG. 12 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
具体实施方式detailed description
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
为便于理解,下面先对本申请实施例中涉及的名词进行解释。For ease of understanding, the terms involved in the embodiments of the present application are first explained below.
本申请实施例提供了一种云主机的云磁盘管理方法。该云主机的云磁盘管理方法应用于云管理平台。云管理平台接收租户输入的携带有云磁盘标识和云主机标识的云磁盘关联请求,且云管理平台接收租户输入的云磁盘配置请求,根据云磁盘配置请求在云磁盘中设置磁盘配置信息,然后,云管理平台根据云磁盘关联请求确定云磁盘和云主机,并将云磁盘设置于云主机。其中,云磁盘标识用于标识租户的云磁盘,云主机标识用于标识租户的云主机。磁盘配置信息用于指示云主机对云磁盘进行配置。The embodiment of the present application provides a cloud disk management method for a cloud host. The cloud disk management method of the cloud host is applied to a cloud management platform. The cloud management platform receives the cloud disk association request that carries the cloud disk identifier and the cloud host identifier entered by the tenant, and the cloud management platform receives the cloud disk configuration request input by the tenant, sets the disk configuration information in the cloud disk according to the cloud disk configuration request, and then , 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. The cloud disk identifier is used to identify the tenant's cloud disk, and the cloud host identifier is used to identify the tenant's cloud host. The disk configuration information is used to instruct the cloud host to configure the cloud disk.
这样一来,云管理平台通过接收租户发送的云磁盘关联请求,云管理平台能够确定需要关联的云磁盘和云主机,且通过接收租户发送的云磁盘配置请求,云管理平台能够根据该云磁盘配置请求在云磁盘中设置磁盘配置信息,并将需要关联的云磁盘设置于需要关联的云主机,使得云主机能够根据磁盘配置信息对云磁盘进行设置,实现了将云磁盘设置于云主机的自动化过程,无需租户手动对云磁盘进行配置,并相应减少因租户手动配置导致的误操作产生的不良影响。In this way, by receiving the cloud disk association request sent by the tenant, the cloud management platform can determine the cloud disk and cloud host that need to be associated, and by receiving the cloud disk configuration request sent by the tenant, the cloud management platform can The configuration request sets the disk configuration information in the cloud disk, and sets the cloud disk to be associated with the cloud host to be associated, so that the cloud host can set the cloud disk according to the disk configuration information, and realizes the setting of the cloud disk on the cloud host. The automated process eliminates the need for tenants to manually configure cloud disks, and correspondingly reduces the adverse effects of misoperations caused by tenants' manual configuration.
图1是本申请实施例提供的一种云主机的云磁盘管理方法涉及的实施场景的示意图。如图1所示,该实施场景包括:部署在云平台1中的云管理平台11、云主机12 和云磁盘13。云平台1中部署有云服务提供商拥有的大量基础资源,云平台1可以利用该基础资源向租户提供云服务。该基础资源可以包括计算资源、存储资源和网络资源等,且该计算资源可以是大量的计算设备(例如服务器)。FIG. 1 is a schematic diagram of an implementation scenario involved in a cloud disk management method for a cloud host provided by an embodiment of the present application. As shown in FIG. 1 , the implementation scenario includes: a cloud management platform 11 , a cloud host 12 and a cloud disk 13 deployed in the cloud platform 1 . A large number of basic resources owned by the cloud service provider are deployed in the cloud platform 1, and the cloud platform 1 can use the basic resources to provide cloud services to tenants. The basic resources may include computing resources, storage resources, network resources, etc., and the computing resources may be a large number of computing devices (eg, servers).
云管理平台11、云主机12和云磁盘13可以根据该云平台1中的基础资源实现。在一种可实现方式中,云管理平台11可以通过部署在计算资源上的软件实现,该软件用于实现本申请实施例提供的云主机的云磁盘管理方法。可选的,云主机12可以为在基础资源上通过软件模拟出的虚拟机或容器,或者,基础资源包括裸金属服务器,云主机12可以为云平台1中的裸金属服务器。该云主机12用于实现租户的业务,为租户提供云服务。其中,租户的业务包括云平台1根据用户的业务需求创建的软件应用业务,例如:语言识别服务、视频审核服务或图像渲染服务等。云磁盘13可以是利用基础资源通过软件模拟的磁盘,该云磁盘13具有与物理磁盘基本一致的功能。The cloud management platform 11 , the cloud host 12 and the cloud disk 13 can be implemented according to the basic resources in the cloud platform 1 . In an implementation manner, the cloud management platform 11 may be implemented by software deployed on computing resources, where the software is used to implement the cloud disk management method of the cloud host provided by the embodiment of the present application. Optionally, the cloud host 12 may be a virtual machine or container simulated by software on the basic resource, or the basic resource includes a bare metal server, and the cloud host 12 may be a bare metal server in the cloud platform 1 . The cloud host 12 is used to implement the tenant's business and provide the tenant with cloud services. The tenant's services include software application services created by the cloud platform 1 according to the user's service requirements, such as language recognition services, video review services, or image rendering services. The cloud disk 13 may be a disk simulated by software using basic resources, and the cloud disk 13 has basically the same function as a physical disk.
可选的,云磁盘13可以是随云主机12一起购买的云磁盘,此时该云磁盘13可称为新增云磁盘。在该情况下,租户购买完成后,可以得到已挂载在云主机12上的云磁盘。此时在云主机12使用云磁盘13之前,需要先将云磁盘13与云主机12联机、对云磁盘13进行初始化配置等。对云磁盘13进行初始化配置包括为云磁盘13创建分区,初始化云磁盘13的文件系统,及为云磁盘13分配盘符等。其中,挂载指将云磁盘13配置为云主机12的一个组成部分,使得云主机12能够识别该云磁盘13,以便云主机12能够对该云磁盘13进行操作。云磁盘13与云主机12联机是指建立云磁盘13与云主机12之间的通信连接,使得云磁盘13与云主机12能够互通信息。Optionally, the cloud disk 13 may be a cloud disk purchased together with the cloud host 12 , and in this case, the cloud disk 13 may be called a newly added cloud disk. In this case, after the tenant purchases, the cloud disk that has been mounted on the cloud host 12 can be obtained. At this time, before the cloud host 12 uses the cloud disk 13 , it is necessary to connect the cloud disk 13 with the cloud host 12 , initialize the configuration of the cloud disk 13 , and the like. Initializing and configuring the cloud disk 13 includes creating a partition for the cloud disk 13 , initializing the file system of the cloud disk 13 , and assigning a drive letter to the cloud disk 13 . The mounting refers to configuring the cloud disk 13 as a component of the cloud host 12 , so that the cloud host 12 can identify the cloud disk 13 , so that the cloud host 12 can operate the cloud disk 13 . The connection between the cloud disk 13 and the cloud host 12 refers to establishing a communication connection between the cloud disk 13 and the cloud host 12 , so that the cloud disk 13 and the cloud host 12 can exchange information.
或者,云磁盘13可以是租户单独购买的云磁盘,此时该云磁盘13也可称为新增云磁盘。此时,在云主机12使用云磁盘13之前,需要先将云磁盘13挂载在云主机12上,并对云磁盘13进行联机、为云磁盘13创建分区、初始化云磁盘13的文件系统及为云磁盘13分配盘符等配置。Alternatively, the cloud disk 13 may be a cloud disk purchased by the tenant separately, and in this case, the cloud disk 13 may also be referred to as a newly 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, create a partition for the cloud disk 13, initialize the file system and Assign configuration such as drive letter to cloud disk 13.
又或者,云磁盘13可以是对云主机原有的云磁盘进行扩容的云磁盘,此时该云磁盘13也可称为扩容云磁盘。此时,在云主机12使用云磁盘13之前,需要根据该扩容数据盘对该云主机12原有的云磁盘执行扩容操作,即将该扩容数据盘的容量加入至该云主机12原有的云磁盘的文件系统中。Alternatively, the cloud disk 13 may be a cloud disk that expands the original cloud disk of the cloud host. In this case, the cloud disk 13 may also be called a capacity-expanding 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, add the capacity of the expanded data disk to the original cloud disk of the cloud host 12. in the file system of the disk.
并且,当云磁盘13是随云主机12一起购买的新增云磁盘,或者,是租户单独购买的新增云磁盘时,根据云磁盘13的数据卷来源,该新增云磁盘还可以分为两种。也即是,当新增的数据卷的来源是空白卷时,该新增云磁盘是空白的云磁盘,即该新增云磁盘中无数据,此时该新增云磁盘可以称为无数据的新增云磁盘或空白的新增云磁盘。当新增云磁盘的数据卷是根据数据盘的镜像、备份或快照等有数据的数据卷创卷时,创卷得到的新增云磁盘可以称为有数据的新增云磁盘。并且,若创卷所依据的数据卷的容量等于创卷得到的新增云磁盘的容量,创卷得到的新增云磁盘又可称为无扩容的新增云磁盘,若创卷所依据的数据卷的容量小于创卷得到的新增云磁盘的容量时,创卷得到的新增云磁盘又可称为有扩容的新增云磁盘。Moreover, when the cloud disk 13 is a newly added cloud disk purchased together with the cloud host 12, or is a newly added cloud disk purchased by the tenant alone, according to the data volume source of the cloud disk 13, the newly added cloud disk can also be classified into: two kinds. 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. At this time, the newly added cloud disk can be called no data. , or a blank new cloud disk. When the data volume of the newly added cloud disk is created from a data volume with data such as a mirror image, backup, or snapshot of the data disk, the new cloud disk obtained by creating the volume can be called a newly added cloud disk with data. In addition, if the capacity of the data volume on which the volume is created is equal to the capacity of the new cloud disk obtained by creating the volume, the new cloud disk obtained by creating the volume can also be called a new cloud disk without capacity expansion. When the capacity of the data volume is smaller than the capacity of the new cloud disk obtained by creating the volume, the new cloud disk obtained by creating the volume can also be called a new cloud disk with capacity expansion.
通过本申请实施例提供的云主机的云磁盘管理方法,能够将云磁盘自动化地设置于云主机,使得租户在购买云磁盘后,在无需租户手动对云磁盘进行配置的情况下即能够直接使用购买的云磁盘,提高了租户体验。With the cloud disk management method of the cloud host provided by the embodiment of the present application, the cloud disk can be automatically set on the cloud host, so that after purchasing the cloud disk, the tenant can directly use the cloud disk without the need for the tenant to manually configure the cloud disk The purchased cloud disk improves the tenant experience.
下面对本申请实施例提供的一种云主机的云磁盘管理方法的实现过程进行说明。如图2所示,该云主机的云磁盘管理方法的实现过程可以包括以下步骤:The following describes an implementation process of a cloud disk management method for a cloud host provided by an embodiment of the present application. As shown in Figure 2, the implementation process of the cloud disk management method of the cloud host may include the following steps:
步骤201、云管理平台接收租户输入的云磁盘创建请求,根据云磁盘创建请求创建云磁盘,其中,云磁盘设置有云磁盘标识。Step 201: The cloud management platform receives a cloud disk creation request input by the tenant, and creates a cloud disk according to the cloud disk creation request, wherein the cloud disk is set with a cloud disk identifier.
租户在需要为其购买的云主机配置云磁盘时,租户可以向云管理平台发送云磁盘创建请求,以请求云管理平台根据该云磁盘创建请求创建云磁盘,以便于向该租户购买的云主机配置云磁盘。并且,云磁盘具有云磁盘标识,该云磁盘标识用于唯一地标识云磁盘。相应的,云磁盘创建请求中可以携带有云磁盘的云磁盘标识,以请求云管理平台创建标识为该云磁盘标识的云磁盘。在租户发送云磁盘创建请求后,云管理平台可以接收租户输入的云磁盘创建请求,并根据该云磁盘创建请求创建云磁盘。When a tenant needs to configure a cloud disk for the cloud host purchased by the tenant, the tenant can send a cloud disk creation request to the cloud management platform to request the cloud management platform to create a cloud disk according to the cloud disk creation request, so as to facilitate the cloud host purchased from the tenant. Configure cloud disks. Moreover, the cloud disk has a cloud disk identifier, and the cloud disk identifier is used to uniquely identify the cloud disk. Correspondingly, the cloud disk creation request may carry the cloud disk identifier of the cloud disk to request the cloud management platform to create the cloud disk with the cloud disk identifier. After the tenant sends a cloud disk creation request, the cloud management platform can 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 requested to be created by the cloud disk creation request may be a cloud disk purchased with the cloud host, or may be a cloud disk purchased by the tenant separately, or may be an original cloud disk of the cloud host. The expanded cloud disk, and the source of the data volume on which the cloud disk is created can be selected according to application requirements, which are not specifically limited in this embodiment of the present application.
在一种可实现方式中,该云磁盘创建请求可以通过租户在云管理平台的管理界面上购买云磁盘的操作触发。例如,云磁盘创建请求可以由租户在云管理平台上购买云磁盘的购买界面上输入购买参数的操作触发,该购买参数用于反映租户对云磁盘的需求。In an implementation manner, the cloud disk creation request may be triggered by an operation of the tenant purchasing a cloud disk on the management interface of the cloud management platform. For example, the cloud disk creation request may be triggered by the operation of the tenant entering purchase parameters on the purchase interface for purchasing the cloud disk on the cloud management platform, where the purchase parameter is used to reflect the tenant's demand for the cloud disk.
并且,为保证租户能够按需购买云磁盘,云管理平台可以提供购买云磁盘的以下一个或多个购买参数:云磁盘的计费模式、创建云磁盘使用的基础资源的部署地域、基础资源在部署地域中的具体可用区、云磁盘的性能规格、云磁盘的大小(容量)、云磁盘的云备份功能、云磁盘的云磁盘标识、云磁盘的购买时长和购买量。其中,云磁盘的计费模式用于指示云磁盘的计费方式,其可以包括包年/包月和按需计费等方式。创建云磁盘使用的基础资源的部署地域用于指示创建云磁盘所依据的物理机所在的地理位置。基础资源在部署地域中的具体可用区用于指示创建云磁盘所依据的物理机所属的可用区。云磁盘的性能规格用于指示云磁盘的性能指标,如指示云磁盘云硬盘每秒进行读写的操作次数(input/output operations per second,IOPS)的最大值、最大吞吐量和读写时延等性能。In addition, in order to ensure that tenants can purchase cloud disks on demand, the cloud management platform can provide one or more of the following purchase parameters for the purchase of cloud disks: the billing model of the cloud disk, the deployment region of the basic resources used to create the cloud disk, and where the basic resources are located. The specific availability zone in the deployment region, the performance specifications of the cloud disk, the size (capacity) of the cloud disk, the cloud backup function of the cloud disk, the cloud disk identifier of the cloud disk, the purchase time and quantity of the cloud disk. The billing mode of the cloud disk is used to indicate the billing method of the cloud disk, which may include annual/monthly and on-demand billing. The deployment region of the basic resources used to create the cloud disk is used to indicate the geographic location of the physical machine on which the cloud disk is created. The specific availability zone of the basic resource in the deployment region is used to indicate the availability zone of the physical machine on which the cloud disk is created. The performance specifications of the cloud disk are used to indicate the performance indicators of the cloud disk, such as the maximum number of read and write operations per second (input/output operations per second, IOPS), the maximum throughput, and the read and write latency of the cloud disk. and other performance.
例如,图3为本申请实施例提供的一种在云管理平台上购买云磁盘的购买界面的示意图。如图3所示,租户可以在计费模式的选择框内选择云磁盘的计费方式为包年/包月或按需计费时,租户可以在区域的选择框内选择创建云磁盘使用的基础资源的部署地域在华南、华北、华东或西南等区域中的任一区域,租户可以在可用区的选择框内选择基础资源在部署地域中的具体可用区未可用区1、可用区2、可用区3或可用区7,租户可以在磁盘规格的选择框内选择云磁盘的性能规格满足超高IO的性能规格、通用型SSD的性能规格、高IO的性能规格或普通IO的性能规格,租户可以在磁盘大小的选择框内选择云磁盘的大小(容量),租户可以在云备份的选择框内选择是否需要为云磁盘配置云备份功能,租户可以在磁盘名称的框内填写需要购买的云磁盘的云磁盘标识,如填写云磁盘标识为“volume e-e672”,租户可以在购买时长的选择框内选 择云磁盘的购买时长,租户可以在购买量的选择框内选择需要创建的云磁盘的总数。另外,如图3所示,云管理平台还配置有更多的选择项,以便于租户选择云磁盘的一些其他设置,如选择是否设置为共享盘、选择云磁盘的与云主机之间的接口是否为小型计算机系统接口(small computer system interface,SCSI)、选择云磁盘是否为加密盘或是否为云磁盘添加标签等。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 application. As shown in Figure 3, tenants can select the billing method for cloud disks as annual/monthly or on-demand billing in the billing mode selection box, and tenants can select the basis for creating cloud disks in the region selection box. The deployment region of the resources is in any of South China, North China, East China, or Southwest China. Tenants can select the specific availability zone of the basic resource in the deployment region in the selection box of the availability zone. Unavailable Zone 1, Availability Zone 2, Available In Zone 3 or Availability Zone 7, tenants can select the performance specifications of cloud disks that meet the ultra-high IO performance specifications, general-purpose SSD performance specifications, high IO performance specifications, or common IO performance specifications in the disk specification selection box. You can select the size (capacity) of the cloud disk in the selection box of the disk size. Tenants can choose whether to configure the cloud backup function for the cloud disk in the selection box of cloud backup. The tenant can fill in the cloud disk to be purchased in the box of the disk name. The cloud disk identifier of the disk. If the cloud disk identifier is filled in as "volume e-e672", the tenant can select the purchase duration of the cloud disk in the selection box of the purchase duration, and the tenant can select the cloud disk to be created in the selection box of the purchase amount total. In addition, as shown in Figure 3, the cloud management platform is also configured with more options, so that tenants can choose some other settings of the cloud disk, such as choosing whether to set it as a shared disk, selecting the interface between the cloud disk and the cloud host Whether it is a small computer system interface (SCSI), select whether the cloud disk is an encrypted disk or whether to add a label to the cloud disk, etc.
需要说明的是,该图3仅为购买界面的一种示例,其中的设置项可以根据应用需求进行添加、删除或更改,本申请实施例对其不做具体限定。It should be noted that FIG. 3 is only an example of a purchase interface, and setting items therein may be added, deleted, or changed according to application requirements, which are not specifically limited in this embodiment of the present application.
步骤202、云管理平台接收租户输入的携带有云磁盘标识和云主机标识的云磁盘关联请求。Step 202: The cloud management platform receives a cloud disk association request input by the tenant and carrying the cloud disk identifier and the cloud host identifier.
租户在购买云磁盘后,可以指示将购买的云磁盘挂载至云主机。该指示将购买的云磁盘挂载至云主机的指示操作会触发云磁盘关联请求。也即是,该云磁盘关联请求用于请求将该云磁盘关联请求涉及的云磁盘挂载至云磁盘关联请求涉及的云主机使用。并且,由于云磁盘可以通过云磁盘标识进行标识,云主机可以通过云主机标识进行标识,则租户的指示操作还包括输入需要被建立关联关系的云磁盘的云磁盘标识和云主机的云主机标识,相应的,该云磁盘关联请求中携带有云磁盘标识和云主机标识。租户输入该携带有云磁盘标识和云主机标识的云磁盘关联请求后,云管理平台即可接收到该云磁盘关联请求。After purchasing a cloud disk, a tenant can instruct to mount the purchased cloud disk to a cloud host. The instruction to mount the purchased cloud disk to the cloud host will trigger a cloud disk association request. That is, the cloud disk association request is used to request that the cloud disk involved in the cloud disk association request be mounted to the cloud host involved in the cloud disk association request for use. In addition, since cloud disks can be identified by cloud disk identifiers, and cloud hosts can be identified by cloud host identifiers, the tenant's instruction operation also includes entering the cloud disk identifiers of the cloud disks to be associated with and the cloud host identifiers of the cloud hosts. , correspondingly, 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 mounting a cloud disk to a cloud host, from the perspective of a cloud disk, first select a cloud disk, then select the mounting function of the cloud disk, and then select the cloud disk under the mounting function of the cloud disk. The cloud disk needs to be mounted on the cloud host. Alternatively, from the perspective of the cloud host, first select the cloud host, then select the mount function of the cloud host, and then change the mount function of the cloud host to select the cloud disk that needs to be mounted to the cloud host.
例如,图4为本申请实施例提供的一种云管理平台的管理界面的示意图。在需要将云磁盘挂载至云主机时,租户可以先选择需要被挂载的云磁盘,如图4选择了云磁盘标识为“sluo-ecs-9138-volume-001”的云磁盘。在租户选择该云磁盘的挂载功能后,租户的终端中会显示图4所示的云磁盘的挂载磁盘界面,然后租户可以在图4所示的挂载磁盘界面中选择需要挂载的云主机。其中,该图4中示出了可选云主机的列表包括弹性云服务器列表和裸金属服务器列表,且裸金属服务器列表包括云主机标识分别为“sluo-ecs-001”、“zrm-kylin-001”、“zrm-neo-001”和“zrm-uos-001”等,且该图4中还示出了各个云主机的可选挂载点的选项、状态、镜像文件名称、私有互联网协议(internet protocol,IP)地址、弹性公网IP地址和云主机所依据的物理机所属的可用区,则租户可以根据以上信息选择云磁盘需要被挂载的云主机。并且,在租户完成对云磁盘需要被挂载的云主机的选择后,可以点击挂载磁盘界面中的“确定”,该点击“确定”的操作会触发云磁盘关联请求,且该云磁盘关联请求中携带有云磁盘标识为“sluo-ecs-9138-volume-001”和租户选择的云主机的云主机标识。For example, FIG. 4 is a schematic diagram of a management interface of a cloud management platform provided by an embodiment of the present application. When the cloud disk needs to be mounted to the cloud host, the tenant can first select the cloud disk to be mounted. As shown in Figure 4, the cloud disk identified as "sluo-ecs-9138-volume-001" is selected. After the tenant selects the mount function of the cloud disk, the tenant's terminal will display the disk mount interface of the cloud disk shown in Figure 4, and then the tenant can select the disk to be mounted on the mount disk interface shown in Figure 4. Cloud hosting. 4 shows that the list of optional cloud hosts includes a list of elastic cloud servers and a list of bare metal servers, and the list of bare metal servers includes cloud host identifiers "sluo-ecs-001", "zrm-kylin- 001", "zrm-neo-001", "zrm-uos-001", etc., and Figure 4 also shows the options, status, image file name, private Internet protocol of the optional mount point of each cloud host (Internet protocol, IP) address, elastic public IP address, and the availability zone to which the physical machine on which the cloud host is based belongs, the tenant can select the cloud host to which the cloud disk needs to be mounted based on the above information. In addition, after the tenant completes the selection of the cloud host to which the cloud disk needs to be mounted, he or she can click "OK" in the mount disk interface. Clicking "OK" will trigger a cloud disk association request, and the cloud disk will be associated with the cloud disk. The request carries the cloud disk ID "sluo-ecs-9138-volume-001" and the cloud host ID of the cloud host selected by the tenant.
例如,图5为本申请实施例提供的另一种云管理平台的管理界面的示意图。在需要将云磁盘挂载至云主机时,租户可以先选择需要云主机,如图5选择了云主机标识为“sluo-ecs-6075”的云主机。在租户选择该云主机的挂载功能后,租户的终端中会显示图5所示的云主机的挂载磁盘界面,然后租户可以在图5所示的挂载磁盘界面中选择需要挂载至该云主机的云磁盘。其中,该图5中示出了可选云磁盘的列表,该列表包 括云磁盘标识为“sluo-ecs-9138-volume-001”,且该图5中还示出了“查看云磁盘列表”的按钮,另外该图5中还示出了搜索框S,可以在该搜索框S中输入需要挂载至该云主机的云磁盘的云磁盘标识,以实现对需要挂载至该云主机的云磁盘的选择。并且,该图5中还示出了云磁盘的云磁盘标识、容量、是否为启动盘的指示信息、磁盘类型等相关信息,以便于租户了解该云磁盘。并且,在租户完成对需要挂载至云主机的云磁盘的选择后,可以点击挂载磁盘界面中的“确定”,该点击“确定”的操作会触发云磁盘关联请求,且该云磁盘关联请求中携带有云主机的云主机标识“sluo-ecs-6075”和租户选择的云磁盘的云磁盘标识。For example, FIG. 5 is a schematic diagram of a management interface of another cloud management platform provided by an embodiment of the present application. When the cloud disk needs to be mounted to the cloud host, the tenant can first select the cloud host that is required. As shown in Figure 5, the cloud host with the cloud host ID "sluo-ecs-6075" is selected. After the tenant selects the mount function of the cloud host, the tenant's terminal will display the disk mount interface of the cloud host shown in Figure 5, and then the tenant can select the disk to be mounted on the mount disk interface shown in Figure 5. The cloud disk of the cloud host. Wherein, the list of optional cloud disks is shown in FIG. 5 , the list includes the cloud disk identification as “sluo-ecs-9138-volume-001”, and the “view cloud disk list” is also shown in FIG. 5 button, in addition, a search box S is also shown in FIG. 5 , and the cloud disk identifier of the cloud disk that needs to be mounted to the cloud host can be input in the search box S, so as to realize the search for the cloud disk that needs to be mounted to the cloud host. Choice of cloud disks. In addition, FIG. 5 also shows the cloud disk identifier, capacity, indication information of whether it is a boot disk, disk type and other related information of the cloud disk, so as to facilitate the tenant to understand the cloud disk. In addition, after the tenant completes the selection of the cloud disk to be mounted to the cloud host, he can click "OK" in the mount disk interface. Clicking "OK" will trigger a cloud disk association request, and the cloud disk will be associated with the cloud disk. The request carries the cloud host ID "sluo-ecs-6075" of the cloud host and the cloud disk ID of the cloud disk selected by the tenant.
步骤203、云管理平台接收租户输入的云磁盘配置请求,根据云磁盘配置请求在云磁盘中设置磁盘配置信息。Step 203: The cloud management platform receives the cloud disk configuration request input by the tenant, and sets the disk configuration information in the cloud disk according to the cloud disk configuration request.
云磁盘配置请求用于反映租户对云磁盘的设置需求。例如,在租户需要为云主机扩容时,租户可以输入请求扩容的云磁盘配置请求,以指示云管理平台为云主机扩容。或者,租户需要为云主机新增云磁盘时,租户可以输入请求新增云磁盘的云磁盘配置请求,以指示云管理平台为云主机新增云磁盘。又或者,租户需要为云主机添加空白的新增云磁盘时,租户可以输入请求为云主机添加空白的新增云磁盘的云磁盘配置请求,以指示云管理平台为云主机添加空白的新增云磁盘。又或者,租户需要为云主机添加有数据的新增云磁盘时,租户可以输入请求为云主机添加有数据的新增云磁盘的云磁盘配置请求,以指示云管理平台为云主机添加有数据的新增云磁盘。The cloud disk configuration request is used to reflect the tenant's setting requirements for the cloud disk. For example, when a tenant needs to expand the capacity of a cloud host, the tenant can enter a cloud disk configuration request requesting capacity expansion to instruct the cloud management platform to expand the capacity of the cloud host. Or, when a tenant needs to add a cloud disk to a cloud host, the tenant can enter a cloud disk configuration request for adding a cloud disk to instruct the cloud management platform to add a cloud disk to the cloud host. Or, when a tenant needs to add a blank new cloud disk to a cloud host, the tenant can enter a cloud disk configuration request for adding a blank new cloud disk to the cloud host to instruct the cloud management platform to add a blank new cloud disk to the cloud host. cloud disk. Or, when a tenant needs to add a new cloud disk with data to a cloud host, the tenant can enter a cloud disk configuration request for adding a new cloud disk with data to the cloud host to instruct the cloud management platform to add data to the cloud host. 's new cloud disk.
租户触发该云磁盘配置请求后,云管理平台可以接收到该云磁盘配置请求。云管理平台接收到该云磁盘配置请求后,可以得知租户对云磁盘的设置需求,并根据该设置需求对云磁盘进行相应的配置操作。云管理平台对云磁盘的配置操作会使云磁盘产生变化,该变化可用磁盘配置信息表征。也即是,云管理平台接收租户输入的云磁盘配置请求后,可以根据云磁盘配置请求在云磁盘中设置磁盘配置信息。当云磁盘携带有该磁盘配置信息时,云主机在读取该云磁盘时就能够得知该云磁盘是什么样的云磁盘,进而对云磁盘执行相应的配置。After the tenant triggers the cloud disk configuration request, the cloud management platform can receive the cloud disk configuration request. After the cloud management platform receives the cloud disk configuration request, it can learn the tenant's setting requirements for the cloud disk, and perform corresponding configuration operations on the cloud disk according to the setting requirements. The configuration operation of the cloud disk by the cloud management platform will change the cloud disk, and the change can be represented by the disk configuration information. That is, after receiving the cloud disk configuration request input by the tenant, the cloud management platform can set the 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 kind of cloud disk the cloud disk is when reading the cloud disk, and then perform corresponding configuration on the cloud disk.
例如,当租户输入请求扩容的云磁盘配置请求时,云管理平台可以根据该云磁盘配置请求设置扩容的云磁盘,且该扩容的云磁盘的配置可以通过磁盘配置信息表征,使得云主机在读取到该磁盘配置信息时即可得知该云磁盘是扩容的云磁盘,并对该扩容的云磁盘执行扩容操作。此时,该磁盘配置信息包括扩容标识,该扩容标识用于指示云主机利用云磁盘对已有磁盘进行扩容。即当云主机读取到云磁盘的扩容标识时,可知需要对该云磁盘进行扩容,然后对该扩容的云磁盘执行扩容操作。For example, when a tenant inputs a cloud disk configuration request for expansion, the cloud management platform can set a cloud disk for expansion according to the cloud disk configuration request, and the configuration of the expanded cloud disk can be characterized by the disk configuration information, so that the cloud host is reading When the configuration information of the disk is obtained, it can be known that the cloud disk is an expanded cloud disk, and a capacity expansion operation is performed on the expanded cloud disk. In this case, the disk configuration information includes a capacity expansion identifier, and the capacity expansion identifier is used to instruct the cloud host to use the cloud disk to expand the existing disk. That is, when the cloud host reads the expansion identifier of the cloud disk, it knows that the cloud disk needs to be expanded, and then performs the expansion operation on the expanded cloud disk.
又例如,当租户输入请求新增云磁盘的云磁盘配置请求时,云管理平台可以根据该云磁盘配置请求设置新增云磁盘,且该新增云磁盘的配置可以通过磁盘配置信息表征,使得云主机在读取到该磁盘配置信息时即可得知该云磁盘是新增云磁盘,并对该新增云磁盘执行初始化配置等操作。此时,该磁盘配置信息包括新增标识,该新增标识用于指示云主机对该新增云磁盘进行初始化配置等操作。即当云主机读取到云磁盘的新增标识时,可知需要对该云磁盘进行对应的初始化配置等操作。For another example, when a tenant inputs a cloud disk configuration request for adding a new cloud disk, the cloud management platform can set a new cloud disk according to the cloud disk configuration request, and the configuration of the newly added cloud disk can be characterized by the disk configuration information, so that the When the cloud host reads the configuration information of the disk, it can know that the cloud disk is a newly added cloud disk, and perform operations such as initializing the newly added cloud disk. In this case, the disk configuration information includes a newly added identifier, and the newly added identifier is used to instruct the cloud host to perform operations such as initializing and configuring the newly added cloud disk. That is, when the cloud host reads the newly added identifier of the cloud disk, it can know that the corresponding initial configuration and other operations need to be performed on the cloud disk.
又例如,当租户输入请求为云主机添加空白的新增云磁盘的云磁盘配置请求时,云管理平台可以创建云磁盘,并对创建的云磁盘进行格式化,然后将格式化后的云磁 盘设置为裸盘,且该空白的新增云磁盘的配置可以通过磁盘配置信息表征,使得云主机在读取到该磁盘配置信息时即可得知该云磁盘是空白的新增云磁盘,并对该空白的新增云磁盘执行初始化配置等操作。此时,该磁盘配置信息包括格式化标识,该格式化标识用于指示云主机对云磁盘进行格式化,并将格式化后的云磁盘设置为裸盘。即当云主机读取到云磁盘的格式化标识时,可知需要对该云磁盘进行格式化,并将格式化后的云磁盘设置为裸盘。For another example, when a tenant enters a cloud disk configuration request for adding a blank new cloud disk to a cloud host, the cloud management platform can create a cloud disk, format the created cloud disk, and then store the formatted cloud disk. It is set to a bare disk, and the configuration of the new blank cloud disk can be represented by the disk configuration information, so that the cloud host can know that the cloud disk is a blank new cloud disk when it reads the disk configuration information, and Perform operations such as initializing the newly added cloud disk. In this case, the disk configuration information includes a format identifier, and the format identifier is used to instruct the cloud host to format the cloud disk, and set the formatted cloud disk as a raw disk. That is, when the cloud host reads the format identifier of the cloud disk, it knows that the cloud disk needs to be formatted, and the formatted cloud disk is set as a raw disk.
又例如,当租户输入请求为云主机添加有数据的新增云磁盘的云磁盘配置请求时,云管理平台可以根据有数据的数据卷创建云磁盘,且在创建云磁盘的过程中保留该云磁盘中的数据,并将云磁盘设置为新增磁盘,且该有数据的新增云磁盘的配置可以通过磁盘配置信息表征,使得云主机在读取到该磁盘配置信息时即可得知该云磁盘是有数据的新增云磁盘,并对该有数据的新增云磁盘执行相应的初始化配置等操作。此时,该磁盘配置信息包括数据保留标识,该数据保留标识用于指示云主机保留云磁盘中的数据,并将云磁盘设置为新增磁盘。即当云主机在读取到该数据保留标识时,能够在对该云磁盘进行设置的同时保留该云磁盘中的数据。For another example, when a tenant inputs a cloud disk configuration request for adding a new cloud disk with data to a cloud host, the cloud management platform can create a cloud disk based on the data volume with data, and retain the cloud disk during the process of creating the cloud disk. The data in the disk, and set the cloud disk as a new disk, and the configuration of the new cloud disk with data can be characterized by the disk configuration information, so that the cloud host can know the disk configuration information when it reads the disk configuration information. A cloud disk is a newly added cloud disk with data, and the corresponding initial configuration and other operations are performed on the newly added cloud disk with data. In this case, the disk configuration information includes a data retention identifier, and the data retention identifier is used to instruct the cloud host to retain the data in the cloud disk, and set the cloud disk as a newly added disk. That is, when the cloud host reads the data retention identifier, it can retain the data in the cloud disk while setting the cloud disk.
进一步地,用户在输入云磁盘配置请求时,还可以指示将云磁盘进行划分的划分方式。例如指示将云磁盘划分为多少个分区及每个分区的大小。此时,磁盘配置信息还包括划分指示,该划分指示用于指示云磁盘的划分方式。通过在云磁盘中设置该划分指示,使得云主机在读取到该划分指示时,能够在对该云磁盘进行设置时按照该划分指示对云磁盘进行划分。Further, when inputting a cloud disk configuration request, the user may also indicate a division method for dividing the cloud disk. For example, it indicates 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 division indication, where the division indication is used to indicate a division manner of the cloud disk. By setting the division instruction in the cloud disk, when the cloud host reads the division instruction, it can divide the cloud disk according to the division instruction when setting the cloud disk.
需要说明的是,上述对云磁盘配置请求和磁盘配置信息的说明仅为示例性的说明,不用于限定租户能够输入的云磁盘配置请求的具体形式,该云磁盘配置请求所请求的事项可以根据应用需求进行调整,本申请实施例对其不做具体限定。并且,磁盘配置信息可以包括以上一种或多种信息,本申请实施例对其不做具体限定。例如,磁盘配置信息可以包括扩容标识、格式化标识和数据保留标识中的任一种。或者,磁盘配置信息可以包括扩容标识和数据保留标识。或者,磁盘配置信息可以包括格式化标识和数据保留标识。或者,磁盘配置信息可以包括扩容标识和格式化标识。或者,磁盘配置信息可以包括扩容标识、格式化标识和数据保留标识。It should be noted that the above description of the cloud disk configuration request and disk configuration information is only an exemplary description, and is not intended to limit the specific form of the cloud disk configuration request that the tenant can input. It is adjusted according to application requirements, which is not specifically limited in this embodiment of the present application. In addition, the disk configuration information may include one or more of the above information, which is not specifically limited in this embodiment of the present application. For example, the disk configuration information may include any one of a capacity expansion identifier, a format identifier, and a data retention identifier. Alternatively, the disk configuration information may include a capacity expansion identifier and a data retention identifier. Alternatively, the disk configuration information may include a format identifier and a data retention identifier. Alternatively, the disk configuration information may include an expansion identifier and a format identifier. Alternatively, the disk configuration information may include a capacity expansion identifier, a format identifier, and a data retention identifier.
步骤204、云管理平台根据云磁盘关联请求确定云磁盘和云主机,并将云磁盘设置于云主机。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 can determine the cloud disk to be configured according to the cloud disk identifier carried in the cloud disk association request, and determine the cloud disk that needs to be configured according to the cloud host identifier carried in the cloud disk association request. Establish an associated cloud host, and set the cloud disk on the cloud host, that is, mount the cloud disk to the cloud host, so that the cloud host can read the disk configuration information set in the cloud disk, so that the cloud host can read the disk configuration information according to the disk. The configuration information configures the cloud disk.
步骤205、云主机根据磁盘配置信息对云磁盘进行配置。Step 205: The cloud host configures the cloud disk according to the disk configuration information.
可选的,如图6所示,该步骤205的实现过程包括:Optionally, as shown in FIG. 6 , the implementation process of this step 205 includes:
步骤2051、云主机将云磁盘的联机状态修改为已联机,及将云磁盘的读写权限修改为可读可写权限。Step 2051: The cloud host modifies the online state of the cloud disk to online, and modifies the read and write permissions of the cloud disk to read and write permissions.
云磁盘与云主机联机是指建立云磁盘与云主机之间的通信连接,使得云磁盘与云 主机能够互通信息。也即是,当云磁盘相对于云主机的联机状态为已联机时,该云主机与云磁盘才能通信,因此,在对云磁盘进行设置时,需要先将云磁盘的联机状态修改为已联机。并且,由于对云磁盘进行设置时,需要向云磁盘写入信息,因此,在对云磁盘进行设置时,需要保证云主机对云磁盘的读写权限至少为可读权限,即需要将云磁盘的读写权限修改为可读可写权限。可选的,将需要被设置的云磁盘的读写权限修改为可读可写权限,可以通过擦除云磁盘的只读权限实现。The connection between the cloud disk and the cloud host refers to establishing a communication connection between the cloud disk and the cloud host, so that the cloud disk and the cloud host can exchange information. That is, when the online status of the cloud disk relative to the cloud host is online, the cloud host can communicate with the cloud disk. Therefore, when setting the cloud disk, you need to change the online status of the cloud disk to online first. . In addition, when setting the cloud disk, it is necessary to write information to the cloud disk. Therefore, when setting the cloud disk, it is necessary to ensure that the read and write permissions of the cloud host to the cloud disk are at least readable. The read and write permissions are changed to read and write permissions. Optionally, changing the read and write permissions of the cloud disk to be set to read and write permissions can be implemented by erasing the read-only permissions of the cloud disk.
并且,云主机对云磁盘进行设置的过程可以针对云主机的所有云磁盘中的所有数据盘执行,也可以对检测到的未完成配置的云磁盘执行,本申请实施例对其不做具体限定。其中,云磁盘包括系统盘和云磁盘。系统盘用于存储云主机的操作系统的相关数据。云磁盘用于存储云主机的非操作系统数据。例如,云主机的云磁盘用于存储该云主机的用户数据。当针对云主机的所有数据盘执行时,该步骤2051至步骤2053中的云磁盘指云主机的所有数据盘,且在执行该步骤2051之前,还需要获取该云主机的所有云磁盘的信息,并根据该所有云磁盘的信息筛选出所有数据盘,并对所有数据盘进行设置。在一种可实现方式中,可以通过云主机的操作系统中的磁盘分区管理工具,获取云主机的所有云磁盘的信息,并根据云主机操作系统对云磁盘进行设置的逻辑,在云主机的所有云磁盘中筛选出数据盘。例如,可以采用windows操作系统的磁盘分区管理工具diskpart,获取云主机的所有云磁盘的信息,并且,由于windows系统中系统盘的磁盘号等于0,即磁盘号大于0的云磁盘均为数据盘,则可以对所有磁盘号大于0的云磁盘进行设置。In addition, the process of setting the cloud disk by the cloud host may be performed on all data disks in all cloud disks of the cloud host, or may be performed on the detected cloud disks that have not been configured, which is not specifically limited in this embodiment of the present application. . The cloud disk includes a system disk and a cloud disk. The system disk is used to store data related to the operating system of the cloud host. Cloud disks are used to store non-operating system data of cloud hosts. For example, a cloud disk of a cloud host is used to store user data of the cloud host. When executed for all data disks of the cloud host, the cloud disks in steps 2051 to 2053 refer to all data disks of the cloud host, and before executing step 2051, it is also necessary to obtain the information of all cloud disks of the cloud host, And filter out all data disks according to the information of all cloud disks, and set all data disks. In an implementation manner, the information of all cloud disks of the cloud host can be obtained through the disk partition management tool in the operating system of the cloud host, and according to the logic of setting the cloud disks in the operating system of the cloud host, in the cloud host's operating system Data disks are filtered out of all cloud disks. For example, the disk partition management tool diskpart of the Windows operating system can be used to obtain the 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 , you can set all cloud disks whose disk numbers are greater than 0.
示例的,图7为本申请实施例提供的一种获取的云主机的所有云磁盘的信息的示意图,如图7所示,云主机包括两个云磁盘,该两个云磁盘的磁盘号分别为0和1,磁盘号为0的云磁盘的状态(status)为已联机状态(online),总容量(size)为40吉字节(GB),可用容量(free)为0字节(B),磁盘号为1的云磁盘的状态为脱机状态(offline),总容量为10GB,可用容量为9GB,且则可以确定磁盘号为1的云磁盘为数据盘,并将该磁盘号为1的云磁盘的联机状态修改为已联机,及将该磁盘号为1的云磁盘的读写权限修改为可读可写权限。By way of example, FIG. 7 is a schematic diagram of information of all cloud disks of a cloud host that is acquired according to an embodiment of the present application. As shown in FIG. 7 , the cloud host includes two cloud disks, and the disk numbers of the two cloud disks are respectively 0 and 1, the status (status) of the cloud disk with disk number 0 is online (online), the total capacity (size) is 40 gigabytes (GB), and the free capacity (free) is 0 bytes (B ), the status of the cloud disk with disk number 1 is offline, the total capacity is 10GB, and the available capacity is 9GB, and it can be determined that the cloud disk with disk number 1 is a data disk, and the disk number is Change the online status of cloud disk 1 to online, and change the read and write permissions of the cloud disk with disk number 1 to read and write permissions.
步骤2052、云主机对云主机的云磁盘进行扩容。Step 2052: The cloud host expands the cloud disk of the cloud host.
对云主机的云磁盘进行扩容是指将扩容云磁盘的容量加入到被扩容的云磁盘中,以增大云磁盘的容量。可选的,该步骤2052的实现过程,可以包括:Expanding the cloud disk of a cloud host means adding the capacity of the expanded cloud disk to the expanded cloud disk to increase the capacity of the cloud disk. Optionally, the implementation process of this step 2052 may include:
步骤2052a、云主机确定云磁盘中被扩容的逻辑卷和用于对逻辑卷进行扩容的扩容卷。Step 2052a, the cloud host determines the logical volume to be expanded 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 used for expansion are usually logical volumes in the cloud disk, that is, the cloud disk to be expanded can be regarded as the logical volume to be expanded, which is used for the expansion of the capacity. A cloud disk whose capacity is expanded by a logical volume can be regarded as a capacity expansion volume (in fact, it is also a logical volume, but for convenience of distinction, it is referred to as a capacity expansion volume in this embodiment of the present application). In addition, the expanded logical volume and the expanded volume satisfy: 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 logical volumes of the cloud host can be obtained, and according to the storage address of the cloud disk to which the logical volume indicated by the volume information of the logical volume belongs and the storage address of the logical volume to The expansion volume of the volume to be expanded.
并且,云主机对云磁盘进行扩容的过程可以针对云主机的所有云磁盘中除系统卷 之外的所有逻辑卷执行,也可以对检测到的未完成扩容的逻辑卷执行,本申请实施例对其不做具体限定。并且,当针对云主机的除系统卷之外的所有逻辑卷执行时,在执行该步骤2052之前,还需要获取该云主机的所有逻辑卷的信息,并根据该所有逻辑卷的信息筛选出除系统卷之外的所有逻辑卷,并对除系统卷之外的所有逻辑卷执行扩容操作。在一种可实现方式中,可以通过云主机的操作系统中的磁盘分区管理工具,获取云主机的所有逻辑卷的信息,并根据云主机操作系统对逻辑卷进行设置的逻辑,在云主机的所有逻辑卷中筛选出除系统卷之外的所有逻辑卷。例如,可以采用windows操作系统的磁盘分区管理工具diskpart,获取云主机的所有云磁盘的信息,并且,由于windows系统中系统卷的卷号等于0或1,即卷号大于1的逻辑卷均不是系统卷,则可以对所有卷号大于1的逻辑卷执行扩容操作。In addition, the process of expanding the cloud disk by the cloud host can be performed on all logical volumes except the system volume in all cloud disks of the cloud host, and can also be performed on the detected logical volumes that have not been expanded. It is not specifically limited. In addition, when executing on all logical volumes of the cloud host except the system volume, before performing step 2052, it is also necessary to obtain the information of all logical volumes of the cloud host, and filter out all logical volumes according to the information of all logical volumes except the system volume. All logical volumes except the system volume, and perform expansion operations on all logical volumes except the system volume. In an achievable manner, the information of all logical volumes of the cloud host can be obtained through the disk partition management tool in the operating system of the cloud host, and the logical volume of the cloud host can be set according to the logic of the operating system of the cloud host. All logical volumes except system volumes are filtered out of all logical volumes. For example, the disk partition management tool diskpart of the Windows operating system can be used to obtain the 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 system volume, you can perform expansion operations on all logical volumes with volume numbers greater than 1.
示例的,图8为本申请实施例提供的一种获取的云主机的所有逻辑卷的信息的示意图,如图8所示,云主机包括三个逻辑卷,该三个逻辑卷的卷号分别为0、1和2。卷号为0的逻辑卷的标签为系统保留(system reserved)盘符,使用的文件系统为新技术文件系统(new technology file system,NTFS),类型为分区类型,总容量(size)为500兆字节(MB),状态(status)为健康(healthy),信息(info)标识其为系统(system)卷。卷号为1的逻辑卷所属的云磁盘为C盘,使用的文件系统为NTFS,类型为分区类型,总容量为39GB,状态为健康,信息标识其为启动(boot)卷。卷号为2的逻辑卷所属的云磁盘为D盘,使用的文件系统为NTFS,类型为分区类型,总容量为2014MB,状态为健康。则可以确定卷号为2的逻辑卷不是系统卷,并对该卷号为2的逻辑卷执行扩容操作。By way of example, FIG. 8 is a schematic diagram of information about all logical volumes of a cloud host that is acquired according to an embodiment of the application. As shown in FIG. 8 , the cloud host includes three logical volumes, and the volume numbers of the three logical volumes are respectively are 0, 1 and 2. The label of the logical volume with the volume number 0 is the system reserved drive letter, the file system used is the new technology file system (NTFS), the type is partition type, and the total capacity (size) is 500 megabytes Bytes (MB), the status (status) is healthy (healthy), and the information (info) identifies it as a system (system) volume. The cloud disk to which the logical volume with volume number 1 belongs is disk C, the file system used is NTFS, the type is partition type, the total capacity is 39 GB, the status is healthy, and the information identifies it as a boot volume. The cloud disk to which the logical volume with volume number 2 belongs is disk D, the file system used is NTFS, the type is partition type, the total capacity is 2014MB, and the status is healthy. Then, it can be determined that the logical volume whose volume number is 2 is not a system volume, and the expansion operation is performed on the logical volume whose volume number is 2.
步骤2052b、云主机将扩容卷的容量添加至逻辑卷的文件系统中。Step 2052b, the cloud host adds the capacity of the expanded volume to the file system of the logical volume.
云主机在确定云磁盘中被扩容的逻辑卷和用于对逻辑卷进行扩容的扩容卷后,可以将扩容卷的容量添加至逻辑卷的文件系统中,以完成对该逻辑卷的扩容操作。示例的,图9为执行扩容操作前磁盘1的状态示意图,图10为执行扩容操作后磁盘1的状态示意图。如图9所示,在执行扩容操作前,磁盘1包括两部分容量,一部分容量为新加卷(D:)所包括的100GB的容量,另一部分为还未分配的50GB容量。由此可知该还未分配的50GB容量是扩展卷用于对新加卷(D:)进行扩容的容量,则可将该扩容卷的50GB容量添加至新加卷(D:)的文件系统中,以实现对该新加卷(D:)的扩容。如图10所示,扩容后的新加卷(D:)的容量为150GB,其容量等于扩容前的新加卷(D:)的容量和未分配的50GB容量之和,且扩容前后新加卷(D:)使用的文件系统均为NTFS。After the cloud host determines the expanded logical volume in the cloud disk and the expanded volume used to expand the logical volume, the cloud host can add the capacity of the expanded volume to the file system of the logical volume to complete the expansion operation of the logical volume. By way of example, FIG. 9 is a schematic diagram of the state of the disk 1 before the capacity expansion operation is performed, and FIG. 10 is a schematic diagram of the state of the disk 1 after the capacity expansion operation is performed. As shown in Figure 9, before the expansion operation is performed, the disk 1 includes two parts of capacity, one part is the 100GB capacity included in the newly added volume (D:), and the other part is the unallocated 50GB capacity. It can be seen from this that the unallocated 50GB capacity is the capacity of the expansion volume for expanding the newly added volume (D:), then the 50GB capacity of the expanded volume can be added to the file system of the newly added volume (D:). , in order to realize the expansion of the newly added volume (D:). As shown in Figure 10, the capacity of the newly added volume (D:) after expansion is 150GB, and its capacity is equal to the sum of the capacity of the newly added volume (D:) before expansion and the unallocated 50GB capacity. The file system used by the volume (D:) is all NTFS.
步骤2053、云主机对云磁盘进行格式化。 Step 2053, the cloud host formats the cloud disk.
对云主机的云磁盘进行格式化是指对新增云磁盘进行格式化。其中,新增云磁盘的可用容量大于0。在一种可实现方式中,可以通过云主机的操作系统中的磁盘分区管理工具,获取云主机的所有云磁盘的信息,并根据云磁盘的信息确定新增云磁盘。例如,可以采用windows操作系统的磁盘分区管理工具diskpart,获取云主机的所有云磁盘的信息,并将云磁盘的信息指示可用容量大于0的云磁盘确定为新增云磁盘。示例的,请继续参考图7,磁盘号为0的云磁盘的可用容量为0字节(B),磁盘号为1的云磁盘的可用容量为9GB,且则可以确定磁盘号为1的云磁盘为新增云磁盘,并对 该新增云磁盘进行格式化。Formatting the cloud disk of the cloud host refers to formatting the newly added cloud disk. The available capacity of the newly added cloud disk is greater than 0. In an achievable manner, information of all cloud disks of the cloud host can be obtained through a disk partition management tool in the operating system of the cloud host, and a new cloud disk can be determined according to the information of the cloud disk. For example, the disk partition management tool diskpart of the Windows operating system can be used to obtain information of all cloud disks of the cloud host, and determine the cloud disks whose available capacity is greater than 0 as indicated by the information of the cloud disks as new cloud disks. For example, please continue to refer to Figure 7, the available capacity of the cloud disk with disk number 0 is 0 bytes (B), the available capacity of the cloud disk with disk number 1 is 9 GB, and it can be determined that the cloud disk with disk number 1 has The disk is a newly added cloud disk, and the newly added cloud disk is formatted.
可选的,当新增云磁盘为空白的新增云磁盘时,云主机对新增云磁盘进行格式化可以包括:为新增云磁盘创建分区,初始化新增云磁盘的文件系统,为新增云磁盘分配盘符。当新增云磁盘为有数据的新增云磁盘时,由于该有数据的新增云磁盘中已有文件系统和分区信息,所以云主机对新增云磁盘进行格式化可以包括:为新增云磁盘分配盘符。其中,为新增云磁盘创建分区可以指为新增云磁盘创建主分区,或者,为新增云磁盘创建云分区和扩展分区。初始化新增云磁盘的文件系统是指定该新增云磁盘使用的文件系统。可选的,新增云磁盘使用的文件系统可以为NTFS或其他的文件系统,本申请实施例对其不做具体限定。为新增云磁盘分配盘符可以包括:从字母表中剔除当前云主机的云磁盘已经占用的盘符,得到备用盘符表,并根据备用盘符表中的字母确定新增云磁盘的盘符。例如,当有多个新增云磁盘时,可以在备用盘符表中按照字母的次序依次给该多个新增云磁盘分配盘符。Optionally, when the newly added cloud disk is a blank newly added cloud disk, the cloud host can format the newly added cloud disk including: creating a partition for the newly added cloud disk, initializing the file system of the newly added cloud disk, for the new cloud disk. Increase cloud disk allocation drive letter. When the newly added cloud disk is a new cloud disk with data, since the new cloud disk with data already has file system and partition information, the cloud host can format the newly added cloud disk including: The cloud disk is assigned a drive letter. Wherein, creating a partition for the newly added cloud disk may refer to creating a primary partition for the newly added cloud disk, or creating a cloud partition and an extended partition for the newly added cloud disk. Initializing the file system of the newly added cloud disk is to specify the file system used by the newly added cloud disk. Optionally, the file system used by the newly added cloud disk may be NTFS or other file systems, which are not specifically limited in this embodiment of the present application. Allocating a drive letter to the newly added cloud disk may include: removing the drive letter already occupied by the cloud disk of the current cloud host from the alphabet, obtaining a spare drive letter table, and determining the disk of the newly added cloud disk according to the letters in the spare drive letter table. symbol. For example, when there are multiple newly added cloud disks, drive letters may be assigned to the multiple newly added cloud disks in alphabetical order in the spare drive letter table.
需要说明的是,云主机在读取到云磁盘中的磁盘配置信息时,云主机可以对云磁盘执行上述步骤2051至步骤2053中的部分或全部步骤,且云主机对云磁盘执行的步骤可以根据应用需求进行确定,本申请实施例对其不做具体限定。例如,云主机在读取到云磁盘中的磁盘配置信息时,即可对该云磁盘执行上述步骤2051至步骤2053,而不管该磁盘配置信息中携带的具体信息是什么。或者,当磁盘配置信息包括扩容标识时,云主机可以对云磁盘执行上述步骤2051和步骤2052。或者,当磁盘配置信息包括格式化标识时,云主机可以对云磁盘执行上述步骤2051和步骤2053。It should be noted that when the cloud host reads the disk configuration information in the cloud disk, the cloud host may perform some or all of the above steps 2051 to 2053 on the cloud disk, and the steps performed by the cloud host on the cloud disk may be It is determined according to application requirements, which is not specifically limited in this embodiment of the present application. For example, when the cloud host reads the disk configuration information in the cloud disk, it can perform the above steps 2051 to 2053 on the cloud disk, regardless of the specific information carried in the disk configuration information. Alternatively, when the disk configuration information includes the capacity expansion identifier, the cloud host may perform the above steps 2051 and 2052 on the cloud disk. Alternatively, when the disk configuration information includes the format identifier, the cloud host may perform the above steps 2051 and 2053 on the cloud disk.
并且,云主机读取云磁盘中的磁盘配置信息,并对云磁盘执行上述步骤2051至步骤2053中的部分或全部的实现方式可以有多种。在一种可实现方式中,云主机的操作系统中可以设置有云管理代理软件,可以由该云管理代理软件监控读取操作系统中云磁盘中的磁盘有扩容或新增磁盘的信号,并对云磁盘执行上述步骤2051至步骤2053中的部分或全部。在另一种可实现方式中,读取云磁盘中的磁盘配置信息,并对云磁盘执行上述步骤2051至步骤2053中的部分或全部的操作,可以设置为云主机的开机启动项,使得在云主机开机过程中执行该操作,这样能够使租户在开机后即可使用被设置的云磁盘。在又一种实现方式中,读取云磁盘中的磁盘配置信息,并对云磁盘执行上述步骤2051至步骤2053中的部分或全部的操作,可以设置为云主机操作系统的系统任务计划,以便于能够及时地执行该操作,使得能够及时地对云磁盘进行配置。In addition, the cloud host reads the disk configuration information in the cloud disk and performs some or all of the above steps 2051 to 2053 on the cloud disk. There may be various implementations. In an achievable manner, cloud management agent software may be set in the operating system of the cloud host, and the cloud management agent software may monitor and read a signal that the disk in the cloud disk in the operating system has capacity expansion or a new disk, and Part or all of the above steps 2051 to 2053 are performed on the cloud disk. In another implementation manner, the disk configuration information in the cloud disk is read, and some or all of the operations in the above steps 2051 to 2053 are performed on the cloud disk, which can be set as a startup item of the cloud host, so that in This operation is performed during the startup process of the cloud host, so that the tenant can use the set cloud disk after startup. In another implementation manner, the disk configuration information in the cloud disk is read, and some or all of the operations in the above steps 2051 to 2053 are performed on the cloud disk, which can be set as the system task plan of the cloud host operating system, so that In order to be able to perform this operation in a timely manner, the cloud disk can be configured in a timely manner.
其中,当通过云管理代理软件和/或系统任务计划实现时,可以定时执行对云磁盘的配置操作,或者可以在检测到触发事件时执行对云磁盘的配置操作。且该触发事件可以包括以下一个或多个:云主机接收到开机指令,云主机检测到为云主机添加新增云磁盘的事件,以及,云主机检测到对云主机原有的云磁盘进行扩容的事件。Wherein, when implemented through the cloud management agent software and/or the system task plan, the configuration operation for the cloud disk may be performed regularly, or the configuration operation for the cloud disk may be performed when a trigger event is detected. And the trigger event may include one or more of the following: the cloud host receives a power-on instruction, the cloud host detects an event of adding a new cloud disk to the cloud host, and the cloud host detects that the original cloud disk of the cloud host is expanded. event.
另外,当需要执行上述步骤2051至步骤2053时,若先执行步骤2052,后执行步骤2053,由于扩容不会导致云磁盘中的数据丢失,而对云磁盘进行格式化可能会导致云磁盘中的数据丢失,通过先对云磁盘进行扩容能够保证云磁盘中的数据的安全性,避免误操作导致的数据被格式化丢失的风险。In addition, when the above steps 2051 to 2053 need to be performed, if step 2052 is performed first, and then step 2053 is performed, the data in the cloud disk will not be lost due to capacity expansion, but formatting the cloud disk may cause data in the cloud disk to be lost. In the event of data loss, expanding the cloud disk first can ensure the security of the data in the cloud disk and avoid the risk of data being formatted and lost due to misoperation.
综上所述,在本申请实施例提供的云主机的云磁盘管理方法中,云管理平台通过接收租户发送的云磁盘关联请求,云管理平台能够确定需要关联的云磁盘和云主机, 通过接收租户发送的云磁盘配置请求,云管理平台能够根据该云磁盘配置请求在云磁盘中设置磁盘配置信息,且通过云管理平台将需要关联的云磁盘设置于需要关联的云主机,使得云主机根据磁盘配置信息对云磁盘进行设置,实现了将云磁盘设置于云主机的自动化过程,无需租户手动对云磁盘进行配置,并相应减少因租户手动配置导致的误操作产生的不良影响。To sum up, in the cloud disk management method of the cloud host provided by 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. The cloud disk configuration request sent by the tenant, the cloud management platform can set the disk configuration information in the cloud disk according to the cloud disk configuration request, and set the cloud disk to be associated with the cloud host through the cloud management platform, so that the cloud host can be based on The disk configuration information is used to set the cloud disk, which realizes the automatic process of setting the cloud disk on the cloud host. It does not require the tenant to manually configure the cloud disk, and correspondingly reduces the adverse effects caused by the misoperation caused by the tenant's manual configuration.
需要说明的是,本申请实施例提供的云主机的云磁盘管理方法的步骤先后顺序可以进行适当调整,步骤也可以根据情况进行相应增减。任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化的方法,都应涵盖在本申请的保护范围之内,因此不再赘述。It should be noted that, the sequence of steps of the cloud disk management method of the cloud host provided by the embodiment of the present application may be appropriately adjusted, and the steps may be correspondingly increased or decreased according to the situation. Any person skilled in the art who is familiar with the technical scope disclosed in the present application can easily think of any variation of the method, which should be covered by the protection scope of the present application, and thus will not be repeated here.
本申请实施例还提供了一种云主机的云磁盘管理装置。该云主机的云磁盘管理装置可以部署在云管理平台中。如图11所示,该云主机的云磁盘管理装置110包括:The embodiment of the present application also provides a cloud disk management apparatus of a 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 device 110 of the cloud host includes:
接收模块1101,用于接收租户输入的携带有云磁盘标识和云主机标识的云磁盘关联请求,云磁盘标识用于标识租户的云磁盘,云主机标识用于标识租户的云主机。The receiving module 1101 is configured to receive a cloud disk association request input by a tenant and carry a cloud disk identifier and a cloud host identifier, where the cloud disk identifier is used to identify the tenant's cloud disk, and the cloud host identifier is used to identify the tenant's cloud host.
接收模块1101,还用于接收租户输入的云磁盘配置请求,根据云磁盘配置请求在云磁盘中设置磁盘配置信息。The receiving module 1101 is further configured to receive a cloud disk configuration request input by the tenant, and set disk configuration information in the cloud disk according to the cloud disk configuration request.
处理模块1102,用于根据云磁盘关联请求确定云磁盘和云主机,并将云磁盘设置于云主机,其中,磁盘配置信息用于指示云主机对云磁盘进行配置。The processing module 1102 is configured to determine the cloud disk and the cloud host according to the cloud disk association request, and set the cloud disk on the cloud host, wherein the disk configuration information is used to instruct the cloud host to configure the cloud disk.
可选地,接收模块1101,还用于接收租户输入的云磁盘创建请求,根据云磁盘创建请求创建云磁盘,其中,云磁盘设置有云磁盘标识。Optionally, the receiving module 1101 is further configured to receive a cloud disk creation request input by the tenant, and create a cloud disk according to the cloud disk creation request, wherein the cloud disk is set with a cloud disk identifier.
可选地,磁盘配置信息包括扩容标识,扩容标识用于指示云主机利用云磁盘对已有磁盘进行扩容。Optionally, the disk configuration information includes a capacity expansion identifier, and the capacity expansion identifier is used to instruct the cloud host to use the cloud disk to expand the existing disk.
可选地,磁盘配置信息包括格式化标识,格式化标识用于指示云主机对云磁盘进行格式化,并将格式化后的云磁盘设置为裸盘。Optionally, the disk configuration information includes a format identifier, where the format identifier is used to instruct the cloud host to format the cloud disk, and set the formatted cloud disk as a raw disk.
可选地,磁盘配置信息包括数据保留标识,数据保留标识用于指示云主机保留云磁盘中的数据,并将云磁盘设置为新增磁盘。Optionally, the disk configuration information includes a data retention identifier, where the data retention identifier is used to instruct the cloud host to retain 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.
综上所述,在本申请实施例提供的云主机的云磁盘管理装置中,通过接收模块接收租户发送的云磁盘关联请求,使得云磁盘管理装置能够确定需要关联的云磁盘和云主机,通过接收模块接收租户发送的云磁盘配置请求,使得云磁盘管理装置能够根据该云磁盘配置请求在云磁盘中设置磁盘配置信息,且通过处理模块将需要关联的云磁盘设置于需要关联的云主机,使得云主机根据磁盘配置信息对云磁盘进行设置,实现了将云磁盘设置于云主机的自动化过程,无需租户手动对云磁盘进行配置,并相应减少因租户手动配置导致的误操作产生的不良影响。To sum up, in the cloud disk management device of the cloud host provided by the embodiment of the present application, the cloud disk association request sent by the tenant is received by the receiving module, so that the cloud disk management device can determine the cloud disk and the cloud host that need to be associated. The receiving module receives the cloud disk configuration request sent by the tenant, so that the cloud disk management device can set the disk configuration information in the cloud disk according to the cloud disk configuration request, and set the cloud disk to be associated with the cloud host to be associated through the processing module, It enables the cloud host to set the cloud disk according to the disk configuration information, realizes the automatic process of setting the cloud disk on the cloud host, does not require the tenant to manually configure the cloud disk, and correspondingly reduces the adverse effects caused by the misoperation caused by the tenant's manual configuration. .
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和模块的具体工作过程,可以参考前述方法实施例中的对应内容,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the above-described devices and modules, reference may be made to the corresponding content in the foregoing method embodiments, which will not be repeated here.
本申请实施例提供了一种计算机设备。图12示例性的提供了计算机设备的一种可能的架构图。如图12所示,该计算机设备120可以包括处理器1201、存储器1202、 通信接口1203和总线1204。在计算机设备中,处理器1201的数量可以是一个或多个,图12仅示意了其中一个处理器1201。可选的,处理器1201可以是中央处理器(Central Processing Unit,CPU)。若计算机设备具有多个处理器1201,多个处理器1201的类型可以不同,或者可以相同。可选的,计算机设备的多个处理器还可以集成为多核处理器。The embodiments of the present application provide a computer device. FIG. 12 exemplarily provides a possible architectural diagram of 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 processors 1201 may be one or more, and FIG. 12 only illustrates one of the processors 1201 . Optionally, the processor 1201 may be a central processing unit (Central Processing Unit, CPU). If the computer device has multiple processors 1201, the multiple processors 1201 may be of different types, or may be the same. Optionally, multiple processors of the computer device may also be integrated into a multi-core processor.
存储器1202存储计算机指令和数据,存储器1202可以存储实现本申请提供的云主机的云磁盘管理方法所需的计算机指令和数据。存储器1202可以是以下存储介质的任一种或任一种组合:非易失性存储器(如只读存储器(Read-Only Memory,ROM)、固态硬盘(Solid State Disk,SSD)、硬盘(Hard Disk Drive,HDD)、光盘等、易失性存储器。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. The memory 1202 may be any one or any combination of the following storage media: non-volatile memory (such as read-only memory (Read-Only Memory, ROM), solid state disk (Solid State Disk, SSD), hard disk (Hard Disk) Drive, HDD), optical disc, etc., volatile memory.
通信接口1203可以是以下器件的任一种或任一种组合:网络接口(如以太网接口)、无线网卡等具有网络接入功能的器件。The communication interface 1203 may be any one or any combination of the following devices: a network interface (eg, an Ethernet interface), a wireless network card, and other devices with a network access function.
通信接口1203用于计算机设备与其他节点或者其他计算机设备进行数据通信。The communication interface 1203 is used for data communication between the computer device and other nodes or other computer devices.
图12还示例性地绘制出总线1204。总线1204可以将处理器1201与存储器1202、通信接口1203连接。这样,通过总线1204,处理器1201可以访问存储器1202,还可以利用通信接口1203与其他节点或者其他计算机设备进行数据交互。FIG. 12 also exemplarily depicts bus 1204 . The bus 1204 can connect the processor 1201 with the memory 1202 and the communication interface 1203 . In this way, through the bus 1204, the processor 1201 can access the memory 1202, and can also use the communication interface 1203 to perform data interaction with other nodes or other computer devices.
在本申请中,计算机设备执行存储器1202中的计算机指令,可以实现本申请提供的云主机的云磁盘管理方法中的云管理平台的功能。例如,接收租户输入的携带有云磁盘标识和云主机标识的云磁盘关联请求,接收租户输入的云磁盘配置请求,根据云磁盘配置请求在云磁盘中设置磁盘配置信息,根据云磁盘关联请求确定云磁盘和云主机,并将云磁盘设置于云主机。并且,计算机设备通过执行存储器1202中的计算机指令,执行计算机设备的步骤的实现过程可以相应参考上述方法实施例中对应的描述。In the present application, the computer device executes the computer instructions in the memory 1202 to implement the function of the cloud management platform in the cloud disk management method of the cloud host provided by the present application. For example, receive a cloud disk association request input by the tenant and carry the cloud disk identifier and the cloud host identifier, receive a cloud disk configuration request input by the tenant, set the disk configuration information in the cloud disk according to the cloud disk configuration request, and determine according to the cloud disk association request Cloud disk and cloud host, and set the cloud disk on the cloud host. In addition, by executing the computer instructions in the memory 1202 by the computer device, the implementation process of the steps of the computer device may refer to the corresponding descriptions in the foregoing method embodiments.
本申请实施例还提供了一种存储介质,该存储介质为非易失性计算机可读存储介质,当存储介质中的指令被处理器执行时,实现如本申请实施例提供的云主机的云磁盘管理方法。Embodiments of the present application further provide a storage medium, where the storage medium is a non-volatile computer-readable storage medium. When an instruction in the storage medium is executed by a processor, a cloud host such as the cloud host provided by the embodiments of the present application is implemented. Disk management methods.
本申请实施例还提供了一种包含指令的计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行本申请实施例提供的云主机的云磁盘管理方法。Embodiments of the present application also provide a computer program product including instructions, which, when the computer program product runs on a computer, enables the computer to execute the cloud disk management method of the cloud host provided by the embodiments of the present application.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium. The storage medium mentioned 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 only used for description purposes, and cannot be understood as indicating or implying relative importance. The term "at least one" refers to one or more, and the term "plurality" refers to two or more, unless expressly limited otherwise.
本申请中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。The term "and/or" in this application is only an association relationship to describe associated objects, which means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, independently There are three cases of B. In addition, the character "/" in this document generally indicates that the related objects are an "or" relationship.
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的构思和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only optional embodiments of the present application, and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the concept and principles of the present application shall be included in the protection of the present application. within the range.

Claims (14)

  1. 一种云主机的云磁盘管理方法,特征在于,包括:A cloud disk management method for a cloud host, characterized by comprising:
    云管理平台接收租户输入的携带有云磁盘标识和云主机标识的云磁盘关联请求,所述云磁盘标识用于标识所述租户的云磁盘,所述云主机标识用于标识所述租户的云主机;The cloud management platform receives a cloud disk association request input by a tenant that carries a cloud disk identifier and a cloud host identifier, where the cloud disk identifier is used to identify the tenant's cloud disk, and the cloud host identifier is used to identify the tenant's cloud host;
    所述云管理平台接收所述租户输入的云磁盘配置请求,根据所述云磁盘配置请求在云磁盘中设置磁盘配置信息;The cloud management platform receives a cloud disk configuration request input by the tenant, and sets disk configuration information in the 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 on the cloud host, wherein the disk configuration information is used to indicate the cloud host Configure the cloud disk.
  2. 根据权利要求1所述的方法,其特征在于,所述云管理平台接收所述租户输入的携带有所述云磁盘标识和云主机标识的云磁盘设置请求之前,所述方法还包括:The method according to claim 1, wherein, before the cloud management platform receives the cloud disk setting request that carries the cloud disk identifier and the cloud host identifier input by the tenant, the method further comprises:
    所述云管理平台接收所述租户输入的云磁盘创建请求,根据所述云磁盘创建请求创建所述云磁盘,其中,所述云磁盘设置有所述云磁盘标识。The cloud management platform receives the 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 set with the cloud disk identifier.
  3. 根据权利要求1或2所述的方法,其特征在于,所述磁盘配置信息包括扩容标识,所述扩容标识用于指示所述云主机利用所述云磁盘对已有磁盘进行扩容。The method according to claim 1 or 2, wherein the disk configuration information includes a capacity expansion identifier, and the capacity expansion identifier is used to instruct the cloud host to use the cloud disk to expand the capacity of an existing disk.
  4. 根据权利要求1或2所述的方法,其特征在于,所述磁盘配置信息包括格式化标识,所述格式化标识用于指示所述云主机对所述云磁盘进行格式化,并将所述格式化后的云磁盘设置为裸盘。The method according to claim 1 or 2, wherein the disk configuration information includes a format identifier, and the format identifier is used to instruct the cloud host to format the cloud disk, and store the The formatted cloud disk is set as a raw disk.
  5. 根据权利要求1或2所述的方法,其特征在于,所述磁盘配置信息包括数据保留标识,所述数据保留标识用于指示所述云主机保留所述云磁盘中的数据,并将云磁盘设置为新增磁盘。The method according to claim 1 or 2, wherein the disk configuration information includes a data retention identifier, and the data retention identifier is used to instruct the cloud host to retain the data in the cloud disk, and store the data in the cloud disk. Set as new disk.
  6. 根据权利要求1或2所述的方法,其特征在于,所述云管理平台管理的云主机包括:容器、虚拟机或裸金属服务器。The method according to claim 1 or 2, wherein the cloud host managed by the cloud management platform comprises: a container, a virtual machine or a bare metal server.
  7. 一种云主机的云磁盘管理装置,特征在于,包括:A cloud disk management device for a cloud host, comprising:
    接收模块,用于接收租户输入的携带有云磁盘标识和云主机标识的云磁盘关联请求,所述云磁盘标识用于标识所述租户的云磁盘,所述云主机标识用于标识所述租户的云主机;A receiving module, configured to receive a cloud disk association request input by a tenant and carry a cloud disk identifier and a cloud host identifier, the cloud disk identifier is used to identify the tenant's cloud disk, and the cloud host identifier is used to identify the tenant cloud host;
    所述接收模块,还用于接收所述租户输入的云磁盘配置请求,根据所述云磁盘配置请求在云磁盘中设置磁盘配置信息;The receiving module is further configured to receive a cloud disk configuration request input by the tenant, and set disk configuration information in the cloud disk according to the cloud disk configuration request;
    处理模块,用于根据所述云磁盘关联请求确定所述云磁盘和所述云主机,并将所述云磁盘设置于所述云主机,其中,所述磁盘配置信息用于指示所述云主机对所述云磁盘进行配置。a processing module, configured to determine the cloud disk and the cloud host according to the cloud disk association request, and set the cloud disk to the cloud host, wherein the disk configuration information is used to indicate the cloud host Configure the cloud disk.
  8. 根据权利要求7所述的装置,其特征在于,The device of claim 7, wherein:
    所述接收模块,还用于接收所述租户输入的云磁盘创建请求,根据所述云磁盘创建请求创建所述云磁盘,其中,所述云磁盘设置有所述云磁盘标识。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, wherein the cloud disk is set with the cloud disk identifier.
  9. 根据权利要求7或8所述的装置,其特征在于,所述磁盘配置信息包括扩容标识,所述扩容标识用于指示所述云主机利用所述云磁盘对已有磁盘进行扩容。The apparatus according to claim 7 or 8, wherein the disk configuration information includes a capacity expansion identifier, and the capacity expansion identifier is used to instruct the cloud host to use the cloud disk to expand the existing disk.
  10. 根据权利要求7或8所述的装置,其特征在于,所述磁盘配置信息包括格式 化标识,所述格式化标识用于指示所述云主机对所述云磁盘进行格式化,并将所述格式化后的云磁盘设置为裸盘。The apparatus according to claim 7 or 8, wherein the disk configuration information includes a format identifier, and the format identifier is used to instruct the cloud host to format the cloud disk, and store the The formatted cloud disk is set as a raw disk.
  11. 根据权利要求7或8所述的装置,其特征在于,所述磁盘配置信息包括数据保留标识,所述数据保留标识用于指示所述云主机保留所述云磁盘中的数据,并将云磁盘设置为新增磁盘。The apparatus according to claim 7 or 8, wherein the disk configuration information includes a data retention identifier, and the data retention identifier is used to instruct the cloud host to retain the data in the cloud disk, and store the cloud disk Set as new disk.
  12. 根据权利要求7或8所述的装置,其特征在于,所述云磁盘管理装置管理的云主机包括:容器、虚拟机或裸金属服务器。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. 一种计算机设备,其特征在于,所述计算机设备包括:处理器和存储器,所述存储器中存储有计算机程序;所述处理器执行计算机程序时,所述计算机设备实现权利要求1至6任一所述的方法。A computer device, characterized in that the computer device comprises: a processor and a memory, wherein a computer program is stored in the memory; when the processor executes the computer program, the computer device implements any one of claims 1 to 6 the method described.
  14. 一种存储介质,其特征在于,当所述存储介质中的指令被处理器执行时,实现权利要求1至6任一所述的方法。A storage medium, characterized in that, when an instruction in the storage medium is executed by a processor, the method of any one of claims 1 to 6 is implemented.
PCT/CN2021/119848 2020-09-25 2021-09-23 Management method and apparatus for cloud disk by cloud host, and computer device and storage medium WO2022063161A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2022063161A1 true WO2022063161A1 (en) 2022-03-31

Family

ID=80789395

Family Applications (1)

Application Number Title Priority Date Filing Date
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

Country Status (2)

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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070283148A1 (en) * 2006-05-31 2007-12-06 Microsoft Corporation Updating configuration information to a perimeter network
CN105095023A (en) * 2015-08-18 2015-11-25 北京皮尔布莱尼软件有限公司 Cloud host establishing device and method and calculating equipment
CN105808312A (en) * 2014-12-30 2016-07-27 华为技术有限公司 Method and device for supplying virtual volume
CN108322325A (en) * 2017-06-27 2018-07-24 新华三云计算技术有限公司 A kind of virtual machine management method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533006B (en) * 2012-07-06 2019-09-24 中兴通讯股份有限公司 A kind of joint cloud disk client, server, system and joint cloud disk service method
CN106886369A (en) * 2017-01-22 2017-06-23 武汉噢易云计算股份有限公司 A kind of cloud hard disk management method and system based on OpenStack cloud platforms
CN109995814B (en) * 2017-12-29 2021-08-13 中移(苏州)软件技术有限公司 Cloud host resource migration method and device, communication equipment and storage medium
CN108196943B (en) * 2018-02-06 2019-10-08 北京百度网讯科技有限公司 Virtual machine management method and device
CN110209342B (en) * 2018-03-26 2022-08-30 腾讯科技(深圳)有限公司 Capacity expansion method, device, equipment and system for cloud hard disk
CN110046026B (en) * 2019-04-22 2020-05-12 无锡华云数据技术服务有限公司 Method for specifying virtual disk speed limit by cloud host, computing equipment and cloud platform
CN110515539B (en) * 2019-07-22 2022-05-17 平安科技(深圳)有限公司 Cloud disk mounting method, device, equipment and storage medium based on cloud storage

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070283148A1 (en) * 2006-05-31 2007-12-06 Microsoft Corporation Updating configuration information to a perimeter network
CN105808312A (en) * 2014-12-30 2016-07-27 华为技术有限公司 Method and device for supplying virtual volume
CN105095023A (en) * 2015-08-18 2015-11-25 北京皮尔布莱尼软件有限公司 Cloud host establishing device and method and calculating equipment
CN108322325A (en) * 2017-06-27 2018-07-24 新华三云计算技术有限公司 A kind of virtual machine management method and device

Also Published As

Publication number Publication date
CN114253463A (en) 2022-03-29

Similar Documents

Publication Publication Date Title
US11467755B2 (en) Method and system for enabling agentless backup and restore operations on a container orchestration platform
JP6219420B2 (en) Configuring an object storage system for input / output operations
JP6208207B2 (en) A computer system that accesses an object storage system
JP6199452B2 (en) Data storage systems that export logical volumes as storage objects
JP5985642B2 (en) Data storage system and data storage control method
JP5309043B2 (en) Storage system and method for duplicate data deletion in storage system
US8412901B2 (en) Making automated use of data volume copy service targets
KR102100323B1 (en) Method and server for the service of machine learning platform
CN106331075B (en) Method for storing file, metadata server and manager
US9032173B2 (en) Automated migration to a new copy services target storage system to manage multiple relationships simultaneously while maintaining disaster recovery consistency
JPWO2014115276A1 (en) Environment setting server, computer system, and environment setting method
KR101714412B1 (en) Method and apparatus for organizing database system in cloud environment
CN109407975B (en) Data writing method, computing node and distributed storage system
US20150281124A1 (en) Facilitating management of resources
WO2010023052A2 (en) A method, apparatus and computer program for provisioning a storage volume to a virtual server
WO2015049771A1 (en) Computer system
CN110321077B (en) Method and device for managing centrally stored files
WO2022063161A1 (en) Management method and apparatus for cloud disk by cloud host, and computer device and storage medium
CN110870275B (en) Method and apparatus for shared memory file transfer
JP6244496B2 (en) Server storage system management system and management method
CN113391768A (en) Centralized storage management method and device
US10496305B2 (en) Transfer of a unique name to a tape drive
JP2015056021A (en) Host bus driver inspection device, host bus driver inspection system, and program

Legal Events

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

Ref document number: 21871530

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21871530

Country of ref document: EP

Kind code of ref document: A1