CN106550037B - A kind of method and device of server data sharing - Google Patents
A kind of method and device of server data sharing Download PDFInfo
- Publication number
- CN106550037B CN106550037B CN201610978956.8A CN201610978956A CN106550037B CN 106550037 B CN106550037 B CN 106550037B CN 201610978956 A CN201610978956 A CN 201610978956A CN 106550037 B CN106550037 B CN 106550037B
- Authority
- CN
- China
- Prior art keywords
- server
- nfs
- primary server
- catalogue
- service
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols 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]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
Abstract
The invention discloses a kind of method and devices of server data sharing, flexibly and effectively to realize the purpose of the data sharing between server.Method includes: that multiple servers of data to be shared are divided into primary server and one or more from server;Configuration primary server shares to external catalogue, is able to access that the one or more of the catalogue accesses parameter from server and accordingly in the configuration file for the NFS service installing Network File System NFS service on primary server, and installing on primary server;For one or more from each from server in server, NFS service is installed from server each, and external catalogue is shared to using NFS service search primary server;Carry order is executed from server each, each specified directory carry to primary server from server is shared to external catalogue, to realize primary server and each data sharing from server.
Description
Technical field
The present invention relates to computer application technology, in particular to a kind of the method and dress of server data sharing
It sets.
Background technique
NFS is Network File System, i.e. Network File System, and NFS depends on RPC in file delivery procedure
Agreement.RPC is Remote Protocol Call, i.e. remote procedure call, RPC is mainly completed by partial function, a part of function
It can be completed by local program, another part function is completed by the function on distance host.NFS works in TCP (Transmission
Control Protocol, transmission control protocol) and UDP (User Datagram Protocol, User Datagram Protocol)
2049 ports, 111 ports of RPC work TCP.
In practical applications, the demand of server data sharing is frequently encountered, how to realize that the data between server are total
Enjoying becomes technical problem urgently to be resolved.
Summary of the invention
The present invention provides a kind of method and device of server data sharing, flexibly and effectively to realize server
Between data sharing purpose.
The present invention provides a kind of method of server data sharing, comprising:
Multiple servers of data to be shared are divided into primary server and one or more from server;
Network File System NFS service is installed on the primary server, and described in installing on the primary server
The primary server is configured in the configuration file of NFS service to share to external catalogue, be able to access that the one of the catalogue
Or multiple parameter is accessed from server and accordingly;
For one or more of from each from server in server, NFS clothes are installed from server each
Business, and external catalogue is shared to using primary server described in the NFS service search;
Carry order is executed from server each, by each specified directory carry from server to the main clothes
Business device shares to external catalogue, to realize the primary server and each data sharing from server.
In an embodiment of the present invention, Network File System NFS service is installed on the primary server, comprising:
Obtain nfs-utils and rpcbind software package, wherein nfs-utils includes NFS order and monitoring programme;It is described
Rpcbind supports the connection of safe NFS RPC service;
Nfs-utils and rpcbind software package is installed on the primary server.
In an embodiment of the present invention, the configuration file for the NFS service installed on the primary server is /etc/
exports。
In an embodiment of the present invention, it is configured in the configuration file for the NFS service installed on the primary server
The primary server shares to external catalogue, is able to access that the one or more of from server and corresponding of the catalogue
After accessing parameter, the method also includes:
Using exports order, in the configuration file for the NFS service installed on primary server described in carry again
Configuration.
In an embodiment of the present invention, external catalogue is being shared to using primary server described in the NFS service search
Before, the method also includes:
Start the NFS service on the primary server.
The present invention also provides a kind of devices of server data sharing, comprising:
Distribution module, for multiple servers of data to be shared to be divided into primary server and one or more from service
Device;
Configuration module, for installing Network File System NFS service on the primary server, and in the primary server
The primary server is configured in the configuration file of the NFS service of upper installation to share to external catalogue, be able to access that the mesh
The one or more of of record access parameter from server and accordingly;
Searching module, for for one or more of from each from server in server, each from service
NFS service is installed on device, and shares to external catalogue using primary server described in the NFS service search;
Carry module, for executing carry order from server each, by each specified directory from server
Carry to the primary server shares to external catalogue, to realize that the primary server is total to each from the data of server
It enjoys.
In an embodiment of the present invention, the configuration module is also used to:
Obtain nfs-utils and rpcbind software package, wherein nfs-utils includes NFS order and monitoring programme;It is described
Rpcbind supports the connection of safe NFS RPC service;
Nfs-utils and rpcbind software package is installed on the primary server.
In an embodiment of the present invention, the configuration file for the NFS service installed on the primary server is /etc/
exports。
In an embodiment of the present invention, the configuration module is also used to:
The primary server is configured in the configuration file for the NFS service installed on the primary server to share to outside
The catalogue in portion is able to access that the one or more of after server and corresponding access parameter of the catalogue, uses
Exports order, the configuration in configuration file that the NFS installed on primary server described in carry again is serviced.
In an embodiment of the present invention, described device further include:
Starting module, for sharing to outside using primary server described in the NFS service search in the searching module
Catalogue before, start on the primary server NFS service.
In embodiments of the present invention, by multiple servers of data to be shared be divided into primary server and it is one or more from
Server;Network File System NFS service is installed on the primary server, and described in installing on the primary server
The primary server is configured in the configuration file of NFS service to share to external catalogue, be able to access that the one of the catalogue
Or multiple parameter is accessed from server and accordingly;For one or more of from each from server in server,
Each NFS service is installed from server, and shares to external mesh using primary server described in the NFS service search
Record;Carry order is executed from server each, by each specified directory carry from server to the primary server
External catalogue is shared to, to realize the primary server and each data sharing from server.It can be seen that the present invention is real
It applies example and NFS service is installed on the server, the purpose of the data sharing between server is flexibly and effectively realized based on NFS service.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by written explanation
Specifically noted structure is achieved and obtained in book, claims and attached drawing.
Below by drawings and examples, technical scheme of the present invention will be described in further detail.
Detailed description of the invention
Attached drawing is used to provide further understanding of the present invention, and constitutes part of specification, with reality of the invention
It applies example to be used to explain the present invention together, not be construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the flow chart of the method for server data sharing in one embodiment of the invention;
Fig. 2 is the flow chart of the method for server data sharing in another embodiment of the present invention;
Fig. 3 is the structural schematic diagram of the device of server data sharing in one embodiment of the invention;And
Fig. 4 is the structural schematic diagram of the device of server data sharing in another embodiment of the present invention.
Specific embodiment
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings, it should be understood that preferred reality described herein
Apply example only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.
It is as shown in Figure 1 the flow chart of the method for server data sharing in one embodiment of the invention, this method can be with
Include the following steps S11-S14.
Multiple servers of data to be shared are divided into primary server and one or more from server by step S11.
In the cluster of multiple servers composition, it is sometimes desirable to share some data among multiple servers, here may be used
Multiple servers are divided into primary server and one or more from server.
Step S12 installs NFS service on primary server, and the configuration file for the NFS service installed on primary server
Middle configuration primary server shares to external catalogue, is able to access that the one or more of the catalogue is visited from server and accordingly
Ask parameter.
In this step, NFS service can be installed on primary server by yum, it needs to install two software packages,
That is, nfs-utils and rpcbind software package, wherein nfs-utils includes basic NFS order and monitoring programme;rpcbind
The connection of safe NFS RPC service is supported, for example, RPC is rpcbind in 6 system of Centos.
Step S13 is installed from server for one or more from each from server in server each
NFS service, and external catalogue is shared to using NFS service search primary server.
In this step, NFS service is installed from server each, may refer in step S12 on primary server
The scheme of NFS service is installed, that is, NFS service is installed each from server by yum, it needs to install two software packages,
That is, nfs-utils and rpcbind software package, wherein nfs-utils includes basic NFS order and monitoring programme;rpcbind
The connection of safe NFS RPC service is supported, for example, RPC is rpcbind in 6 system of Centos.
In addition, needing to start on primary server before sharing to external catalogue using NFS service search primary server
NFS service.Need first to enable rpcbind service before starting NFS service, because NFS will be registered to rpcbind.
Step S14, it is each from server execute carry order, by each specified directory carry from server to
Primary server shares to external catalogue, to realize primary server and each data sharing from server.
In embodiments of the present invention, by multiple servers of data to be shared be divided into primary server and it is one or more from
Server;Network File System NFS service is installed on the primary server, and described in installing on the primary server
The primary server is configured in the configuration file of NFS service to share to external catalogue, be able to access that the one of the catalogue
Or multiple parameter is accessed from server and accordingly;For one or more of from each from server in server,
Each NFS service is installed from server, and shares to external mesh using primary server described in the NFS service search
Record;Carry order is executed from server each, by each specified directory carry from server to the primary server
External catalogue is shared to, to realize the primary server and each data sharing from server.It can be seen that the present invention is real
It applies example and NFS service is installed on the server, the purpose of the data sharing between server is flexibly and effectively realized based on NFS service.
In alternative embodiment of the invention, the configuration file for the NFS service that above step S12 is installed on primary server
Can be/etc/exports, format is as follows:
directory(or file system)client1(option1,option2)client2(option1,
option2)
Here, file system (file system) refers to that NFS service needs to share to the catalogue of client;Client is
The host for referring to accessible NFS service in network, can be used IP, FQDN or DOMAIN, NETWORK.In the embodiment of the present invention
In, client here is mentioned above one or more from server.
(1) option is commonly used.There are several common options that can realize NFS to be customized, comprising:
Secure: this option is default option, it has used the connection of 1024 realization NFS in the ports TCP/IP below.
Specified insecure can disable this option.
Rw: this option allows NFS client computer to carry out read/write access.Default option is read-only.
Async: this option can improve performance, but restart if being not completely turned off NFS finger daemon
Nfs server, this may also will cause loss of data.
No_wdelay: delay is write in the closing of this option.If being provided with async, NFS ignores that this option.
Nohide: if as soon as a catalogue is mounted on another catalogue, then original catalogue is usually hidden
As concealing or looking like sky.This behavior is disabled, hide option need to be enabled.
No_subtree_check: this option closes subtree inspection, and subtree inspection can execute some peaces for being not desired to ignore
Full property inspection.Default option is to enable subtree inspection.
No_auth_nlm: this option can also be used as insecure_locks and specify, it tells NFS finger daemon not
Locking request is authenticated.If being concerned about safety issue it is necessary to avoid using this option.Default option is auth_
Nlm or secure_locks.
Mp (mountpoint=path): by explicitly stating that this option, NFS require catalogue derived from carry institute.
Fsid=num: this option usually all uses in the case where NFS fault recovery.
(2) user maps.By user's mapping in NFS, the mark of pseudo- or actual user and group can be assigned to one
The user that NFS volumes is being operated.This NFS user has the permissions for mapping permitted user and group.To NFS
Volume can provide certain safety and flexibility using a general user/group, without bringing many administrative loads.
In the file in the file system using NFS carry, the access of user usually can be all restricted, this is to say
User is to be accessed with the identity of anonymous to file, in the case of these user defaults only only to these files
Read right.This behavior is even more important for root user.However, actually there is such case really: it is desirable that user
With the file on the identity of root user or defined other users access Telefile.NFS allows specified access remote
The user of journey file can disable normal squash behavior by customer identification number (UID) and group identification number (GID).
User mapping option include:
Root_squash: this option does not allow root user to access NFS volumes on carry.
No_root_squash: this option allows root user to access NFS volumes come on carry.
All_squash: this option is highly useful for NFS volumes of public visit, it will limit all UID
And GID, only use anonymous.Default setting is no_all_squash.
Anonuid and anongid: anonymous UID and GID are modified as specific user and group account by the two options.
For example, master is configured in the configuration file/etc/exports for the NFS service that can be installed on primary server
Server shares to external catalogue, is able to access that the one or more of the catalogue accesses parameter from server and accordingly,
It is as follows:
vim/etc/exports
/media/testnfs/*.gdfs.edu.cn(rw,no_root_squash,no_all_squash,sync)
Wherein ,/media/testnfs/ is that primary server shares to external catalogue, is owned in the domain * .gdfs.edu.cn
Host can access the catalogue, and have access limit.
In alternative embodiment of the invention, after step s 12, exports order can be used, again the main clothes of carry
Configuration in the configuration file for the NFS service installed on business device.In the present embodiment ,/etc/ is had modified again after starting NFS service
Exports, without restarting the service, using exports order, specific exports order is as follows:
exports[-aruv]
Content in-a whole mount or umount file/etc/exports;
- r shared the content in mount file/etc/exports again;
- u umount catalogue;
Detailed information is output on screen by-v when export.
In alternative embodiment of the invention, outside is shared to using NFS service search primary server in step s 13
Catalogue executes order are as follows: showmout-e NFSSERVER_IP.
For example, showmount-e 192.168.28.220, wherein 192.168.28.220 is the IP of primary server
Location.
In alternative embodiment of the invention, carry order can be executed from server each in step S14, it will
Each specified directory carry to primary server from server shares to external catalogue, and carry mount order can be such that
Mount servername (or IP): share directory local mount directory.
For example, mount-t nfs 192.168.28.220:/media/testnfs//opt/testnfs/
Wherein, 192.168.28.220 is the IP address of primary server, and/media/testnfs/ shares to for primary server
External catalogue ,/opt/testnfs/ is the catalogue that carry is wanted from server.
After carry success, from server/opt/testnfs/ catalogue in the file and primary server that show/media/
The file shown in testnfs/ catalogue is consistent.Further, in primary server /media/testnfs/ catalogue in
Addition and delete file, from server /opt/testnfs/ catalogue in can be with simultaneous display.In addition, from server
In /opt/testnfs/ catalogue in add or delete file, primary server /media/testnfs/ catalogue in be also can
With simultaneous display.
The realization of the method for server data sharing of the invention is discussed in detail below by a specific embodiment
Journey.It is illustrated in figure 2 the flow chart of the method for server data sharing in another embodiment of the present invention, this method may include
Following steps S21-S26.
Step S21, by multiple servers in the cluster of data to be shared be divided into primary server and it is one or more from
Server.
Step S22, obtain nfs-utils and rpcbind software package, on primary server install nfs-utils and
Rpcbind software package, wherein nfs-utils includes NFS order and monitoring programme;Rpcbind supports safe NFS RPC service
Connection.
Step S23, configuration primary server shares to external in the configuration file for the NFS service installed on primary server
Catalogue is able to access that the one or more of the catalogue accesses parameter from server and accordingly.
In this step, for example, editor configuration file vim/etc/exports
/media/testnfs/*.gdfs.edu.cn(rw,no_root_squash,no_all_squash,sync)
Wherein ,/media/testnfs/ is that primary server shares to external catalogue, is owned in the domain * .gdfs.edu.cn
Host can access the catalogue, and have access limit.
Step S24, using exports order, in the configuration file for the NFS service installed on carry primary server again
Configuration.
In this step ,/etc/exports is had modified again after starting NFS service, without restarting the service, used
Exports order, such as exportfs-r.
Step S25 is installed from server for one or more from each from server in server each
NFS service, and external catalogue is shared to using NFS service search primary server.
For example, showmount-e 192.168.28.220, wherein 192.168.28.220 is the IP of primary server
Location.
Step S26, each execution carry order from server, by each specified directory carry from server to master
Server shares to external catalogue, to realize primary server and each data sharing from server.
In this step, carry mount order can be such that
Mount servername (or IP): share directory local mount directory.
For example, mount-t nfs 192.168.28.220:/media/testnfs//opt/testnfs/
Wherein, 192.168.28.220 is the IP address of primary server, and/media/testnfs/ shares to for primary server
External catalogue ,/opt/testnfs/ is the catalogue that carry is wanted from server.
After carry success, from server/opt/testnfs/ catalogue in the file and primary server that show/media/
The file shown in testnfs/ catalogue is consistent.Further, in primary server /media/testnfs/ catalogue in
Addition and delete file, from server /opt/testnfs/ catalogue in can be with simultaneous display.In addition, from server
In /opt/testnfs/ catalogue in add or delete file, primary server /media/testnfs/ catalogue in be also can
With simultaneous display.
It should be noted that in practical applications, above-mentioned all optional embodiments can be any by the way of combining
Combination, forms alternative embodiment of the invention, this is no longer going to repeat them.
Corresponding to the method for the server data sharing in above-described embodiment, the present invention also provides total between a kind of server
Enjoy the device of data.It is illustrated in figure 3 the structural schematic diagram of the device of server data sharing in one embodiment of the invention, is wrapped
It includes:
Distribution module 31, for multiple servers of data to be shared to be divided into primary server and one or more from clothes
Business device;
Configuration module 32, for installing Network File System NFS service on the primary server, and in the main service
The primary server is configured in the configuration file for the NFS service installed on device to share to external catalogue, be able to access that this
The one or more of of catalogue access parameter from server and accordingly;
Searching module 33, for for one or more of from each from server in server, each from clothes
It is engaged in that NFS service is installed on device, and shares to external catalogue using primary server described in the NFS service search;
Carry module 34, for executing carry order from server each, by each specified mesh from server
Record carry to the primary server shares to external catalogue, to realize that the primary server is total to each from the data of server
It enjoys.
In an embodiment of the present invention, above-mentioned configuration module 32 is also used to:
Obtain nfs-utils and rpcbind software package, wherein nfs-utils includes NFS order and monitoring programme;It is described
Rpcbind supports the connection of safe NFS RPC service;
Nfs-utils and rpcbind software package is installed on the primary server.
In an embodiment of the present invention, the configuration file for the NFS service installed on the primary server is /etc/
exports。
In an embodiment of the present invention, above-mentioned configuration module 32 is also used to:
The primary server is configured in the configuration file for the NFS service installed on the primary server to share to outside
The catalogue in portion is able to access that the one or more of after server and corresponding access parameter of the catalogue, uses
Exports order, the configuration in configuration file that the NFS installed on primary server described in carry again is serviced.
In an embodiment of the present invention, as described in Figure 4, the device of figure 3 above displaying can also include:
Starting module 41, for being shared in the searching module 33 using primary server described in the NFS service search
Before external catalogue, start the NFS service on the primary server.
The above-mentioned apparatus of the embodiment of the present invention: by multiple servers of data to be shared be divided into primary server and one or
It is multiple from server;Network File System NFS service is installed on the primary server, and installed on the primary server
The primary server is configured in the configuration file of the NFS service to share to external catalogue, be able to access that the described of the catalogue
One or more accesses parameter from server and accordingly;For one or more of from each from service in server
Device installs NFS service each from server, and shares to outside using primary server described in the NFS service search
Catalogue;Carry order is executed from server each, by each specified directory carry from server to the main service
Device shares to external catalogue, to realize the primary server and each data sharing from server.It can be seen that of the invention
Embodiment installs NFS service on the server, and the mesh of the data sharing between server is flexibly and effectively realized based on NFS service
's.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The shape for the computer program product implemented in usable storage medium (including but not limited to magnetic disk storage and optical memory etc.)
Formula.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (10)
1. a kind of method of server data sharing characterized by comprising
Multiple servers of data to be shared are divided into primary server and one or more from server;
The NFS clothes installing Network File System NFS service on the primary server, and being installed on the primary server
The primary server is configured in the configuration file of business to share to external catalogue, be able to access that the one or more of of the catalogue
Parameter is accessed from server and accordingly;
For one or more of from each from server in server, NFS service is installed from server each, and
External catalogue is shared to using primary server described in the NFS service search;
Carry order is executed from server each, by each specified directory carry from server to the primary server
External catalogue is shared to, to realize the primary server and each data sharing from server;
The access parameter are as follows:
vim/etc/exports
/media/testnfs/*.gdfs.edu.cn(rw,no_root_squash,no_all_squash,sync)
Wherein ,/media/testnfs/ is that primary server shares to external catalogue, all masters in the domain * .gdfs.edu.cn
Machine can access the catalogue, and have access limit;
It is described that external catalogue is shared to using primary server described in the NFS service search, execute order are as follows: showmout-e
NFSSERVER_IP;IP is the IP address of primary server.
2. the method according to claim 1, wherein installing Network File System NFS on the primary server
Service, comprising:
Obtain nfs-utils and rpcbind software package, wherein nfs-utils includes NFS order and monitoring programme;It is described
Rpcbind supports the connection of safe NFS RPC service;
Nfs-utils and rpcbind software package is installed on the primary server.
3. method according to claim 1 or 2, which is characterized in that the NFS service installed on the primary server
Configuration file is /etc/exports.
4. method according to claim 1 or 2, which is characterized in that the NFS service installed on the primary server
Configuration file in configure the primary server share to external catalogue, be able to access that the catalogue it is one or more of from
After server and corresponding access parameter, the method also includes:
Using exports order, matching in the configuration file for the NFS service installed on primary server described in carry again
It sets.
5. method according to claim 1 or 2, which is characterized in that utilizing primary server described in the NFS service search
Before sharing to external catalogue, the method also includes:
Start the NFS service on the primary server.
6. a kind of device of server data sharing characterized by comprising
Distribution module, for multiple servers of data to be shared to be divided into primary server and one or more from server;
Configuration module for installing Network File System NFS service on the primary server, and is pacified on the primary server
The primary server is configured in the configuration file of the NFS service of dress to share to external catalogue, be able to access that the catalogue
It is one or more of to access parameter from server and accordingly;
Searching module, for for one or more of from each from server in server, each from server
NFS service is installed, and shares to external catalogue using primary server described in the NFS service search;
Carry module, for executing carry order from server each, by each specified directory carry from server
External catalogue is shared to, to the primary server to realize the primary server and each data sharing from server;
The access parameter are as follows:
vim/etc/exports
/media/testnfs/*.gdfs.edu.cn(rw,no_root_squash,no_all_squash,sync)
Wherein, including user's mapping options, no_root_squash option indicate that root user is allowed to access the NFS come on carry
Volume;No_all_squash option indicates to use non-anonymous user;/ media/testnfs/ is that primary server shares to outside
Catalogue, all hosts can access the catalogue in the domain * .gdfs.edu.cn, and have access limit;
It is described that external catalogue is shared to using primary server described in the NFS service search, execute order are as follows: showmout-e
NFSSERVER_IP;IP is the IP address of primary server.
7. device according to claim 6, which is characterized in that the configuration module is also used to:
Obtain nfs-utils and rpcbind software package, wherein nfs-utils includes NFS order and monitoring programme;It is described
Rpcbind supports the connection of safe NFS RPC service;
Nfs-utils and rpcbind software package is installed on the primary server.
8. device according to claim 6 or 7, which is characterized in that the NFS service installed on the primary server
Configuration file is /etc/exports.
9. device according to claim 6 or 7, which is characterized in that the configuration module is also used to:
The primary server, which is configured, in the configuration file for the NFS service installed on the primary server shares to outside
Catalogue is able to access that the one or more of after server and corresponding access parameter of the catalogue, uses exports
Order, the configuration in configuration file that the NFS installed on primary server described in carry again is serviced.
10. device according to claim 6 or 7, which is characterized in that further include:
Starting module, for sharing to external mesh using primary server described in the NFS service search in the searching module
Before record, start the NFS service on the primary server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610978956.8A CN106550037B (en) | 2016-11-07 | 2016-11-07 | A kind of method and device of server data sharing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610978956.8A CN106550037B (en) | 2016-11-07 | 2016-11-07 | A kind of method and device of server data sharing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106550037A CN106550037A (en) | 2017-03-29 |
CN106550037B true CN106550037B (en) | 2019-09-24 |
Family
ID=58394726
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610978956.8A Expired - Fee Related CN106550037B (en) | 2016-11-07 | 2016-11-07 | A kind of method and device of server data sharing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106550037B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107194261B (en) * | 2017-05-16 | 2020-04-14 | 安徽三实信息技术服务有限公司 | Safety inspection method and device for remote host |
CN107769996B (en) * | 2017-10-24 | 2021-02-09 | 新华三云计算技术有限公司 | Method and device for detecting working state of server |
CN108900606A (en) * | 2018-06-28 | 2018-11-27 | 郑州云海信息技术有限公司 | A kind of cross-system realizes the method, device and equipment of data sharing |
CN109063081B (en) * | 2018-07-25 | 2022-05-24 | 广东浪潮大数据研究有限公司 | NFS service monitoring method, device, equipment and readable storage medium |
CN109165204B (en) * | 2018-08-15 | 2022-02-18 | 郑州云海信息技术有限公司 | Method for detecting NFS double-client directory display based on script |
CN109274722B (en) * | 2018-08-24 | 2021-11-30 | 北京北信源信息安全技术有限公司 | Data sharing method and device and electronic equipment |
CN110865989A (en) * | 2019-11-22 | 2020-03-06 | 浪潮电子信息产业股份有限公司 | Business processing method for large-scale computing cluster |
CN112799780A (en) * | 2021-01-15 | 2021-05-14 | 中国银联股份有限公司 | Container mirror image sharing method, device, server, equipment and medium |
CN113992657B (en) * | 2021-10-26 | 2024-04-12 | 超越科技股份有限公司 | Cloud platform-based shared storage construction method, equipment and medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102170473A (en) * | 2011-04-21 | 2011-08-31 | 中兴通讯股份有限公司 | Resource sharing system, mobile terminal and resource sharing method |
CN205142283U (en) * | 2015-11-17 | 2016-04-06 | 贵阳朗玛信息技术股份有限公司 | Multi -platform data sharing system |
CN105978977A (en) * | 2016-05-16 | 2016-09-28 | 浪潮电子信息产业股份有限公司 | Resource sharing and data backup method based on linux server |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7516285B1 (en) * | 2005-07-22 | 2009-04-07 | Network Appliance, Inc. | Server side API for fencing cluster hosts via export access rights |
-
2016
- 2016-11-07 CN CN201610978956.8A patent/CN106550037B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102170473A (en) * | 2011-04-21 | 2011-08-31 | 中兴通讯股份有限公司 | Resource sharing system, mobile terminal and resource sharing method |
CN205142283U (en) * | 2015-11-17 | 2016-04-06 | 贵阳朗玛信息技术股份有限公司 | Multi -platform data sharing system |
CN105978977A (en) * | 2016-05-16 | 2016-09-28 | 浪潮电子信息产业股份有限公司 | Resource sharing and data backup method based on linux server |
Also Published As
Publication number | Publication date |
---|---|
CN106550037A (en) | 2017-03-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106550037B (en) | A kind of method and device of server data sharing | |
US20190199687A1 (en) | Dynamically opening ports for trusted application processes hosted in containers | |
US8321787B2 (en) | Managing multiple virtual world accounts from a single virtual lobby interface | |
US11030025B2 (en) | Managing inter-process communications in a containerized application environment | |
CN106933648B (en) | Method and system for multi-tenant container resource management | |
US8782748B2 (en) | Online service access controls using scale out directory features | |
US9525592B2 (en) | Client/server network environment setup method and system | |
US10762193B2 (en) | Dynamically generating and injecting trusted root certificates | |
US10673811B2 (en) | Updating address mapping for local and network resources | |
CN109743293A (en) | The access method and network target range system, computer storage medium in network target range | |
CN108427677B (en) | Object access method and device and electronic equipment | |
US9678984B2 (en) | File access for applications deployed in a cloud environment | |
GB2514550A (en) | System and method for providing access to a resource for a computer from within a restricted network and storage medium storing same | |
CN105740057A (en) | Information processing method and device | |
CN101944129A (en) | Diskless system, workstation thereof, and building method of local root file by workstation | |
CN104866976A (en) | Multi-tenant-oriented information managing system | |
CN105530293A (en) | Application release method and device | |
US20100146123A1 (en) | Resource allocation method of each terminal apparatus using resource management system and resource management server apparatus | |
WO2017148382A1 (en) | Method and apparatus for accessing storage device by virtual machine in cloud computing management platform | |
CN103207805A (en) | Virtualization-based hard disk reuse system | |
KR102035071B1 (en) | System and method for constructing on-demand virtual cluster | |
CN109560895A (en) | Data transmission method and device | |
CN204695386U (en) | Towards the management information system of many tenants | |
US11632411B2 (en) | Method and apparatus for cascaded multi-input content preparation templates for 5G networks | |
CN108156009B (en) | Service calling 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 | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A method and device for sharing data between servers Effective date of registration: 20210104 Granted publication date: 20190924 Pledgee: Inner Mongolia Huipu Energy Co.,Ltd. Pledgor: TVMINING (BEIJING) MEDIA TECHNOLOGY Co.,Ltd. Registration number: Y2020990001527 |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190924 Termination date: 20211107 |