CN113992657A - Shared storage building method, device and medium based on cloud platform - Google Patents

Shared storage building method, device and medium based on cloud platform Download PDF

Info

Publication number
CN113992657A
CN113992657A CN202111250266.8A CN202111250266A CN113992657A CN 113992657 A CN113992657 A CN 113992657A CN 202111250266 A CN202111250266 A CN 202111250266A CN 113992657 A CN113992657 A CN 113992657A
Authority
CN
China
Prior art keywords
shared storage
host nodes
cloud platform
shared
master node
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
CN202111250266.8A
Other languages
Chinese (zh)
Other versions
CN113992657B (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.)
Chaoyue Technology Co Ltd
Original Assignee
Chaoyue 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 Chaoyue Technology Co Ltd filed Critical Chaoyue Technology Co Ltd
Priority to CN202111250266.8A priority Critical patent/CN113992657B/en
Publication of CN113992657A publication Critical patent/CN113992657A/en
Application granted granted Critical
Publication of CN113992657B publication Critical patent/CN113992657B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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]
    • 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/182Distributed file systems
    • G06F16/1824Distributed file systems implemented using Network-attached Storage [NAS] architecture
    • G06F16/183Provision of network file services by network file servers, e.g. by using NFS, CIFS
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a method, equipment and a medium for establishing a shared storage based on a cloud platform, wherein the method comprises the following steps: determining a plurality of host nodes needing to build shared storage in a cloud platform; receiving authorization instructions of a plurality of host nodes and indicating the plurality of host nodes to install an NFS network file system; determining any one of a plurality of host nodes provided with NFS network file systems as a host node, and sending a service starting instruction to the host node; and establishing a shared storage menu in the cloud platform, and linking the IP address corresponding to the main node to the shared storage menu. By building shared data and shared storage in the cloud platform, a host node in the cloud platform can be supported to directly access the shared file without uploading the shared file to the cloud platform, so that resources of the cloud platform are saved, the working efficiency is guaranteed, and the convenience of data acquisition is improved.

Description

Shared storage building method, device and medium based on cloud platform
Technical Field
The application relates to the technical field of virtualized storage, in particular to a shared storage building method, device and medium based on a cloud platform.
Background
The cloud platform is a cloud service based on hardware resources and software resources, and has the capability of providing calculation, network and storage. With the advent of big data and a sharing era, more and more terminal devices share computing power and share data by adding a cloud platform.
However, when a certain terminal device in the cloud platform creates a virtual machine, in order to meet the access or use of the virtual machine by other devices of the cloud platform, the terminal device needs to upload an image file used by the virtual machine to the cloud platform. However, the live migration of the virtual machine data has certain limitations, and the process of uploading the data needs to consume a large amount of cloud platform resources. Therefore, a method for establishing a shared storage based on a cloud platform needs to be designed, and a cloud platform user can still access or use the virtual machine on the premise of not uploading the image file.
Disclosure of Invention
In order to solve the above problems, that is, to solve the problem that the live migration of virtual machine data in a cloud platform has certain limitations and the process of uploading data needs to consume a large amount of cloud platform resources, the present application provides a method, device and medium for building a shared storage based on a cloud platform, including:
on one hand, the application provides a shared storage building method based on a cloud platform, which comprises the following steps: determining a plurality of host nodes needing to build shared storage in a cloud platform; receiving authorization instructions of the plurality of host nodes, and indicating the plurality of host nodes to install the NFS network file system according to the authorization instructions; determining any one of the host nodes provided with the NFS network file system as a master node, and sending a service start instruction to the master node, where the service start instruction is used for enabling the master node to start the NFS network file system service; and establishing a shared storage menu in the cloud platform, and linking the IP address corresponding to the main node to the shared storage menu, wherein the shared storage menu is used for recording the address and the position of shared data.
In one example, determining, in a cloud platform, a plurality of host nodes to build a shared storage specifically includes: acquiring network configuration and hard disk information of all host nodes, wherein all the host nodes are all host nodes added into a cloud platform; in all the host nodes, the communication volume in the network configuration meets a preset threshold value, and the hard disk information comprises at least one host node for storing a hard disk, and the host nodes are used as a plurality of host nodes needing to establish shared storage; sending a shared storage contract to a plurality of host nodes needing to build shared storage, and receiving feedback results of the host nodes on the shared storage contract; according to the feedback result, the shared storage built by the host nodes is determined
In one example, before determining that any one of the plurality of host nodes that have installed the NFS network file system is a master node and sending a service turn-on instruction to the master node, the method further includes: respectively sending hard disk designation requests to the host nodes to respectively determine shared file hard disks of the host nodes, wherein the shared file hard disks are selected from storage hard disks by the host nodes according to the hard disk designation requests; and respectively establishing shared folders in the host nodes, and respectively mounting each shared file hard disk into the corresponding shared folder in the host nodes.
In one example, after determining that any one of the plurality of host nodes that have installed the NFS network file system is a master node and sending a service turn-on instruction to the master node, the method further includes: in the master node, modifying a configuration file of the NFS network file system to determine that the master node starts a sharing function of the NFS network file system; and sending a restart instruction to the master node so that the master node restarts the NFS network file system.
In one example, after establishing a shared storage menu in the cloud platform and linking an IP address corresponding to the master node to the shared storage menu, the method further includes: sending a test file to the main node, and storing the test file to a specified position of the main node; calling the shared storage menu, and inquiring the test file in the shared storage menu; if the shared storage menu is inquired to contain the test file, the test is finished; and if the test file is not contained in the inquiry shared storage menu, the test fails, and a restart instruction is sent to the main node for retesting.
In one example, after establishing a shared storage menu in the cloud platform and linking an IP address corresponding to the master node to the shared storage menu, the method further includes: acquiring call requests of other host nodes, and determining that the NFS network file system is installed in the other host nodes according to the call requests; the other host nodes are non-host nodes; calling the shared storage menu according to the calling request, and inquiring calling data corresponding to the calling request; and sending the calling data to the other host nodes.
In one example, before calling the shared menu according to the call request and querying call data corresponding to the call request, the method further includes: determining that the other host nodes do not belong to the plurality of host nodes; obtaining authentication characteristics of the other host nodes, the authentication characteristics including at least any one or more of: department, common service, and authorization certificate; according to the verification characteristics, performing security verification on the other host nodes to obtain verification results; and determining whether the other host nodes can acquire the calling data or not according to the verification result.
In one example, after establishing a shared storage menu in the cloud platform and linking an IP address corresponding to the master node to the shared storage menu, the method further includes: determining a virtual machine created by the master node; loading the virtual machine to the cloud platform, and binding an invoking resource channel of the virtual machine to the shared storage menu; and shielding other IP addresses in the shared storage menu, wherein the other IP addresses are IP addresses corresponding to nodes except the main node.
On the other hand, the application provides a shared storage building device based on a cloud platform, which comprises: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to: determining a plurality of host nodes needing to build shared storage in a cloud platform; receiving authorization instructions of the plurality of host nodes, and indicating the plurality of host nodes to install the NFS network file system according to the authorization instructions; determining any one of the host nodes provided with the NFS network file system as a master node, and sending a service start instruction to the master node, where the service start instruction is used for enabling the master node to start the NFS network file system service; and establishing a shared storage menu in the cloud platform, and linking the IP address corresponding to the main node to the shared storage menu, wherein the shared storage menu is used for recording the address and the position of shared data.
In another aspect, the present disclosure provides a non-transitory computer storage medium storing computer-executable instructions configured to: determining a plurality of host nodes needing to build shared storage in a cloud platform; receiving authorization instructions of the plurality of host nodes, and indicating the plurality of host nodes to install the NFS network file system according to the authorization instructions; determining any one of the host nodes provided with the NFS network file system as a master node, and sending a service start instruction to the master node, where the service start instruction is used for enabling the master node to start the NFS network file system service; and establishing a shared storage menu in the cloud platform, and linking the IP address corresponding to the main node to the shared storage menu, wherein the shared storage menu is used for recording the address and the position of shared data.
The method, the device and the medium for establishing the shared storage based on the cloud platform can bring the following beneficial effects: by building shared data and shared storage in the cloud platform, a host node in the cloud platform can be supported to directly access the shared file without uploading the shared file to the cloud platform, so that resources of the cloud platform are saved, the working efficiency is guaranteed, and the convenience of data acquisition is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flow chart of a shared storage construction method based on a cloud platform in an embodiment of the present application;
fig. 2 is a schematic diagram illustrating an operating principle of the NFS network file system in the embodiment of the present application;
fig. 3 is a schematic diagram of a shared storage building device based on a cloud platform in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the 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.
First, it should be noted that the method for establishing the shared storage based on the cloud platform described in the present application may be stored in a corresponding system or server, and the system or server determines to receive information or send an instruction by communicating with the cloud platform and a host node joining the cloud platform. In addition, the terminal or the server where the system is located should have built-in corresponding hardware devices, including but not limited to: a processor, a memory, a communication module, etc. to implement various technical solutions in the present application. In the embodiment of the present application, a system is taken as an example for explanation, and the system may be disposed in a corresponding terminal, where the terminal includes but is not limited to: the mobile phone, the tablet computer, the computer or other terminal equipment with corresponding computing power and functions. The system can determine the interactive relation between the system and the hardware equipment in the terminal through corresponding program setting, and simultaneously can also determine the opening mode of the program through corresponding software setting modes, including but not limited to direct opening, opening through modes such as APP (application), WEB (WEB page) login and the like, so as to meet the requirements of users on operation use, monitoring or debugging of the system, and further realize the establishment of shared storage.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
As shown in fig. 1, a method for building a shared storage based on a cloud platform provided in an embodiment of the present application includes:
s101: in the determination cloud platform, a plurality of host nodes for building the shared storage are determined.
First, the cloud platform described in the present application may be referred to as a cloud computing platform, and refers to a service based on hardware resources and software resources, which provides computing, networking, and storage capabilities. Cloud computing platforms can be divided into several categories, including but not limited to: the cloud computing platform comprises a storage type cloud platform taking data storage as a main part, a computing type cloud platform taking data processing as a main part, and a comprehensive cloud computing platform taking computing and data processing into consideration.
In the embodiment of the application, the cloud platform serves as a cluster, and different hosts can join the cloud platform according to corresponding verification or invitation modes. Any number of host nodes may be included in the cloud platform, each host node corresponding to a host device.
Specifically, the system determines all host nodes that have joined the cloud platform, and acquires network configuration and hard disk information of all host nodes, where all host nodes are all host nodes that have joined the cloud platform.
In all host nodes, the system takes the communication volume in the network configuration meeting a preset threshold value, and the hard disk information comprises at least one host node for storing a hard disk as a plurality of host nodes needing to establish shared storage. Specifically, the network configuration includes network cards and switches of different communication magnitudes, and in order to ensure data interaction speed, in the embodiment of the present application, a host node that is equipped with a gigabit network card and is connected to a gigabit switch is selected. In addition, each host node has different hard disk configurations, and in the embodiment of the present application, in order to ensure information security and convenience of information mounting, at least one storage hard disk, that is, a storage hard disk distinguishable from a system hard disk, needs to be included.
Further, the system sends a shared storage contract to a plurality of host nodes needing to build shared storage, receives feedback results of the host nodes on the shared storage contract, and determines the host nodes to build the shared storage according to the feedback results.
S102: and receiving authorization instructions of a plurality of host nodes, and indicating the plurality of host nodes to install the NFS network file system according to the authorization instructions.
It should be noted that NFS (Network File System) can allow computers in a Network to share resources through a TCP or IP protocol Network, and can allow different host systems to share files or directories through a Network, such as a local area Network.
The working principle of the NFS network file system is shown in fig. 2, each user needs to install a client or a server corresponding to the NFS network file system, when the user accesses a local disk in a local file access manner, the user can access the local disk through the NFS network file system, when other users need to access the local disk of the user, RPC service can be called, data communication can be achieved through a TCP or IP protocol line, and the local disk of the user can be directly accessed to achieve data sharing.
Specifically, the system sends an authorization request to the plurality of host nodes, receives authorization instructions of the plurality of host nodes, and instructs the plurality of host nodes to mount the NFS network file system according to the authorization instructions.
The indication mode can include: and sending the installation package to a plurality of host nodes, controlling the plurality of host nodes to directly install the installation package to a specified position, or specifying the plurality of host nodes to access a website of a certain address, and directly downloading the installation package to the specified position in a query mode.
S103: determining that any one of the host nodes installed with the NFS network file system is a master node, and sending a service start instruction to the master node, where the service start instruction is used to enable the master node to start the NFS network file system service.
Specifically, the system determines that any one of a plurality of host nodes having an NFS network file system installed therein is a master node. It should be noted that, a plurality of host nodes have installed the NFS network file system, and the system includes two types of services, which are respectively: and the nfs-kernel-server and the nfs-common can establish sharing through the nfs-kernel-server and access the host nodes with the established sharing through the nfs-common. Therefore, the host nodes can be designated as master nodes, and the number of the master nodes is not limited in the present application.
Further, the system sends a service start instruction to the master node, where the service start instruction is used to enable the master node to start the NFS network file system service. Specifically, the master node starts the nfs-kernel-server.
In addition, before the service start instruction is sent to the master node, each of the plurality of host nodes may be designated as the master node, so that the system may send a hard disk designation request to each of the plurality of host nodes to determine shared file hard disks of the plurality of host nodes, respectively, where the shared file hard disks are selected from the storage hard disks by the plurality of host nodes according to the hard disk designation requests.
It should be noted that, since the plurality of host nodes all include storage hard disks, and shared contents are files or data in the storage hard disks, one or only one storage hard disk needs to be designated as a shared file hard disk, and in a subsequent sharing process, other hosts can access the shared file hard disk.
Meanwhile, the system can respectively establish shared folders in a plurality of host nodes, and respectively mount the hard disks of the shared files into the corresponding shared folders in the plurality of host nodes. Specifically, the suffix or file format of the shared folder is/mnt or/data.
In addition, after the system sends the service start instruction to the master node, in order to ensure that the data sharing can be adapted, the configuration file of the NFS network file system may be modified in the master node to determine that the master node starts the sharing function of the NFS network file system, specifically, the modifying of the content of the configuration file is as follows: and/mnt/data (rw, sync, no _ root _ square, no _ subtree _ check). Namely, the above-mentioned shared folder is selected as the sharing target.
Further, the system may send a restart instruction to the master node to cause the master node to restart the NFS network file system, where the restart instruction includes: d/nfet-kernel-server restart.
S104: and establishing a shared storage menu in the cloud platform, and linking the IP address corresponding to the main node to the shared storage menu, wherein the shared storage menu is used for recording the address and the position of shared data.
Specifically, the master node determines to start a sharing service of the NFS network file system, and in order to meet the requirement that other master nodes which mount the NFS network file system access, the system needs to share a storage menu in the cloud platform, where the shared storage menu may include a data directory or a data storage address. The shared storage menu is used for recording the address and the position of the shared data.
Further, the system links the IP address corresponding to the main node to a shared storage menu, the shared storage menu is bound with the main node at the moment, and other host nodes provided with the NFS network file system can directly enter a shared folder of the main node by accessing the shared storage menu in the cloud platform so as to read data or files in the shared folder.
In one embodiment, after the system establishes the shared storage menu in the cloud platform and links the IP address corresponding to the master node to the shared storage menu, a corresponding test is required to be performed to determine that the shared channel can be used normally.
Specifically, the system sends a test file to the master node, where the content of the test file is not fixed, and the size of the test file is not fixed, and only the test file needs to be distinguishable from files contained in the shared folder of the master node.
Further, the test file is stored to a designated position of the host node, where the designated position is a certain position in the hard disk of the shared file of the host node.
Further, the system calls a shared storage menu in the cloud platform, queries a test file in the shared storage menu, completes the test if the query shared storage menu contains the test file, fails the test if the query shared storage menu does not contain the test file, and sends a restart instruction to the host node to retest.
And determining whether the sharing service initiated by the main node can be normally used or not according to the test result.
In one embodiment, the system establishes a shared storage menu in the cloud platform, and can start normal shared service after linking the IP address corresponding to the main node to the shared storage menu.
The system can obtain the call requests of other host nodes, and determine that the NFS network file system is installed on the other host nodes according to the call requests, wherein the other host nodes are non-main nodes. Since the sharing service in the present application needs to be completed based on the NFS network file system, before the invocation, it needs to determine whether the NFS network file system is installed in another host node. It should be noted that other host nodes herein may belong to the multiple host nodes, or may not belong to the multiple host nodes, and when the host node is a host node that is newly added to the cloud platform or is not selected as multiple host nodes, the host node may implement obtaining the shared data by installing an NFS network file system.
And further, the system calls the shared storage menu according to the call request, inquires call data corresponding to the call request and further sends the call data to other host nodes.
It should be further noted that the calling process here is a process controlled by the system, and if other host nodes have certain authority or obtain corresponding authority, the calling data can be directly obtained in a manner of directly accessing the shared storage menu, without through system control.
In addition, in order to ensure data security, before the system calls the shared menu according to the call request and queries the call data corresponding to the call request, it is further required to determine whether other host nodes belong to the plurality of host nodes, and if so, it indicates that the security of the other host nodes has been guaranteed, and the corresponding actions described above can be directly performed. When the system determines that the other host node does not belong to the plurality of host nodes, it is required to acquire authentication characteristics of the other host node, where the authentication characteristics include one or more of: department, common service, and authorization certificate.
According to the verification characteristics, the other host nodes are subjected to security verification so as to analyze and determine whether the data required to be called by the other host nodes and the department or common service to which the other host nodes belong, and meanwhile, whether the corresponding authorization certificates exist or not needs to be verified so as to determine whether the data are qualified to be called or not, and a verification result is obtained.
And the system determines whether other host nodes can acquire the calling data according to the verification result, if so, executes corresponding actions in the embodiment, and if not, stops calling.
In one embodiment, after the system establishes the shared storage menu in the cloud platform and links the IP address corresponding to the master node to the shared storage menu, the virtual machine created by the master node may also be determined.
Due to the relevant characteristics of the virtual machine thermal migration, the running process of the virtual machine needs the support of corresponding resources and files, and based on the sharing channel established in the application, the virtual machine can directly run on other host nodes or cloud platforms by accessing the shared data without uploading the data required by the virtual machine by a main node.
Further, the system loads the virtual machine to the cloud platform, and binds the calling resource channel of the virtual machine to the shared storage menu. Further, since the number of the master nodes is not necessarily one, the system needs to mask other IP addresses in the shared storage menu, where the other IP addresses are IP addresses corresponding to nodes other than the master node.
In one embodiment, as shown in fig. 3, the present application further provides a shared storage building device based on a cloud platform, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to cause the at least one processor to perform instructions for:
determining a plurality of host nodes needing to build shared storage in a cloud platform;
receiving authorization instructions of the plurality of host nodes, and indicating the plurality of host nodes to install the NFS network file system according to the authorization instructions;
determining any one of the host nodes provided with the NFS network file system as a master node, and sending a service start instruction to the master node, where the service start instruction is used for enabling the master node to start the NFS network file system service;
and establishing a shared storage menu in the cloud platform, and linking the IP address corresponding to the main node to the shared storage menu, wherein the shared storage menu is used for recording the address and the position of shared data.
In one embodiment, the present application further provides a non-transitory computer storage medium storing computer-executable instructions configured to:
determining a plurality of host nodes needing to build shared storage in a cloud platform;
receiving authorization instructions of the plurality of host nodes, and indicating the plurality of host nodes to install the NFS network file system according to the authorization instructions;
determining any one of the host nodes provided with the NFS network file system as a master node, and sending a service start instruction to the master node, where the service start instruction is used for enabling the master node to start the NFS network file system service;
and establishing a shared storage menu in the cloud platform, and linking the IP address corresponding to the main node to the shared storage menu, wherein the shared storage menu is used for recording the address and the position of shared data.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the device and media embodiments, the description is relatively simple as it is substantially similar to the method embodiments, and reference may be made to some descriptions of the method embodiments for relevant points.
The device and the medium provided by the embodiment of the application correspond to the method one to one, so the device and the medium also have the similar beneficial technical effects as the corresponding method, and the beneficial technical effects of the method are explained in detail above, so the beneficial technical effects of the device and the medium are not repeated herein.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A shared storage building method based on a cloud platform is characterized by comprising the following steps:
determining a plurality of host nodes needing to build shared storage in a cloud platform;
receiving authorization instructions of the plurality of host nodes, and indicating the plurality of host nodes to install the NFS network file system according to the authorization instructions;
determining any one of the host nodes provided with the NFS network file system as a master node, and sending a service start instruction to the master node, where the service start instruction is used for enabling the master node to start the NFS network file system service;
and establishing a shared storage menu in the cloud platform, and linking the IP address corresponding to the main node to the shared storage menu, wherein the shared storage menu is used for recording the address and the position of shared data.
2. The method for building the shared storage based on the cloud platform according to claim 1, wherein the step of determining the plurality of host nodes for building the shared storage in the cloud platform specifically comprises the steps of:
acquiring network configuration and hard disk information of all host nodes, wherein all the host nodes are all host nodes added into a cloud platform;
in all the host nodes, the communication volume in the network configuration meets a preset threshold value, and the hard disk information comprises at least one host node for storing a hard disk, and the host nodes are used as a plurality of host nodes needing to establish shared storage;
sending a shared storage contract to a plurality of host nodes needing to build shared storage, and receiving feedback results of the host nodes on the shared storage contract;
and determining that the plurality of host nodes build the shared storage according to the feedback result.
3. The building method of the shared storage based on the cloud platform according to claim 2, wherein before determining that any one of the plurality of host nodes to which the NFS network file system has been installed is a master node and sending a service start instruction to the master node, the method further includes:
respectively sending hard disk designation requests to the host nodes to respectively determine shared file hard disks of the host nodes, wherein the shared file hard disks are selected from storage hard disks by the host nodes according to the hard disk designation requests;
and respectively establishing shared folders in the host nodes, and respectively mounting each shared file hard disk into the corresponding shared folder in the host nodes.
4. The building method of the shared storage based on the cloud platform according to claim 1, wherein after determining that any one of the plurality of host nodes to which the NFS network file system has been installed is a master node and sending a service start instruction to the master node, the method further includes:
in the master node, modifying a configuration file of the NFS network file system to determine that the master node starts a sharing function of the NFS network file system;
and sending a restart instruction to the master node so that the master node restarts the NFS network file system.
5. The method for building the shared storage based on the cloud platform according to claim 1, wherein after a shared storage menu is built in the cloud platform and an IP address corresponding to the main node is linked to the shared storage menu, the method further comprises:
sending a test file to the main node, and storing the test file to a specified position of the main node;
calling the shared storage menu, and inquiring the test file in the shared storage menu;
if the shared storage menu is inquired to contain the test file, the test is finished;
and if the test file is not contained in the inquiry shared storage menu, the test fails, and a restart instruction is sent to the main node for retesting.
6. The method for building the shared storage based on the cloud platform according to claim 1, wherein after a shared storage menu is built in the cloud platform and an IP address corresponding to the main node is linked to the shared storage menu, the method further comprises:
acquiring call requests of other host nodes, and determining that the NFS network file system is installed in the other host nodes according to the call requests, wherein the other host nodes are non-host nodes;
calling the shared storage menu according to the calling request, and inquiring calling data corresponding to the calling request;
and sending the calling data to the other host nodes.
7. The cloud platform-based shared storage building method according to claim 6, wherein before calling the shared menu according to the call request and querying call data corresponding to the call request, the method further comprises:
determining that the other host nodes do not belong to the plurality of host nodes;
obtaining authentication characteristics of the other host nodes, the authentication characteristics including at least any one or more of: department, common service, and authorization certificate;
according to the verification characteristics, performing security verification on the other host nodes to obtain verification results;
and determining whether the other host nodes can acquire the calling data or not according to the verification result.
8. The method for building the shared storage based on the cloud platform according to claim 1, wherein after a shared storage menu is built in the cloud platform and an IP address corresponding to the main node is linked to the shared storage menu, the method further comprises:
determining a virtual machine created by the master node;
loading the virtual machine to the cloud platform, and binding an invoking resource channel of the virtual machine to the shared storage menu;
and shielding other IP addresses in the shared storage menu, wherein the other IP addresses are IP addresses corresponding to nodes except the main node.
9. The utility model provides a shared storage's equipment of setting up based on cloud platform which characterized in that includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to cause the at least one processor to perform instructions for:
determining a plurality of host nodes needing to build shared storage in a cloud platform;
receiving authorization instructions of the plurality of host nodes, and indicating the plurality of host nodes to install the NFS network file system according to the authorization instructions;
determining any one of the host nodes provided with the NFS network file system as a master node, and sending a service start instruction to the master node, where the service start instruction is used for enabling the master node to start the NFS network file system service;
and establishing a shared storage menu in the cloud platform, and linking the IP address corresponding to the main node to the shared storage menu, wherein the shared storage menu is used for recording the address and the position of shared data.
10. A non-transitory computer storage medium storing computer-executable instructions, the computer-executable instructions configured to:
determining a plurality of host nodes needing to build shared storage in a cloud platform;
receiving authorization instructions of the plurality of host nodes, and indicating the plurality of host nodes to install the NFS network file system according to the authorization instructions;
determining any one of the host nodes provided with the NFS network file system as a master node, and sending a service start instruction to the master node, where the service start instruction is used for enabling the master node to start the NFS network file system service;
and establishing a shared storage menu in the cloud platform, and linking the IP address corresponding to the main node to the shared storage menu, wherein the shared storage menu is used for recording the address and the position of shared data.
CN202111250266.8A 2021-10-26 2021-10-26 Cloud platform-based shared storage construction method, equipment and medium Active CN113992657B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111250266.8A CN113992657B (en) 2021-10-26 2021-10-26 Cloud platform-based shared storage construction method, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111250266.8A CN113992657B (en) 2021-10-26 2021-10-26 Cloud platform-based shared storage construction method, equipment and medium

Publications (2)

Publication Number Publication Date
CN113992657A true CN113992657A (en) 2022-01-28
CN113992657B CN113992657B (en) 2024-04-12

Family

ID=79741859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111250266.8A Active CN113992657B (en) 2021-10-26 2021-10-26 Cloud platform-based shared storage construction method, equipment and medium

Country Status (1)

Country Link
CN (1) CN113992657B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114924846A (en) * 2022-07-22 2022-08-19 浙江云针信息科技有限公司 Virtual machine migration method based on cloud operating system
CN115102972A (en) * 2022-07-15 2022-09-23 济南浪潮数据技术有限公司 Method, device, equipment and medium for storing NFS (network file system) file

Citations (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096678A (en) * 2009-12-09 2011-06-15 中国工商银行股份有限公司 Method for establishing large-capacity network file system memory
CN102223409A (en) * 2011-06-13 2011-10-19 浪潮(北京)电子信息产业有限公司 Network storage resource application system and method
CN102591679A (en) * 2011-11-30 2012-07-18 中国科学院计算机网络信息中心 Quick application software arrangement method for cluster system
CN102685245A (en) * 2012-05-29 2012-09-19 北京麦谱影随科技有限公司 Method and system for data social contact storage based on internet
CN103118101A (en) * 2013-01-25 2013-05-22 深圳清华大学研究院 Information sharing method used for mobile terminals
CN103281374A (en) * 2013-05-30 2013-09-04 成都信息工程学院 Method for rapid data scheduling in cloud storage
CN103475716A (en) * 2013-09-11 2013-12-25 北京京东尚科信息技术有限公司 Method and system for achieving data sharing through shared storage
CN104270409A (en) * 2014-09-04 2015-01-07 国云科技股份有限公司 Method for efficiently utilizing centralized storage in cloud platform
CN104410615A (en) * 2014-11-20 2015-03-11 北京奇虎科技有限公司 Method, client terminal, server and system for accessing shared data
CN105450754A (en) * 2015-11-30 2016-03-30 国云科技股份有限公司 Method of physical machine and virtual machine for mutually sharing cloud disk
US20160132247A1 (en) * 2014-11-12 2016-05-12 Fu Tai Hua Industry (Shenzhen) Co., Ltd. Storage management system, management device and method therefor
CN106550037A (en) * 2016-11-07 2017-03-29 天脉聚源(北京)传媒科技有限公司 A kind of method and device of server data sharing
CN107241360A (en) * 2017-08-04 2017-10-10 北京明朝万达科技股份有限公司 A kind of data safety shares exchange method and data safety shares switching plane system
CN108920381A (en) * 2018-07-27 2018-11-30 广东浪潮大数据研究有限公司 A kind of method, system and the equipment of the performance test of NFS operation word
CN109361733A (en) * 2018-09-14 2019-02-19 新华三技术有限公司成都分公司 Method for controlling quality of service and device
CN109471784A (en) * 2018-11-07 2019-03-15 郑州云海信息技术有限公司 A kind of NAS test macro, method and computer readable storage medium
CN109547537A (en) * 2018-11-05 2019-03-29 中国电子科技集团公司第二十八研究所 The method for realizing openstack High Availabitity based on SAN storage shared volume
CN110868424A (en) * 2019-11-26 2020-03-06 深圳市信联征信有限公司 Data sharing method and device based on block chain, computer equipment and storage medium
CN111338881A (en) * 2020-02-29 2020-06-26 苏州浪潮智能科技有限公司 Automatic testing method and device for parallel reading and writing of NAS file system
CN111459897A (en) * 2020-03-13 2020-07-28 苏州浪潮智能科技有限公司 Method and device for controlling write-in of shared directory by using quota of distributed file storage directory
CN111767530A (en) * 2020-05-21 2020-10-13 西安电子科技大学 Cross-domain data sharing auditing and tracing system, method, storage medium and program
CN111813346A (en) * 2020-07-23 2020-10-23 山东超越数控电子股份有限公司 Method, system, device and medium for establishing Ceph distributed storage based on cloud platform
CN111939562A (en) * 2020-07-15 2020-11-17 着迷科技(深圳)有限公司 Shared storage method, electronic device and computer readable storage medium
CN112162958A (en) * 2020-09-11 2021-01-01 北京浪潮数据技术有限公司 Network file system mounting method and device, electronic equipment and storage medium
CN112783444A (en) * 2021-01-18 2021-05-11 深圳市科思科技股份有限公司 Cluster disk sharing method, system and storage medium
CN112866386A (en) * 2021-01-19 2021-05-28 青岛越超传媒有限公司 Data storage data construction method based on cloud computing

Patent Citations (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096678A (en) * 2009-12-09 2011-06-15 中国工商银行股份有限公司 Method for establishing large-capacity network file system memory
CN102223409A (en) * 2011-06-13 2011-10-19 浪潮(北京)电子信息产业有限公司 Network storage resource application system and method
CN102591679A (en) * 2011-11-30 2012-07-18 中国科学院计算机网络信息中心 Quick application software arrangement method for cluster system
CN102685245A (en) * 2012-05-29 2012-09-19 北京麦谱影随科技有限公司 Method and system for data social contact storage based on internet
CN103118101A (en) * 2013-01-25 2013-05-22 深圳清华大学研究院 Information sharing method used for mobile terminals
CN103281374A (en) * 2013-05-30 2013-09-04 成都信息工程学院 Method for rapid data scheduling in cloud storage
CN103475716A (en) * 2013-09-11 2013-12-25 北京京东尚科信息技术有限公司 Method and system for achieving data sharing through shared storage
CN104270409A (en) * 2014-09-04 2015-01-07 国云科技股份有限公司 Method for efficiently utilizing centralized storage in cloud platform
US20160132247A1 (en) * 2014-11-12 2016-05-12 Fu Tai Hua Industry (Shenzhen) Co., Ltd. Storage management system, management device and method therefor
CN104410615A (en) * 2014-11-20 2015-03-11 北京奇虎科技有限公司 Method, client terminal, server and system for accessing shared data
CN105450754A (en) * 2015-11-30 2016-03-30 国云科技股份有限公司 Method of physical machine and virtual machine for mutually sharing cloud disk
CN106550037A (en) * 2016-11-07 2017-03-29 天脉聚源(北京)传媒科技有限公司 A kind of method and device of server data sharing
CN107241360A (en) * 2017-08-04 2017-10-10 北京明朝万达科技股份有限公司 A kind of data safety shares exchange method and data safety shares switching plane system
CN108920381A (en) * 2018-07-27 2018-11-30 广东浪潮大数据研究有限公司 A kind of method, system and the equipment of the performance test of NFS operation word
CN109361733A (en) * 2018-09-14 2019-02-19 新华三技术有限公司成都分公司 Method for controlling quality of service and device
CN109547537A (en) * 2018-11-05 2019-03-29 中国电子科技集团公司第二十八研究所 The method for realizing openstack High Availabitity based on SAN storage shared volume
CN109471784A (en) * 2018-11-07 2019-03-15 郑州云海信息技术有限公司 A kind of NAS test macro, method and computer readable storage medium
CN110868424A (en) * 2019-11-26 2020-03-06 深圳市信联征信有限公司 Data sharing method and device based on block chain, computer equipment and storage medium
CN111338881A (en) * 2020-02-29 2020-06-26 苏州浪潮智能科技有限公司 Automatic testing method and device for parallel reading and writing of NAS file system
CN111459897A (en) * 2020-03-13 2020-07-28 苏州浪潮智能科技有限公司 Method and device for controlling write-in of shared directory by using quota of distributed file storage directory
CN111767530A (en) * 2020-05-21 2020-10-13 西安电子科技大学 Cross-domain data sharing auditing and tracing system, method, storage medium and program
CN111939562A (en) * 2020-07-15 2020-11-17 着迷科技(深圳)有限公司 Shared storage method, electronic device and computer readable storage medium
CN111813346A (en) * 2020-07-23 2020-10-23 山东超越数控电子股份有限公司 Method, system, device and medium for establishing Ceph distributed storage based on cloud platform
CN112162958A (en) * 2020-09-11 2021-01-01 北京浪潮数据技术有限公司 Network file system mounting method and device, electronic equipment and storage medium
CN112783444A (en) * 2021-01-18 2021-05-11 深圳市科思科技股份有限公司 Cluster disk sharing method, system and storage medium
CN112866386A (en) * 2021-01-19 2021-05-28 青岛越超传媒有限公司 Data storage data construction method based on cloud computing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115102972A (en) * 2022-07-15 2022-09-23 济南浪潮数据技术有限公司 Method, device, equipment and medium for storing NFS (network file system) file
CN114924846A (en) * 2022-07-22 2022-08-19 浙江云针信息科技有限公司 Virtual machine migration method based on cloud operating system

Also Published As

Publication number Publication date
CN113992657B (en) 2024-04-12

Similar Documents

Publication Publication Date Title
US20180203719A1 (en) Image file conversion method and apparatus
US10754741B1 (en) Event-driven replication for migrating computing resources
CN113992657B (en) Cloud platform-based shared storage construction method, equipment and medium
CN109417492B (en) Network function NF management method and NF management equipment
CN112256399B (en) Docker-based Jupitter Lab multi-user remote development method and system
CN108268609B (en) File path establishing and accessing method and device
US11036535B2 (en) Data storage method and apparatus
CN108427677B (en) Object access method and device and electronic equipment
CN107135242B (en) Mongodb cluster access method, device and system
CN115576654B (en) Request processing method, device, equipment and storage medium
CN113572862A (en) Cluster deployment method and device, electronic equipment and storage medium
CN115086166B (en) Computing system, container network configuration method, and storage medium
WO2021254214A1 (en) Migration method and apparatus for android application program
CN108541000B (en) Method, medium and device for detecting network connection
CN114553971A (en) Application framework design method, system, device and medium
CN111600755B (en) Internet access behavior management system and method
CN117951101A (en) File access method and device, electronic equipment and computer readable storage medium
CN117255018A (en) Network configuration method and device for bare metal instance and computer equipment
CN112532666A (en) Reverse proxy method, apparatus, storage medium, and device
CN111262904A (en) Service agent system and method
CN114885024B (en) Routing method, device, equipment and medium of application instance
CN115987974A (en) Lightweight FTP service method and system
CN113691575B (en) Communication method, device and system
CN115525618A (en) Storage cluster, data storage method, system and storage medium
CN113835632A (en) Method, system, equipment and storage medium for setting read-write bandwidth in batches

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