A cloud disk mounting method, a data processing method, and related devices

By acquiring cloud disk mounting and binding information, the system automatically establishes a correspondence between the target disk volume and the smart network interface card (NIC), solving the problem of low efficiency when the smart NIC unmounts the cloud disk and achieving automatic mounting and efficient operation of the cloud disk.

CN115695174BActive Publication Date: 2026-02-27MAIPU COMM TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211017249.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-23
Publication Date
2026-02-27
Estimated Expiration
2042-08-23

AI Technical Summary

Technical Problem

In existing technologies, when a smart network card is unmounted from a cloud disk, the parameters of the smart network card, the host machine, and the storage service server need to be manually configured, resulting in low cloud disk mounting efficiency and potential failure.

Method used

By obtaining cloud disk mounting and binding information, a correspondence between the target disk volume and the smart network card is established, and the cloud disk is automatically mounted to the host machine's disk name based on this relationship, thus achieving automatic mounting of the cloud disk.

Benefits of technology

No manual parameter configuration is required, which improves the accuracy and efficiency of cloud disk mounting and simplifies the operation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115695174B_ABST
    Figure CN115695174B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a cloud disk mounting method, a data processing method and related devices, and relate to the technical field of communication. The method comprises: obtaining configured cloud disk mounting information and cloud disk binding information; determining a target disk volume in a target storage server based on the cloud disk mounting information, and establishing a correspondence between the target disk volume and a smart network card. Based on the cloud disk binding information and the correspondence between the target disk volume and the smart network card, a correspondence between the target disk volume and a disk name in a host computer is established, so that the target disk volume is mounted to the smart network card. The present application thus realizes automatic mounting of the cloud disk, improves the accuracy of cloud disk mounting and the efficiency of cloud disk mounting.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of communication, in particular to a cloud disk mounting method, a data processing method and related devices. BACKGROUND

[0002] With the continuous increase of data center bandwidth and the rise of cloud computing, the requirement for server network processing capability is higher and higher, and with the popularization of network virtualization technology and SDN (Software Defined Network), more server CPUs are needed to process. Under this background, intelligent network cards emerge as the times require. After introducing intelligent network cards on the server side, the high-performance data processing capability of the server network, storage and the like that is not suitable for server CPU processing can be offloaded to the intelligent network card for execution, greatly improving the overall data processing capability of the server and releasing the CPU computing power.

[0003] At present, after the intelligent network card offloads the storage capability of the host computer, the original cloud disk mounting behavior directly on the host computer is offloaded to the intelligent network card. In each cloud disk mounting, the parameters of the intelligent network card, the host computer and the storage server need to be manually configured, which causes low cloud disk mounting efficiency and may cause cloud disk mounting failure. SUMMARY

[0004] The purpose of the present application is to provide a cloud disk mounting method, a data processing method and related devices to improve the accuracy and efficiency of cloud disk mounting.

[0005] In order to achieve the above purpose, the technical solutions adopted by the embodiments of the present application are as follows:

[0006] In a first aspect, the embodiments of the present application provide a cloud disk mounting method, which comprises:

[0007] Obtaining configured cloud disk mounting information and cloud disk binding information, the cloud disk mounting information comprising: IP address and disk volume location information of the corresponding storage server, and the cloud disk binding information comprising: disk name in the host computer;

[0008] Based on the cloud disk mounting information, determining a target disk volume in a target storage server, and establishing a corresponding relationship between the target disk volume and the intelligent network card;

[0009] Based on the cloud disk binding information and the corresponding relationship between the target disk volume and the intelligent network card, establishing a corresponding relationship between the target disk volume and the disk name in the host computer, so that the target disk volume is mounted to the intelligent network card.

[0010] In an optional implementation, the step of establishing the correspondence between the target disk volume and the disk name in the host machine based on the cloud disk binding information and the correspondence between the target disk volume and the intelligent network card, so as to mount the target disk volume to the intelligent network card, comprises:

[0011] creating a correspondence between the intelligent network card and the VF virtual function corresponding to the disk name in the host machine;

[0012] mounting the target disk volume to the intelligent network card based on the correspondence between the intelligent network card and the VF corresponding to the disk name in the host machine. In an optional implementation, the step of determining the target disk volume in the target storage server based on the cloud disk mounting information and establishing the correspondence between the target disk volume and the intelligent network card, comprises:

[0013] determining the target storage server from the at least one storage server based on the IP address in the cloud disk mounting information;

[0014] determining the target disk volume from the target storage server based on the disk volume location information;

[0015] establishing the correspondence between the target disk volume and the intelligent network card.

[0016] In an optional implementation, the method further comprises:

[0017] ending the cloud disk mounting in the case of receiving a cloud disk mounting end instruction.

[0018] In a second aspect, an embodiment of the present application provides a data processing method applied to a host machine in a cloud disk mounting system, the cloud disk mounting system further comprising an intelligent network card and at least one storage server; the intelligent network card is plugged into the host machine, and the method comprises:

[0019] in the case of mounting a target disk volume to the intelligent network card, receiving a processing instruction on data input by a user;

[0020] determining a disk name corresponding to the processing instruction;

[0021] performing corresponding processing on the data in a target disk volume corresponding to the disk name.

[0022] In an optional implementation, the processing instruction comprises a storage instruction, and the step of performing corresponding processing on the data in the target disk volume corresponding to the disk name comprises:

[0023] storing the data in the target disk volume corresponding to the disk name.

[0024] In a third aspect, an embodiment of the present application provides a cloud disk mounting device, which is applied to a smart network card in a cloud disk mounting system, the cloud disk mounting system further comprising a host computer and at least one storage server, the smart network card being plugged into the host computer, and the device comprising:

[0025] an acquisition module configured to acquire configured cloud disk mounting information and cloud disk binding information, the cloud disk mounting information comprising an IP address and disk volume location information of a corresponding storage server, and the cloud disk binding information comprising a disk name in the host computer;

[0026] a determination module configured to determine a target disk volume in a target storage server based on the cloud disk mounting information, and establish a corresponding relationship between the target disk volume and the smart network card;

[0027] a mounting module configured to establish a corresponding relationship between the target disk volume and the disk name in the host computer based on the cloud disk binding information and the corresponding relationship between the target disk volume and the smart network card, so that the target disk volume is mounted to the smart network card.

[0028] In a fourth aspect, an embodiment of the present application provides a data processing device, the device comprising:

[0029] a receiving module configured to receive a processing instruction for data input by a user in a case where a target disk volume is mounted to a smart network card;

[0030] a disk name determination module configured to determine a disk name corresponding to the processing instruction;

[0031] a processing module configured to perform corresponding processing on the data in a target disk volume corresponding to the disk name.

[0032] In a fifth aspect, an embodiment of the present application provides a smart network card, comprising a memory and a processor, the memory storing a computer program, and the processor implementing steps of the cloud disk mounting method when executing the computer program.

[0033] In a sixth aspect, an embodiment of the present application provides a storage medium having a computer program stored thereon, the computer program implementing steps of the cloud disk mounting method and the data processing method when executed by a processor.

[0034] The embodiment of the present application has the following beneficial effects:

[0035] The embodiment of the present application determines a target disk volume in a target storage server based on cloud disk mounting information, and establishes a corresponding relationship between the target disk volume and an intelligent network card. Based on cloud disk binding information and the corresponding relationship between the target disk volume and the intelligent network card, a corresponding relationship between the target disk volume and a disk name in a host computer is established, so that the target disk volume is mounted to the intelligent network card. The present application does not need to manually configure parameters of the intelligent network card, the host computer and the storage server each time, and the intelligent network card can realize automatic mounting of the cloud disk after receiving the configured cloud disk mounting information and the cloud disk binding information, thereby improving the accuracy of cloud disk mounting and the efficiency of cloud disk mounting. BRIEF DESCRIPTION OF DRAWINGS

[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can also be obtained without creative labor on the basis of these drawings.

[0037] Figure 1 A block diagram of a cloud disk mounting system provided by the embodiment of the present application is shown in the figure.

[0038] Figure 2 A structural diagram of an intelligent network card provided by the embodiment of the present application is shown in the figure.

[0039] Figure 3 A flowchart of a cloud disk mounting method provided by the embodiment of the present application is shown in the figure.

[0040] Figure 4 A flowchart of a cloud disk mounting method provided by the embodiment of the present application is shown in the figure.

[0041] Figure 5 A flowchart of a data processing method provided by the embodiment of the present application is shown in the figure.

[0042] Figure 6 A structural block diagram of a cloud disk mounting device provided by the embodiment of the present application is shown in the figure.

[0043] Figure 7 A structural block diagram of a data processing device provided by the embodiment of the present application is shown in the figure. DETAILED DESCRIPTION

[0044] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some but not all of the embodiments of the present application. The components of the embodiments of the present application described and shown in the drawings can be arranged and designed in various different configurations.

[0045] Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor fall within the scope of protection of the present application.

[0046] It should be noted that: similar reference numerals and letters represent similar items in the following drawings, therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings.

[0047] In addition, if the terms "first", "second" and the like are used, they are only used to distinguish descriptions, and cannot be understood as indicating or implying relative importance.

[0048] Please refer to Figure 1 The present application provides a cloud disk mounting system 100, which comprises a host computer 10, an intelligent network card 20, a storage server 30 and a cloud management platform 40. The storage server 30 can comprise one or more for storing data. The intelligent network card 20 is plugged into the host computer 10, and the intelligent network card 20 can store a large amount of data in the storage server 30 in cooperation with the host computer 10.

[0049] The cloud management platform 40 communicates with the host computer 10 through a BMC (Baseboard Management Controller) interface, the cloud management platform 40 can control the power-on of the host computer 10, the cloud management platform 40 issues a power-on instruction to the host computer 10, the host computer 10 responds to the power-on instruction to power on, after the host computer 10 is powered on and the system starts, the host computer 10 initiates registration to the cloud management platform 40.

[0050] The intelligent network card 20 is in communication connection with the cloud management platform 40, after the host computer 10 is powered on, the intelligent network card 20 is automatically powered on, and after the intelligent network card 20 completes system startup, it initiatively initiates registration to the cloud management platform 40, so that the cloud management platform 40 can control the intelligent network card 20, when implementing the cloud disk mounting method, the cloud management platform 40 sends the configured cloud disk mounting information and cloud disk binding information to the intelligent network card 20, the intelligent network card 20 executes the above information, and mounts the disk volume in the storage server 30 to the intelligent network card.

[0051] The storage server 30 establishes a communication connection with the cloud management platform 40, and monitors the state of the disk volume in the storage server through the cloud management platform 40, so that the intelligent network card 20 can mount the disk volume in the unmounted state.

[0052] The host computer 10 can be, but is not limited to, a host device, a bare metal server, and the like. In the cloud disk mounting system 100, the host computer 10 can cooperate with the intelligent network card 20 to perform storage operations on the storage server 30.

[0053] In the storage server 30, there are usually a plurality of disk volumes, hard disks, and the like storage modules for storing corresponding data. The storage space of the plurality of disk volumes, hard disks, and the like storage modules can be integrated and divided into one or more LUN (Logic Unit Numbers) devices. The intelligent network card 20 can take the LUN device as an object of storing data when performing a storage operation service, so as to store data in the LUN device.

[0054] Please refer to Figure 2 The intelligent network card 20 can include a processor 21 and a memory 22. The memory 22 stores a computer program, and when the computer program is executed by the processor 21, the intelligent network card 20 can perform each step in the following cloud disk mounting method.

[0055] The intelligent network card 20 has a storage protocol, such as the function of an iSCSI (Internet Small Computer System Interface) initiator. The iSCSI can also be referred to as IP-SAN (Internet Protocol Storage Area Network), which is a storage means based on TCP / IP and SCSI-3 protocols.

[0056] It should be noted that the intelligent network card 20 can also include other modules, for example, the intelligent network card 20 can also include an FPGA (Field-Programmable Gate Array).

[0057] In the intelligent network card 20, the processor can be a CPU with a plurality of processing cores. The CPU can be used for relatively flexible storage offload processing. The FPGA can be used for relatively fixed offload processing. The storage offload service provided by the intelligent network card 20 can enable the host computer 10 to perform storage services for the remote storage server 30 as if it were a local storage.

[0058] Please refer to Figure 3This invention provides a cloud disk mounting method, which can be applied to the aforementioned smart network interface card 20. The smart network interface card 20 executes or implements the steps in the method, which includes the following steps:

[0059] Step 201: Obtain the configured cloud disk mounting information and cloud disk binding information.

[0060] The cloud disk mounting information includes: the IP address of the corresponding storage service server and the disk volume location information. The cloud disk binding information includes: the disk name in the host machine.

[0061] Step 202: Based on the cloud disk mounting information, determine the target disk volume in the target storage server and establish the correspondence between the target disk volume and the smart network card.

[0062] Step 203: Based on the cloud disk binding information and the correspondence between the target disk volume and the smart network card, establish the correspondence between the target disk volume and the disk name in the host machine, so that the target disk volume can be mounted to the smart network card.

[0063] There are several ways for smart network interface cards (NICs) to obtain configured cloud disk mounting and binding information. For example, they can be based on... Figure 1 The cloud management platform sends cloud disk mounting and binding information to the smart network interface card (NIC), which then receives this information. Alternatively, the cloud disk mounting and binding information can be manually configured so that the smart NIC can access these manually configured settings.

[0064] Taking the cloud management platform sending cloud disk mounting information and cloud disk binding information to the smart network card as an example, the cloud management platform manages the smart network card, the host machine, and at least one storage server in the cloud disk mounting system. The cloud management platform can detect the working status of the smart network card, the host machine, and at least one storage server. When they are all in normal working status, the cloud management platform sends cloud disk mounting information and cloud disk binding information to the smart network card.

[0065] Before performing operational status checks on the host machine, the cloud management platform needs to establish a connection with the host machine, as shown below:

[0066] The cloud management platform pre-enters the IP address IP_BMC and the password Password_BMC of the host BMC interface, and the cloud management platform sends a power-on instruction to the host BMC through an IPMP instruction, and the instruction is: ipmitool-I lanplus-H IP_BMC-U admin-P Password_BMC chassis power on. After the host receives the instruction, it performs the power-on action. After the host is powered on, the host and the cloud management platform complete registration based on IP_BMC and Password_BMC, and establish a connection between the host and the cloud management platform.

[0067] When the cloud management platform can continuously detect the host, it is determined that the running state of the host is normal.

[0068] Since the intelligent network card is plugged into the host, the intelligent network card can be plugged into the PCIE slot of the host, and the intelligent network card can be powered by the host PCIE. When the host is powered on, the intelligent network card is also powered on and started. After the intelligent network card is powered on, the intelligent network card will automatically complete the startup of the operating system of the intelligent network card. After the operating system of the intelligent network card is started, the PCIExpress Rom capability is provided, and the host can scan the virtio_blk driver through PCIE during the initialization process, so as to wait for the cloud disk mounting action provided by the intelligent network card. Before the cloud disk mounting is completed, the host will always be in a disk scanning state.

[0069] Before the cloud management platform detects the working state of the intelligent network card, the cloud management platform needs to establish a connection with the intelligent network card: after the operating system of the intelligent network card is started, the cloud management platform automatically initiates registration and establishes a connection, specifically: the intelligent network card is pre-installed with an agent software Agent1, and the IP address IP_M of the cloud management platform is pre-set. When the intelligent network card is started, the agent software Agent1 automatically runs and initiates a connection request to the address IP_M of the cloud management platform to establish a connection, wherein the connection establishment method can be TCP connection, HTTP connection or other protocol connection.

[0070] When the cloud management platform can continuously detect the intelligent network card, it is determined that the running state of the intelligent network card is normal.

[0071] After the cloud management platform completes the above operation, the cloud management platform sends cloud disk mounting information and cloud disk binding information to the intelligent network card. The cloud disk mounting information and the cloud disk binding information in the cloud management platform are pre-configured information. When the host needs to be started, the cloud management platform sends the cloud disk mounting information and the cloud disk binding information corresponding to the host, so that the intelligent network card plugged into the host can mount the cloud disk, so that the host can scan the corresponding cloud disk.

[0072] Exemplarily, after the intelligent network card receives the cloud disk mounting information issued by the cloud management platform, the cloud disk mounting information is converted into cloud disk mounting instructions that can be executed by the intelligent network card, the cloud disk mounting instructions are executed, and thus the corresponding relationship between the target disk volume and the intelligent network card is established.

[0073] The cloud disk mounting information includes the IP address of the storage server that needs to be mounted, and based on the IP address of the storage server, the corresponding target storage server can be determined from the plurality of storage servers. The cloud disk mounting information also includes disk volume location information. Since the storage server can correspond to a plurality of disk volumes, based on the disk volume location information, the target disk volume in the target storage server can be determined.

[0074] In the specific implementation process, the cloud management platform can issue the cloud disk mounting information to the intelligent network card in the following manner:

[0075] url='http: / / xx'

[0076] postdatas={

[0077] 'type':'install',

[0078] 'iscsi_server_ip':'ip_iscsi_server',

[0079] 'name':'blk_name',

[0080] 'iscsi_IQN_iqn':iscsi_IQN_iqn,

[0081] 'initiator_iqn':initiator_iqn,

[0082] LUN_ID':0}

[0083] requests=requests.post(url=url,data=postdatas).

[0084] When the intelligent network card receives the cloud disk mounting information issued by the cloud management platform, the cloud disk mounting information is converted into specific cloud disk mounting instructions:

[0085] / usr / bin / spdk / scripts / rpc.py bdev_iscsi_create-b blk_name-iinitiator_iqn--url iscsi: / / ip_iscsi_server / iscsi_IQN_iqn / 0.

[0086] The intelligent network card executes the above instructions to establish the correspondence between the target disk volume and the intelligent network card. Based on 'iscsi_server_ip' (the IP address of the storage server) and iscsi_IQN_iqn' (disk volume location information) in the above cloud disk mounting information, the target disk volume in the target storage server can be determined. Blk name is the naming of the cloud disk after mounting, which can be recognized by the intelligent network card. The correspondence between Blk name and the target disk volume is established, and the correspondence between the target disk volume and the intelligent network card is established.

[0087] The intelligent network card establishes the correspondence between the intelligent network card and the disk name in the host based on the cloud disk binding information issued by the cloud management platform. In the case of establishing the correspondence between the target disk volume and the intelligent network card based on the cloud disk mounting information, the correspondence between the target disk volume and the disk name in the host can be established through the intelligent network card.

[0088] For example, the target disk volume includes A disk volume and B disk volume, and the disk name in the host includes vda disk and vdb disk. Through the intelligent network card, the correspondence between the A disk volume and the vda disk is established, the correspondence between the B disk volume and the vdb disk is established, or the correspondence between the A disk volume and the vdb disk is established and the correspondence between the B disk volume and the vda disk is established.

[0089] Based on the correspondence between the target disk volume and the disk name in the host, the target disk volume is mounted to the intelligent network card.

[0090] Since the virtio_blk driver is set in the intelligent network card, the host can call the data in the target disk volume through the virtio_blk driver of the intelligent network card to realize the functions required by the host.

[0091] When each target disk volume is mounted, the above steps 201-203 are executed. When the cloud disk mounting end instruction is received, the cloud disk mounting operation is ended.

[0092] For how to determine whether to end the cloud disk mounting, the following methods can be used:

[0093] After the cloud management platform issues all the cloud disk mounting information and cloud disk binding information that need to be mounted, it polls the mounting state of the cloud disk in the intelligent network card. The following is an example of the cloud disk mounting state:

[0094] "name":"IPSAN1",

[0095] "status":"OK",

[0096] "capacity(MiB)":512,

[0097] "blk": 0,

[0098] "driver_specific": {}

[0099] When the status of all corresponding cloud disks is OK, the cloud management platform issues an END state bit to the intelligent network card through HTTP, and the intelligent network card executes the cloud disk mounting end instruction after receiving the END state bit, thereby ending the cloud disk mounting.

[0100] The scheme in the embodiment of the application can automatically mount the cloud disk without repeatedly manually configuring the parameters of the intelligent network card, the host and the storage server each time the cloud disk is mounted, thereby improving the accuracy and efficiency of the cloud disk mounting.

[0101] The target disk volume can be mounted to the intelligent network card in various ways. Figure 4 As shown in FIG. 6, the method can include the following steps:

[0102] Step 203-1: Create a corresponding relationship between the intelligent network card and the VF corresponding to the disk name in the host.

[0103] Each disk in the host has a physical function, and one of the functions associated with the physical function is a virtual function (VF). The VF is a lightweight PCLE function that can share one or more physical resources with the physical function and other VFs associated with the same physical function.

[0104] There are various ways to create a corresponding relationship between the intelligent network card and the VF corresponding to the disk name in the host. For example, when the host contains vda and vdb, vda corresponds to virtual function VF1, and vdb corresponds to virtual function VF2, and the target disk volume is disk A, a corresponding relationship between the virtual function VF1 of vda and disk A can be established, or a corresponding relationship between the virtual function VF2 of vdb and disk A can be established.

[0105] Alternatively, when the host contains vda and vdb, and the target disk volume is disk A and disk B, a corresponding relationship between VF1 of vda and disk A can be established, and a corresponding relationship between VF2 of vdb and disk B can be established.

[0106] Step 203-2: Based on the corresponding relationship between the intelligent network card and the VF corresponding to the disk name in the host, the target disk volume is mounted to the intelligent network card.

[0107] The host can identify the VF of the disk name based on the BDF value. Accordingly, the cloud management platform can issue the cloud disk binding information to the intelligent network card in the form of a BDF value, and the BDF value corresponds to the VF of the disk name in the host.

[0108] Exemplarily, the BDF value corresponding to VF1 of the vda disk name in the host computer is 0, the BDF value corresponding to VF2 of the vdb disk name in the host computer is 1, and the BDF value corresponding to VF3 of the vdc disk name in the host computer is 2.

[0109] The intelligent network card establishes the correspondence between the virtual function VF of the disk name in the host computer and the intelligent network card based on the received BDF value.

[0110] Exemplarily, the created Blk name is the naming after the cloud disk is mounted, which can be recognized by the intelligent network card, the correspondence between the Blk name and the BDF value is established, that is, the correspondence between the intelligent network card and the virtual function of the disk name in the host computer is established. Since the Blk name corresponds to the correspondence between the intelligent network card and the target disk volume, based on the correspondence between the intelligent network card and the virtual function of the disk name in the host computer, the correspondence between the virtual function of the disk name in the host computer and the target disk volume can be established, so that the target disk volume is mounted to the intelligent network card.

[0111] In the specific implementation process, the cloud management platform issues ('name': 'blk_name') and the BFD value to the intelligent network card. After the intelligent network card receives the information issued by the cloud management platform, it is converted into an instruction that can be recognized by the intelligent network card, such as / usr / bin / spdk / scripts / rpc.py bdev_boe_cmd-c add-n blk_name-b bfd_value. The above instruction is executed to establish the correspondence between the virtual function of the disk name in the host computer and the target disk volume, and to realize mounting the target disk volume to the intelligent network card.

[0112] In the cloud disk mounting process, when establishing the correspondence between the target disk volume and the VF corresponding to the disk name in the host computer, the corresponding VF needs to be started, and the cloud disk can be mounted. Exemplarily, the intelligent network card can execute the following steps:

[0113] The host computer receives the VF starting instruction sent by the cloud management platform, and the host computer starts the VF of the disk name based on the VF starting instruction.

[0114] Before issuing the VF opening instruction to the host computer, the cloud management platform needs to establish a connection with the host computer: the host computer operating system is pre-installed with an agent software Agent2 and is pre-configured with the IP address IP_M of the cloud management platform. When the host computer operating system is started, the agent software Agent2 automatically runs and initiates a connection request to the address IP_M of the cloud management platform and establishes a connection. The connection mode can be a TCP connection, an HTTP connection or a connection relationship of other protocols. After receiving the connection initiated by the host computer operating system Agent2, the cloud management platform can sense that the host computer operating system has completed the startup and can receive instructions, and the cloud management platform issues the VF related instruction to the server operating system.

[0115] In an implementation manner:

[0116] The cloud management platform can issue the VF opening instruction to the host computer, such as: echo 1> / sys / bus / pci / devices / 0000:01:00.0 / sriov_numvfs.

[0117] After the host computer executes the corresponding instruction, the virtio_blk driver of the corresponding VF is automatically loaded, so that the corresponding cloud disk is called to realize the cloud disk mounting of the host computer.

[0118] Based on the cloud disk mounting method, the cloud disk is mounted to the intelligent network card, and the host computer can process data based on the mounted target disk volume, such as Figure 5 As shown in the figure, the embodiment of the application further provides a data processing method, comprising the following steps:

[0119] Step 301: In the case of mounting the target disk volume to the intelligent network card based on the cloud disk mounting method, receiving the processing instruction of the data input by the user.

[0120] Step 302: Determine the disk name corresponding to the processing instruction.

[0121] Step 303: Process the data in the target disk volume corresponding to the disk name.

[0122] It should be noted that the processing instruction can include a plurality of instructions, such as read instruction, storage instruction, etc. In an example, when the processing instruction is a storage instruction, the host computer directly stores the data in the target disk volume corresponding to the disk name when receiving the storage instruction of the data.

[0123] Please refer to Figure 6 The embodiment of the application further provides a cloud disk mounting device, which is applied to Figure 1The application discloses a cloud disk mounting system, and belongs to the technical field of cloud disk mounting.

[0124] The cloud disk mounting system comprises a host computer and at least one storage server, and the intelligent network card is connected to the host computer.

[0125] The cloud disk mounting system further comprises a cloud disk mounting device.

[0126] The cloud disk mounting device comprises a cloud disk mounting information obtaining module, a cloud disk binding information obtaining module, a target storage server determining module and a target disk volume determining module.

[0127] The cloud disk mounting information comprises an IP address of a corresponding storage server and disk volume position information, and the cloud disk binding information comprises a disk name in the host computer.

[0128] The target storage server determining module is configured to determine a target storage server based on the cloud disk mounting information.

[0129] The target disk volume determining module is configured to determine a target disk volume in the target storage server based on the cloud disk mounting information. Figure 7 The cloud disk mounting device further comprises a mounting module. Figure 1 The mounting module is configured to establish a corresponding relationship between the target disk volume and the disk name in the host computer based on the cloud disk binding information and the corresponding relationship between the target disk volume and the intelligent network card, so that the target disk volume is mounted to the intelligent network card.

[0130] The cloud disk mounting device further comprises a data processing device.

[0131] The data processing device comprises a receiving module, a disk name determining module and a processing module.

[0132] The receiving module is configured to receive a processing instruction of data input by a user in a case that a target disk volume is mounted to an intelligent network card.

[0133] The disk name determining module is configured to determine a disk name corresponding to the processing instruction. The processing module is configured to perform corresponding processing on the data in a target disk volume corresponding to the disk name.It should be noted that the data processing apparatus provided in the embodiment, the basic principle and the generated technical effect are the same as the above-mentioned data processing method embodiment. For brief description, the part not mentioned in the embodiment can refer to the corresponding content in the above-mentioned method embodiment.

[0134] The embodiment of the present application also provides a storage medium, the storage medium stores a computer program, and the computer program is executed by a processor to realize the cloud disk mounting method and the data processing method.

[0135] In the embodiments of the present application, it should be understood that the disclosed apparatus and method can also be implemented by other manners. The apparatus embodiment described above is only schematic, for example, the flowchart and block diagram in the drawings show the possible implementation architecture, function and operation of the apparatus, method and computer program product according to the embodiments of the present application. In this regard, each block in the flowchart or block diagram can represent a module, a program segment or a part of code, which contains one or more executable instructions for implementing the specified logic function. It should also be noted that in some alternative implementation manners, the functions noted in the blocks can also occur in different order from that noted in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, and sometimes they can also be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for implementing the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0136] In addition, the function modules in each of the embodiments of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part. If the function is realized in the form of a software function module and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or say the part that contributes to the prior art or part of the technical solutions can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various program code storage media.

[0137] It is to be noted that, in the present text, relational terms such as first and second and the like can be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, 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 can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises... a" does not, without more constraints, exclude the presence of additional identical elements in the process, method, article, or apparatus that comprises the element.

[0138] The above description is only various embodiments of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical range disclosed by the present application, which should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A cloud disk mounting method, characterized in that, The application discloses an intelligent network card applied to a cloud disk mounting system, the cloud disk mounting system further comprises a host computer and at least one storage server, and the intelligent network card is plugged into the host computer. The method comprises the following steps: Obtaining configured cloud disk mounting information and cloud disk binding information, wherein the cloud disk mounting information comprises IP addresses and disk volume location information of corresponding storage servers, and the cloud disk binding information comprises disk names in the host computer; Based on the cloud disk mounting information, a target disk volume in a target storage server is determined, and a corresponding relationship between the target disk volume and the intelligent network card is established; A corresponding relationship between the intelligent network card and a VF (Virtual Function) corresponding to the disk name in the host computer is created; 2. The method of claim 1, wherein, Based on the cloud disk binding information, the corresponding relationship between the target disk volume and the intelligent network card, and the corresponding relationship between the intelligent network card and the VF corresponding to the disk name in the host computer, a corresponding relationship between the target disk volume and the VF corresponding to the disk name in the host computer is established, so that the target disk volume is mounted to the intelligent network card. The step of determining the target disk volume in the target storage server based on the cloud disk mounting information comprises the following steps: Based on the IP addresses in the cloud disk mounting information, a target storage server is determined from the at least one storage server; Based on the disk volume location information, a target disk volume is determined from the target storage server; 3. The method of claim 1, wherein, The corresponding relationship between the target disk volume and the intelligent network card is established. The method further comprises the following steps:

4. A data processing method, characterized by, In the case that a cloud disk mounting end instruction is received, the cloud disk mounting is ended. The application discloses a host computer applied to a cloud disk mounting system, the cloud disk mounting system further comprises an intelligent network card and at least one storage server; the intelligent network card is plugged into the host computer, and the method comprises the following steps: In the case that a target disk volume is mounted to an intelligent network card based on the cloud disk mounting method in any one of claims 1-3, a user-inputted processing instruction for data is received; A disk name corresponding to the processing instruction is determined; 5. The method of claim 4, wherein, The data is processed in a target disk volume corresponding to the disk name. The processing instruction comprises a storage instruction, and the step of processing the data in the target disk volume corresponding to the disk name comprises the following step:

6. A cloud disk mounting device, characterized in that, The data is stored in the target disk volume corresponding to the disk name. The application discloses an intelligent network card applied to a cloud disk mounting system, the cloud disk mounting system further comprises a host computer and at least one storage server, and the intelligent network card is plugged into the host computer. The device comprises the following modules: An obtaining module is used to obtain configured cloud disk mounting information and cloud disk binding information, wherein the cloud disk mounting information comprises IP addresses and disk volume location information of corresponding storage servers, and the cloud disk binding information comprises disk names in the host computer; A determining module is used to determine a target disk volume in a target storage server based on the cloud disk mounting information, and establish a corresponding relationship between the target disk volume and the intelligent network card; A creating module is used to create a corresponding relationship between the intelligent network card and a VF (Virtual Function) corresponding to the disk name in the host computer; The mounting module is configured to establish a correspondence between the target disk volume and a disk name in the host machine based on the cloud disk binding information and the correspondence between the target disk volume and the intelligent network card, so that the target disk volume is mounted to the intelligent network card. The mounting module is configured to create a correspondence between the intelligent network card and a VF virtual function corresponding to the disk name in the host machine. The mounting module is configured to establish a correspondence between the target disk volume and a VF corresponding to the disk name in the host machine based on the cloud disk binding information, the correspondence between the target disk volume and the intelligent network card, and the correspondence between the intelligent network card and the VF corresponding to the disk name in the host machine, so that the target disk volume is mounted to the intelligent network card.

7. A data processing apparatus, characterized by, The cloud disk mounting system further includes an intelligent network card, and the intelligent network card is plugged into the host machine. The receiving module is configured to receive a processing instruction for data input by a user in a case where the target disk volume is mounted to the intelligent network card by the cloud disk mounting device according to claim 6. The disk name determination module is configured to determine a disk name corresponding to the processing instruction. The processing module is configured to perform corresponding processing on the data in the target disk volume corresponding to the disk name.

8. An intelligent network adapter, comprising: The computer program is executed by the processor to implement the steps of the cloud disk mounting method according to any one of claims 1-3 or the steps of the data processing method according to claim 4 or 5.

9. A storage medium having stored thereon a computer program, characterized in that The computer program is executed by the processor to implement the steps of the cloud disk mounting method according to any one of claims 1-3 or the steps of the data processing method according to claim 4 or 5.

Citation Information

Patent Citations

  • Quick deployment device and method for bare metal server

    CN114443073A