CN111694519B - Method, system and server for mounting cloud hard disk on bare metal server - Google Patents

Method, system and server for mounting cloud hard disk on bare metal server Download PDF

Info

Publication number
CN111694519B
CN111694519B CN202010478341.5A CN202010478341A CN111694519B CN 111694519 B CN111694519 B CN 111694519B CN 202010478341 A CN202010478341 A CN 202010478341A CN 111694519 B CN111694519 B CN 111694519B
Authority
CN
China
Prior art keywords
bare metal
hard disk
metal server
mounting
cloud hard
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
CN202010478341.5A
Other languages
Chinese (zh)
Other versions
CN111694519A (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.)
21VIANET GROUP Inc
Original Assignee
21VIANET GROUP Inc
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 21VIANET GROUP Inc filed Critical 21VIANET GROUP Inc
Priority to CN202010478341.5A priority Critical patent/CN111694519B/en
Publication of CN111694519A publication Critical patent/CN111694519A/en
Application granted granted Critical
Publication of CN111694519B publication Critical patent/CN111694519B/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
    • G06F3/0622Securing storage systems in relation to access
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • 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/0637Permissions
    • 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/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • 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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

The embodiment of the application discloses a method, a system and a server for mounting a cloud hard disk on a bare metal server, which are used for solving the problems of high cost and low safety in the method for mounting the cloud hard disk on the bare metal server in the prior art, and the method comprises the following steps: the network cloud platform receives a cloud hard disk mounting request sent by the management platform, wherein the cloud hard disk mounting request comprises a cloud hard disk mounting message, an access address of a bare metal server and an access address of a storage pool; the network cloud platform sends the cloud hard disk mounting message to a bare metal server corresponding to the access address of the metal server; the bare metal server receives the cloud hard disk mounting message, collects configuration files according to the cloud hard disk mounting message and feeds back the configuration files to the network cloud platform; when the network cloud platform receives the configuration file, the network cloud platform informs a storage pool corresponding to an access address of the storage pool to create a secret key for the bare metal server, and informs the secret key to the bare metal server; and the bare metal server mounts the cloud hard disk according to the secret key and through an iSCSI protocol.

Description

Method, system and server for mounting cloud hard disk on bare metal server
Technical Field
The embodiment of the application relates to the technical field of cloud computing, in particular to a method, a system and a server for mounting a cloud hard disk on a bare metal server.
Background
With the rapid development of the cloud computing field, in some specific scenarios, a virtual cloud host cannot meet the requirements of high-performance computing, high-disk IO, single user, special hardware, security, reliability and other control. The bare metal server is arranged between the physical server and the virtual cloud host, has the advantages of both sides, has the excellent performance of the traditional physical server, and has the same convenient management platform as the cloud host, so that the bare metal server is convenient to exchange and use data between the cloud and the local disk, and the cloud hard disk needs to be mounted and dismounted in real time.
In order to meet the network isolation among bare metal server users, and simultaneously communicate with a storage pool, two schemes exist in the prior art: the first scheme is realized by combining an intelligent network card and an agent mode, wherein the intelligent network card is responsible for network virtualization, isolation between networks is ensured, and the agent mode is responsible for receiving a request sent by a cloud computing management platform to mount a physical cloud hard disk. In the second scheme, a management network card is added in the bare metal server, communication is carried out between the management network card and a storage pool, a request of a cloud computing management platform is received, and a physical cloud hard disk is mounted according to the request.
However, the use of the intelligent network card scheme increases the physical cost, which increases the cost greatly for the internet data center (Internet Data Center, IDC), not all bare metal servers have the need to mount cloud hard disks, but cloud computing providers add intelligent network cards to all physical servers that provide bare metal services, which increases a lot of cost. The network card and proxy management scheme is suitable for a private cloud scene, and has great potential safety hazard in a public cloud scene for a scene with low user network isolation requirements.
Disclosure of Invention
The embodiment of the application provides a method, a system and a server for mounting a cloud hard disk on a bare metal server, which are used for solving the problems of high cost and low safety in the method for mounting the cloud hard disk on the bare metal server in the prior art.
The embodiment of the application adopts the following technical scheme:
in a first aspect, a method for mounting a cloud hard disk on a bare metal server is provided, the method comprising:
the network cloud platform receives a cloud hard disk mounting request sent by a management platform, wherein the cloud hard disk mounting request comprises a cloud hard disk mounting message, an access address of a bare metal server and an access address of a storage pool;
the network cloud platform sends the cloud hard disk mounting message to a bare metal server corresponding to the access address of the metal server;
the bare metal server receives the cloud hard disk mounting message, collects configuration files according to the cloud hard disk mounting message and feeds back the configuration files to the network cloud platform;
when the network cloud platform receives the configuration file, the network cloud platform informs a storage pool corresponding to an access address of the storage pool to create a secret key for the bare metal server, and informs the secret key to the bare metal server;
the bare metal server mounts a cloud hard disk according to the key and via iSCSI (Internet Small Computer System Interface, small computer system interface) protocol.
In a second aspect, a system for mounting a cloud hard disk on a bare metal server is provided, the system comprising:
the first sending module is used for receiving a cloud hard disk mounting request sent by the management platform by the network cloud platform, wherein the cloud hard disk mounting request comprises a cloud hard disk mounting message, an access address of a bare metal server and an access address of a storage pool;
the second sending module is used for sending the cloud hard disk mounting message to a bare metal server corresponding to the access address of the metal server by the network cloud platform;
the receiving and collecting module is used for receiving the cloud hard disk mounting message by the bare metal server, collecting configuration files according to the cloud hard disk mounting message and feeding back the configuration files to the network cloud platform;
the first creating module is used for notifying a storage pool corresponding to an access address of the storage pool to create a secret key for the bare metal server when the network cloud platform receives the configuration file, and notifying the secret key to the bare metal server;
and the mounting module is used for mounting the cloud hard disk by the bare metal server according to the secret key and through an iSCSI protocol.
In a third aspect, a server is provided, comprising: a memory storing computer program instructions;
and the processor is used for realizing the method for mounting the cloud hard disk on the bare metal server when the computer program is executed by the processor.
In a fourth aspect, a computer readable storage medium is provided, the computer readable storage medium comprising instructions that when executed on a computer cause the computer to perform a method for mounting a cloud hard disk on a bare metal server as described above.
The above at least one technical scheme adopted by the embodiment of the application can achieve the following beneficial effects:
the embodiment of the application is realized in a software mode, the cost is low, the variation is small, and a user does not need to buy an intelligent network card or install the intelligent network card for each bare metal server. Meanwhile, the cloud hard disk mounting request sent by the management platform comprises an access address of the bare metal server and an access address of the storage pool, wherein the access address is obtained in a mode of forwarding by a virtual router, and a user does not have permission to manage the virtual router and only uses the permission of the virtual router. The users are mutually isolated, and the safety is high.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
fig. 1 is a schematic flow chart of a method for mounting a cloud hard disk on a bare metal server according to an embodiment of the present disclosure;
fig. 2 is a network architecture diagram of a method for mounting a cloud hard disk on a bare metal server according to an embodiment of the present disclosure;
fig. 3 is a schematic system structure diagram of a bare metal server mounting cloud hard disk according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a server structure according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be clearly and completely described below with reference to specific embodiments of the present specification and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are intended to be within the scope of the present application based on the embodiments herein.
The embodiment of the application provides a method, a system and a server for mounting a cloud hard disk on a bare metal server, which are used for solving the problems of high cost and low safety in the method for mounting the cloud hard disk on the bare metal server in the prior art. The embodiment of the application provides a method for mounting a cloud hard disk on a bare metal server, and an execution subject of the method can be an application program, a server or a device or a system which can be configured to execute the method provided by the embodiment of the application.
For convenience of description, hereinafter, embodiments of the method will be described taking an execution subject of the method as a server capable of executing the method as an example. It will be appreciated that the subject matter of the method being performed by the server is merely an exemplary illustration and should not be construed as limiting the method.
Fig. 1 is a flowchart of a method for mounting a cloud hard disk on a bare metal server according to an embodiment of the present application, where the method of fig. 1 may be executed by the server, as shown in fig. 1, and the method may include:
step 101, a network cloud platform receives a request for mounting a cloud hard disk, which is sent by a management platform.
And the user sends a request for mounting the cloud hard disk to the network cloud platform through the management platform. Different users may be located in different vlans, with each user having computing, storage, and network resources isolated from other users, and the bare metal servers of the users accessing the network cloud platform, storage network, and management center via respective virtual routers (vruters). The bare metal servers are in one-to-one correspondence with the virtual routers. The virtual router is configured to convert source addresses of different destination private network addresses into corresponding shared addresses (such as public network addresses), that is, determine SNAT (source address conversion) of the different destination addresses into corresponding address forwarding requests, for example: the request for accessing the external network is directly converted into a public network ip access address applied by a user, the request for proxy and management network communication is converted into management network segment access address access, and the request for accessing the storage pool is converted into a storage pool network segment access address.
Illustratively, as shown in fig. 2, bare metal servers (Tenant a, tenant B), bare metal servers (Tenant a) correspond to virtual routers (vruter a), bare metal servers (Tenant B) correspond to virtual routers (vruter B), and platform shared storage interface (ISCSI pool).
Suppose that the private network address of a certain cloud host of the user A is 1.1.1.1, the platform storage pool address is 11.11.11.11, the upper networking section of a virtual router of the user is 10.10.10.0/24, and the upper networking section and the storage pool network section are communicated through a three-layer switch.
The Teannt A private network address is: 1.1.1.1
Private network gateway: 1.1.1.254
Upper connection of Vrouter a: 10.10.10.10
Platform shared storage interface IP:11.11.11.11
The path of the user to access the external network is then:
the user accesses the external network 1.1.1.1- > (vruter 1.1.1.254-snat- > -public network ip address) - - > -core switch- > -public network gateway- > -internet
The path of the user accessing the storage pool network is as follows:
the user accesses the platform storage network 1.1.1.1- > (vruter 1.1.1.254-snat- > -10.10.10.10) - - > -core switch- > -platform storage network address- >11.11.11.11.
After executing step 101, the method for mounting the cloud hard disk on the bare metal server provided by the embodiment of the application further includes:
and the network cloud platform determines that the bare metal server corresponding to the access address of the bare metal server has an agent program for mounting a cloud hard disk.
It should be understood that, after receiving the request for mounting the cloud hard disk, the network cloud platform verifies the validity of the bare metal server corresponding to the access address of the bare metal server, i.e. verifies whether the agent program is installed on the bare metal server.
Step 102, the network cloud platform sends the cloud hard disk mounting message to a bare metal server corresponding to an access address of the metal server.
The cloud hard disk mounting request comprises a cloud hard disk mounting message, an access address of a bare metal server and an access address of a storage pool.
Specifically, the request for mounting the cloud hard disk includes a request for accessing the bare metal server and a request for accessing the storage pool. The access address of the bare metal server is converted by the request for accessing the bare metal server through a virtual router, and the access address of the storage pool is converted by the request for accessing the storage pool through the virtual router.
The method can be concretely realized as follows: the linux realizes SNAT and DNAT functions through iptables, and the iptables chain is not matched after being matched with a certain rule, wherein the rule means that when a machine accesses a management network and accesses a storage network, a source address is converted into 10.10.10.10.10, so that a management platform looks as an access directly initiated by 10.10.10.10. When the iptables chain does not match the rule, the source address is directly converted into a public network address, and the three-layer switch transfers the public network address to a public network gateway and sends the public network gateway to the internet.
Exemplary, implementation code design references the vruter implementation of the neutron in the openstack project.
The method comprises the following steps:
the default gateway address in the Vrouter design is a three-layer switch, the vrometer can be regarded as a small linux operating system, different iptables rules are designed according to different destination addresses, and the following rules are added by default after the user creates the vpc:
1) iptables-A POSTROUTING-d { cloud platform management } -oqg-d 518b764-25-j SNAT- -to-source 10.10.10.10.10
2) iptables-A POSTROUTING-d { cloud platform storage } -oqg-d 518b764-25-j SNAT- -to-source 10.10.10.10.10
3) iptables-A POSTROUTING-o qg-d518b764-25-j SNAT-to-source { public network ip Address }
Step 103, the bare metal server receives the cloud hard disk mounting message, collects configuration files according to the cloud hard disk mounting message and feeds the configuration files back to the network cloud platform.
The method comprises the following steps:
after the bare metal server receives the cloud hard disk mounting message, the bare metal server checks whether a mounting service interface is in an on state or not;
if yes, the bare metal server collects configuration files according to the cloud hard disk mounting information and feeds the configuration files back to the network cloud platform.
104, when the network cloud platform receives the configuration file, the network cloud platform notifies a storage pool corresponding to an access address of the storage pool to create a secret key for the bare metal server, and notifies the secret key to the bare metal server.
After the storage pool creates the secret key for the bare metal server, the method for mounting the cloud hard disk on the bare metal server provided by the embodiment of the application further comprises the following steps:
and in the case that the key does not match with the configuration file key, the storage pool refuses to create a link with the bare metal server.
It should be appreciated that the key is first matched to the profile key, and the pool refuses to create a link with the bare metal server if the key does not match the profile key.
And 105, the bare metal server mounts a cloud hard disk according to the secret key and through an iSCSI protocol.
After executing step 105, the method for mounting the cloud hard disk on the bare metal server provided by the embodiment of the application further includes:
and storing the mounting link of the bare metal server and the cloud hard disk so as to prepare for automatic mounting after restarting the bare metal server.
The embodiment of the application is realized in a software mode, the cost is low, the variation is small, and a user does not need to buy an intelligent network card or install the intelligent network card for each bare metal server. Meanwhile, the cloud hard disk mounting request sent by the management platform comprises an access address of the bare metal server and an access address of the storage pool, wherein the access address is obtained in a mode of forwarding by a virtual router, and a user does not have permission to manage the virtual router and only uses the permission of the virtual router. The users are mutually isolated, and the safety is high.
In one embodiment, the management platform includes an access interface of a bare metal server, an access interface of a network cloud platform, and an access interface of a storage pool.
According to the embodiment of the application, the virtual router of the management platform is added with the interface, so that the external network, the management network and the storage network are accessed and forwarded through different interfaces. And the interfaces are isolated, so that the access rate of other networks is not affected.
In one embodiment, after executing step 105, the method for mounting the cloud hard disk on the bare metal server provided by the embodiment of the application includes:
and carrying out bandwidth speed limit on the bare metal server according to the bandwidth threshold.
The bandwidth threshold is set according to actual requirements, and the embodiment of the application is not particularly limited.
According to the embodiment of the application, the reasonable bandwidth speed limit is added when the cloud hard disk is accessed, so that normal reading and writing of a user are not prevented, and the access speed of the external network is not influenced.
The method for mounting the cloud hard disk on the bare metal server according to the embodiment of the present disclosure is described in detail above with reference to fig. 1 to 2, and the system for mounting the cloud hard disk on the bare metal server according to the embodiment of the present disclosure is described in detail below with reference to fig. 3.
Fig. 3 shows a schematic structural diagram of a system for mounting a cloud hard disk on a bare metal server according to an embodiment of the present disclosure, where, as shown in fig. 3, the system may include:
the first sending module 301 is configured to receive, by using a network cloud platform, a cloud hard disk mounting request sent by a management platform, where the cloud hard disk mounting request includes a cloud hard disk mounting message, an access address of a bare metal server, and an access address of a storage pool;
the second sending module 302 is configured to send the cloud hard disk mounting message to a bare metal server corresponding to an access address of the metal server by using the network cloud platform;
the receiving and collecting module 303 is configured to receive the cloud hard disk mounting message by using the bare metal server, collect a configuration file according to the cloud hard disk mounting message, and feed back the configuration file to the network cloud platform;
a first creating module 304, configured to, when the network cloud platform receives the configuration file, notify a storage pool corresponding to an access address of the storage pool to create a key for the bare metal server, and notify the bare metal server of the key;
and the mounting module 305 is used for mounting the cloud hard disk by the bare metal server according to the secret key and through an iSCSI protocol.
In an embodiment, the request for mounting the cloud hard disk includes a request for accessing a bare metal server and a request for accessing a storage pool; wherein,
the access address of the bare metal server is translated by a request to access the bare metal server, and the access address of the storage pool is translated by a request to access the storage pool.
In one embodiment, a system may include:
the determining module 306 is configured to determine, by using the network cloud platform, that the bare metal server corresponding to the access address of the bare metal server has an agent program with a cloud hard disk installed.
In an embodiment, the receiving and collecting module 303 may include:
the checking unit is used for checking whether the mounting service interface is in an on state or not by the bare metal server after the bare metal server receives the mounting cloud hard disk message;
and the collection unit is used for collecting configuration files according to the information of the mounting cloud hard disk by the bare metal server and feeding back the configuration files to the network cloud platform if the checking unit checks that the mounting service interface is in an on state.
In one embodiment, a system may include:
a second creation module 307, configured to refuse to create a link with the bare metal server in a case where the key does not match the profile key.
In an embodiment, the management platform comprises an access interface of a bare metal server, an access interface of a network cloud platform and an access interface of a storage pool.
In one embodiment, a system may include:
and the speed limiting module 308 is used for limiting the bandwidth of the bare metal server according to the bandwidth threshold.
The embodiment of the application is realized in a software mode, the cost is low, the variation is small, and a user does not need to buy an intelligent network card or install the intelligent network card for each bare metal server. Meanwhile, the cloud hard disk mounting request sent by the management platform comprises an access address of the bare metal server and an access address of the storage pool, wherein the access address is obtained in a mode of forwarding by a virtual router, and a user does not have permission to manage the virtual router and only uses the permission of the virtual router. The users are mutually isolated, and the safety is high.
A server according to an embodiment of the present application will be described in detail with reference to fig. 4. Referring to fig. 4, at the hardware level, the server includes a processor, optionally including an internal bus, a network interface, a memory. As shown in fig. 4, the Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory (non-volatile Memory), such as at least 1 disk Memory, and so on. Of course, the server may also include the hardware needed to implement other targeted services.
The processor, network interface, and memory may be interconnected by an internal bus, which may be an industry standard architecture (Industry Standard Architecture, ISA) bus, a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 4, but not only one bus or type of bus.
And the memory is used for storing programs. In particular, the program may include program code including computer-operating instructions. The memory may include memory and non-volatile storage and provide instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form a device for associating the resource value-added object with the resource object on a logic level. The processor executes the programs stored in the memory and is specifically configured to perform the operations of the method embodiments described in the foregoing description.
The method disclosed in the embodiments shown in fig. 1 to fig. 3 and the method executed by the system for mounting the cloud hard disk on the bare metal server can be applied to a processor or implemented by the processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method.
The server shown in fig. 4 may also execute the methods of fig. 1 to 2, and the method for implementing the cloud hard disk mounting method of the bare metal server is the functions of the embodiments shown in fig. 1 to 2, which are not described herein again.
Of course, in addition to the software implementation, the server of the present application does not exclude other implementations, such as a logic device or a combination of software and hardware, etc., that is, the execution subject of the following process flows is not limited to each logic unit, but may also be hardware or a logic device.
The embodiment of the application also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the processes of the above embodiments of the method, and can achieve the same technical effects, and for avoiding repetition, the description is omitted here. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (9)

1. The method for mounting the cloud hard disk on the bare metal server is characterized by comprising the following steps of:
the network cloud platform receives a cloud hard disk mounting request sent by a management platform, wherein the cloud hard disk mounting request comprises a cloud hard disk mounting message, an access address of a bare metal server and an access address of a storage pool; the request for mounting the cloud hard disk comprises a request for accessing the bare metal server and a request for accessing a storage pool; wherein the access address of the bare metal server is translated by a request to access the bare metal server, and the access address of the storage pool is translated by a request to access the storage pool;
the network cloud platform sends the cloud hard disk mounting message to a bare metal server corresponding to the access address of the metal server; the bare metal servers are in one-to-one correspondence with the virtual routers, and the virtual routers are used for converting source addresses of private network addresses with different purposes into corresponding shared addresses;
the bare metal server receives the cloud hard disk mounting message, collects configuration files according to the cloud hard disk mounting message and feeds back the configuration files to the network cloud platform;
when the network cloud platform receives the configuration file, the network cloud platform informs a storage pool corresponding to an access address of the storage pool to create a secret key for the bare metal server, and informs the secret key to the bare metal server;
and the bare metal server mounts a cloud hard disk according to the secret key and through an iSCSI protocol.
2. The method of claim 1, after the network cloud platform receives the request for mounting the cloud hard disk by the management platform, the method comprises:
and the network cloud platform determines that the bare metal server corresponding to the access address of the bare metal server has an agent program for mounting a cloud hard disk.
3. The method of claim 1, wherein the bare metal server receiving the mount cloud hard disk message and collecting a configuration file and feeding back to the network cloud platform according to the mount cloud hard disk message comprises:
after the bare metal server receives the cloud hard disk mounting message, the bare metal server checks whether a mounting service interface is in an on state or not;
if yes, the bare metal server collects configuration files according to the cloud hard disk mounting information and feeds the configuration files back to the network cloud platform.
4. The method of claim 1, wherein after creating a key for the bare metal server in a storage pool, comprising:
and in the case that the key does not match with the configuration file key, the storage pool refuses to create a link with the bare metal server.
5. The method of claim 1, wherein the management platform comprises an access interface of a bare metal server, an access interface of a network cloud platform, and an access interface of a storage pool.
6. The method of claim 1, wherein after the bare metal server mounts a cloud hard disk according to the key and via iSCSI protocol, comprising:
and carrying out bandwidth speed limit on the bare metal server according to the bandwidth threshold.
7. A system for mounting a cloud hard disk on a bare metal server, comprising:
the first sending module is used for receiving a cloud hard disk mounting request sent by the management platform by the network cloud platform, wherein the cloud hard disk mounting request comprises a cloud hard disk mounting message, an access address of a bare metal server and an access address of a storage pool;
the second sending module is used for sending the cloud hard disk mounting message to a bare metal server corresponding to the access address of the metal server by the network cloud platform; the bare metal servers are in one-to-one correspondence with the virtual routers, and the virtual routers are used for converting source addresses of private network addresses with different purposes into corresponding shared addresses;
the receiving and collecting module is used for receiving the cloud hard disk mounting message by the bare metal server, collecting configuration files according to the cloud hard disk mounting message and feeding back the configuration files to the network cloud platform;
the first creating module is used for notifying a storage pool corresponding to an access address of the storage pool to create a secret key for the bare metal server when the network cloud platform receives the configuration file, and notifying the secret key to the bare metal server;
and the mounting module is used for mounting the cloud hard disk by the bare metal server according to the secret key and through an iSCSI protocol.
8. A server, comprising:
a memory storing computer program instructions;
a processor, which when executed by the processor, implements the method of bare metal server mounting a cloud hard disk as claimed in any one of claims 1 to 6.
9. A computer-readable storage medium comprising,
the computer-readable storage medium comprising instructions that when executed on a computer cause the computer to implement the method of bare metal server mounting a cloud hard disk as claimed in any one of claims 1 to 6.
CN202010478341.5A 2020-05-29 2020-05-29 Method, system and server for mounting cloud hard disk on bare metal server Active CN111694519B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010478341.5A CN111694519B (en) 2020-05-29 2020-05-29 Method, system and server for mounting cloud hard disk on bare metal server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010478341.5A CN111694519B (en) 2020-05-29 2020-05-29 Method, system and server for mounting cloud hard disk on bare metal server

Publications (2)

Publication Number Publication Date
CN111694519A CN111694519A (en) 2020-09-22
CN111694519B true CN111694519B (en) 2023-11-21

Family

ID=72479013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010478341.5A Active CN111694519B (en) 2020-05-29 2020-05-29 Method, system and server for mounting cloud hard disk on bare metal server

Country Status (1)

Country Link
CN (1) CN111694519B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112256393B (en) * 2020-10-22 2022-04-12 上海云轴信息科技有限公司 Resource management method and equipment for bare metal server
CN113612702B (en) * 2021-09-30 2021-12-24 苏州浪潮智能科技有限公司 Method, system, equipment and storage medium for realizing bare metal inspection process
CN114443148B (en) * 2021-12-16 2024-04-02 宝德计算机系统股份有限公司 Method for centrally managing server starting disk and server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10110551B1 (en) * 2017-08-14 2018-10-23 Reza Toghraee Computer-implemented system and methods for providing IPoE network access using software defined networking
CN109361764A (en) * 2018-11-29 2019-02-19 杭州数梦工场科技有限公司 The interior service access method across VPC, device, equipment and readable storage medium storing program for executing
CN109495405A (en) * 2018-12-12 2019-03-19 平安科技(深圳)有限公司 A kind of method and interchanger of bare metal server and cloud mainframe network intercommunication
CN110445841A (en) * 2019-07-12 2019-11-12 苏州浪潮智能科技有限公司 A kind of method, equipment and the storage medium of cloud physics machine carry cloud disk

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10127055B2 (en) * 2015-10-16 2018-11-13 Quanta Computer Inc. iSCSI based bare metal OS image deployment and diskless boot

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10110551B1 (en) * 2017-08-14 2018-10-23 Reza Toghraee Computer-implemented system and methods for providing IPoE network access using software defined networking
CN109361764A (en) * 2018-11-29 2019-02-19 杭州数梦工场科技有限公司 The interior service access method across VPC, device, equipment and readable storage medium storing program for executing
CN109495405A (en) * 2018-12-12 2019-03-19 平安科技(深圳)有限公司 A kind of method and interchanger of bare metal server and cloud mainframe network intercommunication
CN110445841A (en) * 2019-07-12 2019-11-12 苏州浪潮智能科技有限公司 A kind of method, equipment and the storage medium of cloud physics machine carry cloud disk

Also Published As

Publication number Publication date
CN111694519A (en) 2020-09-22

Similar Documents

Publication Publication Date Title
CN111694519B (en) Method, system and server for mounting cloud hard disk on bare metal server
CN109428749B (en) Network management method and related equipment
US9880870B1 (en) Live migration of virtual machines using packet duplication
CN113572838B (en) Network access method, device, equipment and medium based on Kubernetes
CN114422367B (en) Message processing method and device
CN114025021B (en) Communication method, system, medium and electronic equipment crossing Kubernetes cluster
CN109660578B (en) CDN back-to-source processing method, device and system
CN106657180B (en) Information transmission method and device for cloud service, terminal equipment and system
CN112350918B (en) Service traffic scheduling method, device, equipment and storage medium
US20200076715A1 (en) Technologies for capturing processing resource metrics as a function of time
CN110858821B (en) Container communication method and device
CN110177010B (en) Link switching method and device
CN105577632A (en) Secure network access method based on network isolation and terminal
WO2020108438A1 (en) Access system, method, and device.
CN111064804B (en) Network access method and device
CN113315706A (en) Private cloud flow control method, device and system
CN112243045A (en) Service data processing method and device, node structure and electronic equipment
CN116170406A (en) System and method for implementing virtual machine to public network communication
CN115242700B (en) Communication transmission method, device and system
CN116074784A (en) Vehicle-mounted data transmission method and device and storage medium
CN114979128A (en) Cross-region communication method and device and electronic equipment
CN116582516B (en) Data transmission method, device, system, medium and program product
CN115412527B (en) Method and device for unidirectional communication between virtual private networks
CN116155890B (en) Method and device for realizing distributed file system
CN114553771B (en) Method for virtual router loading and related equipment

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