CN114443166B - Shared file processing method, device and medium - Google Patents

Shared file processing method, device and medium Download PDF

Info

Publication number
CN114443166B
CN114443166B CN202210087870.1A CN202210087870A CN114443166B CN 114443166 B CN114443166 B CN 114443166B CN 202210087870 A CN202210087870 A CN 202210087870A CN 114443166 B CN114443166 B CN 114443166B
Authority
CN
China
Prior art keywords
shared file
service system
virtual machine
cloud host
instruction
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
CN202210087870.1A
Other languages
Chinese (zh)
Other versions
CN114443166A (en
Inventor
李泽坤
胡月恒
徐源浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210087870.1A priority Critical patent/CN114443166B/en
Publication of CN114443166A publication Critical patent/CN114443166A/en
Application granted granted Critical
Publication of CN114443166B publication Critical patent/CN114443166B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a shared file processing method, a device and a medium, which belong to the technical field of computer data, wherein the method comprises the following steps: receiving an instruction for mounting the shared file; inquiring connection information between the shared file and the cloud host through interactive docking with a shared file storage service system client; and mounting the shared file to a cloud host according to the connection information. The shared file processing technology is applied to a cloud platform scene, the cloud host operating system can automatically record the mounting relation between the shared file and the cloud host by writing the shared file processing method into a cloud host starting loading file program, and the system is automatically mounted when the cloud host is restarted, so that the problem that the mounting relation between the shared file and the cloud host cannot be maintained when the cloud host is restarted, and a mount command needs to be manually entered into the cloud host operating system to carry out mounting operation is solved, and the use experience of a user on the cloud platform is improved.

Description

Shared file processing method, device and medium
Technical Field
The present invention relates to the field of computer data technologies, and in particular, to a method, an apparatus, and a medium for processing a shared file.
Background
Currently, in currently mainstream virtualized products or cloud computing products, users often face the problem of poor experience of the shared file storage management function, for example:
(1) When the cloud host is restarted, the mounting relationship between the shared file and the cloud host cannot be maintained, manual intervention is needed, and the cloud host operation system is restarted to execute the mount command to manually mount the mount.
(2) The conventional shared file is required to enter the cloud host operating system manually to execute a mount command to operate in the execution of mount and unload actions of the cloud host storage technology.
Disclosure of Invention
In order to overcome the technical defects, the invention aims to provide a shared file processing method, a device and a medium, which can automatically record the mounting relation between a shared file and a cloud host by writing the shared file processing method into a cloud host starting loading file program, and automatically mount the system when restarting the cloud host, thereby solving the problem that the mounting relation between the shared file and the cloud host cannot be maintained when restarting the cloud host, and the problem that a user needs to manually enter the cloud host operating system to execute a mount command to perform mounting operation, and improving the use experience of the user on a cloud platform.
The specific technical scheme provided by the embodiment of the invention is as follows:
in a first aspect, a method for processing a shared file is provided, where the method includes:
receiving an instruction for mounting the shared file;
inquiring connection information between the shared file and the cloud host through interactive docking with a shared file storage service system client;
and mounting the shared file to a cloud host according to the connection information.
Further, before receiving the instruction for mounting the shared file, the method includes:
and setting an interface module for carrying out a mounting instruction on the shared file at an interaction component layer of the virtual machine management service system, and checking authority and/or parameters of the interface module for carrying out the mounting instruction.
Further, the method comprises:
after the authority and/or parameters of the interface module for mounting the instruction pass through verification, the instruction for mounting the shared file is forwarded to a management end of the virtual machine management service system through a message queue, the ID of the shared file is stored in a database, and meanwhile the instruction for mounting the shared file is forwarded to a virtual machine management service system computing component through the message queue.
Further, the querying connection information between the shared file and the cloud host through interactive docking with the shared file storage service system client includes:
the shared file storage service system client side sends request information to the shared file storage service system interaction component, the shared file storage service system interaction component integrates the shared file directory address information of the shared file and the cloud host system in the connection information, the shared file storage service system client side feeds the connection information back to the virtual machine management service system computing component, and the virtual machine management service system computing component queries the connection information between the shared file and the cloud host through interactive butt joint with the shared file storage service system client side.
Further, the mounting the shared file to the cloud host according to the connection information includes:
and the virtual machine management service system computing component updates the connection information to a database, sends a request to the virtual machine, executes a mounting instruction through a QGA program in the virtual machine, and successfully mounts the shared file to the cloud host when the virtual machine is connected with the shared storage service server.
Further, the method further comprises:
receiving an instruction for unloading the shared file;
and unloading the shared file from the cloud host.
Further, before receiving the instruction for unloading the shared file, the method includes:
and setting an interface module for unloading the instruction on the shared file at an interaction component layer of the virtual machine management service system, and checking authority and/or parameters of the interface module for unloading the instruction.
Further, the offloading the shared file from the cloud host includes:
after the permission and/or parameters of the interface module for unloading the instruction pass the verification, the instruction for unloading the shared file is forwarded to a virtual machine management service system computing component through a message queue, the virtual machine management service system computing component sends a request to a virtual machine, and the virtual machine is disconnected from a shared storage service server by executing the unloading instruction through a QGA program in the virtual machine;
the shared file storage service system client sends request information to the shared file storage service system interaction component, the shared file storage service system interaction component deletes the shared file directory address information of the shared file mounted by the shared file and the cloud host system from the cloud host system, the shared file storage service system client feeds the information which is successfully deleted back to the virtual machine management service system calculation component, and the virtual machine management service system calculation component updates the information which is successfully deleted to a database and deletes the ID of the shared file from the database.
In a second aspect, there is provided a shared file processing apparatus, the apparatus comprising:
a memory, a processor and a computer program stored on the memory, the processor executing the computer program to implement the steps of the shared file processing method as described in any of the first aspects.
In a third aspect, there is provided a computer storage medium, the medium comprising:
a computer program stored thereon, which when executed by a memory, implements the steps of the shared file processing method of any of the first aspects.
Compared with the prior art, the technical scheme provided by the embodiment of the invention has the advantages that the instruction for mounting the shared file is received; inquiring connection information between the shared file and the cloud host through interactive docking with a shared file storage service system client; and mounting the shared file to a cloud host according to the connection information. The shared file processing technology is applied to a cloud platform scene, the cloud host operating system can automatically record the mounting relation between the shared file and the cloud host by writing the shared file processing method into a cloud host starting loading file program, and the system is automatically mounted when the cloud host is restarted, so that the problem that the mounting relation between the shared file and the cloud host cannot be maintained when the cloud host is restarted, and a mount command needs to be manually entered into the cloud host operating system to carry out mounting operation is solved, and the use experience of a user on the cloud platform is improved.
The technical scheme provided by the embodiment of the invention provides the visual shared file automatic mounting and unloading management method for the cloud host of the cloud computing management platform, a user only needs to select a mounting or unloading request on the cloud platform interface, does not need to enter the cloud host operating system to execute a mount command to operate, and gives the execution process to the cloud host to process, so that the user-friendly product design concept is realized.
The technical scheme provided by the embodiment of the invention can be applied to the development of various products based on the cloud computing management platform OpenStack in the technical field, and has good practicability.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for mounting a shared file according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a method for mounting a shared file according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for unloading a shared file according to an embodiment of the present invention;
FIG. 4 is a flowchart of a method for unloading a shared file according to an embodiment of the present invention;
FIG. 5 is a block diagram of a shared file processing apparatus according to a second embodiment of the present invention;
fig. 6 is an exemplary system that may be used to implement the various embodiments described in this application, provided by a third embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It is noted that, unless the context clearly requires otherwise, the words "comprise," "comprising," and the like throughout the specification and the claims should be construed in an inclusive sense rather than an exclusive or exhaustive sense; that is, it is the meaning of "including but not limited to".
Furthermore, in the description of the present invention, unless otherwise indicated, the meaning of "a plurality" is two or more.
Example 1
The embodiment of the invention provides a shared file processing method, as shown in fig. 1, which can include:
and step S01, setting an interface module for carrying out a mounting instruction on the shared file in an interaction component layer of the virtual machine management service system, and checking authority and/or parameters of the interface module for carrying out the mounting instruction.
Specifically, an interface program for carrying out a mounting instruction on the shared file is written in an interaction component layer of the virtual machine management service system, authority and/or parameters of the interface program for carrying out the mounting instruction are checked, and whether the interface program is written with errors or not is detected.
The virtual machine management service system nova is a computing management service system of a cloud computing management platform OpenStack, is responsible for virtual machine life cycle management and is an integral project system formed by a plurality of components; the OpenStack is an open-source cloud computing management platform and is used for providing a basic IaaS service for a user; the interaction component nova-api of the virtual machine management service system is a component of the virtual machine management service system nova for interacting with other items, and corresponds to a "portal" of the virtual machine management service system nova.
Step S02, receiving an instruction for mounting the shared file.
Step S03, the instruction for mounting the shared file is forwarded to the management end of the virtual machine management service system through the message queue, the ID of the shared file is stored in the database, and meanwhile, the instruction for mounting the shared file is forwarded to the virtual machine management service system computing component through the message queue.
Specifically, after checking the authority and/or parameters of the interface module of the mounting instruction, forwarding the instruction for mounting the shared file to a management end nova-conductor of the virtual machine management service system through a message queue, and storing the ID of the shared file to a nova database by the management end of the virtual machine management service system, and forwarding the instruction for mounting the shared file to a virtual machine management service system computing component through the message queue.
The message queue is equivalent to an intermediary for storing the transferred message, and the management end nova-conductor of the virtual machine management service system is a component of the nova system item and is mainly used for other components of the nova project system of the virtual machine management service system to access the nova database. The ID of a shared file is a variable name, and a share_id represents a shared file.
And step S04, inquiring the connection information between the shared file and the cloud host through interactive docking with the client of the shared file storage service system.
Specifically, the shared file storage service system mangla is a shared file storage service system item under the Openstack of the cloud computing management platform, is one of sub-items under the Openstack platform, and is used for providing file sharing service on the cloud platform, and the shared file storage service system supports CIFS protocol and NFS protocol. The shared file storage service system client is a client program of the shared file storage service system mangla; the connection information connection_info is a field of a virtual machine management service system nova database sharemappling table and is used for recording data of a cloud host and a cloud hard disk.
Step S04 further includes:
step S041, the shared file storage service system client sends request information to the shared file storage service system interaction component, the shared file storage service system interaction component integrates the shared file directory address information of the shared file and the cloud host system in the connection information, the shared file storage service system client feeds the connection information back to the virtual machine management service system computing component, and the virtual machine management service system computing component queries the connection information between the shared file and the cloud host through interactive butt joint with the shared file storage service system client.
Specifically, the client-side maniracilent of the shared file storage service system sends request information to an interaction component manila-api of the shared file storage service system, the interaction component manila-api of the shared file storage service system integrates the address information of a shared file directory where the shared file and a cloud host system are mounted into connection information connection_info, the client-side maniracilent of the shared file storage service system feeds the connection information back to a computing component of a virtual machine management service system, and the computing component of the virtual machine management service system queries the connection information between the shared file and the cloud host through interaction with the client-side of the shared file storage service system.
The shared file storage service system interaction component manila-api is a component for interaction of the shared file storage service system with other projects. The virtual machine management service system computing component nova-computer is a computing component of a virtual machine management service system nova project. The shared file can be accessed in the cloud host system through the shared file directory address export_location information of the shared file and the cloud host system for mounting. The shared file directory address export_location of the shared file and the cloud host system may be fixed or unfixed, and the shared file directory address of the shared file and the cloud host system may be one of the root file directory address lists in the cloud host system.
And S05, mounting the shared file to a cloud host according to the connection information.
Step S05 further includes:
in step S051, the computing component of the virtual machine management service system updates the connection information to the database, sends request information to the virtual machine, executes a mounting instruction through a QGA program in the virtual machine, and when the virtual machine is connected with the shared storage service server, the shared file is successfully mounted to the cloud host.
Specifically, the computing component nova-computer of the virtual machine management service system updates the connection information connection_info to a nova database, sends a request to a virtual machine, executes a mount instruction through a QGA program in the virtual machine, and when the virtual machine is connected with a shared storage service server, the shared file is successfully mounted to a cloud host.
The QGA program is a common application program running in the virtual machine, the executable file name defaults to qemu-ga, the service name defaults to qemu-guide-agent, and the QGA program is mainly used for realizing interactive butt joint between a host machine and the virtual machine, and meanwhile, communication between the host machine libvirt and the virtual machine can be realized, and the host machine can control the virtual machine by sending a qemu command to the QGA program in the virtual machine. The shared storage service server is a server providing NFS protocol services.
FIG. 2 is a specific flowchart of a method for mounting a shared file, receiving an instruction for mounting the shared file; inquiring connection information between the shared file and the cloud host through interactive docking with a shared file storage service system client; and mounting the shared file to a cloud host according to the connection information.
The embodiment of the invention provides a shared file processing method, as shown in fig. 3, the method may further include:
step S11, an interface module for unloading the shared file is arranged at an interaction component layer of the virtual machine management service system, and authority and/or parameters of the interface module for unloading the instruction are checked.
Specifically, an interface program for unloading instructions on the shared file is written in an interaction component layer of the virtual machine management service system, authority and/or parameters of the interface program for unloading instructions are checked, and whether the interface program is written with errors or not is detected.
Step S12, receiving an instruction for unloading the shared file.
Step S13, unloading the shared file from the cloud host.
Step S13 further includes:
step S131, after the permission and/or parameters of the interface module of the offload instruction pass through the verification, the instruction for offloading the shared file is forwarded to a virtual machine management service system computing component through a message queue, the virtual machine management service system computing component sends a request to a virtual machine, and the offload instruction is executed by a QGA program in the virtual machine to disconnect the virtual machine from a shared storage service server;
the shared file storage service system client sends request information to the shared file storage service system interaction component, the shared file storage service system interaction component deletes the shared file directory address information of the shared file mounted by the shared file and the cloud host system from the cloud host system, the shared file storage service system client feeds the information which is successfully deleted back to the virtual machine management service system calculation component, and the virtual machine management service system calculation component updates the information which is successfully deleted to a database and deletes the ID of the shared file from the database.
Specifically, after the authority and/or parameters of the interface module for unloading the instruction pass verification, the instruction for unloading the shared file is forwarded to a virtual machine management service system computing component nova-computer through a message queue MQ, the virtual machine management service system computing component nova-computer sends a request to a virtual machine, and the virtual machine is disconnected from a shared storage service server by executing the unloading instruction through a QGA program in the virtual machine;
the client-side mangetoment of the shared file storage service system sends request information to an interaction component mangia-api of the shared file storage service system, the interaction component mangia-api of the shared file storage service system deletes the address information of the shared file directory where the shared file and the cloud host system are mounted from the cloud host system, the client-side mangetoment of the shared file storage service system feeds back the information which is successfully deleted to a calculation component nova-computer of a virtual machine management service system, the calculation component of the virtual machine management service system updates the information which is successfully deleted to a nova database, and the ID of the shared file is deleted from the nova database.
FIG. 4 is a specific flowchart of a method for unloading a shared file, receiving an instruction for unloading the shared file; and unloading the shared file from the cloud host.
According to the technical scheme, a user selects to create a shared file on a webpage interface of a cloud computing management platform, after the creation is successful, the user can see the successfully created shared file on a file storage list of a cloud host, and clicks the shared file to view key information, for example: the key information comprises: and the user can specify a certain cloud host under the cloud computing management platform to execute unloading operation by looking up the attachment information.
The attachment attributes are used for recording the mounting relation between the shared file and the cloud host.
It can be understood that a user can view attachment attributes information on a file storage list of a cloud host displayed on a cloud computing management platform through a cloud platform interface, and designate a certain cloud host to perform mounting or dismounting operation, and the whole mounting or dismounting operation process is processed by the cloud host without the need of the user entering a cloud host operating system to execute a mount command to perform mounting or dismounting operation.
The shared file processing method provided by the embodiment of the invention can also make a plurality of improvements and optimizations on the premise of not deviating from the technical scheme of the invention, and the improvements and the optimizations are also considered as the protection scope of the invention.
The embodiment of the invention provides a shared file processing method, which is characterized by receiving an instruction for mounting a shared file; inquiring connection information between the shared file and the cloud host through interactive docking with a shared file storage service system client; and mounting the shared file to a cloud host according to the connection information. The shared file processing technology is applied to a cloud platform scene, the shared file processing method can be written into a cloud host startup loading file program, a cloud host operating system automatically records the mounting relation between the shared file and the cloud host, and the system is automatically mounted when the cloud host is restarted, so that the problem that the mounting relation between the shared file and the cloud host cannot be maintained when the cloud host is restarted, and a mount command needs to be manually entered into the cloud host operating system to carry out mounting operation is solved.
Example two
The invention provides a shared file processing device, as shown in fig. 5, comprising a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor can realize a shared file processing method when executing the computer program, and comprises a pre-processing module, a receiving module and a processing module.
In this embodiment, the pre-processing module is configured to set an interface module for carrying out a mount instruction on the shared file at an interaction component layer of the virtual machine management service system, and verify authority and/or parameters of the interface module for carrying out the mount instruction; the receiving module is used for receiving an instruction for mounting the shared file; the processing module is used for forwarding the instruction for mounting the shared file to the management end of the virtual machine management service system through the message queue, storing the ID of the shared file into the database, and forwarding the instruction for mounting the shared file to the virtual machine management service system computing component through the message queue.
Further, the processing module is used for inquiring the connection information between the shared file and the cloud host through interactive docking with the shared file storage service system client.
Further, the processing module may be further configured to send request information to a shared file storage service system interaction component by using the shared file storage service system client, where the shared file storage service system interaction component integrates address information of a shared file directory on which the shared file and the cloud host system are mounted into the connection information, and the shared file storage service system client feeds the connection information back to a virtual machine management service system computing component, and the virtual machine management service system computing component queries connection information between the shared file and the cloud host through interactive docking with the shared file storage service system client.
Further, the processing module may be further configured to mount the shared file to a cloud host according to the connection information.
Further, the processing module is configured to update the connection information to a database by using the computing component of the virtual machine management service system, send request information to a virtual machine, execute a mount instruction through a QGA program in the virtual machine, and successfully mount the shared file to a cloud host when the virtual machine is connected to a shared storage service server.
Further, the pre-processing module may be further configured to set an interface module for unloading the shared file at an interaction component layer of the virtual machine management service system, and verify authority and/or parameters of the interface module for unloading the instruction.
Further, the receiving module may be configured to receive an instruction to uninstall the shared file.
Further, the processing module may be configured to offload the shared file from the cloud host, forward the instruction for offloading the shared file to a virtual machine management service system computing component through a message queue, where the virtual machine management service system computing component sends a request to a virtual machine, execute the offload instruction through a QGA program in the virtual machine, and disconnect the virtual machine from the shared storage service server;
the shared file storage service system client sends request information to the shared file storage service system interaction component, the shared file storage service system interaction component deletes the shared file directory address information of the shared file mounted by the shared file and the cloud host system from the cloud host system, the shared file storage service system client feeds the information which is successfully deleted back to the virtual machine management service system calculation component, and the virtual machine management service system calculation component updates the information which is successfully deleted to a database and deletes the ID of the shared file from the database.
The technical scheme provided by the embodiment of the invention has the beneficial effects that:
the shared file processing device is applied to a cloud platform scene, the cloud host operating system can automatically record the mounting relation between the shared file and the cloud host by writing the shared file processing method into a cloud host starting loading file program, and the system is automatically mounted when the cloud host is restarted, so that the problem that the mounting relation between the shared file and the cloud host cannot be maintained when the cloud host is restarted, and a mount command needs to be manually entered into the cloud host operating system to carry out mounting operation is solved, and the use experience of a user on the cloud platform is improved.
Example III
The invention provides a computer storage medium comprising a memory, a processor and a computer program stored on the memory and running on the processor, the processor executing the computer program to realize the following steps:
receiving an instruction for mounting the shared file;
inquiring connection information between the shared file and the cloud host through interactive docking with a shared file storage service system client;
and mounting the shared file to a cloud host according to the connection information.
Further, before receiving the instruction for mounting the shared file, the method includes:
and setting an interface module for carrying out a mounting instruction on the shared file at an interaction component layer of the virtual machine management service system, and checking authority and/or parameters of the interface module for carrying out the mounting instruction.
Further, the method comprises:
after the authority and/or parameters of the interface module for mounting the instruction pass through verification, the instruction for mounting the shared file is forwarded to a management end of the virtual machine management service system through a message queue, the ID of the shared file is stored in a database, and meanwhile the instruction for mounting the shared file is forwarded to a virtual machine management service system computing component through the message queue.
Further, the querying connection information between the shared file and the cloud host through interactive docking with the shared file storage service system client includes:
the shared file storage service system client side sends request information to the shared file storage service system interaction component, the shared file storage service system interaction component integrates the shared file directory address information of the shared file and the cloud host system in the connection information, the shared file storage service system client side feeds the connection information back to the virtual machine management service system computing component, and the virtual machine management service system computing component queries the connection information between the shared file and the cloud host through interactive butt joint with the shared file storage service system client side.
Further, the mounting the shared file to the cloud host according to the connection information includes:
and the virtual machine management service system computing component updates the connection information to a database, sends a request to the virtual machine, executes a mounting instruction through a QGA program in the virtual machine, and successfully mounts the shared file to the cloud host when the virtual machine is connected with the shared storage service server.
Further, the method further comprises:
receiving an instruction for unloading the shared file;
and unloading the shared file from the cloud host.
Further, before receiving the instruction for unloading the shared file, the method includes:
and setting an interface module for unloading the instruction on the shared file at an interaction component layer of the virtual machine management service system, and checking authority and/or parameters of the interface module for unloading the instruction.
Further, the offloading the shared file from the cloud host includes:
after the permission and/or parameters of the interface module for unloading the instruction pass the verification, the instruction for unloading the shared file is forwarded to a virtual machine management service system computing component through a message queue, the virtual machine management service system computing component sends a request to a virtual machine, and the virtual machine is disconnected from a shared storage service server by executing the unloading instruction through a QGA program in the virtual machine;
the shared file storage service system client sends request information to the shared file storage service system interaction component, the shared file storage service system interaction component deletes the shared file directory address information of the shared file mounted by the shared file and the cloud host system from the cloud host system, the shared file storage service system client feeds the information which is successfully deleted back to the virtual machine management service system calculation component, and the virtual machine management service system calculation component updates the information which is successfully deleted to a database and deletes the ID of the shared file from the database.
FIG. 6 is an exemplary system that may be used to implement various embodiments described herein, provided by a third embodiment of the present invention;
as shown in fig. 6, in some embodiments, the system can be configured as any of the above-described devices for shared file processing in any of the described embodiments. In some embodiments, a system may include one or more computer-readable media (e.g., system memory or NVM/storage) having results and one or more processors (e.g., processor (s)) coupled with the one or more computer-readable media and configured to execute the results to implement the modules to perform the actions described herein.
Those skilled in the art will appreciate that implementing all or part of the above-described embodiment methods may be accomplished by result-dependent hardware by a computer program stored on a non-transitory computer readable storage medium, which when executed may comprise the embodiment methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the invention, which are described in detail and are not to be construed as limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.

Claims (7)

1. A shared file processing method, the method comprising:
setting an interface module for carrying out a mounting instruction on the shared file in an interaction component layer of a virtual machine management service system, and checking authority and/or parameters of the interface module for carrying out the mounting instruction;
after checking the authority and/or parameters of the interface module of the mounting instruction, forwarding the instruction for mounting the shared file to a management end of the virtual machine management service system through a message queue, storing the ID of the shared file to a database, and forwarding the instruction for mounting the shared file to a virtual machine management service system computing component through the message queue;
receiving an instruction for mounting the shared file;
inquiring connection information between the shared file and the cloud host through interactive docking with a shared file storage service system client; it comprises the following steps: the shared file storage service system client side sends request information to a shared file storage service system interaction component, the shared file storage service system interaction component integrates shared file directory address information of the shared file and the cloud host system in the connection information, the shared file storage service system client side feeds the connection information back to a virtual machine management service system computing component, and the virtual machine management service system computing component queries the connection information between the shared file and the cloud host through interactive butt joint with the shared file storage service system client side;
and mounting the shared file to a cloud host according to the connection information.
2. The shared file processing method according to claim 1, wherein the mounting the shared file to a cloud host according to the connection information includes:
and the virtual machine management service system computing component updates the connection information to a database, sends a request to the virtual machine, executes a mounting instruction through a QGA program in the virtual machine, and successfully mounts the shared file to the cloud host when the virtual machine is connected with the shared storage service server.
3. The shared file processing method as claimed in claim 1, wherein the method further comprises:
receiving an instruction for unloading the shared file;
and unloading the shared file from the cloud host.
4. A shared file processing method as claimed in claim 3, wherein prior to receiving the instruction to uninstall the shared file, comprising:
and setting an interface module for unloading the instruction on the shared file at an interaction component layer of the virtual machine management service system, and checking authority and/or parameters of the interface module for unloading the instruction.
5. The method of claim 4, wherein offloading the shared file from the cloud host comprises:
after the permission and/or parameters of the interface module for unloading the instruction pass the verification, the instruction for unloading the shared file is forwarded to a virtual machine management service system computing component through a message queue, the virtual machine management service system computing component sends a request to a virtual machine, and the virtual machine is disconnected from a shared storage service server by executing the unloading instruction through a QGA program in the virtual machine;
the shared file storage service system client sends request information to the shared file storage service system interaction component, the shared file storage service system interaction component deletes the shared file directory address information of the shared file mounted by the shared file and the cloud host system from the cloud host system, the shared file storage service system client feeds the information which is successfully deleted back to the virtual machine management service system calculation component, and the virtual machine management service system calculation component updates the information which is successfully deleted to a database and deletes the ID of the shared file from the database.
6. A shared file processing apparatus comprising a memory, a processor and a computer program stored on the memory, wherein the processor executes the computer program to implement the steps of the method of any one of claims 1 to 5.
7. A computer storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method according to any of claims 1 to 5.
CN202210087870.1A 2022-01-25 2022-01-25 Shared file processing method, device and medium Active CN114443166B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210087870.1A CN114443166B (en) 2022-01-25 2022-01-25 Shared file processing method, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210087870.1A CN114443166B (en) 2022-01-25 2022-01-25 Shared file processing method, device and medium

Publications (2)

Publication Number Publication Date
CN114443166A CN114443166A (en) 2022-05-06
CN114443166B true CN114443166B (en) 2023-07-14

Family

ID=81369960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210087870.1A Active CN114443166B (en) 2022-01-25 2022-01-25 Shared file processing method, device and medium

Country Status (1)

Country Link
CN (1) CN114443166B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115118717B (en) * 2022-06-29 2024-03-15 济南浪潮数据技术有限公司 CIFS sharing mounting method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103020223A (en) * 2012-12-12 2013-04-03 中国联合网络通信集团有限公司 File sharing processing method, device and system
CN112003917A (en) * 2020-08-14 2020-11-27 苏州浪潮智能科技有限公司 File storage management method, system, device and medium
CN112162958A (en) * 2020-09-11 2021-01-01 北京浪潮数据技术有限公司 Network file system mounting method and device, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103020223A (en) * 2012-12-12 2013-04-03 中国联合网络通信集团有限公司 File sharing processing method, device and system
CN112003917A (en) * 2020-08-14 2020-11-27 苏州浪潮智能科技有限公司 File storage management method, system, device and medium
CN112162958A (en) * 2020-09-11 2021-01-01 北京浪潮数据技术有限公司 Network file system mounting method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114443166A (en) 2022-05-06

Similar Documents

Publication Publication Date Title
US11349915B2 (en) Distributed replication and deduplication of an object from a source site to a destination site
CN107870968B (en) Performing real-time updates to a file system volume
CN106302609B (en) Access method and device
US8745342B2 (en) Computer system for controlling backups using wide area network
CN113626286A (en) Multi-cluster instance processing method and device, electronic equipment and storage medium
US11444785B2 (en) Establishment of trusted communication with container-based services
CN111309524A (en) Distributed storage system fault recovery method, device, terminal and storage medium
CN113553218A (en) Method for cloning and backing up real machine based on cloud mobile phone, terminal device and storage medium
CN114443166B (en) Shared file processing method, device and medium
CN111104387A (en) Method and device for acquiring data set on server
US8612799B2 (en) Method and apparatus of backing up subversion repository
CN109189480B (en) File system starting method and device
US20150317742A1 (en) Digital Content Insurance and Restoration
CN110119388B (en) File reading and writing method, device, system, equipment and computer readable storage medium
CN111367725A (en) Asynchronous task online monitoring method, front-end control system and service response platform
WO2022127583A1 (en) Virtual machine control method, cloud management device and storage medium
US20230195582A1 (en) Rolling back a database transaction
CN113741945B (en) Cloud application-based application disk thermal updating method, device, medium and equipment
US11656861B2 (en) Selectively installing applications based on manifest files
CN109101253B (en) Management method and device for host in cloud computing system
CN114911580B (en) Mirror image state processing method and device and computing equipment
US11573934B1 (en) System and method of presenting a hybrid cloud cache as a file system
US20230065486A1 (en) Leveraging a cloud-based object storage to efficiently manage data from a failed backup operation
CN115905271B (en) Virus library updating method and device and multi-engine detection system
CN111026422B (en) Container-based application data upgrading method and device and computer storage medium

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