CN106550037A - A kind of method and device of server data sharing - Google Patents

A kind of method and device of server data sharing Download PDF

Info

Publication number
CN106550037A
CN106550037A CN201610978956.8A CN201610978956A CN106550037A CN 106550037 A CN106550037 A CN 106550037A CN 201610978956 A CN201610978956 A CN 201610978956A CN 106550037 A CN106550037 A CN 106550037A
Authority
CN
China
Prior art keywords
server
nfs
master server
catalogue
master
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610978956.8A
Other languages
Chinese (zh)
Other versions
CN106550037B (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.)
TVMining Beijing Media Technology Co Ltd
Original Assignee
TVMining Beijing Media 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 TVMining Beijing Media Technology Co Ltd filed Critical TVMining Beijing Media Technology Co Ltd
Priority to CN201610978956.8A priority Critical patent/CN106550037B/en
Publication of CN106550037A publication Critical patent/CN106550037A/en
Application granted granted Critical
Publication of CN106550037B publication Critical patent/CN106550037B/en
Expired - Fee Related 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/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]
    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of method and device of server data sharing, to the purpose for flexibly and effectively realizing the data sharing between server.Method includes:By multiple servers of data to be shared be divided into master server and one or more from server;Catalogue that master server shares to outside, one or more for being able to access that the catalogue are configured during the service of NFS NFS, and the configuration file of the NFS services installed on master server are installed on master server parameter is accessed from server and accordingly;For one or more each from server are from server, NFS services are installed from server at each, and the catalogue of outside is shared to using NFS service search master servers;Carry order is performed from server at each, assigned catalogue carry to the master server by each from server shares to the catalogue of outside, to realize master server with each from the data sharing of server.

Description

A kind of method and device of server data sharing
Technical field
The present invention relates to Computer Applied Technology field, the method and dress of more particularly to a kind of server data sharing Put.
Background technology
NFS is Network File System, i.e. NFS, and NFS depends on RPC in file delivery procedure Agreement.RPC is Remote Protocol Call, i.e. remote procedure call, and RPC is mainly completed by partial function, a part of work( 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, UDP) 2049 ports, 111 ports of RPC work TCP.
In actual applications, the demand of server data sharing is frequently encountered, how realizes that the data between server are common Enjoy the technical problem for becoming urgently to be resolved hurrily.
The content 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, including:
By multiple servers of data to be shared be divided into master server and one or more from server;
The service of NFS NFS is installed on the master server, and described in installing on the master server Configure the master server to share to the catalogue of outside, be able to access that the one of the catalogue in the configuration file of NFS services Or multiple access from server and accordingly parameter;
For one or more of each from server are from server, NFS clothes are installed from server at each Business, and the catalogue of outside is shared to using master server described in the NFS service search;
Carry order is performed from server at each, the assigned catalogue carry by each from server is to the main clothes Business device shares to the catalogue of outside, to realize the master server with each from the data sharing of server.
In an embodiment of the present invention, the service of NFS NFS is installed on the master server, including:
Nfs-utils and rpcbind software kits are obtained, wherein, nfs-utils includes NFS orders and monitoring programme;It is described Rpcbind supports the connection of safe NFS RPC services;
Nfs-utils and rpcbind software kits are installed on the master server.
In an embodiment of the present invention, the configuration file of the NFS services installed on the master server is /etc/ exports。
In an embodiment of the present invention, configure in the configuration file of the NFS services installed on the master server The master server shares to the catalogue of outside, is able to access that the one or more of from server and corresponding of the catalogue After accessing parameter, methods described also includes:
Using exports orders, in the configuration file of the NFS services installed on master server described in carry again Configuration.
In an embodiment of the present invention, in the catalogue that outside is shared to using master server described in the NFS service search Before, methods described also includes:
Start the NFS services on the master server.
The present invention also provides a kind of device of server data sharing, including:
Distribute module, for by multiple servers of data to be shared be divided into master server and one or more from service Device;
Configuration module, for the service of NFS NFS is installed on the master server, and in the master server The master server is configured in the configuration file of the NFS services of upper installation to share to the catalogue of outside, be able to access that the mesh The one or more of of record access from server and accordingly parameter;
Searching modul, for for one or more of each from server are from server, at each from service NFS services are installed on device, and the catalogue of outside is shared to using master server described in the NFS service search;
Carry module, for carry order, the assigned catalogue by each from server are performed from server at each Carry to the master server shares to the catalogue of outside, to realize that the master server is common from the data of server with each Enjoy.
In an embodiment of the present invention, the configuration module is additionally operable to:
Nfs-utils and rpcbind software kits are obtained, wherein, nfs-utils includes NFS orders and monitoring programme;It is described Rpcbind supports the connection of safe NFS RPC services;
Nfs-utils and rpcbind software kits are installed on the master server.
In an embodiment of the present invention, the configuration file of the NFS services installed on the master server is /etc/ exports。
In an embodiment of the present invention, the configuration module is additionally operable to:
The master server is configured in the configuration file of the NFS services installed on the master server to share to outward The catalogue in portion, be able to access that the catalogue it is one or more of from server and it is corresponding access parameter after, use Exports orders, the configuration in the configuration file of the NFS services installed on master server described in carry again.
In an embodiment of the present invention, described device also includes:
Starting module, for sharing to outside using master server described in the NFS service search in the searching modul Catalogue before, start the NFS services on the master server.
In embodiments of the present invention, by multiple servers of data to be shared be divided into master server and one or more from Server;The service of NFS NFS is installed on the master server, and described in installing on the master server Configure the master server to share to the catalogue of outside, be able to access that the one of the catalogue in the configuration file of NFS services Or multiple access from server and accordingly parameter;For one or more of each from server are from server, NFS services are installed from server at each, and the mesh of outside is shared to using master server described in the NFS service search Record;Carry order is performed from server at each, the assigned catalogue carry by each from server is to the master server The catalogue of outside is shared to, to realize the master server with each from the data sharing of server.As can be seen here, the present invention is real Apply example and NFS services are installed on the server, the purpose of the data sharing between server is flexibly and effectively realized based on NFS services.
Other features and advantages of the present invention will be illustrated in the following description, also, partly be become from description Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by the explanations write In book, claims and accompanying drawing, specifically noted structure is realizing and obtain.
Below by drawings and Examples, technical scheme is described in further detail.
Description of the drawings
Accompanying drawing is used for providing a further understanding of the present invention, and constitutes a part for description, the reality with the present invention Applying example is used for explaining the present invention together, is not 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 representation of the device of server data sharing in one embodiment of the invention;And
Fig. 4 is the structural representation of the device of server data sharing in another embodiment of the present invention.
Specific embodiment
The preferred embodiments of the present invention are illustrated below in conjunction with accompanying drawing, it will be appreciated that preferred reality described herein Apply example and be merely to illustrate and explain the present invention, be not intended to limit the present invention.
It is illustrated in figure 1 the flow chart of the method for server data sharing in one embodiment of the invention, the method can be with Comprise the following steps S11-S14.
Step S11, by multiple servers of data to be shared be divided into master server and one or more from server.
Multiple server groups into cluster in, it is sometimes desirable among multiple servers share some data, here may be used With by multiple servers be divided into master server and one or more from server.
Step S12, installs NFS services, and the configuration file of the NFS services installed on master server on master server Catalogue that middle configuration master server shares to outside, one or more for being able to access that the catalogue from server and corresponding are visited Ask parameter.
In this step, NFS services can be installed on master server by yum, it needs to install two software kits, That is, nfs-utils and rpcbind software kits, wherein, nfs-utils includes basic NFS orders and monitoring programme;rpcbind The connection of safe NFS RPC services is supported, for example, RPC is rpcbind in 6 systems of Centos.
Step S13, for one or more each from server are from server, installs from server at each NFS is serviced, and the catalogue of outside is shared to using NFS service search master servers.
In this step, NFS services are installed from server at each, may refer in step S12 on master server The scheme of NFS services is installed, i.e. NFS services are installed from server at each by yum, it needs to install two software kits, That is, nfs-utils and rpcbind software kits, wherein, nfs-utils includes basic NFS orders and monitoring programme;rpcbind The connection of safe NFS RPC services is supported, for example, RPC is rpcbind in 6 systems of Centos.
Additionally, before the catalogue of outside is shared to using NFS service search master servers, needing to start on master server NFS service.Needed first to enable rpcbind services before NFS services are started, because NFS will be registered to rpcbind.
Step S14, performs carry order from server at each, the assigned catalogue carry by each from server to Master server shares to the catalogue of outside, to realize master server with each from the data sharing of server.
In embodiments of the present invention, by multiple servers of data to be shared be divided into master server and one or more from Server;The service of NFS NFS is installed on the master server, and described in installing on the master server Configure the master server to share to the catalogue of outside, be able to access that the one of the catalogue in the configuration file of NFS services Or multiple access from server and accordingly parameter;For one or more of each from server are from server, NFS services are installed from server at each, and the mesh of outside is shared to using master server described in the NFS service search Record;Carry order is performed from server at each, the assigned catalogue carry by each from server is to the master server The catalogue of outside is shared to, to realize the master server with each from the data sharing of server.As can be seen here, the present invention is real Apply example and NFS services are installed on the server, the purpose of the data sharing between server is flexibly and effectively realized based on NFS services.
In the alternative embodiment of the present invention, the configuration file of the NFS services that above step S12 is installed on master server Can be as follows for/etc/exports, its form:
directory(or file system)client1(option1,option2)client2(option1, option2)
Here, file system (file system) refer to that NFS services need to share to the catalogue of client;Client is The main frame of NFS services can be accessed in referring to network, it is possible to use IP, FQDN or DOMAIN, NETWORK.In the embodiment of the present invention In, client here for it is mentioned above one or more from server.
(1) commonly use option.There are several conventional options realize being customized to NFS, including:
secure:This option is default option, and it realizes the connection of NFS using less than 1024 TCP/IP ports. 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 with improvement performance, but can be restarted if being not completely turned off NFS finger daemons Nfs server, this is likely to cause loss of data.
no_wdelay:This option is closed and writes time delay.If being provided with async, then NFS ignores that this option.
nohide:If a catalogue is mounted on another catalogue, then catalogue originally is generally just hidden Conceal or look like as sky.This behavior is disabled, hide options need to be enabled.
no_subtree_check:This option closes subtree inspection, and subtree inspection can perform the peace that some are not desired to ignore Full property inspection.Default option is to enable subtree inspection.
no_auth_nlm:This option can also be specified as insecure_locks, and it tells NFS finger daemons 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 this option, NFS requires catalogue derived from carry institute.
Fsid=num:This option is generally used all in the case of NFS fault recoveries.
(2) user's mapping.Mapped by the user in NFS, the mark of pseudo- or actual user and group can be assigned to one The user that NFS volume is being operated.User and the permissions of group that this NFS user has mapping allowed.To NFS Volume can provide certain safety and motility using a general user/group, without bringing many administrative loads.
During file in the file system using NFS carries, the access of user generally can all be restricted, in other words User is with the identity of anonymous conducting interviews to file, in the case of these user defaults to these files only only Read right.This behavior is even more important for root user.However, actually there is really such case:Wish user File on Telefile is accessed with the identity of root user or defined other users.NFS is allowed to specify and is accessed remote The user of journey file, by customer identification number (UID) and group identification number (GID), can disable normal squash behaviors.
The option of user's mapping includes:
root_squash:This option does not allow root user to access NFS volume on carry.
no_root_squash:This option allows root user to access NFS volume come on carry.
all_squash:This option is highly useful for NFS volume of public visit, and it can limit all of 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, configuration master in the configuration file/etc/exports of the NFS services that can be installed on master server Catalogue that server shares to outside, one or more for being able to access that the catalogue access 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/ shares to the catalogue of outside for master server, owns in * .gdfs.edu.cn domains Main frame can access the catalogue, and have access limit.
In the alternative embodiment of the present invention, after step s 12, it is possible to use exports orders, main clothes of carry again Configuration in the configuration file of the NFS services installed on business device.In the present embodiment ,/etc/ is have modified again after starting NFS services Exports, without restarting the service, using exports orders, concrete exports orders are as follows:
exports[-aruv]
Content in-a whole mount or umount files/etc/exports;
- r shared contents again in mount files/etc/exports;
- u umount catalogues;
- v when export, by detailed information output to screen.
In the alternative embodiment of the present invention, outside is shared to using NFS service search master servers in step s 13 Catalogue, performing order is:showmout-e NFSSERVER_IP.
For example, showmount-e 192.168.28.220, wherein, IP ground of the 192.168.28.220 for master server Location.
In the alternative embodiment of the present invention, carry order can be performed from server at each in step S14, will Each assigned catalogue carry to master server from server shares to the catalogue of outside, and carry mount orders can be as follows:
mount servername(or IP):The local mount directory of share directory.
For example, mount-t nfs 192.168.28.220:/media/testnfs//opt/testnfs/
Wherein, IP address of the 192.168.28.220 for master server ,/media/testnfs/ are shared to for master server Outside catalogue ,/opt/testnfs/ is the catalogue that carry is wanted from server.
After carry success, from server/opt/testnfs/ catalogues in the file and master server that show/media/ The file shown in testnfs/ catalogues is consistent.Further, in master server /media/testnfs/ catalogues in Addition and delete file, from server /opt/testnfs/ catalogues in can be with simultaneous display.Additionally, from server In /opt/testnfs/ catalogues in addition or delete file, master server /media/testnfs/ catalogues in be also can With simultaneous display.
The realization of the method for the server data sharing of the present invention is discussed in detail below by a specific embodiment Journey.The flow chart of the method for server data sharing in another embodiment of the present invention is illustrated in figure 2, the method can include Following steps S21-S26.
Step S21, by the multiple servers in the cluster of data to be shared be divided into master server and one or more from Server.
Step S22, obtain nfs-utils and rpcbind software kits, on master server install nfs-utils and Rpcbind software kits, wherein, nfs-utils includes NFS orders and monitoring programme;Rpcbind supports safe NFS RPC services Connection.
Step S23, configures master server in the configuration file of the NFS services installed on master server and shares to outside Catalogue, one or more for being able to access that the catalogue access parameter from server and accordingly.
In this step, for example edit configuration file vim/etc/exports
/media/testnfs/*.gdfs.edu.cn(rw,no_root_squash,no_all_squash,sync)
Wherein ,/media/testnfs/ shares to the catalogue of outside for master server, owns in * .gdfs.edu.cn domains Main frame can access the catalogue, and have access limit.
Step S24, using exports orders, in the configuration file of the NFS services installed on carry master server again Configuration.
In this step ,/etc/exports is have modified again after starting NFS services, without restarting the service, use Exports orders, such as exportfs-r.
Step S25, for one or more each from server are from server, installs from server at each NFS is serviced, and the catalogue of outside is shared to using NFS service search master servers.
For example, showmount-e 192.168.28.220, wherein, IP ground of the 192.168.28.220 for master server Location.
Step S26, each performs carry order from server, and the assigned catalogue carry by each from server is to master Server shares to the catalogue of outside, to realize master server with each from the data sharing of server.
In this step, carry mount orders can be as follows:
mount servername(or IP):The local mount directory of share directory.
For example, mount-t nfs 192.168.28.220:/media/testnfs//opt/testnfs/
Wherein, IP address of the 192.168.28.220 for master server ,/media/testnfs/ are shared to for master server Outside catalogue ,/opt/testnfs/ is the catalogue that carry is wanted from server.
After carry success, from server/opt/testnfs/ catalogues in the file and master server that show/media/ The file shown in testnfs/ catalogues is consistent.Further, in master server /media/testnfs/ catalogues in Addition and delete file, from server /opt/testnfs/ catalogues in can be with simultaneous display.Additionally, from server In /opt/testnfs/ catalogues in addition or delete file, master server /media/testnfs/ catalogues in be also can With simultaneous display.
It should be noted that in actual applications, above-mentioned all optional embodiments can be with any by the way of combining Combination, forms the alternative embodiment of the present invention, and this is no longer going to repeat them.
Corresponding to the method for the server data sharing in above-described embodiment, the present invention is also provided between a kind of server altogether Enjoy the device of data.The structural representation of the device of server data sharing in one embodiment of the invention is illustrated in figure 3, is wrapped Include:
Distribute module 31, for by multiple servers of data to be shared be divided into master server and one or more from clothes Business device;
Configuration module 32, for the service of NFS NFS is installed on the master server, and in the main service The master server is configured in the configuration file of the NFS services installed on device to share to the catalogue of outside, be able to access that this The one or more of of catalogue access from server and accordingly parameter;
Searching modul 33, for for one or more of each from server are from server, at each from clothes NFS services are installed on business device, and the catalogue of outside is shared to using master server described in the NFS service search;
Carry module 34, for carry order is performed from server at each, the specified mesh by each from server Record carry to the master server shares to the catalogue of outside, to realize that the master server is common from the data of server with each Enjoy.
In an embodiment of the present invention, above-mentioned configuration module 32 is additionally operable to:
Nfs-utils and rpcbind software kits are obtained, wherein, nfs-utils includes NFS orders and monitoring programme;It is described Rpcbind supports the connection of safe NFS RPC services;
Nfs-utils and rpcbind software kits are installed on the master server.
In an embodiment of the present invention, the configuration file of the NFS services installed on the master server is /etc/ exports。
In an embodiment of the present invention, above-mentioned configuration module 32 is additionally operable to:
The master server is configured in the configuration file of the NFS services installed on the master server to share to outward The catalogue in portion, be able to access that the catalogue it is one or more of from server and it is corresponding access parameter after, use Exports orders, the configuration in the configuration file of the NFS services installed on master server described in carry again.
In an embodiment of the present invention, as described in Figure 4, the device that figure 3 above shows can also include:
Starting module 41, for being shared to using master server described in the NFS service search in the searching modul 33 Before outside catalogue, start the NFS services on the master server.
The said apparatus of the embodiment of the present invention:By multiple servers of data to be shared be divided into master server and one or It is multiple from server;NFS NFS is installed to service on the master server, and install on the master server The master server is configured in the configuration file of the NFS services to share to the catalogue of outside, be able to access that the described of the catalogue One or more access parameter from server and accordingly;For one or more of each from server are from service Device, installs NFS services from server at each, and shares to outside using master server described in the NFS service search Catalogue;Carry order is performed from server at each, the assigned catalogue carry by each from server is to the main service Device shares to the catalogue of outside, to realize the master server with each from the data sharing of server.As can be seen here, the present invention Embodiment installs NFS services on the server, flexibly and effectively realizes the mesh of the data sharing between server based on NFS services 's.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can adopt complete hardware embodiment, complete software embodiment or with reference to the reality in terms of software and hardware Apply the form of example.And, the present invention can be using the computer for wherein including computer usable program code at one or more The shape of the computer program implemented in usable storage medium (including but not limited to disk memory and optical memory etc.) Formula.
The present invention be with reference to method according to embodiments of the present invention, equipment (system), and computer program flow process Figure and/or block diagram are describing.It should be understood that can be by computer program instructions flowchart and/or each stream in block diagram The combination of journey and/or square frame and flow chart and/or flow process and/or square frame in block diagram.These computer programs can be provided The processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices The device of the function of specifying in present one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory is produced to be included referring to Make the manufacture of device, the command device realize in one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or The function of specifying in multiple square frames.
These computer program instructions can be also loaded in computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented process, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow process of flow chart or multiple flow processs and/or block diagram one The step of function of specifying in individual square frame or multiple square frames.
Obviously, those skilled in the art can carry out the essence of various changes and modification without deviating from the present invention to the present invention God and scope.So, if these modifications of the present invention and modification belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising these changes and modification.

Claims (10)

1. a kind of method of server data sharing, it is characterised in that include:
By multiple servers of data to be shared be divided into master server and one or more from server;
The service of NFS NFS, and the NFS clothes installed on the master server are installed on the master server Configure the master server to share to the catalogue of outside, be able to access that the one or more of of the catalogue in the configuration file of business Parameter is accessed from server and accordingly;
For one or more of each from server are from server, NFS services are installed from server at each, and The catalogue of outside is shared to using master server described in the NFS service search;
Carry order is performed from server at each, the assigned catalogue carry by each from server is to the master server The catalogue of outside is shared to, to realize the master server with each from the data sharing of server.
2. method according to claim 1, it is characterised in that NFS NFS is installed on the master server Service, including:
Nfs-utils and rpcbind software kits are obtained, wherein, nfs-utils includes NFS orders and monitoring programme;It is described Rpcbind supports the connection of safe NFS RPC services;
Nfs-utils and rpcbind software kits are installed on the master server.
3. method according to claim 1 and 2, it is characterised in that the NFS services installed on the master server Configuration file is /etc/exports.
4. method according to claim 1 and 2, it is characterised in that the NFS services installed on the master server Configuration file in configure the master server share to outside catalogue, be able to access that the catalogue it is one or more of from After server and corresponding access parameter, methods described also includes:
Using exports orders, matching somebody with somebody in the configuration file of the NFS services installed on master server described in carry again Put.
5. method according to claim 1 and 2, it is characterised in that using master server described in the NFS service search Before sharing to the catalogue of outside, methods described also includes:
Start the NFS services on the master server.
6. a kind of device of server data sharing, it is characterised in that include:
Distribute module, for by multiple servers of data to be shared be divided into master server and one or more from server;
Configuration module, for the service of NFS NFS is installed on the master server, and pacifies on the master server The master server is configured in the configuration file of the NFS services of dress to share to the catalogue of outside, be able to access that the catalogue It is one or more of to access from server and accordingly parameter;
Searching modul, for for one or more of each from server are from server, at each from server NFS services are installed, and the catalogue of outside is shared to using master server described in the NFS service search;
Carry module, for carry order is performed from server at each, the assigned catalogue carry by each from server The catalogue of outside is shared to the master server, to realize the master server with each from the data sharing of server.
7. device according to claim 6, it is characterised in that the configuration module is additionally operable to:
Nfs-utils and rpcbind software kits are obtained, wherein, nfs-utils includes NFS orders and monitoring programme;It is described Rpcbind supports the connection of safe NFS RPC services;
Nfs-utils and rpcbind software kits are installed on the master server.
8. the device according to claim 6 or 7, it is characterised in that the NFS services installed on the master server Configuration file is /etc/exports.
9. the device according to claim 6 or 7, it is characterised in that the configuration module is additionally operable to:
The master server is configured in the configuration file of the NFS services installed on the master server and shares to outside Catalogue, be able to access that the catalogue it is one or more of from server and it is corresponding access parameter after, using exports Order, the configuration in the configuration file of the NFS services installed on master server described in carry again.
10. the device according to claim 6 or 7, it is characterised in that also include:
Starting module, for sharing to the mesh of outside in the searching modul using master server described in the NFS service search Before record, start the NFS services on the master server.
CN201610978956.8A 2016-11-07 2016-11-07 A kind of method and device of server data sharing Expired - Fee Related CN106550037B (en)

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 true CN106550037A (en) 2017-03-29
CN106550037B 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)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107194261A (en) * 2017-05-16 2017-09-22 安徽三实信息技术服务有限公司 A kind of safety detection method and device for distance host
CN107769996A (en) * 2017-10-24 2018-03-06 新华三云计算技术有限公司 A kind of service end working state detecting method and device
CN108900606A (en) * 2018-06-28 2018-11-27 郑州云海信息技术有限公司 A kind of cross-system realizes the method, device and equipment of data sharing
CN109063081A (en) * 2018-07-25 2018-12-21 广东浪潮大数据研究有限公司 A kind of NFS business monitoring method, device, equipment and readable storage medium storing program for executing
CN109165204A (en) * 2018-08-15 2019-01-08 郑州云海信息技术有限公司 A method of it is shown based on the script detection bis- client directories of NFS
CN109274722A (en) * 2018-08-24 2019-01-25 北京北信源信息安全技术有限公司 Data sharing method, 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
CN113992657A (en) * 2021-10-26 2022-01-28 超越科技股份有限公司 Shared storage building method, device and medium based on cloud platform

Citations (4)

* Cited by examiner, † Cited by third party
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
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
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

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107194261B (en) * 2017-05-16 2020-04-14 安徽三实信息技术服务有限公司 Safety inspection method and device for remote host
CN107194261A (en) * 2017-05-16 2017-09-22 安徽三实信息技术服务有限公司 A kind of safety detection method and device for distance host
CN107769996A (en) * 2017-10-24 2018-03-06 新华三云计算技术有限公司 A kind of service end working state detecting method and device
CN108900606A (en) * 2018-06-28 2018-11-27 郑州云海信息技术有限公司 A kind of cross-system realizes the method, device and equipment of data sharing
CN109063081A (en) * 2018-07-25 2018-12-21 广东浪潮大数据研究有限公司 A kind of NFS business monitoring method, device, equipment and readable storage medium storing program for executing
CN109165204A (en) * 2018-08-15 2019-01-08 郑州云海信息技术有限公司 A method of it is shown based on the script detection bis- client directories of NFS
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
CN109274722A (en) * 2018-08-24 2019-01-25 北京北信源信息安全技术有限公司 Data sharing method, 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
CN113992657A (en) * 2021-10-26 2022-01-28 超越科技股份有限公司 Shared storage building method, device and medium based on cloud platform
CN113992657B (en) * 2021-10-26 2024-04-12 超越科技股份有限公司 Cloud platform-based shared storage construction method, equipment and medium

Also Published As

Publication number Publication date
CN106550037B (en) 2019-09-24

Similar Documents

Publication Publication Date Title
CN106550037A (en) A kind of method and device of server data sharing
US10484462B2 (en) Dynamic registration of an application with an enterprise system
KR102328193B1 (en) Apparatus and method for virtual desktop service
US8782748B2 (en) Online service access controls using scale out directory features
CN106933648B (en) Method and system for multi-tenant container resource management
US10592226B2 (en) Provisioning of applications deployed on client devices
US11509537B2 (en) Internet of things device discovery and deployment
CN106664291B (en) System and method for providing secure access to local network devices
JP5976258B1 (en) Light installer
CN111045788B (en) Automatic directory joining for virtual machine instances
US11030025B2 (en) Managing inter-process communications in a containerized application environment
CN108289098B (en) Authority management method and device of distributed file system, server and medium
US20160330618A1 (en) Trusted execution environment initialization method and mobile terminal
CN102843416A (en) Set-up of thin client computer
US11095648B2 (en) Dashboard as remote computing services
US10673811B2 (en) Updating address mapping for local and network resources
JP2022508899A (en) Container builder for personalized network services
US10250585B1 (en) Identity migration between organizations
CN106533713A (en) Application deployment method and device
CN109542862B (en) Method, device and system for controlling mounting of file system
CN105740057A (en) Information processing method and device
US11632411B2 (en) Method and apparatus for cascaded multi-input content preparation templates for 5G networks
US11670303B2 (en) Staged user enrollment using audio devices
US10951600B2 (en) Domain authentication
CN107018140B (en) Authority control method and system

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