CN110445841B - Cloud disk mounting method and device for cloud physical machine and storage medium - Google Patents

Cloud disk mounting method and device for cloud physical machine and storage medium Download PDF

Info

Publication number
CN110445841B
CN110445841B CN201910631037.7A CN201910631037A CN110445841B CN 110445841 B CN110445841 B CN 110445841B CN 201910631037 A CN201910631037 A CN 201910631037A CN 110445841 B CN110445841 B CN 110445841B
Authority
CN
China
Prior art keywords
cloud
random number
cloud disk
disk
mounting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910631037.7A
Other languages
Chinese (zh)
Other versions
CN110445841A (en
Inventor
雷亚帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201910631037.7A priority Critical patent/CN110445841B/en
Publication of CN110445841A publication Critical patent/CN110445841A/en
Application granted granted Critical
Publication of CN110445841B publication Critical patent/CN110445841B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/062Securing 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/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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Abstract

The invention discloses a cloud disk mounting method for a cloud physical machine, which comprises the following steps: acquiring a cloud disk to be mounted and a corresponding random number from a metadata service; judging whether the obtained random number is the same as a locally cached random number; and responding to the fact that the obtained random number is different from the locally cached random number, and executing operation of scanning and mounting the cloud disk. The invention also discloses a computer device and a readable storage medium. The invention utilizes the security isolation characteristic of the metadata service to the tenant network and the management network, obtains the latest metadata from the metadata service, judges whether to mount or unload the volume, and operates the remote volumes without adding an intelligent network card and the management network, saves the hardware cost and has strong network security and reliability.

Description

Cloud disk mounting method and device for cloud physical machine and storage medium
Technical Field
The invention relates to the field of servers, in particular to a method and equipment for mounting a cloud disk by a cloud physical machine and a storage medium.
Background
The Openstack cloud physical machine is realized by integrating a computing service Nova, a network service Neutron, a mirror image service Glance, a cloud physical machine deployment service Ironic and the like, and the creation process of a cloud physical machine is actually the process of scheduling and installing the cloud physical machine. When the cloud physical machine is created, the Ironic machine remotely controls the cloud physical machine to start from PXE through IPMI, downloads a deployment mirror image with a reagent, interacts with the reagent through the Ironic installation service, and installs a user mirror image selected by a user to a local disk of the cloud physical machine through an iscsi protocol to realize system installation.
Because the local disk of the cloud physical machine is easy to damage, the data is easy to lose, and economic loss is caused, the cloud physical machine is necessary to mount the cloud hard disk. The virtual machine can mount a remote cloud hard disk through libvirt on the host machine. The cloud physical machine has the difficult problems of how to get through the network, how to transmit the cloud hard disk information, how to automatically find and mount the cloud hard disk in the system and the like. At present, a plurality of cloud products realize cloud physical machine mounting of cloud hard disks by adding an intelligent network card and an agent, but the cloud hard disks are expensive and the cost is too high; the way of adding management network + proxy to the cloud physical machine faces a significant problem of network security.
Therefore, a new method for mounting the cloud disk by the cloud physical machine is urgently needed.
Disclosure of Invention
In view of the above, in order to overcome at least one aspect of the above problems, an embodiment of the present invention provides a method for mounting a cloud disk on a cloud physical machine, including:
acquiring a cloud disk to be mounted and a corresponding random number from a metadata service;
judging whether the obtained random number is the same as a locally cached random number;
and responding to the fact that the obtained random number is different from the locally cached random number, and executing operation of scanning and mounting the cloud disk.
In some embodiments, obtaining the cloud disk to be mounted and the corresponding random number from the metadata service further comprises:
and periodically acquiring the cloud disk to be mounted and the corresponding random number from the metadata service.
In some embodiments, performing the scan mounting of the cloud disk further comprises:
and replacing the locally cached random number with the acquired random number.
In some embodiments, performing the scan mounting of the cloud disk further comprises:
and judging that the cloud disks which do not need to be continuously mounted exist in the mounted cloud disks according to the cloud disks which need to be mounted, and performing cleaning operation on the cloud disks which do not need to be continuously mounted.
In some embodiments, performing the scan mounting of the cloud disk further comprises:
and judging that the cloud disks needing to be continuously mounted exist in the mounted cloud disks according to the cloud disks needing to be mounted, and not executing operation on the cloud disks needing to be continuously mounted.
In some embodiments, performing the scan mounting of the cloud disk further comprises:
and judging that a new cloud disk exists in the cloud disk needing mounting according to the cloud disk needing mounting and the cloud disk already mounted, and executing scanning mounting operation on the new cloud disk.
In some embodiments, further comprising:
determining the cloud disk needing to be mounted;
associating the cloud disk to be mounted with the cloud physical machine;
and sending the associated information of the cloud disk needing mounting to a metadata service, and generating the corresponding random number.
In some embodiments, associating the cloud disk requiring mount with the cloud physical machine further comprises: associating the cloud disk to be mounted with the cloud physical machine by using a finder interface;
sending the associated information of the cloud disk needing mounting to a metadata service further comprises: and sending the associated information of the cloud disk needing mounting to a metadata service by utilizing a metada interface.
Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides a computer apparatus, including:
at least one processor; and
a memory storing a computer program operable on the processor, wherein the processor executes the program to perform any of the above-described cloud physical machine mounted cloud disk method steps.
Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides a computer-readable storage medium storing a computer program, which when executed by a processor performs the steps of any one of the methods for cloud physical machine mounting a cloud disk as described above.
The invention has one of the following beneficial technical effects: the invention utilizes the security isolation characteristic of the metadata service to the tenant network and the management network, obtains the latest metadata from the metadata service, judges whether to mount or unload the volume, and operates the remote volumes without adding an intelligent network card and the management network, saves the hardware cost and has strong network security and reliability.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for mounting a cloud disk by a cloud physical machine according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for mounting a cloud disk by a cloud physical machine according to an embodiment of the present invention;
fig. 3 is a block diagram of a method for mounting a cloud disk by a cloud physical machine according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a computer device provided in an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
It should be noted that, in the embodiment of the present invention, the metadata service is a sub-module of the OpenStack computing service, and a Restful interface for adding, deleting, modifying and checking metadata of a cloud host is provided to the outside, for example, public clouds such as airy cloud and huashi cloud all have this service.
According to an aspect of the present invention, an embodiment of the present invention provides a method for physically mounting a cloud disk on a cloud platform, as shown in fig. 1, which may include the steps of: s1, acquiring the cloud disk to be mounted and the corresponding random number from the metadata service; s2, judging whether the obtained random number is the same as the random number of the local cache; s3, responding to the obtained random number is different from the random number of the local cache, and executing the operation of scanning and mounting the cloud disk.
The method disclosed by the invention obtains the latest metadata from the metadata service by utilizing the security isolation characteristic of the metadata service to the tenant network and the management network, judges whether to mount or unload the volume, and operates the remote volumes without adding an intelligent network card and the management network, thereby saving the hardware cost and having strong network security and reliability.
The following is described in detail with reference to the flowchart of the method for mounting the cloud disk by the cloud physical machine shown in fig. 2.
Firstly, the cloud disk to be mounted and the corresponding random number need to be acquired from the metadata service.
In some embodiments, the cloud disk to be mounted may be determined first; then associating the cloud disk to be mounted with the cloud physical machine on a control layer; and finally, sending the cloud disk to be mounted to a metadata service, and generating the corresponding random number.
Specifically, a user can determine which cloud disks need to be mounted on the cloud physical machine through the cloud platform operation interface, and then the cloud physical machine and the cloud disks on the control layer are associated through the relevant interfaces.
The interface specifically realizes the binding logic of the cloud physical machine and the cloud hard disk of the control layer as follows:
interface URL is/baretl/{ barereal _ id }/os-volume _ attributes, POST method; the API acquires a cloud hard disk UUID in the body, calls an interface of an API layer bm _ attach _ volume, acquires a DB object of a cloud physical machine, and calls a method bm _ attach _ volume of the computer Manager through rpc. The bm _ attach _ volume calls an ironic interface through an ironic _ client to acquire cloud physical machine information, calls a circular interface through a circular _ client to acquire iqn information (UUID serial number information) of each cloud hard disk, registers the cloud physical machine into a back end for storage, and binds the cloud hard disk to the cloud physical machine. And calling an update _ volume _ metada interface to update the metadata of the cloud physical machine. The update _ volume _ metada interface updates the information list of the cloud hard disk iqn to the metadata volume _ list of the cloud physical machine; and a random number flag is generated to be used for the agent to judge whether the mounting operation is carried out or not, and the random number flag is updated to the metadata.
And at this point, the operation of mounting the cloud hard disk by the cloud physical machine on the control layer is finished, and the cloud hard disk created by the shader is associated with the cloud physical machine at the rear end of the cloud physical machine.
It should be noted that the flag is a metadata key, and its value is a random number, and is persisted to the metadata service, and only when the user performs mount/uninstall operation through the cloud platform operation interface, the service of the control layer will update it.
After the cloud disk to be mounted is associated with the cloud physical machine on the control layer, the proxy service bm _ volume _ agent for mounting the cloud hard disk can be used in the cloud physical machine, the proxy service is installed in a mirror image when the mirror image of the cloud physical machine is manufactured, and is registered as a service unit managed by the system, and the boot service is started automatically.
In some embodiments of the present invention, obtaining the cloud disk to be mounted and the corresponding random number from the metadata service includes: and periodically acquiring the cloud disk to be mounted and the corresponding random number from the metadata service. In several further embodiments of the present invention, performing the scan mounting cloud disk further comprises: and replacing the locally cached random number with the acquired random number.
According to an embodiment of the present invention, the proxy core is a timing task, which periodically obtains metadata of the cloud physical machine from a metadata service every 20 seconds, for example, and parses the cloud hard disk list to be mounted and the mounting flag field, so as to obtain the cloud disk to be mounted and the corresponding random number.
The acquisition period may be set according to actual requirements, and is not limited to 20 seconds.
Then, whether the random number is the same as the locally cached random number is judged.
Periodically acquiring metadata of a host by a timing task in a cloud physical machine: and comparing the volume _ list with a locally stored flag and storing the new flag to the local. And judging whether to perform the operation of scanning and hanging the disk by comparing the local _ flag of the hanging flag field of the local cache with the flag in the metadata.
If the flag is not equal to local _ flag, it is indicated that a cloud physical machine mounted cloud hard disk interface is called, that is, the control layer performs mounting operation, at this time, a mounting task needs to be executed on the data layer, a scanning mounting operation needs to be executed, remote volumes in a cloud hard disk list are mounted to the local, and a local flag field is updated.
And if the flag is the local _ flag, the user does not call the interface and does not operate.
In some embodiments, performing the scan mount operation may include: and judging that the cloud disks which do not need to be continuously mounted exist in the mounted cloud disks according to the cloud disks which need to be mounted, and performing cleaning operation on the cloud disks which do not need to be continuously mounted. According to a further embodiment, the cloud disks needing to be mounted are judged to exist in the cloud disks needing to be mounted continuously according to the cloud disks needing to be mounted, and the cloud disks needing to be mounted continuously are not operated. According to a further embodiment, according to the cloud disk to be mounted and the cloud disk already mounted, it is determined that a new cloud disk exists in the cloud disk to be mounted, and a scan mounting operation is performed on the new cloud disk.
Specifically, for example, the cloud disks mounted last time are a, B, and C, and the cloud disks to be mounted this time are a, B, and D. Then when the mount task is executed, the action required to be performed by each volume is obtained from the metadata, namely a, B, D need to be mounted, and C needs to be unloaded.
When the periodic task operates each cloud hard disk to be mounted, whether the current state is equal to the target state or not is judged, and then corresponding actions are performed. Such as: if the target is mounted, the action is not performed; and D, if the scanning tray is not mounted, the scanning tray is mounted. And when the periodic task operates each cloud hard disk to be unloaded, directly executing cleaning operation.
In some embodiments of the invention, the method further comprises: determining a cloud disk to be mounted; associating the cloud disk to be mounted with the cloud physical machine; and sending the associated information of the cloud disk needing mounting to a metadata service, and generating a corresponding random number. According to a further embodiment, associating the cloud disk to be mounted with the cloud physical machine further comprises: and associating the cloud disk needing to be mounted with the cloud physical machine by using a finder interface. Sending the associated information of the cloud disk needing mounting to a metadata service further comprises: and sending the associated information of the cloud disk needing mounting to a metadata service by utilizing a metada interface.
The following is described in detail with reference to the block diagram of fig. 3.
As shown in fig. 3, the mount cloud hard disk interface receives the pre-mount cloud hard disk uuid, adds the pre-mount cloud hard disk uuid to the metadata of the cloud physical machine, and generates a flag field to update the flag field to the metadata. And calling a finder interface to bind the cloud physical machine and the remote volume. The mounting is completed by an agent bm _ volume _ agent which is injected into the mirror image in advance and is started automatically in the cloud physical machine system: and acquiring cloud physical machine metadata at a fixed task period, and judging whether the upper layer is operated according to whether a flag is equal to a local _ flag stored locally. And if the data layer is not equal to the data layer, mounting the data layer.
Based on the same inventive concept, according to another aspect of the present invention, as shown in fig. 4, an embodiment of the present invention further provides a computer apparatus 501, including:
at least one processor 520; and
the memory 510, the memory 510 storing a computer program 511 executable on the processor, the processor 520 executing the program to perform the steps of any of the above methods of cloud physical machine mounting a cloud disk.
Based on the same inventive concept, according to another aspect of the present invention, as shown in fig. 5, an embodiment of the present invention further provides a computer-readable storage medium 601, where the computer-readable storage medium 601 stores computer program instructions 610, and the computer program instructions 610, when executed by a processor, perform the steps of any one of the above cloud disk physical-mount methods.
Finally, it should be noted that, as will be understood by those skilled in the art, all or part of the processes of the methods of the above embodiments may be implemented by a computer program to instruct related hardware to implement the methods. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
In addition, the apparatuses, devices, and the like disclosed in the embodiments of the present invention may be various electronic terminal devices, such as a mobile phone, a Personal Digital Assistant (PDA), a tablet computer (PAD), a smart television, and the like, or may be a large terminal device, such as a server, and the like, and therefore the scope of protection disclosed in the embodiments of the present invention should not be limited to a specific type of apparatus, device. The client disclosed by the embodiment of the invention can be applied to any one of the electronic terminal devices in the form of electronic hardware, computer software or a combination of the electronic hardware and the computer software.
Furthermore, the method disclosed according to an embodiment of the present invention may also be implemented as a computer program executed by a CPU, and the computer program may be stored in a computer-readable storage medium. The computer program, when executed by the CPU, performs the above-described functions defined in the method disclosed in the embodiments of the present invention.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Further, it should be appreciated that the computer-readable storage media (e.g., memory) herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile memory can include Read Only Memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM is available in a variety of forms such as synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
The various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein may be implemented or performed with the following components designed to perform the functions herein: a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP, and/or any other such configuration.
The steps of a method or algorithm described in connection with the disclosure herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (9)

1. A cloud disk mounting method of a cloud physical machine comprises the following steps:
determining a cloud disk to be mounted;
associating the cloud disk to be mounted with the cloud physical machine;
sending the associated information of the cloud disk to be mounted to a metadata service, and generating a corresponding random number;
acquiring a cloud disk to be mounted and a corresponding random number from a metadata service;
judging whether the obtained random number is the same as a locally cached random number;
and responding to the fact that the obtained random number is different from the locally cached random number, and executing operation of scanning and mounting the cloud disk.
2. The method of claim 1, wherein obtaining the cloud disk to mount and the corresponding random number from the metadata service further comprises:
and periodically acquiring the cloud disk to be mounted and the corresponding random number from the metadata service.
3. The method of claim 2, wherein performing the operation of scan mounting the cloud disk further comprises:
and replacing the locally cached random number with the acquired random number.
4. The method of claim 1, wherein performing the operation of scan mounting the cloud disk further comprises:
and judging that the cloud disks which do not need to be continuously mounted exist in the mounted cloud disks according to the cloud disks which need to be mounted, and performing cleaning operation on the cloud disks which do not need to be continuously mounted.
5. The method of claim 1, wherein performing the operation of scan mounting the cloud disk further comprises:
and judging that the cloud disks needing to be continuously mounted exist in the mounted cloud disks according to the cloud disks needing to be mounted, and not executing operation on the cloud disks needing to be continuously mounted.
6. The method of claim 1, wherein performing the operation of scan mounting the cloud disk further comprises:
and judging that a new cloud disk exists in the cloud disk needing mounting according to the cloud disk needing mounting and the cloud disk already mounted, and executing scanning mounting operation on the new cloud disk.
7. The method of claim 1, wherein associating the cloud disk requiring mount with the cloud physical machine further comprises: associating the cloud disk to be mounted with the cloud physical machine by using a finder interface;
sending the associated information of the cloud disk needing mounting to a metadata service further comprises: and sending the associated information of the cloud disk needing mounting to a metadata service by utilizing a metada interface.
8. A computer device, comprising:
at least one processor; and
memory storing a computer program operable on the processor, wherein the processor, when executing the program, performs the method of any of claims 1-7.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 7.
CN201910631037.7A 2019-07-12 2019-07-12 Cloud disk mounting method and device for cloud physical machine and storage medium Active CN110445841B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910631037.7A CN110445841B (en) 2019-07-12 2019-07-12 Cloud disk mounting method and device for cloud physical machine and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910631037.7A CN110445841B (en) 2019-07-12 2019-07-12 Cloud disk mounting method and device for cloud physical machine and storage medium

Publications (2)

Publication Number Publication Date
CN110445841A CN110445841A (en) 2019-11-12
CN110445841B true CN110445841B (en) 2022-04-22

Family

ID=68429662

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910631037.7A Active CN110445841B (en) 2019-07-12 2019-07-12 Cloud disk mounting method and device for cloud physical machine and storage medium

Country Status (1)

Country Link
CN (1) CN110445841B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111694519B (en) * 2020-05-29 2023-11-21 北京世纪互联宽带数据中心有限公司 Method, system and server for mounting cloud hard disk on bare metal server
CN112003963B (en) * 2020-08-27 2022-05-17 苏州浪潮智能科技有限公司 Method, system, device and medium for mounting volume on bare metal server
CN112235371A (en) * 2020-09-30 2021-01-15 北京联众国际通信有限公司 System and method for mounting network disk on cloud desktop based on distributed storage
CN114546920B (en) * 2022-02-20 2024-02-20 中电云计算技术有限公司 Hot plug method for bare metal server data disc under Feiteng CPU architecture based on intelligent network card
CN114647456A (en) * 2022-05-13 2022-06-21 中电云数智科技有限公司 Server disk hot mounting method and intelligent network card

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468548A (en) * 2014-11-28 2015-03-25 华为技术有限公司 Data verification method, disaster recovery storage and production storage
CN107368737A (en) * 2016-05-13 2017-11-21 阿里巴巴集团控股有限公司 A kind of processing method for preventing copy-attack, server and client
CN109040107A (en) * 2018-08-29 2018-12-18 百度在线网络技术(北京)有限公司 Data processing method, server, unmanned equipment and readable storage medium storing program for executing

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10372419B2 (en) * 2017-04-18 2019-08-06 International Business Machines Corporation Trusted random number generation by a cloud server
CN107547242B (en) * 2017-05-24 2019-11-12 新华三技术有限公司 The acquisition methods and device of VM configuration information
CN109802976A (en) * 2017-11-16 2019-05-24 航天信息股份有限公司 Cloud hard disk dynamic dispatching method, device and the electronic system of Open Stack cloud platform
CN109032753B (en) * 2018-06-20 2022-02-22 上海市信息网络有限公司 Heterogeneous virtual machine hard disk hosting method and system, storage medium and Nova platform
CN109597717B (en) * 2018-12-07 2020-12-25 北京金山云网络技术有限公司 Data backup and recovery method and device, electronic equipment and storage medium
CN109951525A (en) * 2019-02-18 2019-06-28 山东浪潮云信息技术有限公司 A kind of cloud disk carry system and method based on container

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468548A (en) * 2014-11-28 2015-03-25 华为技术有限公司 Data verification method, disaster recovery storage and production storage
CN107368737A (en) * 2016-05-13 2017-11-21 阿里巴巴集团控股有限公司 A kind of processing method for preventing copy-attack, server and client
CN109040107A (en) * 2018-08-29 2018-12-18 百度在线网络技术(北京)有限公司 Data processing method, server, unmanned equipment and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN110445841A (en) 2019-11-12

Similar Documents

Publication Publication Date Title
CN110445841B (en) Cloud disk mounting method and device for cloud physical machine and storage medium
EP3518109A1 (en) Method and apparatus for realizing communication between web page and native application, and electronic device
KR101389101B1 (en) Method and apparatus for tracking device management data changes
US20130297563A1 (en) Timestamp management method for data synchronization and terminal therefor
US11317276B2 (en) Methods and/or systems for activation and/or configuration of an electronic subscriber identity module (eSIM)
CN112685709B (en) Authorization token management method and device, storage medium and electronic equipment
EP3304862B1 (en) Systems, methods, and computer-readable media for tracking udates and loading data
CN112688983A (en) Proxy right management device, terminal device and storage medium
CN110781149A (en) Method, device, equipment and storage medium for managing live broadcast room information
CN112099836A (en) Configuration file updating method, configuration server, version control server and system
US20110082896A1 (en) Dynamically Updated Web-Enabled and Embedded Contact Address in Communication Devices
CN109117153A (en) Processing method, device, terminal and the storage medium of application program
CN111046371A (en) Method, electronic device and computer-readable medium for generating device identification
CN104104701A (en) Online service configuration updating method and system
CN113051026B (en) Virtual machine creating method and device and storage medium
KR100818962B1 (en) Method for managing remote mobile device
CN113010238A (en) Permission determination method, device and system for micro application call interface
CN111309264B (en) Method, system, device and medium for making directory quota compatible with snapshot
CN110730197B (en) Service discovery method and system
CN110392080B (en) Deployment method and device based on distributed system and distributed system
KR20160025282A (en) System and method for providing client terminal to user customized synchronization service
CN110673992B (en) Multi-mirror image fusion self-starting method and system
CN114064307A (en) Method, related device and system for realizing application program sharing of cloud mobile phone
CN111880996B (en) Bare metal data acquisition method, device, equipment and readable storage medium
CN116774949B (en) Method for storing resource package and server

Legal Events

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