CN112162958A - Network file system mounting method and device, electronic equipment and storage medium - Google Patents

Network file system mounting method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112162958A
CN112162958A CN202010956121.9A CN202010956121A CN112162958A CN 112162958 A CN112162958 A CN 112162958A CN 202010956121 A CN202010956121 A CN 202010956121A CN 112162958 A CN112162958 A CN 112162958A
Authority
CN
China
Prior art keywords
file
mounting
sharing service
virtual machine
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010956121.9A
Other languages
Chinese (zh)
Other versions
CN112162958B (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.)
Beijing Inspur Data Technology Co Ltd
Original Assignee
Beijing Inspur Data 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 Beijing Inspur Data Technology Co Ltd filed Critical Beijing Inspur Data Technology Co Ltd
Priority to CN202010956121.9A priority Critical patent/CN112162958B/en
Publication of CN112162958A publication Critical patent/CN112162958A/en
Application granted granted Critical
Publication of CN112162958B publication Critical patent/CN112162958B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/188Virtual file systems
    • 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/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a method and a device for mounting a network file system, an electronic device and a computer readable storage medium, wherein the method comprises the following steps: determining basic information of a file sharing service, and creating the file sharing service based on the basic information; and mounting the file instance corresponding to the file sharing service so as to finish mounting of the network file system. The method for mounting the network file system realizes automatic mounting of the NFS service by the windows virtual machine, solves the problem that the NFS file sharing service mounted by the windows system is very complicated, and realizes starting up and mounting of the NFS service by the virtual machine. Therefore, the method for mounting the network file system increases the use flexibility of the file sharing service, improves the flexibility of the file sharing service of the cloud computing platform, can be used without a technical foundation of a user, and gets rid of the limitation that NFS is used for a Unix-like system and CIFS is used for a window system.

Description

Network file system mounting method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for mounting a network file system, an electronic device, and a computer-readable storage medium.
Background
With the development of cloud computing, the traditional data center gradually turns to a virtualized data center, and file sharing and storage occupy a crucial position in the whole cloud computing platform. As a de facto standard of a private cloud computing platform, the openstack cloud computing platform provides a file sharing service for users through manila. The Manila (File Share Service) is used for providing File sharing on the cloud, and supports CIFS (Common Internet File System) protocol and NFS (Network File System) protocol. After the file sharing service is established on the cloud computing platform, the file sharing service can be used only by complex configuration, which requires a user to have a certain technical foundation and severely limits the flexibility of the file sharing service.
Therefore, how to implement automatic mount of the network file system is a technical problem to be solved by those skilled in the art.
Content of application
The application aims to provide a method and a device for mounting a network file system, an electronic device and a computer readable storage medium, and the network file system is mounted automatically.
In order to achieve the above object, the present application provides a method for mounting a network file system, including:
determining basic information of a file sharing service, and creating the file sharing service based on the basic information;
and mounting the file instance corresponding to the file sharing service so as to finish mounting of the network file system.
The basic information comprises any one or a combination of any several items of a virtual data center, a file storage user, a file storage type, capacity and a snapshot quota;
the file storage user is a user accessing the file sharing service, and the file storage type is a file storage type corresponding to a storage system which actually provides the file storage service at the backend of the openstack.
Wherein, still include:
and unloading the target file sharing service after receiving an unloading command of the target file sharing service.
Wherein the mounting of the file instance corresponding to the file sharing service includes:
and creating a first target virtual machine, and mounting a file instance corresponding to the file sharing service to the first target virtual machine through a service arranging function.
The creating a first target virtual machine and mounting a file instance corresponding to the file sharing service to the first target virtual machine through a service orchestration function includes:
acquiring target software, and associating the target software with an installation script of the network file system;
creating a first target virtual machine and a service blueprint, and associating the service blueprint with the target software;
and deploying the service blueprint so as to mount the file instance corresponding to the file sharing service to the first target virtual machine.
Wherein the mounting of the file instance corresponding to the file sharing service includes:
and determining the created second target virtual machine, and mounting the file instance corresponding to the file sharing service to the second target virtual machine.
Wherein the determining of the created second target virtual machine and mounting the file instance corresponding to the file sharing service to the second target virtual machine includes:
determining a created second target virtual machine, and controlling the related service of a network file system client corresponding to the second target virtual machine to be started;
acquiring a mount path, and mounting a file instance corresponding to the file sharing service onto the mount path in the second target virtual machine;
and giving the mounting path read-write permission.
In order to achieve the above object, the present application provides a mount device of a network file system, including:
the creating module is used for determining basic information of the file sharing service and creating the file sharing service based on the basic information;
and the mounting module is used for mounting the file instance corresponding to the file sharing service so as to finish mounting of the network file system.
To achieve the above object, the present application provides an electronic device including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the mounting method of the network file system when executing the computer program.
To achieve the above object, the present application provides a computer-readable storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the mount method of the network file system as described above.
According to the scheme, the method for mounting the network file system comprises the following steps: determining basic information of a file sharing service, and creating the file sharing service based on the basic information; and mounting the file instance corresponding to the file sharing service so as to finish mounting of the network file system.
The method for mounting the network file system realizes automatic mounting of the NFS service by the windows virtual machine, solves the problem that the NFS file sharing service mounted by the windows system is very complicated, and realizes starting up and mounting of the NFS service by the virtual machine. Therefore, the method for mounting the network file system increases the use flexibility of the file sharing service, improves the flexibility of the file sharing service of the cloud computing platform, can be used without a technical foundation of a user, and gets rid of the limitation that NFS is used for a Unix-like system and CIFS is used for a window system. The application also discloses a mounting device of the network file system, an electronic device and a computer readable storage medium, which can also realize the technical effects.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
FIG. 1 is a flow diagram illustrating a method for mount of a network file system in accordance with an exemplary embodiment;
FIG. 2 is a schematic diagram illustrating a create file sharing service in accordance with an illustrative embodiment;
FIG. 3 is a flow diagram illustrating another method for mount of a network file system in accordance with an illustrative embodiment;
FIG. 4 is a flow diagram illustrating yet another method for mounting a network file system in accordance with an illustrative embodiment;
FIG. 5 is a block diagram illustrating a mount device of a network file system in accordance with an exemplary embodiment;
FIG. 6 is a block diagram illustrating an electronic device in accordance with an exemplary embodiment.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application. In addition, in the embodiments of the present application, "first", "second", and the like are used for distinguishing similar objects, and are not necessarily used for describing a specific order or a sequential order.
The embodiment of the application discloses a mounting method of a network file system, which realizes automatic mounting of the network file system.
Referring to fig. 1, a flowchart of a mount method of a network file system according to an exemplary embodiment is shown, as shown in fig. 1, including:
s101: determining basic information of a file sharing service, and creating the file sharing service based on the basic information;
the embodiment aims to realize automatic mounting of NFS service in a windows system. In this step, the user fills in basic information of the file sharing service, as shown in fig. 2, to create a file sharing service, i.e., a file storage instance, which is a pre-step of mount. The basic information here may include a virtual data center, a file storage user, a file storage type, a capacity, a snapshot quota, and the like, where the file storage user is a user accessing the file sharing service, and the file storage type is a file storage type corresponding to a storage system that actually provides the file storage service at the backend of the openstack.
S102: and mounting the file instance corresponding to the file sharing service so as to finish mounting of the network file system.
In a specific implementation, an automatic mount script is created, and the actual mount of windows virtual machine NFS service is executed. It should be noted that the mount of the file instance can be implemented in two ways: when the virtual machine is created, the virtual machine is mounted and mounted to an existing virtual machine, and the two ways will be described in detail in the following embodiments.
On the basis of the above embodiment, as a preferred implementation, the method further includes: and unloading the target file sharing service after receiving an unloading command of the target file sharing service. The embodiment also provides a service unloading function, and the user can unload the related NFS service by clicking an unloading button.
The method for mounting the network file system provided by the embodiment of the application realizes the automatic mounting of the NFS service by the windows virtual machine, solves the problem that the mounting of the NFS file sharing service under the windows system is very complicated, and realizes the loading of the NFS service when the virtual machine is started. Therefore, the method for mounting the network file system provided by the embodiment of the application increases the use flexibility of the file sharing service, improves the flexibility of the file sharing service of the cloud computing platform, can be used without a technical foundation of a user, and gets rid of the limitation that NFS is used for a Unix-like system and CIFS is used for a window system.
The embodiment of the application discloses a mounting method of a network file system, and compared with the previous embodiment, the embodiment further describes and optimizes the technical scheme. Specifically, the method comprises the following steps:
referring to fig. 3, a flowchart of another mount method of a network file system according to an exemplary embodiment is shown, and as shown in fig. 3, includes:
s201: determining basic information of a file sharing service, and creating the file sharing service based on the basic information;
s202: and creating a first target virtual machine, and mounting a file instance corresponding to the file sharing service to the first target virtual machine through a service arranging function so as to finish mounting of the network file system.
In this embodiment, the NFS service is mounted when the virtual machine is created by the service orchestration function. As a possible implementation manner, the creating a first target virtual machine and mounting a file instance corresponding to the file sharing service to the first target virtual machine through a service orchestration function includes: acquiring target software, and associating the target software with an installation script of the network file system; creating a first target virtual machine and a service blueprint, and associating the service blueprint with the target software; and deploying the service blueprint so as to mount the file instance corresponding to the file sharing service to the first target virtual machine.
In specific implementation, a user uploads software and associates an NFS installation script, where the uploaded software is not specifically limited, and the purpose of uploading software is to enable a blueprint to associate the script, execute the script after the virtual machine is created, and mount the NFS. Specifically, a service blueprint is created and associated with software with an installation script, the service blueprint is deployed, and a virtual machine with the nfs service can be created by deploying the service blueprint.
The embodiment of the application discloses a mounting method of a network file system, and compared with the first embodiment, the embodiment further describes and optimizes the technical scheme. Specifically, the method comprises the following steps:
referring to fig. 4, a flowchart of a mount method of a network file system according to an exemplary embodiment is shown, and as shown in fig. 4, the mount method includes:
s301: determining basic information of a file sharing service, and creating the file sharing service based on the basic information;
s302: and determining the created second target virtual machine, and mounting the file instance corresponding to the file sharing service to the second target virtual machine so as to finish mounting of the network file system.
In this embodiment, mounting the file instance corresponding to the file sharing service to the created virtual machine requires executing an installation script in a program. As a possible implementation manner, the determining a created second target virtual machine and mounting a file instance corresponding to the file sharing service to the second target virtual machine includes: determining a created second target virtual machine, and controlling the related service of a network file system client corresponding to the second target virtual machine to be started; acquiring a mount path, and mounting a file instance corresponding to the file sharing service onto the mount path in the second target virtual machine; and giving the mounting path read-write permission.
In specific implementation, 3 services related to the NFS client in the windows system are searched through a disk command, and the search result is stored in an NFS. Txt file stored circularly is read according to lines, the read content is windows NFS related service, and the service is started in sequence. And setting a mount path as a network path of the nfs service, wherein the mount path is transmitted when a file storage instance is selected, and a mount command is executed to set the network address to a z-disk. At this time, the mount path only has read-only authority, so write authority needs to be given.
Reading a registry:
HKEY _ LOCAL _ MACHINE \ SOFTWARE \ Microsoft \ ClientForNFS \ Current Version \ Default, newly adding REG _ QWRED type key AnonymouUid, and taking the value as 0.
In the following, a mount device of a network file system provided in an embodiment of the present application is introduced, and a mount device of a network file system described below and a mount method of a network file system described above may be referred to each other.
Referring to fig. 5, a block diagram of a mount device of a network file system according to an exemplary embodiment is shown, as shown in fig. 5, including:
a creating module 501, configured to determine basic information of a file sharing service, and create the file sharing service based on the basic information;
a mount module 502, configured to mount a file instance corresponding to the file sharing service, so as to complete mounting of the network file system.
The mount device of the network file system provided by the embodiment of the application realizes automatic mount of the NFS service by the windows virtual machine, solves the problem that mount of the NFS file sharing service under the windows system is very complicated, and realizes mount of the NFS service when the virtual machine is started. Therefore, the mounting device of the network file system provided by the embodiment of the application increases the use flexibility of the file sharing service, improves the flexibility of the file sharing service of the cloud computing platform, can be used without a technical foundation of a user, and gets rid of the limitation that NFS is used for a Unix-like system and CIFS is used for a window system.
On the basis of the foregoing embodiment, as a preferred implementation manner, the basic information includes any one or a combination of any several items of a virtual data center, a file storage user, a file storage type, a capacity, and a snapshot quota;
the file storage user is a user accessing the file sharing service, and the file storage type is a file storage type corresponding to a storage system which actually provides the file storage service at the backend of the openstack.
On the basis of the above embodiment, as a preferred implementation, the method further includes:
and the unloading module is used for unloading the target file sharing service after receiving an unloading command of the target file sharing service.
On the basis of the foregoing embodiment, as a preferred implementation manner, the mount module 502 is specifically a module that creates a first target virtual machine and mounts a file instance corresponding to the file sharing service to the first target virtual machine through a service orchestration function.
On the basis of the above embodiment, as a preferred implementation, the mounting module 502 includes:
the first association unit is used for acquiring target software and associating the target software with an installation script of the network file system;
the second association unit is used for creating a first target virtual machine and a service blueprint and associating the service blueprint with the target software;
and the deployment unit is used for deploying the service blueprint so as to mount the file instance corresponding to the file sharing service to the first target virtual machine.
On the basis of the foregoing embodiment, as a preferred implementation manner, the mount module 502 is specifically a module that determines a created second target virtual machine and mounts a file instance corresponding to the file sharing service to the second target virtual machine.
On the basis of the above embodiment, as a preferred implementation, the mounting module 502 includes:
the control unit is used for determining the created second target virtual machine and controlling the starting of the related service of the network file system client corresponding to the second target virtual machine;
the mounting unit is used for acquiring a mounting path and mounting a file instance corresponding to the file sharing service to the mounting path in the second target virtual machine;
and the giving unit is used for giving the read-write permission to the mounting path.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Based on the hardware implementation of the program module, and in order to implement the method according to the embodiment of the present application, an embodiment of the present application further provides an electronic device, and fig. 6 is a structural diagram of an electronic device according to an exemplary embodiment, as shown in fig. 6, the electronic device includes:
a communication interface 1 capable of information interaction with other devices such as network devices and the like;
and the processor 2 is connected with the communication interface 1 to realize information interaction with other equipment, and is used for executing an access method of an application provided by one or more technical schemes when running a computer program. And the computer program is stored on the memory 3.
In practice, of course, the various components in the electronic device are coupled together by the bus system 4. It will be appreciated that the bus system 4 is used to enable connection communication between these components. The bus system 4 comprises, in addition to a data bus, a power bus, a control bus and a status signal bus. For the sake of clarity, however, the various buses are labeled as bus system 4 in fig. 6.
The memory 3 in the embodiment of the present application is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program for operating on an electronic device.
It will be appreciated that the memory 3 may be either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 2 described in the embodiments of the present application is intended to comprise, without being limited to, these and any other suitable types of memory.
The method disclosed in the above embodiment of the present application may be applied to the processor 2, or implemented by the processor 2. The processor 2 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 2. The processor 2 described above may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 2 may implement or perform the methods, steps and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 3, and the processor 2 reads the program in the memory 3 and in combination with its hardware performs the steps of the aforementioned method.
When the processor 2 executes the program, the corresponding processes in the methods according to the embodiments of the present application are realized, and for brevity, are not described herein again.
In an exemplary embodiment, the present application further provides a storage medium, i.e. a computer storage medium, specifically a computer readable storage medium, for example, including a memory 3 storing a computer program, which can be executed by a processor 2 to implement the steps of the foregoing method. The computer readable storage medium may be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof that contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling an electronic device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for mounting a network file system is characterized by comprising the following steps:
determining basic information of a file sharing service, and creating the file sharing service based on the basic information;
and mounting the file instance corresponding to the file sharing service so as to finish mounting of the network file system.
2. The mount method according to claim 1, wherein the basic information includes any one or a combination of any several of a virtual data center, a file storage user, a file storage type, a capacity, and a snapshot quota;
the file storage user is a user accessing the file sharing service, and the file storage type is a file storage type corresponding to a storage system which actually provides the file storage service at the backend of the openstack.
3. The mounting method according to claim 1, further comprising:
and unloading the target file sharing service after receiving an unloading command of the target file sharing service.
4. The mount method according to any one of claims 1 to 3, wherein the mounting the file instance corresponding to the file sharing service includes:
and creating a first target virtual machine, and mounting a file instance corresponding to the file sharing service to the first target virtual machine through a service arranging function.
5. The mount method according to claim 4, wherein the creating a first target virtual machine and mounting a file instance corresponding to the file sharing service to the first target virtual machine through a service orchestration function includes:
acquiring target software, and associating the target software with an installation script of the network file system;
creating a first target virtual machine and a service blueprint, and associating the service blueprint with the target software;
and deploying the service blueprint so as to mount the file instance corresponding to the file sharing service to the first target virtual machine.
6. The mount method according to any one of claims 1 to 3, wherein the mounting the file instance corresponding to the file sharing service includes:
and determining the created second target virtual machine, and mounting the file instance corresponding to the file sharing service to the second target virtual machine.
7. The mount method according to claim 6, wherein the determining the created second target virtual machine and mounting the file instance corresponding to the file sharing service onto the second target virtual machine includes:
determining a created second target virtual machine, and controlling the related service of a network file system client corresponding to the second target virtual machine to be started;
acquiring a mount path, and mounting a file instance corresponding to the file sharing service onto the mount path in the second target virtual machine;
and giving the mounting path read-write permission.
8. A mount device for a network file system, comprising:
the creating module is used for determining basic information of the file sharing service and creating the file sharing service based on the basic information;
and the mounting module is used for mounting the file instance corresponding to the file sharing service so as to finish mounting of the network file system.
9. An electronic device, comprising:
a memory for storing a computer program;
processor for implementing the steps of the mount method of the network file system according to any of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method for mounting a network file system according to any one of claims 1 to 7.
CN202010956121.9A 2020-09-11 2020-09-11 Network file system mounting method and device, electronic equipment and storage medium Active CN112162958B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010956121.9A CN112162958B (en) 2020-09-11 2020-09-11 Network file system mounting method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010956121.9A CN112162958B (en) 2020-09-11 2020-09-11 Network file system mounting method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112162958A true CN112162958A (en) 2021-01-01
CN112162958B CN112162958B (en) 2023-12-22

Family

ID=73858859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010956121.9A Active CN112162958B (en) 2020-09-11 2020-09-11 Network file system mounting method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112162958B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112799780A (en) * 2021-01-15 2021-05-14 中国银联股份有限公司 Container mirror image sharing method, device, server, equipment and medium
CN113032351A (en) * 2021-03-31 2021-06-25 建信金融科技有限责任公司 Recovery method and device of network file system
CN113992657A (en) * 2021-10-26 2022-01-28 超越科技股份有限公司 Shared storage building method, device and medium based on cloud platform
CN114443166A (en) * 2022-01-25 2022-05-06 苏州浪潮智能科技有限公司 Shared file processing method, device and medium
WO2023041047A1 (en) * 2021-09-17 2023-03-23 华为云计算技术有限公司 Cloud technology-based file service providing method and related device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150178113A1 (en) * 2013-12-24 2015-06-25 Red Hat, Inc. Loading runtime configuration files into virtual machine instances
CN108038236A (en) * 2017-12-27 2018-05-15 深信服科技股份有限公司 File sharing method, device, system and readable storage medium storing program for executing
US10114705B1 (en) * 2015-04-14 2018-10-30 EMC IP Holding Company LLC Presenting virtual machine backup files for block and file level restore
CN109040207A (en) * 2018-07-20 2018-12-18 广东浪潮大数据研究有限公司 A kind of method, device and equipment accessing User space Network File System
CN111125050A (en) * 2019-12-26 2020-05-08 浪潮云信息技术有限公司 CephFS-based file storage method for providing NFS protocol in openstack environment
CN111159105A (en) * 2019-12-30 2020-05-15 浪潮云信息技术有限公司 System and method for supporting NFS protocol and setting ACL based on manila sharing mode
CN111399984A (en) * 2020-03-19 2020-07-10 上海英方软件股份有限公司 File recovery method and system based on virtual machine backup data
CN111580832A (en) * 2020-04-29 2020-08-25 电科云(北京)科技有限公司 Application release system and method applied to heterogeneous multi-cloud environment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150178113A1 (en) * 2013-12-24 2015-06-25 Red Hat, Inc. Loading runtime configuration files into virtual machine instances
US10114705B1 (en) * 2015-04-14 2018-10-30 EMC IP Holding Company LLC Presenting virtual machine backup files for block and file level restore
CN108038236A (en) * 2017-12-27 2018-05-15 深信服科技股份有限公司 File sharing method, device, system and readable storage medium storing program for executing
CN109040207A (en) * 2018-07-20 2018-12-18 广东浪潮大数据研究有限公司 A kind of method, device and equipment accessing User space Network File System
CN111125050A (en) * 2019-12-26 2020-05-08 浪潮云信息技术有限公司 CephFS-based file storage method for providing NFS protocol in openstack environment
CN111159105A (en) * 2019-12-30 2020-05-15 浪潮云信息技术有限公司 System and method for supporting NFS protocol and setting ACL based on manila sharing mode
CN111399984A (en) * 2020-03-19 2020-07-10 上海英方软件股份有限公司 File recovery method and system based on virtual machine backup data
CN111580832A (en) * 2020-04-29 2020-08-25 电科云(北京)科技有限公司 Application release system and method applied to heterogeneous multi-cloud environment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘世林;: "物理机windows与虚拟机linux之间的文件交换方法", 电脑与信息技术, no. 04 *
张秋萍;: "基于OpenStack Manila的多租户多协议共享存储平台", 现代计算机, no. 33 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112799780A (en) * 2021-01-15 2021-05-14 中国银联股份有限公司 Container mirror image sharing method, device, server, equipment and medium
CN113032351A (en) * 2021-03-31 2021-06-25 建信金融科技有限责任公司 Recovery method and device of network file system
CN113032351B (en) * 2021-03-31 2023-01-13 中国建设银行股份有限公司 Recovery method and device of network file system
WO2023041047A1 (en) * 2021-09-17 2023-03-23 华为云计算技术有限公司 Cloud technology-based file service providing method and related device
CN113992657A (en) * 2021-10-26 2022-01-28 超越科技股份有限公司 Shared storage building method, device and medium based on cloud platform
CN113992657B (en) * 2021-10-26 2024-04-12 超越科技股份有限公司 Cloud platform-based shared storage construction method, equipment and medium
CN114443166A (en) * 2022-01-25 2022-05-06 苏州浪潮智能科技有限公司 Shared file processing method, device and medium
CN114443166B (en) * 2022-01-25 2023-07-14 苏州浪潮智能科技有限公司 Shared file processing method, device and medium

Also Published As

Publication number Publication date
CN112162958B (en) 2023-12-22

Similar Documents

Publication Publication Date Title
CN112162958B (en) Network file system mounting method and device, electronic equipment and storage medium
US11023286B2 (en) Container based service management
US9674103B2 (en) Management of addresses in virtual machines
US11403262B2 (en) Local networked storage linked to remote networked storage system
US9607004B2 (en) Storage device data migration
US9886398B2 (en) Implicit sharing in storage management
CN112181602A (en) Resource arranging method and device, electronic equipment and storage medium
US10459802B2 (en) Backup image restore
US20180336079A1 (en) Managing inter-process communications in a containerized application environment
US11172024B2 (en) Co-location of storage buckets with containerized applications
CN105450759A (en) System mirror image management method and device
US20190361618A1 (en) Maintaining container to storage volume relations
US20220019553A1 (en) Synchronizing storage policies of objects migrated to cloud storage
US11838296B1 (en) Providing secure software project development environments
CN114138405A (en) Virtual machine creating method and device, electronic equipment and storage medium
CN114064594B (en) Data processing method and device
CN108287735A (en) A kind of method, apparatus and server obtaining UEFI OS startup items
EP3731491A1 (en) Method and device for downloading resources
CN115878223A (en) Dual-system cloud security mobile phone dual-container starting method
CN115774701A (en) Data sharing method and device, electronic equipment and storage medium
US11748116B2 (en) Managing virtual services in an information handling system
CN113986858A (en) Linux compatible android system shared file operation method and device
US11188455B2 (en) Media import and export in storage management systems
CN114840307A (en) Container loading method, device, equipment and storage medium
CN114115912A (en) Application installation method based on cloud mobile phone, cloud platform and related equipment

Legal Events

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