CN113992657B - Cloud platform-based shared storage construction method, equipment and medium - Google Patents

Cloud platform-based shared storage construction method, equipment and medium Download PDF

Info

Publication number
CN113992657B
CN113992657B CN202111250266.8A CN202111250266A CN113992657B CN 113992657 B CN113992657 B CN 113992657B CN 202111250266 A CN202111250266 A CN 202111250266A CN 113992657 B CN113992657 B CN 113992657B
Authority
CN
China
Prior art keywords
host nodes
shared storage
host
nodes
cloud platform
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
CN202111250266.8A
Other languages
Chinese (zh)
Other versions
CN113992657A (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

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 cloud platform-based shared storage construction method, equipment and medium, wherein the method comprises the following steps: determining a plurality of host nodes to be built for sharing storage in a cloud platform; receiving authorization instructions of a plurality of host nodes and indicating the plurality of host nodes to install the NFS network file system; for any one of a plurality of host nodes on which the NFS network file system is installed, determining the host node as a master node, and sending a service opening instruction to the master 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 setting up 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 ensured, and the convenience for acquiring the data is improved.

Description

Cloud platform-based shared storage construction method, equipment and medium
Technical Field
The application relates to the technical field of virtualized storage, in particular to a cloud platform-based shared storage construction method, equipment and medium.
Background
The cloud platform is cloud service based on hardware resources and software resources and has the capability of providing computing, networking and storage. Along with the coming of big data and sharing age, more and more terminal devices share computing power and 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 other devices in the cloud platform to the virtual machine, the terminal device needs to upload an image file used by the virtual machine to the cloud platform. However, the hot migration of the virtual machine data has a certain limitation, and the process of uploading the data needs to consume a large amount of cloud platform resources. Therefore, a method for constructing shared storage based on a cloud platform is needed to be designed, and a user of the cloud platform can still access or use the virtual machine on the premise that an image file is not required to be uploaded.
Disclosure of Invention
In order to solve the above problems, that is, to solve the problem that the hot migration of virtual machine data in a cloud platform has a certain limitation, and the process of uploading data needs to consume a large amount of cloud platform resources, the application provides a method, equipment and medium for constructing shared storage based on a cloud platform, which comprises the following steps:
on one hand, the application provides a method for constructing shared storage based on a cloud platform, which comprises the following steps: determining a plurality of host nodes to be built for sharing storage in a cloud platform; receiving authorization instructions of the plurality of host nodes, and indicating the plurality of host nodes to install an NFS network file system according to the authorization instructions; determining that any one of the plurality of host nodes on which the NFS network file system has been installed is a host node, and sending a service opening instruction to the host node, where the service opening instruction is used to enable the host 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 the 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 host nodes are all host nodes added into a cloud platform; among all the host nodes, the communication quantity in the network configuration accords with a preset threshold value, and the hard disk information comprises at least one host node storing hard disks as a plurality of host nodes needing to build shared storage; sending a shared storage contract to a plurality of host nodes needing to build shared storage, and receiving feedback results of the plurality of host nodes on the shared storage contract; determining that the plurality of host nodes build the shared storage according to the feedback result
In one example, for any one of the plurality of host nodes that have installed the NFS network file system, before determining that host node is a master node and sending a service open instruction to the master node, the method further comprises: respectively sending hard disk designating requests to the plurality of host nodes to respectively determine shared file hard disks of the plurality of host nodes, wherein the shared file hard disks are selected from storage hard disks by the plurality of host nodes according to the hard disk designating requests; and respectively establishing a shared folder in the plurality of host nodes, and respectively mounting each shared file hard disk into the corresponding shared folder in the plurality of host nodes.
In one example, after determining, for any one of the plurality of host nodes that have installed the NFS network file system, that host node is a master node and sending a service open instruction to the master node, the method further comprises: modifying, in the master node, a configuration file of the NFS network file system to determine that the master node opens a sharing function of the NFS network file system; and sending a restarting 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 the IP address corresponding to the host node to the shared storage menu, the method further includes: sending a test file to the master node, and storing the test file to a designated position of the master node; invoking the shared storage menu and inquiring the test file in the shared storage menu; if the shared storage menu is queried to contain the test file, completing the test; if the shared storage menu is inquired not to contain the test file, the test fails, and a restarting instruction is sent to the main node to retest.
In one example, after establishing a shared storage menu in the cloud platform and linking the IP address corresponding to the host 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 by the other host nodes according to the call requests; the other host nodes are non-host nodes; according to the call request, the shared storage menu is called, and call data corresponding to the call request is queried; and sending the call 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 node does not belong to the plurality of host nodes; obtaining verification features of the other host nodes, wherein the verification features at least comprise any one or more of the following: the department, the common business and the authorization certificate; according to the verification characteristics, carrying out security verification on the other host nodes to obtain verification results; and determining whether the other host nodes can acquire call data according to the verification result.
In one example, after establishing a shared storage menu in the cloud platform and linking the IP address corresponding to the host 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 a calling 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 cloud platform-based shared storage building device, 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 perform the following instructions: determining a plurality of host nodes to be built for sharing storage in a cloud platform; receiving authorization instructions of the plurality of host nodes, and indicating the plurality of host nodes to install an NFS network file system according to the authorization instructions; determining that any one of the plurality of host nodes on which the NFS network file system has been installed is a host node, and sending a service opening instruction to the host node, where the service opening instruction is used to enable the host 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.
On the other hand, there is proposed a nonvolatile computer storage medium storing computer-executable instructions configured to: determining a plurality of host nodes to be built for sharing storage in a cloud platform; receiving authorization instructions of the plurality of host nodes, and indicating the plurality of host nodes to install an NFS network file system according to the authorization instructions; determining that any one of the plurality of host nodes on which the NFS network file system has been installed is a host node, and sending a service opening instruction to the host node, where the service opening instruction is used to enable the host 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 cloud platform-based shared storage building method, equipment and medium can bring the following beneficial effects: by setting up 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 ensured, and the convenience for acquiring the data 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 embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
fig. 1 is a schematic flow chart of a method for constructing a shared storage based on a cloud platform in an embodiment of the present application;
fig. 2 is a schematic diagram of an operating principle of an NFS network file system in an embodiment of the present application;
fig. 3 is a schematic diagram of a cloud platform-based shared storage building device in an embodiment of the present application.
Detailed Description
For the purposes, technical solutions and advantages of the present application, the technical solutions of the present application will be clearly and completely described below with reference to specific embodiments of the present application and corresponding drawings. 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 without undue burden from the present disclosure, are within the scope of the present disclosure.
Firstly, it should be noted that, in the present application, the method for constructing a shared storage based on a cloud platform may be stored in a corresponding system or server, where the system or server determines, by communicating with the cloud platform and a host node added to the cloud platform, to receive information or send an instruction. In addition, the terminal or server where the system is located should have a corresponding hardware device built in, including but not limited to: processor, memory, communication module, etc. to realize each technical scheme in this application. In the embodiments of the present application, a system is illustrated as an example, and the system may be disposed in a corresponding terminal, where the terminal includes, but is not limited to: a mobile phone, a tablet computer, a computer or other terminal equipment with corresponding computing power and functions. The system can determine the interaction relation between the system and the hardware equipment in the terminal through corresponding program setting, and can determine the opening mode of the program through corresponding software setting modes, including but not limited to direct opening, opening through APP, WEB webpage login and the like, so as to meet the operation use, monitoring or debugging of the system by a user, and further realize the establishment of shared storage.
The following describes in detail the technical solutions provided by the embodiments of the present application with reference to the accompanying drawings.
As shown in fig. 1, a method for building a shared storage based on a cloud platform according to an embodiment of the present application includes:
s101: in the determining cloud platform, a plurality of host nodes to be built for sharing storage are determined.
First, it should be noted that, the cloud platform described in the present application may also be referred to as a cloud computing platform, which refers to a service based on hardware resources and software resources, and provides computing, networking, and storage capabilities. Cloud computing platforms can be divided into several categories including, but not limited to: the system comprises a storage type cloud platform mainly used for data storage, a calculation type cloud platform mainly used for data processing and a comprehensive cloud computing platform taking both calculation and data processing into consideration.
In the embodiment of the application, the cloud platform is used 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 corresponding to a host device.
Specifically, the system determines all host nodes that have joined the cloud platform, and obtains network configuration and hard disk information of all host nodes, where all host nodes are all host nodes that have joined the cloud platform.
And the system uses the host nodes of which the communication quantity in the network configuration meets a preset threshold value and the hard disk information comprises at least one storage hard disk as a plurality of host nodes needing to be built for sharing storage. Specifically, the network configuration includes network cards and switches with different communication magnitudes, and in order to ensure the data interaction speed, in the embodiment of the application, a host node equipped with a tera-network card and connected with the gigabit switch is selected. In addition, each host node has a different hard disk configuration, and in this embodiment of the present application, to ensure information security and convenience in information mounting, at least one storage hard disk needs to be included, that is, a storage hard disk that can be distinguished from a system hard disk.
Further, the system sends the shared storage contract to a plurality of host nodes needing to build the shared storage, and receives feedback results of the shared storage contracts from the plurality of host nodes, so as to determine that the plurality of host nodes 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 enable 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 mode, the user can access the local disk through the NFS network file system, and when other users need to access the local disk of the user, the RPC service can be called, and data communication can be realized through a TCP or IP protocol line mode, so that the local disk of the user can be directly accessed, and data sharing can be realized.
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 install the NFS network file system according to the authorization instructions.
The indication means may 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 the designated position, or designating the plurality of host nodes to visit a website with a certain address, and directly downloading the installation package to the designated position in a query mode.
S103: for any one of the plurality of host nodes on which the NFS network file system has been installed, determining that the host node is a master node, and sending a service opening instruction to the master node, where the service opening instruction is used to enable the master node to start the NFS network file system service.
Specifically, the system determines, for any one of a plurality of host nodes that have installed the NFS network file system, that host node as a master node. It should be noted that, the NFS network file system is installed on each of the plurality of host nodes, and the system includes two types of services, which are respectively: nfs-kernel-server and nfs-common, through which sharing can be established, and through which the host nodes for which sharing has been established can be accessed. Therefore, each of the plurality of host nodes may be designated as a master node, and the number of master nodes is not limited in the present application.
Further, the system sends a service initiation instruction to the master node, the service initiation instruction being for causing the master node to initiate NFS network file system services. Specifically, the master node starts nfs-kernel-server.
In addition, before sending the service start instruction to the master node, since each of the plurality of host nodes may be designated as the master node, the system may send hard disk designation requests to the plurality of host nodes, respectively, to determine shared file hard disks of the plurality of host nodes, 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, respectively.
It should be noted that, since the plurality of host nodes all include the storage hard disk, and the shared content is also a file or data in the storage hard disk, one or only one storage hard disk needs to be designated as a shared file hard disk, and the shared file hard disk can be accessed by other hosts in the subsequent sharing process.
Meanwhile, the system can respectively establish the shared folders in a plurality of host nodes and respectively mount each shared file hard disk in the corresponding shared folder in the plurality of host nodes. Specifically, the suffix or file format of the shared folder is taken as/mnt or/data.
In addition, after the system sends the service opening instruction to the master node, to ensure that data sharing can be adapted, in the master node, a configuration file of the NFS network file system may be modified to determine that the master node opens a sharing function of the NFS network file system, and specifically, the content of the configuration file is modified as follows: nt/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, the restart instruction including: etc/init.d/nfs-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 the sharing service of the NFS network file system, so that in order to meet the requirement that other master nodes installing 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 memory menu is used for recording the address and the position of the shared data.
Further, the system links the IP address corresponding to the host node to the shared storage menu, and at this time, the shared storage menu is bound with the host node, so that other host nodes for installing the NFS network file system can access the shared storage menu in the cloud platform, and then directly enter the shared folder of the host node, so as to read the data or the file in the shared folder.
In one embodiment, after the system establishes a shared storage menu in the cloud platform and links the IP address corresponding to the host node to the shared storage menu, a corresponding test is also required to be performed in order 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 file size is not fixed, and only the test file is required to be distinguishable from the files contained in the shared folder of the master node.
Further, the test file is stored in a designated position of the master node, where the designated position is a certain position in the shared file hard disk of the master node.
Further, the system invokes a shared storage menu in the cloud platform, queries test files in the shared storage menu, completes the test if the test files are contained in the queried shared storage menu, fails the test if the test files are not contained in the queried shared storage menu, and sends a restarting instruction to the main node to retest.
And according to the test result, determining whether the sharing service initiated by the master node can be normally used.
In one embodiment, the system establishes a shared storage menu in the cloud platform, and links the IP address corresponding to the host node to the shared storage menu, so that normal sharing service can be started.
The system may obtain call requests from other host nodes, and determine that the other host nodes have installed the NFS network file system according to the call requests, where the other host nodes are non-host nodes. The sharing service based on the present application needs to be completed based on the NFS network file system, and therefore, before the call, it needs to be determined whether other host nodes have installed the NFS network file system. It should be noted that other host nodes may or may not belong to the plurality of host nodes, and may be configured to obtain shared data by installing an NFS network file system when the host nodes are newly added to the cloud platform or are not selected as the plurality of host nodes.
Further, the system invokes the shared storage menu according to the invocation request, queries the invocation data corresponding to the invocation request, and further sends the invocation data to other host nodes.
It should be further noted that, the calling process herein is a process of system control, and if other host nodes have a certain authority or obtain a corresponding authority, the calling data may be directly obtained by directly accessing the shared storage menu, without the need of system control.
In addition, 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 multiple host nodes, if so, it is indicated that the security of the other host nodes has been ensured, and the corresponding actions described above can be directly executed. When the system determines that the other host node does not belong to the plurality of host nodes, it is necessary to obtain authentication features of the other host nodes, the authentication features including one or more of: belonging to departments, common businesses and authorization certificates.
According to the verification feature, the other host nodes are subjected to security verification to analyze and determine whether the data required to be called by the other host nodes are related to departments or common services, and meanwhile, whether the other host nodes have corresponding authorization certificates is required to be verified to determine whether the other host nodes are qualified to call the data, so that a verification result is obtained.
And the system determines whether other host nodes can acquire the call data according to the verification result, if so, the system executes the corresponding actions in the embodiment, and if not, the system 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 host node to the shared storage menu, the virtual machine created by the host node may also be determined.
Because of the related characteristics of the virtual machine thermal migration, the running process of the virtual machine needs corresponding resources and file support, and based on the shared channel established in the application, the virtual machine can directly run on other host nodes or cloud platforms by accessing shared data without uploading data needed by the virtual machine by a host node.
Further, the system loads the virtual machine to the cloud platform and binds the access 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 cloud platform-based shared storage building device, including:
at least one processor; the method comprises the steps of,
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 perform the following instructions:
determining a plurality of host nodes to be built for sharing storage in a cloud platform;
receiving authorization instructions of the plurality of host nodes, and indicating the plurality of host nodes to install an NFS network file system according to the authorization instructions;
determining that any one of the plurality of host nodes on which the NFS network file system has been installed is a host node, and sending a service opening instruction to the host node, where the service opening instruction is used to enable the host 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 also provides a non-volatile computer storage medium storing computer-executable instructions configured to:
determining a plurality of host nodes to be built for sharing storage in a cloud platform;
receiving authorization instructions of the plurality of host nodes, and indicating the plurality of host nodes to install an NFS network file system according to the authorization instructions;
determining that any one of the plurality of host nodes on which the NFS network file system has been installed is a host node, and sending a service opening instruction to the host node, where the service opening instruction is used to enable the host 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.
All embodiments in the application are described in a progressive manner, and identical and similar parts of all embodiments are mutually referred, so that each embodiment mainly describes differences from other embodiments. In particular, for the apparatus and medium embodiments, the description is relatively simple, as it is substantially similar to the method embodiments, with reference to the section of the method embodiments being relevant.
The devices and media provided in the embodiments of the present application are in one-to-one correspondence with the methods, so that the devices and media also have similar beneficial technical effects as the corresponding methods, and since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media are not described in detail herein.
It will be appreciated by those skilled in the art that 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
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 storage media for a computer 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, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
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 one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (7)

1. The method for constructing the shared storage based on the cloud platform is characterized by comprising the following steps of:
determining a plurality of host nodes to be built for sharing storage in a cloud platform;
receiving authorization instructions of the plurality of host nodes, and indicating the plurality of host nodes to install an NFS network file system according to the authorization instructions;
determining that any one of the plurality of host nodes on which the NFS network file system has been installed is a host node, and sending a service opening instruction to the host node, where the service opening instruction is used to enable the host node to start the NFS network file system service;
establishing a shared storage menu in the cloud platform, and linking an 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;
acquiring network configuration and hard disk information of all host nodes, wherein all host nodes are all host nodes added into a cloud platform;
among all the host nodes, the communication quantity in the network configuration accords with a preset threshold value, and the hard disk information comprises at least one host node storing hard disks as a plurality of host nodes needing to build shared storage;
sending a shared storage contract to a plurality of host nodes needing to build shared storage, and receiving feedback results of the plurality of host nodes on the shared storage contract;
determining that the plurality of host nodes build shared storage according to the feedback result;
determining that other host nodes do not belong to the plurality of host nodes;
obtaining verification features of the other host nodes, wherein the verification features at least comprise any one or more of the following: the department, the common business and the authorization certificate;
according to the verification characteristics, carrying out security verification on the other host nodes to obtain verification results;
determining whether the other host nodes can acquire call data according to the verification result;
acquiring call requests of other host nodes, and determining that the other host nodes are provided with the NFS network file system according to the call requests, wherein the other host nodes are non-master nodes;
according to the call request, the shared storage menu is called, and call data corresponding to the call request is queried;
and sending the call data to the other host nodes.
2. The method for building the shared storage based on the cloud platform according to claim 1, wherein, for any one of the plurality of host nodes on which the NFS network file system has been installed, determining that the host node is a master node, and before sending a service opening instruction to the master node, the method further comprises:
respectively sending hard disk designating requests to the plurality of host nodes to respectively determine shared file hard disks of the plurality of host nodes, wherein the shared file hard disks are selected from storage hard disks by the plurality of host nodes according to the hard disk designating requests;
and respectively establishing a shared folder in the plurality of host nodes, and respectively mounting each shared file hard disk into the corresponding shared folder in the plurality of host nodes.
3. The method for building the shared storage based on the cloud platform according to claim 1, wherein, for any one of the plurality of host nodes on which the NFS network file system has been installed, after determining that the host node is a master node and sending a service opening instruction to the master node, the method further comprises:
modifying, in the master node, a configuration file of the NFS network file system to determine that the master node opens a sharing function of the NFS network file system;
and sending a restarting instruction to the master node so that the master node restarts the NFS network file system.
4. The method for building the shared storage based on the cloud platform according to claim 1, wherein after the shared storage menu is built in the cloud platform and the IP address corresponding to the master node is linked to the shared storage menu, the method further comprises:
sending a test file to the master node, and storing the test file to a designated position of the master node;
invoking the shared storage menu and inquiring the test file in the shared storage menu;
if the shared storage menu is queried to contain the test file, completing the test;
if the shared storage menu is inquired not to contain the test file, the test fails, and a restarting instruction is sent to the main node to retest.
5. The method for building the shared storage based on the cloud platform according to claim 1, wherein after the shared storage menu is built in the cloud platform and the IP address corresponding to the master 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 a calling 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.
6. The utility model provides a build equipment of shared storage based on cloud platform which characterized in that includes:
at least one processor; the method comprises the steps of,
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 perform the following instructions:
determining a plurality of host nodes to be built for sharing storage in a cloud platform;
receiving authorization instructions of the plurality of host nodes, and indicating the plurality of host nodes to install an NFS network file system according to the authorization instructions;
determining that any one of the plurality of host nodes on which the NFS network file system has been installed is a host node, and sending a service opening instruction to the host node, where the service opening instruction is used to enable the host node to start the NFS network file system service;
establishing a shared storage menu in the cloud platform, and linking an 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;
acquiring network configuration and hard disk information of all host nodes, wherein all host nodes are all host nodes added into a cloud platform;
among all the host nodes, the communication quantity in the network configuration accords with a preset threshold value, and the hard disk information comprises at least one host node storing hard disks as a plurality of host nodes needing to build shared storage;
sending a shared storage contract to a plurality of host nodes needing to build shared storage, and receiving feedback results of the plurality of host nodes on the shared storage contract;
determining that the plurality of host nodes build shared storage according to the feedback result;
determining that other host nodes do not belong to the plurality of host nodes;
obtaining verification features of the other host nodes, wherein the verification features at least comprise any one or more of the following: the department, the common business and the authorization certificate;
according to the verification characteristics, carrying out security verification on the other host nodes to obtain verification results;
determining whether the other host nodes can acquire call data according to the verification result;
acquiring call requests of other host nodes, and determining that the other host nodes are provided with the NFS network file system according to the call requests, wherein the other host nodes are non-master nodes;
according to the call request, the shared storage menu is called, and call data corresponding to the call request is queried;
and sending the call data to the other host nodes.
7. A non-transitory computer storage medium storing computer-executable instructions, the computer-executable instructions configured to:
determining a plurality of host nodes to be built for sharing storage in a cloud platform;
receiving authorization instructions of the plurality of host nodes, and indicating the plurality of host nodes to install an NFS network file system according to the authorization instructions;
determining that any one of the plurality of host nodes on which the NFS network file system has been installed is a host node, and sending a service opening instruction to the host node, where the service opening instruction is used to enable the host node to start the NFS network file system service;
establishing a shared storage menu in the cloud platform, and linking an 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;
acquiring network configuration and hard disk information of all host nodes, wherein all host nodes are all host nodes added into a cloud platform;
among all the host nodes, the communication quantity in the network configuration accords with a preset threshold value, and the hard disk information comprises at least one host node storing hard disks as a plurality of host nodes needing to build shared storage;
sending a shared storage contract to a plurality of host nodes needing to build shared storage, and receiving feedback results of the plurality of host nodes on the shared storage contract;
determining that the plurality of host nodes build shared storage according to the feedback result;
determining that other host nodes do not belong to the plurality of host nodes;
obtaining verification features of the other host nodes, wherein the verification features at least comprise any one or more of the following: the department, the common business and the authorization certificate;
according to the verification characteristics, carrying out security verification on the other host nodes to obtain verification results;
determining whether the other host nodes can acquire call data according to the verification result;
acquiring call requests of other host nodes, and determining that the other host nodes are provided with the NFS network file system according to the call requests, wherein the other host nodes are non-master nodes;
according to the call request, the shared storage menu is called, and call data corresponding to the call request is queried;
and sending the call data to the other host nodes.
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 CN113992657A (en) 2022-01-28
CN113992657B true 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)

Families Citing this family (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
CN114924846B (en) * 2022-07-22 2022-11-15 浙江云针信息科技有限公司 Virtual machine migration method based on cloud operating system

Citations (25)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105592123B (en) * 2014-11-12 2020-04-14 富泰华工业(深圳)有限公司 Storage management system, management device and method

Patent Citations (25)

* 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
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

Also Published As

Publication number Publication date
CN113992657A (en) 2022-01-28

Similar Documents

Publication Publication Date Title
CN113992657B (en) Cloud platform-based shared storage construction method, equipment and medium
KR101497167B1 (en) Management of external hardware appliances in a distributed operating system
CN112256399B (en) Docker-based Jupitter Lab multi-user remote development method and system
CN113301116A (en) Cross-network communication method, device, system and equipment for microservice application
CN107135242B (en) Mongodb cluster access method, device and system
CN111897623B (en) Cluster management method, device, equipment and storage medium
CN114281263B (en) Storage resource processing method, system and equipment of container cluster management system
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
CN111600755B (en) Internet access behavior management system and method
CN112532666A (en) Reverse proxy method, apparatus, storage medium, and device
US20200099631A1 (en) Method and device for performing traffic control on user equipment
CN114885024B (en) Routing method, device, equipment and medium of application instance
CN111262904A (en) Service agent system and method
CN115269541A (en) File interconversion method, device, equipment and storage medium
CN114745397A (en) Online storage method and system based on private cloud
US11550608B2 (en) Guest-to-host virtual networking
CN113835632A (en) Method, system, equipment and storage medium for setting read-write bandwidth in batches
US10200301B1 (en) Logical control groups for distributed system resources
CN111526044A (en) Method, device and medium for discovering link between switch and server
CN112910675A (en) Equipment management method, device and system
CN112527323A (en) Method and device for installing Ambari and Ambari framework
CN116910015B (en) Storage platform service method, device, equipment and storage medium
CN115484316B (en) File sharing method and device

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