CN112162958B - 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
CN112162958B
CN112162958B CN202010956121.9A CN202010956121A CN112162958B CN 112162958 B CN112162958 B CN 112162958B CN 202010956121 A CN202010956121 A CN 202010956121A CN 112162958 B CN112162958 B CN 112162958B
Authority
CN
China
Prior art keywords
file
mounting
virtual machine
sharing service
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.)
Active
Application number
CN202010956121.9A
Other languages
Chinese (zh)
Other versions
CN112162958A (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

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 the network file system. According to the mounting method of the network file system, the NFS service is automatically mounted on the windows virtual machine, the problem that the downloading of the NFS file sharing service on the windows system is very complicated is solved, and the NFS service is mounted on the virtual machine when the virtual machine is started is achieved. Therefore, the mounting method of 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 user having a technical foundation, and gets rid of the limitation that NFS is used for Unix-like systems and CIFS is used for windows systems.

Description

Network file system mounting method and device, electronic equipment and storage medium
Technical Field
The present invention 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, a traditional data center gradually turns to a virtualized data center, and file sharing storage occupies a vital position on the whole cloud computing platform. As a fact standard of the private cloud computing platform, the opentack cloud computing platform provides file sharing service for users through manila. Manila (File Share Service, file sharing is a service) is used to provide file sharing on the cloud, supporting CIFS (Chinese full name: universal network File System; english full name: common Internet File System) protocol and NFS (Chinese full name: network File System; english full name: network File System) protocol. After the cloud computing platform creates the file sharing service, complex configuration is needed to be used, 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 mounting of network file systems is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a method and a device for mounting a network file system, electronic equipment and a computer readable storage medium, and the method and the device realize automatic mounting of the network file system.
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 the network file system.
Wherein the basic information comprises any one or a combination of any 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 of which the back end of the openstack actually provides the file storage service.
Wherein, still include:
and unloading the target file sharing service after receiving an unloading command of the target file sharing service.
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 arrangement function.
The creating a first target virtual machine, and mounting the file instance corresponding to the file sharing service to the first target virtual machine through a service arrangement 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 on the first target virtual machine.
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.
The determining 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 second target virtual machine which is created, and controlling relevant services of a network file system client corresponding to the second target virtual machine to be started;
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 giving read-write permission to the mounting path.
In order to achieve the above object, the present application provides a mounting device for a network file system, including:
the creation 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 the 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 network file system mounting method 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 method for mounting a network file system as described above.
According to the scheme, the mounting method of 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 the network file system.
According to the mounting method of the network file system, the NFS service is automatically mounted on the windows virtual machine, the problem that the downloading of the NFS file sharing service on the windows system is very complicated is solved, and the NFS service is mounted on the virtual machine when the virtual machine is started is achieved. Therefore, the mounting method of 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 user having a technical foundation, and gets rid of the limitation that NFS is used for Unix-like systems and CIFS is used for windows systems. The application also discloses a mounting device of the network file system, an electronic device and a computer readable storage medium, and the technical effects can be achieved.
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 that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. The accompanying drawings are included to provide a further understanding of the disclosure, and are incorporated in and constitute a part of this specification, illustrate the disclosure and together with the description serve to explain, but do not limit the disclosure. In the drawings:
FIG. 1 is a flowchart illustrating a method of mounting a network file system according to an exemplary embodiment;
FIG. 2 is a schematic diagram illustrating one creation of a file sharing service according to an example embodiment;
FIG. 3 is a flowchart illustrating another method of mounting a network file system according to an exemplary embodiment;
FIG. 4 is a flowchart illustrating yet another method of mounting a network file system according to an exemplary embodiment;
FIG. 5 is a block diagram of an mount device of a network file system according to an exemplary embodiment;
fig. 6 is a block diagram of an electronic device, according to an example 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 will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application. In addition, in the embodiments of the present application, "first," "second," and the like are used to distinguish similar objects, and are not necessarily used to describe a particular order or sequence.
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 method for mounting 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 at realizing automatic mounting of the NFS service in a windows system. In this step, the user fills out the basic information of the file sharing service, as shown in fig. 2, to create the file sharing service, i.e., the file storage instance, which is a pre-step of mounting. 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 a file sharing service, and the file storage type is a file storage type corresponding to a storage system actually providing a file storage service at an openstack backend.
S102: and mounting the file instance corresponding to the file sharing service so as to finish mounting the network file system.
In specific implementation, a script for automatic mounting is created, and actual mounting of the windows virtual machine NFS service is executed. It should be noted that, the mounting of the file instance may be performed in two ways: when the virtual machine is created, the virtual machine is mounted and installed on the existing virtual machine, and the two modes are described in detail in the following embodiments.
On the basis of the above embodiment, as a preferred implementation manner, 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 offloading function, and the user clicks an offloading button to offload the relevant NFS service.
According to the mounting method of the network file system, which is provided by the embodiment of the application, the NFS service is automatically mounted on the windows virtual machine, the problem that the NFS file sharing service is very complicated to mount under the windows system is solved, and the NFS service is mounted on the virtual machine when the virtual machine is started. Therefore, the mounting method of 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 user having a technical foundation, and gets rid of the limitation that NFS is used for Unix-like systems and CIFS is used for windows systems.
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. Specific:
referring to fig. 3, a flowchart of another method for mounting 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 arrangement function so as to finish mounting of a 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, by a service orchestration function, a file instance corresponding to the file sharing service to the first target virtual machine 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 on the first target virtual machine.
In a specific implementation, a user uploads software and associates NFS installation scripts, and the uploaded software is not specifically limited herein, and the purpose of the uploading software is to enable a blueprint to associate the scripts, execute the scripts after the creation of the virtual machine is completed, and carry out the installation of NFS. Specifically, creating a service blueprint, associating software with an installation script, deploying the service blueprint, and creating a virtual machine with nfs service 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 method further describes and optimizes a technical scheme. Specific:
referring to fig. 4, a flowchart of yet another method for mounting a network file system according to an exemplary embodiment is shown, and as shown in fig. 4, 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 on the second target virtual machine so as to finish mounting of the network file system.
In this embodiment, the file instance corresponding to the file sharing service is mounted to the created virtual machine, and the installation script needs to be executed in the program. As a possible implementation manner, the determining the created second target virtual machine and mounting the file instance corresponding to the file sharing service on the second target virtual machine includes: determining a second target virtual machine which is created, and controlling relevant services of a network file system client corresponding to the second target virtual machine to be started; 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 giving read-write permission to the mounting path.
In a specific implementation, 3 NFS client related services in the windows system are searched through a disk command, and the search results are stored in an nfs.txt file. Circularly storing nfs.txt files, reading the files according to rows, and starting the service in turn, wherein the read content is windows NFS related service. Setting the mounting path as the network path of nfs service, which is input when selecting file storage instance, executing mount command to set the network address as z disc. At this time, the mounting path only has read-only authority, so write authority is required to be given.
Reading a registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft \Microsoft' ClientForNFS/Currentversion/Default, the REG_QWORD type key AnonymousUId is added with a value of 0.
The following describes a mounting device of a network file system according to an embodiment of the present application, and the mounting device of a network file system and the mounting method of a network file system described above may be referred to each other.
Referring to fig. 5, a block diagram of an installation apparatus of a network file system according to an exemplary embodiment is shown, as shown in fig. 5, including:
a creation module 501, configured to determine basic information of a file sharing service, and create the file sharing service based on the basic information;
and the mounting module 502 is configured to mount a file instance corresponding to the file sharing service, so as to complete mounting of the network file system.
According to the mounting device for the network file system, which is provided by the embodiment of the application, the NFS service is automatically mounted on the windows virtual machine, the problem that the NFS file sharing service is very complicated to mount under the windows system is solved, and the NFS service is mounted on the virtual machine when the virtual machine is started is realized. 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 cloud computing platform file sharing service, can be used without a user having a technical foundation, and gets rid of the limitation that NFS is used for Unix-like systems and CIFS is used for windows systems.
On the basis of the above embodiment, as a preferred implementation manner, 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 of which the back end of the openstack actually provides the file storage service.
On the basis of the above embodiment, as a preferred implementation manner, 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 mounting module 502 is specifically a module that creates a first target virtual machine, and mounts, through a service orchestration function, a file instance corresponding to the file sharing service to the first target virtual machine.
Based on the foregoing embodiment, as a preferred implementation manner, the mounting module 502 includes:
the first association unit is used for acquiring target software and associating the target software with the 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;
the deployment unit is used for deploying the service blueprint so as to mount the file instance corresponding to the file sharing service on the first target virtual machine.
On the basis of the foregoing embodiment, as a preferred implementation manner, the mounting module 502 is specifically a module that determines a second target virtual machine that has been created, and mounts a file instance corresponding to the file sharing service to the second target virtual machine.
Based on the foregoing embodiment, as a preferred implementation manner, the mounting module 502 includes:
the control unit is used for determining a second target virtual machine which is created and controlling the related service of the network file system client corresponding to the second target virtual machine to be started;
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.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Based on the hardware implementation of the program modules, and in order to implement the method of the embodiments of the present application, the embodiments of the present application further provide an electronic device, fig. 6 is a block diagram of an electronic device according to an exemplary embodiment, and 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 devices and is used for executing the access method of the application provided by one or more technical schemes when the computer program is run. And the computer program is stored on the memory 3.
Of course, in practice, the various components in the electronic device are coupled together by a bus system 4. It will be appreciated that the bus system 4 is used to enable connected communications 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. But for clarity of illustration 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. Wherein the nonvolatile Memory may be Read Only Memory (ROM), programmable Read Only Memory (PROM, programmable Read-Only Memory), erasable programmable Read Only Memory (EPROM, erasable Programmable Read-Only Memory), electrically erasable programmable Read Only Memory (EEPROM, electrically Erasable Programmable Read-Only Memory), magnetic random access Memory (FRAM, ferromagnetic random access Memory), flash Memory (Flash Memory), magnetic surface Memory, optical disk, or compact disk Read Only Memory (CD-ROM, compact Disc Read-Only Memory); the magnetic surface memory may be a disk memory or a tape memory. The volatile memory may be random access memory (RAM, random Access Memory), which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available, such as static random access memory (SRAM, static Random Access Memory), synchronous static random access memory (SSRAM, synchronous Static Random Access Memory), dynamic random access memory (DRAM, dynamic Random Access Memory), synchronous dynamic random access memory (SDRAM, synchronous Dynamic Random Access Memory), double data rate synchronous dynamic random access memory (ddr SDRAM, double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random access memory (ESDRAM, enhanced Synchronous Dynamic Random Access Memory), synchronous link dynamic random access memory (SLDRAM, syncLink Dynamic Random Access Memory), direct memory bus random access memory (DRRAM, direct Rambus Random Access Memory). 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 embodiments 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 with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 2 or by instructions in the form of software. The processor 2 described above may be a general purpose processor, 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. The 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 embodied in 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 in the memory 3 and the processor 2 reads the program in the memory 3 to perform the steps of the method described above in connection with its hardware.
The processor 2 implements corresponding flows in the methods of the embodiments of the present application when executing the program, and for brevity, will not be described in detail herein.
In an exemplary embodiment, the present application also provides a storage medium, i.e. a computer storage medium, in particular a computer readable storage medium, for example comprising a memory 3 storing a computer program executable by the processor 2 for performing the steps of the method described above. The computer readable storage medium may be FRAM, ROM, PROM, EPROM, EEPROM, flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware associated with program instructions, where the foregoing program may be stored in a computer readable storage medium, and when executed, the program performs steps including the above method embodiments; and the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.
Alternatively, the integrated units described above may be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partly contributing to the prior art, and the computer software product may be stored in a storage medium, and include several instructions to cause an electronic device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.
The foregoing is merely 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 think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to 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 (5)

1. A method for mounting a network file system, comprising:
determining basic information of a file sharing service, and creating the file sharing service based on the basic information; wherein the basic information comprises any one or a combination of any 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 of which the back end of the openstack actually provides the file storage service;
mounting a file instance corresponding to the file sharing service so as to finish mounting a network file system;
the mounting the file instance corresponding to the file sharing service includes:
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 arrangement function;
the creating a first target virtual machine, and mounting the file instance corresponding to the file sharing service to the first target virtual machine through a service arrangement 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;
deploying the service blueprint so as to mount a file instance corresponding to the file sharing service on the first target virtual machine;
the mounting the file instance corresponding to the file sharing service includes:
determining a second target virtual machine which is created, and mounting a file instance corresponding to the file sharing service to the second target virtual machine;
the determining 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 second target virtual machine which is created, and controlling relevant services of a network file system client corresponding to the second target virtual machine to be started;
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 giving read-write permission to the mounting path.
2. 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.
3. A mounting apparatus for a network file system, comprising:
the creation module is used for determining basic information of the file sharing service and creating the file sharing service based on the basic information; wherein the basic information comprises any one or a combination of any 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 of which the back end of the openstack actually provides the file storage service;
the mounting module is used for mounting the file instance corresponding to the file sharing service so as to finish the mounting of the network file system;
the mounting module is specifically a module for 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 arrangement function;
wherein, the mounting module includes:
the first association unit is used for acquiring target software and associating the target software with the 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;
the deployment unit is used for deploying the service blueprint so as to mount the file instance corresponding to the file sharing service on the first target virtual machine;
the mounting module is specifically a module for determining a second target virtual machine which is created and mounting a file instance corresponding to the file sharing service on the second target virtual machine;
wherein, the mounting module includes:
the control unit is used for determining a second target virtual machine which is created and controlling the related service of the network file system client corresponding to the second target virtual machine to be started;
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.
4. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for mounting a network file system according to claim 1 or 2 when executing said computer program.
5. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the method of mounting a network file system according to claim 1 or 2.
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 CN112162958A (en) 2021-01-01
CN112162958B true 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)

Families Citing this family (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
CN113032351B (en) * 2021-03-31 2023-01-13 中国建设银行股份有限公司 Recovery method and device of network file system
CN115826844A (en) * 2021-09-17 2023-03-21 华为云计算技术有限公司 File service providing method based on cloud technology and related equipment
CN113992657B (en) * 2021-10-26 2024-04-12 超越科技股份有限公司 Cloud platform-based shared storage construction method, equipment and medium
CN114443166B (en) * 2022-01-25 2023-07-14 苏州浪潮智能科技有限公司 Shared file processing method, device and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10503531B2 (en) * 2013-12-24 2019-12-10 Red Hat, Inc. Loading runtime configuration files into virtual machine instances which when executed transform a stored virtual machine image into a customized configuration

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
基于OpenStack Manila的多租户多协议共享存储平台;张秋萍;;现代计算机(33);全文 *
物理机windows与虚拟机linux之间的文件交换方法;刘世林;;电脑与信息技术(04);全文 *

Also Published As

Publication number Publication date
CN112162958A (en) 2021-01-01

Similar Documents

Publication Publication Date Title
CN112162958B (en) Network file system mounting method and device, electronic equipment and storage medium
US9886398B2 (en) Implicit sharing in storage management
US9607004B2 (en) Storage device data migration
US20160232374A1 (en) Permission control method and apparatus
US10698622B2 (en) Maintaining container to storage volume relations
US11004054B2 (en) Updating account data for multiple account providers
CN110716845B (en) Log information reading method of Android system
US11175846B2 (en) Data co-location in a hierarchical storage management (HSM) system
US8719546B2 (en) Substitute virtualized-memory page tables
US11838296B1 (en) Providing secure software project development environments
CN113536174A (en) Interface loading method, device and equipment
CN114371914A (en) Container IP address configuration method and device, storage medium and electronic equipment
US11368492B1 (en) Parameterized trust and permission policies between entities for cloud resources
CN111314454A (en) Application access method and device, electronic equipment and storage medium
JP2015043231A (en) Data protection method, circuit card, and mobile radio communications device
CN113986858B (en) Linux compatible android system shared file operation method and device
CN109587205B (en) Shared directory creation mounting method and related equipment
US10255174B2 (en) Common cache pool for applications
CN114679442A (en) Cloud desktop based user data synchronization method, device, equipment and storage medium
US11188455B2 (en) Media import and export in storage management systems
CN114048169A (en) Document access method, device, server and storage medium
EP4000239A1 (en) 3rd generation partnership project (3gpp) framework for live uplink streaming (flus) sink capabilities determination
US20190166063A1 (en) Abstracted, extensible cloud access of resources
CN115150392B (en) Remote file copying method, system, computing equipment and storage medium
US20220350743A1 (en) Prefetch of random data using application tags

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