CN110445841A - A kind of method, equipment and the storage medium of cloud physics machine carry cloud disk - Google Patents

A kind of method, equipment and the storage medium of cloud physics machine carry cloud disk Download PDF

Info

Publication number
CN110445841A
CN110445841A CN201910631037.7A CN201910631037A CN110445841A CN 110445841 A CN110445841 A CN 110445841A CN 201910631037 A CN201910631037 A CN 201910631037A CN 110445841 A CN110445841 A CN 110445841A
Authority
CN
China
Prior art keywords
carry
cloud
cloud disk
needing
disk
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.)
Granted
Application number
CN201910631037.7A
Other languages
Chinese (zh)
Other versions
CN110445841B (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 Wave Intelligent Technology Co Ltd
Original Assignee
Suzhou Wave 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 Wave Intelligent Technology Co Ltd filed Critical Suzhou Wave 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

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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of methods of cloud physics machine carry cloud disk, comprising steps of obtaining the cloud disk and corresponding random number for needing carry from Metadata Service;Whether the random number of the random number and local cache that judge the acquisition is identical;It is not identical as the random number of the local cache in response to the random number of the acquisition, execute the operation of cloud disk described in scanning carry.The invention also discloses a kind of computer equipment and readable storage medium storing program for executing.The present invention is using Metadata Service to the security isolation characteristic of tenant's net and management net, newest metadata is obtained from Metadata Service, judge whether carry or unloading volume, and which remote volume is operated, it does not need addition intelligent network adapter and manages net, hardware cost is saved, and there is very strong network security reliability.

Description

A kind of method, equipment and the storage medium of cloud physics machine carry cloud disk
Technical field
The present invention relates to server fields, and in particular to a kind of method, equipment and the storage of cloud physics machine carry cloud disk Medium.
Background technique
Openstack cloud physics machine is to calculate service Nova, network service Neutron, mirroring service Glance and cloud The integration realizations such as physical machine deployment services Ironic, a cloud physics machine creation process is exactly to dispatch a cloud physics machine in fact And the process installed to it.When cloud physics machine creates, Ironic remotely controls cloud physics machine by IPMI and starts from PXE, The deployment mirror image of agent is carried under and, and Ironic installation service is interacted with agent, and user is selected by iscsi agreement User's mirror image install to cloud physics machine local disk, realize system installation.
Since the local disk of cloud physics machine is easily damaged, data are easily lost, and cause economic loss, therefore, cloud physics Machine carry cloud hard disk is necessary.Virtual machine can realize the long-range cloud hard disk of carry by the libvirt on host.Cloud object Reason machine carry cloud hard disk has how network is got through, and how cloud hard disk information transmits, and how to find simultaneously carry cloud in system automatically The problems such as hard disk.Current several cloud products realize cloud physics machine carry cloud hard disk by way of adding intelligent network adapter+agency, but Be it is expensive, cost is too high;Cloud physics machine addition management net+agency mode faces the significant problem of network security again.
Therefore, it is badly in need of a kind of method of new cloud physics machine carry cloud disk.
Summary of the invention
In view of this, at least one aspect in order to overcome the above problem, the embodiment of the present invention propose a kind of cloud physics The method of machine carry cloud disk, comprising steps of
The cloud disk and corresponding random number for needing carry are obtained from Metadata Service;
Whether the random number of the random number and local cache that judge the acquisition is identical;
It is not identical as the random number of the local cache in response to the random number of the acquisition, execute cloud described in scanning carry The operation of disk.
In some embodiments, the cloud disk of carry and corresponding random number is needed further to wrap from Metadata Service acquisition It includes:
The cloud disk and corresponding random number for needing carry are periodically obtained from the Metadata Service.
In some embodiments, the operation for executing cloud disk described in scanning carry further comprises:
The random number of the local cache is replaced with the random number of the acquisition.
In some embodiments, the operation for executing cloud disk described in scanning carry further comprises:
There is the cloud disk for needing not continue to carry according in the cloud disk judgement for needing the carry cloud disk of carry, it is right The cloud disk for needing not continue to carry executes cleaning operation.
In some embodiments, the operation for executing cloud disk described in scanning carry further comprises:
There is the cloud disk for needing to continue carry according in the cloud disk judgement for needing the carry cloud disk of carry, to institute It states and needs to continue the cloud disk of carry and do not execute operation.
In some embodiments, the operation for executing cloud disk described in scanning carry further comprises:
According to the cloud disk for needing carry and the cloud disk of carry, judge exist in the cloud disk for needing carry New cloud disk executes scanning carry operation to the new cloud disk.
In some embodiments, further includes:
Determine the cloud disk for needing carry;
It is associated with the cloud disk for needing carry and the cloud physics machine;
The information of the associated cloud disk for needing carry is sent to Metadata Service, and generate it is corresponding it is described with Machine number.
In some embodiments, being associated with the cloud disk for needing carry with the cloud physics machine further comprises: utilizing The cloud disk of carry and the cloud physics machine are needed described in cinder interface conjunctionn;
The information of the associated cloud disk for needing carry, which is sent to Metadata Service, further comprises: utilizing The information of the associated cloud disk for needing carry is sent to Metadata Service by metada interface.
Based on the same inventive concept, according to another aspect of the present invention, the embodiments of the present invention also provide a kind of meters Calculate machine equipment, comprising:
At least one processor;And
Memory, the memory are stored with the computer program that can be run on the processor, which is characterized in that institute State the step of executing the method for any cloud physics machine carry cloud disk as described above when processor executes described program.
Based on the same inventive concept, according to another aspect of the present invention, the embodiments of the present invention also provide a kind of meters Calculation machine readable storage medium storing program for executing, the computer-readable recording medium storage have computer program, and the computer program is processed The step of method of any cloud physics machine carry cloud disk as described above is executed when device executes.
The present invention has one of following advantageous effects: the present invention nets tenant's net and management using Metadata Service Security isolation characteristic obtains newest metadata from Metadata Service, judges whether carry or unloading volume, and long-range to which Volume operates, and does not need addition intelligent network adapter and manages net, saves hardware cost, and have very strong network security reliability.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Other embodiments are obtained according to these attached drawings.
Fig. 1 is a kind of flow diagram of the method for cloud physics machine carry cloud disk that the embodiment of the present invention provides;
Fig. 2 is a kind of flow diagram of the method for cloud physics machine carry cloud disk that the embodiment of the present invention provides;
Fig. 3 is a kind of structural block diagram of the method for cloud physics machine carry cloud disk that the embodiment of the present invention provides;
Fig. 4 is the structural schematic diagram for the computer equipment that the embodiment of the present invention provides;
Fig. 5 is the structural schematic diagram for the computer readable storage medium that the embodiment of the present invention provides.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with specific embodiment, and reference The embodiment of the present invention is further described in attached drawing.
It should be noted that all statements for using " first " and " second " are for differentiation two in the embodiment of the present invention The non-equal entity of a same names or non-equal parameter, it is seen that " first " " second " only for the convenience of statement, does not answer It is interpreted as the restriction to the embodiment of the present invention, subsequent embodiment no longer illustrates this one by one.
It should be noted that in an embodiment of the present invention, Metadata Service is the submodule that OpenStack calculates service Block, externally offer cloud host metadata additions and deletions, which change the public clouds such as the Restful interface looked into, such as Ali's cloud, Huawei's cloud, this A service.
According to an aspect of the present invention, a kind of method that the embodiment of the present invention proposes cloud physics machine carry cloud disk, such as May include step shown in Fig. 1: S1 obtains the cloud disk and corresponding random number for needing carry from Metadata Service;S2, Whether the random number of the random number and local cache that judge the acquisition is identical;S3, random number and institute in response to the acquisition The random number for stating local cache is not identical, executes the operation of cloud disk described in scanning carry.
Method disclosed by the invention is by the security isolation characteristic using Metadata Service to tenant's net and management net, from member Data service obtains newest metadata, judges whether carry or unloading volume, and operate to which remote volume, does not need to add Add intelligent network adapter and management net, saves hardware cost, and there is very strong network security reliability.
Below with reference to Fig. 2 shows the flow diagram of method of cloud physics machine carry cloud disk be described in detail.
Firstly, it is necessary to obtain the cloud disk and corresponding random number for needing carry from Metadata Service.
In some embodiments, the cloud disk for needing carry can be determined first;Then it is associated with institute on a control level State the cloud disk for needing carry and the cloud physics machine;The cloud disk for needing carry is finally sent to Metadata Service, and raw At the corresponding random number.
Specifically, user can determine which cloud disk needs to be mounted to cloud physics machine by cloud platform operation interface, then Being associated with for cloud physics machine on a control level and cloud disk is realized using relevant interface.
The binding logic of interface specific implementation control plane cloud physics machine and cloud hard disk are as follows:
Interface URL is /baremeatl/ { baremetal_id }/os-volume_attachments, POST method;API The cloud hard disk UUID in body is obtained, the interface of api layer bm_attach_volume is called, which obtains the DB of cloud physics machine Object, and pass through the method bm_attach_volume of rpc calling compute Manager.Bm_attach_volume passes through Ironic_client calls ironic interface to obtain cloud physics machine information, calls cinder interface to obtain by cinder_client The iqn information (UUID sequence number information) of each cloud hard disk is taken, and cloud physics machine is registered into rear end and is stored, cloud hard disk is bound To cloud physics machine.Update_volume_metada interface is called to go to update the metadata of cloud physics machine.update_volume_ Cloud hard disk iqn information list is updated to the metadata volume_list of cloud physics machine by metada interface;And generate one with Machine number flag judges whether to carry operation for acting on behalf of, and is also updated to metadata.
So far, the cloud physics machine carry cloud hard disk operation of control plane terminates, cinder creation cloud hard disk with cloud object Reason machine rear end cloud physics machine is associated.
It should be noted that flag is the key of a metadata, its value is a random number, persistence to metadata In service, only when user carries out carry/unloading operation by cloud platform operation interface, the service of control layer just can be by it more Newly.
It, can be sharp in cloud physics machine after being associated on a control level to the cloud disk and cloud physics machine that need carry With the agency service bm_volume_agent for carrying out carry cloud hard disk, this agency service is installed when making cloud physics machine mirror image Into mirror image, and the service unit of systemd management is registered as, booting service self-starting.
In some embodiments of the invention, the cloud disk and corresponding random number for needing carry are obtained from Metadata Service It include: that the cloud disk and corresponding random number that need carry are periodically obtained from the Metadata Service.Of the invention several In further embodiment, the operation for executing scanning carry cloud disk further comprises: with the random number replacement local cache obtained Random number.
According to one embodiment of present invention, this Broker Core is a timed task, every such as 20 seconds periodically from Metadata Service obtains the metadata of the primary cloud physics machine, and parsing needs carry cloud hard disk list and carry attribute field, from And obtain the cloud disk and corresponding random number for needing carry.
It should be noted that obtaining the period can set according to actual needs, it is not merely defined in 20 seconds.
Then, judge whether the random number of the random number and local cache is identical.
Timed task in cloud physics machine periodically obtains the metadata of host: volume_list and flag, every time Acquisition can all compare with the flag locally deposited and deposit new flag to local.By the carry mark for comparing local cache Mark flag in field local_flag and metadata judges whether that doing scanning hangs disk operation.
If flag ≠ local_flag, illustrate that having invoked cloud physics machine carry cloud hard-disk interface namely control layer carries out At this moment carry operation needs to execute carry task in data Layer, need to be implemented scanning carry operation, will in cloud hard disk list Remote volume carry updates local attribute field to local.
If flag=local_flag, illustrates that user does not have calling interface, do not operate.
In some embodiments, executing scanning carry operation may include: to be judged according to the cloud disk for needing carry There is the cloud disk for needing not continue to carry in cloud disk through carry, cleaning behaviour is executed to the cloud disk for needing not continue to carry Make.According to further embodiments, judge to exist in the cloud disk of carry according to the cloud disk for needing carry and need to continue The cloud disk of carry does not execute operation to the cloud disk for needing to continue carry.According to further embodiments, according to the needs The cloud disk of the cloud disk of carry and carry, judges in the cloud disk for needing carry there are new cloud disk, to described new Cloud disk executes scanning carry operation.
Specifically, the cloud disk of such as last time carry is A, B, C, specifically needing the cloud disk of carry is A, B, D.So executing When carry task, the movement that each volume needs to carry out, i.e. A, B are got in metadata, D needs carry, and C needs unload It carries.
When periodic duty operates each cloud hard disk for wanting carry, first judge current state and dbjective state whether phase Deng, then do corresponding actions.Such as: carry, target are carry by A, B, then do not act;D does not have carry, then sweeps disk carry.Period When task operates each cloud hard disk to be unloaded, cleaning operation is directly executed.
In some embodiments of the invention, method further include: determine the cloud disk for needing carry;Association needs the cloud of carry Disk and cloud physics machine;The information of the associated cloud disk for needing carry is sent to Metadata Service, and is generated corresponding random Number.According to further embodiments, being associated with the cloud disk for needing carry with the cloud physics machine further comprises: utilizing The cloud disk of carry and the cloud physics machine are needed described in cinder interface conjunctionn.By the associated cloud disk for needing carry Information is sent to Metadata Service: using metada interface by the letter of the associated cloud disk for needing carry Breath is sent to Metadata Service.
It is described in detail below with reference to structural block diagram shown in Fig. 3.
As shown in figure 3, carry cloud hard-disk interface receives pre- carry cloud hard disk uuid, it is added to the metadata of cloud physics machine In, it generates an attribute field and is updated to metadata.Cinder interface is called to bind cloud physics machine with remote volume.Cloud object By being injected into mirror image in advance and self-starting acts on behalf of bm_volume_agent and completes carry: timed task in reason machine system Period obtains cloud physics machine metadata, and whether judges upper layer according to whether flag is equal with the local_flag locally saved Operation.If unequal, the carry on data Layer is carried out.
Based on the same inventive concept, according to another aspect of the present invention, as shown in figure 4, the embodiment of the present invention also mentions Supply a kind of computer equipment 501, comprising:
At least one processor 520;And
Memory 510, memory 510 are stored with the computer program 511 that can be run on a processor, and processor 520 is held The step of method of any cloud physics machine carry cloud disk as above is executed when line program.
Based on the same inventive concept, according to another aspect of the present invention, as shown in figure 5, the embodiment of the present invention also mentions A kind of computer readable storage medium 601 is supplied, computer readable storage medium 601 is stored with computer program instructions 610, meter The step of method of any cloud physics machine carry cloud disk as above is executed when calculation machine program instruction 610 is executed by processor.
Finally, it should be noted that those of ordinary skill in the art will appreciate that realizing the whole in above-described embodiment method Or part process, related hardware can be instructed to complete by computer program, program to can be stored in one computer-readable It takes in storage medium, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, storage medium It can be magnetic disk, CD, read-only memory (ROM) or random access memory (RAM) etc..The implementation of above-mentioned computer program Example, can achieve the identical or similar effect of corresponding aforementioned any means embodiment.
In addition, typically, device disclosed by the embodiments of the present invention, equipment etc. can be various electric terminal equipments, such as hand Machine, personal digital assistant (PDA), tablet computer (PAD), smart television etc., are also possible to large-scale terminal device, such as server Deng, therefore protection scope disclosed by the embodiments of the present invention should not limit as certain certain types of device, equipment.The present invention is implemented Client disclosed in example, which can be, is applied to any one of the above electricity with the combining form of electronic hardware, computer software or both In sub- terminal device.
In addition, disclosed method is also implemented as the computer program executed by CPU according to embodiments of the present invention, it should Computer program may be stored in a computer readable storage medium.When the computer program is executed by CPU, the present invention is executed The above-mentioned function of being limited in method disclosed in embodiment.
In addition, above method step and system unit also can use controller and for storing so that controller is real The computer readable storage medium of the computer program of existing above-mentioned steps or Elementary Function is realized.
In addition, it should be appreciated that the computer readable storage medium (for example, memory) of this paper can be volatibility and deposit Reservoir or nonvolatile memory, or may include both volatile memory and nonvolatile memory.As an example and Unrestricted, nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory.Volatile memory may include that arbitrary access is deposited Reservoir (RAM), the RAM can serve as external cache.As an example and not restrictive, RAM can be with a variety of Form obtains, such as synchronous random access memory (DRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate SDRAM (DDR SDRAM), enhance SDRAM (ESDRAM), synchronization link DRAM (SLDRAM) and directly Rambus RAM (DRRAM).Institute is public The storage equipment for the aspect opened is intended to the memory of including but not limited to these and other suitable type.
Those skilled in the art will also understand is that, various illustrative logical blocks, mould in conjunction with described in disclosure herein Block, circuit and algorithm steps may be implemented as the combination of electronic hardware, computer software or both.It is hard in order to clearly demonstrate This interchangeability of part and software, with regard to various exemplary components, square, module, circuit and step function to its into General description is gone.This function is implemented as software and is also implemented as hardware depending on concrete application and application To the design constraint of whole system.The function that those skilled in the art can realize in various ways for every kind of concrete application Can, but this realization decision should not be interpreted as causing a departure from range disclosed by the embodiments of the present invention.
Various illustrative logical blocks, module and circuit, which can use, in conjunction with described in disclosure herein is designed to The following component of function here is executed to realize or execute: general processor, digital signal processor (DSP), dedicated integrated electricity It is road (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete Any combination of hardware component or these components.General processor can be microprocessor, but alternatively, processor can To be any conventional processors, controller, microcontroller or state machine.Processor also may be implemented as calculating the group of equipment Close, for example, the combination of DSP and microprocessor, multi-microprocessor, one or more microprocessors combination DSP and/or it is any its Its this configuration.
The step of method in conjunction with described in disclosure herein or algorithm, can be directly contained in hardware, be held by processor In capable software module or in combination of the two.Software module may reside within RAM memory, flash memory, ROM storage Device, eprom memory, eeprom memory, register, hard disk, removable disk, CD-ROM or known in the art it is any its In the storage medium of its form.Illustrative storage medium is coupled to processor, enables a processor to from the storage medium Information is written to the storage medium in middle reading information.In an alternative, storage medium can be integral to the processor Together.Pocessor and storage media may reside in ASIC.ASIC may reside in user terminal.In an alternative In, it is resident in the user terminal that pocessor and storage media can be used as discrete assembly.
In one or more exemplary designs, function can be realized in hardware, software, firmware or any combination thereof. If realized in software, can using function as one or more instruction or code may be stored on the computer-readable medium or It is transmitted by computer-readable medium.Computer-readable medium includes computer storage media and communication media, which is situated between Matter includes any medium for helping for computer program to be transmitted to another position from a position.Storage medium can be energy Any usable medium being enough accessed by a general purpose or special purpose computer.As an example and not restrictive, the computer-readable medium It may include that RAM, ROM, EEPROM, CD-ROM or other optical disc memory apparatus, disk storage equipment or other magnetic storages are set It is standby, or can be used for carrying or storage form be instruct or the required program code of data structure and can by general or Special purpose computer or any other medium of general or specialized processor access.In addition, any connection can suitably claim For computer-readable medium.For example, if using coaxial cable, optical fiber cable, twisted pair, digital subscriber line (DSL) or all It is if the wireless technology of infrared ray, radio and microwave to send software from website, server or other remote sources, then above-mentioned coaxial Cable, fiber optic cable, twisted pair, DSL or such as wireless technology of infrared ray, radio and microwave are included in determining for medium Justice.As used herein, disk and CD include compact disk (CD), it is laser disk, CD, digital versatile disc (DVD), soft Disk, Blu-ray disc, wherein disk usually magnetically reproduce data, and CD using laser optics reproduce data.Above content Combination should also be as being included in the range of computer-readable medium.
It is exemplary embodiment disclosed by the invention above, it should be noted that in the sheet limited without departing substantially from claim Under the premise of inventive embodiments scope of disclosure, it may be many modifications and modify.According to open embodiment described herein The function of claim to a method, step and/or movement be not required to the execution of any particular order.In addition, although the present invention is implemented Element disclosed in example can be described or be required in the form of individual, but be unless explicitly limited odd number, it is understood that be multiple.
It should be understood that it is used in the present context, unless the context clearly supports exceptions, singular " one It is a " it is intended to also include plural form.It is to be further understood that "and/or" used herein refers to including one or one Any and all possible combinations of a above project listed in association.
It is for illustration only that the embodiments of the present invention disclose embodiment sequence number, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware Complete, relevant hardware can also be instructed to complete by program, program can store in a kind of computer-readable storage In medium, storage medium mentioned above can be read-only memory, disk or CD etc..
It should be understood by those ordinary skilled in the art that: the discussion of any of the above embodiment is exemplary only, not It is intended to imply that range disclosed by the embodiments of the present invention (including claim) is limited to these examples;In the think of of the embodiment of the present invention Under road, it can also be combined between the technical characteristic in above embodiments or different embodiments, and there is this hair as above Many other variations of the different aspect of bright embodiment, for simplicity, they are not provided in details.Therefore, all in the present invention Within the spirit and principle of embodiment, any omission, modification, equivalent replacement, improvement for being made etc. be should be included in of the invention real It applies within the protection scope of example.

Claims (10)

1. a kind of method of cloud physics machine carry cloud disk, comprising steps of
The cloud disk and corresponding random number for needing carry are obtained from Metadata Service;
Whether the random number of the random number and local cache that judge the acquisition is identical;
It is not identical as the random number of the local cache in response to the random number of the acquisition, execute cloud disk described in scanning carry Operation.
2. the method as described in claim 1, which is characterized in that obtain the cloud disk and correspondence for needing carry from Metadata Service Random number further comprise:
The cloud disk and corresponding random number for needing carry are periodically obtained from the Metadata Service.
3. method according to claim 2, which is characterized in that the operation for executing cloud disk described in scanning carry further comprises:
The random number of the local cache is replaced with the random number of the acquisition.
4. the method as described in claim 1, which is characterized in that the operation for executing cloud disk described in scanning carry further comprises:
There is the cloud disk for needing not continue to carry according in the cloud disk judgement for needing the carry cloud disk of carry, to described The cloud disk for needing not continue to carry executes cleaning operation.
5. the method as described in claim 1, which is characterized in that the operation for executing cloud disk described in scanning carry further comprises:
There is the cloud disk for needing to continue carry according in the cloud disk judgement for needing the carry cloud disk of carry, to the need The cloud disk for continuing carry does not execute operation.
6. the method as described in claim 1, which is characterized in that the operation for executing cloud disk described in scanning carry further comprises:
According to the cloud disk for needing carry and the cloud disk of carry, judge to exist in the cloud disk for needing carry new Cloud disk executes scanning carry operation to the new cloud disk.
7. the method as described in claim 1, which is characterized in that further include:
Determine the cloud disk for needing carry;
It is associated with the cloud disk for needing carry and the cloud physics machine;
The information of the associated cloud disk for needing carry is sent to Metadata Service, and is generated corresponding described random Number.
8. the method for claim 7, which is characterized in that the association cloud disk for needing carry and the cloud physics machine into One step includes: to utilize the cloud disk and the cloud physics machine that carry is needed described in cinder interface conjunctionn;
The information of the associated cloud disk for needing carry, which is sent to Metadata Service, further comprises: being connect using metada The information of the associated cloud disk for needing carry is sent to Metadata Service by mouth.
9. a kind of computer equipment, comprising:
At least one processor;And
Memory, the memory are stored with the computer program that can be run on the processor, which is characterized in that the place Manage the method executed as described in claim 1-8 any one when device executes described program.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In perform claim requires method described in 1-8 any one when the computer program is executed by processor.
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 true CN110445841A (en) 2019-11-12
CN110445841B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111694519A (en) * 2020-05-29 2020-09-22 北京世纪互联宽带数据中心有限公司 Method and system for mounting cloud hard disk on bare metal server and server
CN112003963A (en) * 2020-08-27 2020-11-27 苏州浪潮智能科技有限公司 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
CN114546920A (en) * 2022-02-20 2022-05-27 中电云数智科技有限公司 Bare metal server data disk hot plug method based on intelligent network card under Feiteng CPU architecture
CN114647456A (en) * 2022-05-13 2022-06-21 中电云数智科技有限公司 Server disk hot mounting method and intelligent network card

Citations (9)

* 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
CN107547242A (en) * 2017-05-24 2018-01-05 新华三技术有限公司 The acquisition methods and device of VM configuration informations
US20180300108A1 (en) * 2017-04-18 2018-10-18 International Business Machines Corporation Trusted random number generation by a cloud server
CN109032753A (en) * 2018-06-20 2018-12-18 上海市信息网络有限公司 A kind of isomery virtual hard disk trustship method, system, storage medium and Nova platform
CN109040107A (en) * 2018-08-29 2018-12-18 百度在线网络技术(北京)有限公司 Data processing method, server, unmanned equipment and readable storage medium storing program for executing
CN109597717A (en) * 2018-12-07 2019-04-09 北京金山云网络技术有限公司 A kind of data backup, restoration methods, device, electronic equipment and storage medium
CN109802976A (en) * 2017-11-16 2019-05-24 航天信息股份有限公司 Cloud hard disk dynamic dispatching method, device and the electronic system of Open Stack cloud platform
CN109951525A (en) * 2019-02-18 2019-06-28 山东浪潮云信息技术有限公司 A kind of cloud disk carry system and method based on container

Patent Citations (9)

* 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
US20180300108A1 (en) * 2017-04-18 2018-10-18 International Business Machines Corporation Trusted random number generation by a cloud server
CN107547242A (en) * 2017-05-24 2018-01-05 新华三技术有限公司 The acquisition methods and device of VM configuration informations
CN109802976A (en) * 2017-11-16 2019-05-24 航天信息股份有限公司 Cloud hard disk dynamic dispatching method, device and the electronic system of Open Stack cloud platform
CN109032753A (en) * 2018-06-20 2018-12-18 上海市信息网络有限公司 A kind of isomery virtual hard disk trustship method, system, storage medium and Nova platform
CN109040107A (en) * 2018-08-29 2018-12-18 百度在线网络技术(北京)有限公司 Data processing method, server, unmanned equipment and readable storage medium storing program for executing
CN109597717A (en) * 2018-12-07 2019-04-09 北京金山云网络技术有限公司 A kind of data backup, restoration methods, 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

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111694519A (en) * 2020-05-29 2020-09-22 北京世纪互联宽带数据中心有限公司 Method and system for mounting cloud hard disk on bare metal server and server
CN111694519B (en) * 2020-05-29 2023-11-21 北京世纪互联宽带数据中心有限公司 Method, system and server for mounting cloud hard disk on bare metal server
CN112003963A (en) * 2020-08-27 2020-11-27 苏州浪潮智能科技有限公司 Method, system, device and medium for mounting volume 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
CN114546920A (en) * 2022-02-20 2022-05-27 中电云数智科技有限公司 Bare metal server data disk hot plug method based on intelligent network card under Feiteng CPU architecture
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

Also Published As

Publication number Publication date
CN110445841B (en) 2022-04-22

Similar Documents

Publication Publication Date Title
CN110445841A (en) A kind of method, equipment and the storage medium of cloud physics machine carry cloud disk
KR101778768B1 (en) METHOD OF CONTROLLING IoT DEVICE AND IoT DEVICE CONTROL SYSTEM FOR PERFORMING THE SAME
US10698812B2 (en) Updating cache using two bloom filters
US20190306026A1 (en) Client-directed placement of remotely-configured service instances
CN107608689A (en) The update method of application program, device and electronic equipment in client
CN108306877A (en) Verification method, device and the storage medium of subscriber identity information based on NODE JS
US20180114025A1 (en) Code package processing
CN107329741A (en) A kind of software distribution upgrade method and device based on fingerprint recognition
CN109683826A (en) Expansion method and device for distributed memory system
CN103827878B (en) Automate Password Management
EP3815294B1 (en) Method and apparatus for implementing a distributed blockchain transaction processing element in a datacenter
US20230252041A1 (en) System and method for bi-directional replication of data objects in a heterogeneous storage environment
CN110199283B (en) System and method for authenticating platform trust in a network functions virtualization environment
WO2019086011A1 (en) Method and device for managing services in network function virtualization architecture
CN112965901B (en) API testing method, server, system and electronic equipment
CN109684285A (en) A kind of User space Network File System file lock method, device and equipment
US10223218B2 (en) Disaster recovery of managed systems
CN105959179B (en) A kind of reverse proxy nginx test macro and method
CN110442307A (en) Binding method, equipment and the storage medium of disk in a kind of linux system
WO2018083558A1 (en) Storing and retrieving restricted datasets to and from a cloud network with non-restricted datasets
CN109245928A (en) Setting method and device, the terminal management system of configuration information
CN108964993A (en) Failure simulation method, device, equipment and readable storage medium storing program for executing based on dynamic proxy
CN110519329A (en) A kind of method, equipment and the readable medium of concurrent processing samba agreement request
CN110008694A (en) A kind of application security control method, device, equipment and readable storage medium storing program for executing
CN109743179B (en) Electronic certificate issuing method according to requirements

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