CN106657360A - Synchronization method and system for NIS servers under Linux system - Google Patents
Synchronization method and system for NIS servers under Linux system Download PDFInfo
- Publication number
- CN106657360A CN106657360A CN201611254869.4A CN201611254869A CN106657360A CN 106657360 A CN106657360 A CN 106657360A CN 201611254869 A CN201611254869 A CN 201611254869A CN 106657360 A CN106657360 A CN 106657360A
- Authority
- CN
- China
- Prior art keywords
- nis
- information
- servers
- nis servers
- modification
- 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.)
- Pending
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/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Abstract
The invention provides a synchronization method and a synchronization system for NIS servers under a Linux system. The synchronization system comprises an INOTIFY module and a synchronization module, wherein the INOTIFY module is used for detecting change information of any NIS server, and sending the change information to the synchronization module, then the synchronization module synchronizes the change information to the all NIS servers, and thus a high availability user service scheme of a large system based on the NIS servers is achieved via an INOTIFY mechanism.
Description
Technical field
The present invention relates to computer realm, it particularly relates under a kind of linux system NIS servers synchronous method
And system.
Background technology
The purposes of NIS (Network Information Services, the network information service) is exactly to provide to client
Information inquiry, for example, account, password, default directory, shell (software of the user using interface is provided) of user etc., together
When, in high performance computing system, all of node needs identical user profile, is managed collectively based on NIS servers
User profile is a kind of efficient way to manage, and the addition of user is deleted and only needs to be operated in main controlled node, reduces use
The complexity of family management, but, in a very large-scale high performance computing system, if all of Linux main frames all to same
Platform NIS server request user profile, the machine if this single NIS server is delayed, that other Linux main frame just cannot
Allow User logs in, therefore, in the system higher to user management availability requirement, typically using Master-Slave (it is main-
From) mechanism ensureing the High Availabitity of user's inquiry service, wherein, Master nodes will preserve the full detail of user, and Slave
The NIS databases of node only synchronization master NIS server, from node NIS servers user cannot be operated.
But, because all original user information are all present on host node NIS servers, if host node NIS servers
Delay machine, be then not available for user management, can only wait host node NIS servers recover it is normal after user operation just can carry out, because
This, if merely providing the high availability of inquiry from node NIS servers, and it cannot meet large scale system to user management
High Availabitity require.
For the problem in correlation technique, effective solution is not yet proposed at present.
The content of the invention
For the problem in correlation technique, the present invention proposes under a kind of linux system the synchronous method of NIS servers and is
System, realizes high availability of the large scale system based on the user service of NIS servers.
The technical scheme is that what is be achieved in that:
According to an aspect of the invention, there is provided under a kind of linux system NIS servers synchronous method.
The synchronous method includes:INOTIFY modules, synchronization module, wherein, INOTIFY modules detect arbitrary NIS servers
Modification information, and modification information is sent to into synchronization module, then modification information is synchronized to whole NIS clothes by synchronization module
Business device.
According to one embodiment of present invention, modification information includes:The information of addition user, modification information, deletion user
Information.
According to one embodiment of present invention, further include:NIS servers receive the solicited message of client;NIS takes
The solicited message at arbitrary NIS servers customer in response end in business device.
According to one embodiment of present invention, it is characterised in that solicited message includes:Query Information, modification solicited message.
According to a further aspect in the invention, there is provided the synchronization system of NIS servers under linux system.
The synchronization system includes:INOTIFY modules, for detecting the modification information of arbitrary NIS servers, and change are believed
Breath is sent to synchronization module;Synchronization module, for modification information to be synchronized to into whole NIS servers.
According to one embodiment of present invention, modification information includes:The information of addition user, modification information, deletion user
Information.
According to one embodiment of present invention, further include:NIS servers receive the solicited message of client;NIS takes
The solicited message at arbitrary NIS servers customer in response end in business device.
According to one embodiment of present invention, solicited message includes:Query Information, modification solicited message.
The present invention detects the modification information of arbitrary NIS servers by INOTIFY modules, and modification information is sent to together
Module is walked, then modification information is synchronized to whole NIS servers by synchronization module, is realized so as to pass through INOTIFY mechanism
High availability scheme of the large scale system based on the user service of NIS servers.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to institute in embodiment
The accompanying drawing that needs are used is briefly described, it should be apparent that, drawings in the following description are only some enforcements of the present invention
Example, for those of ordinary skill in the art, on the premise of not paying creative work, can be being obtained according to these accompanying drawings
Obtain other accompanying drawings.
Fig. 1 is the flow chart of the synchronous method of NIS servers under linux system according to embodiments of the present invention;
Fig. 2 is the block diagram of the sychronisation of NIS servers under linux system according to embodiments of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on
Embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained belongs to present invention protection
Scope.
A kind of embodiments in accordance with the present invention, there is provided the synchronous method of NIS servers under linux system.
As shown in figure 1, synchronous method according to embodiments of the present invention includes:
Step S101, INOTIFY modules detect the modification information of arbitrary NIS servers, and modification information is sent to together
Step module;
Modification information is synchronized to whole NIS servers by step S103, synchronization module.
By the such scheme of the present invention, the modification information of arbitrary NIS servers is detected by INOTIFY modules, and will
Modification information is sent to synchronization module, and then modification information is synchronized to whole NIS servers by synchronization module, so as to pass through
INOTIFY mechanism realizes high availability scheme of the large scale system based on the user service of NIS servers.
According to one embodiment of present invention, modification information includes:The information of addition user, modification information, deletion user
Information.
According to one embodiment of present invention, further include:NIS servers receive the solicited message of client;NIS takes
The solicited message at arbitrary NIS servers customer in response end in business device.
According to one embodiment of present invention, it is characterised in that solicited message includes:Query Information, modification solicited message.
In order to preferably describe the present invention, it is described in detail below by specific embodiment.
From the beginning of the linux system of version number 2.6.13, it is a Linux characteristic that linux system is proposed INOTIFY,
It allows monitoring programme to open a unique file descriptor, and monitors one or more file for event set, for example, beat
Open and close are closed, movement/renaming, deletion, establishment or change attribute.
The present invention is the high availability scheme realized based on the INOTIFY mechanism, if user profile is changed (as added
User, Modify password, delete user etc.) in the case of, a NIS server therein can by the INOTIFY mechanism (or
INOTIFY modules) perceive current change information and notify to give our monitoring programme (or synchronization module), so as to learn with
User data has after modification, and immediately by change synchronizing information to all of NIS servers, thus all of NIS servers are all protected
Newest original user data has been deposited, further, since client is to ask user profile to the whole network segment, as long as NIS services
The domain request that can answer client consistent with client request that device is provided, wherein, domain refers in window networking and independently transports
Capable unit, because we are consistent the user data in all NIS servers, all NIS servers can be returned
The request (including the request of information modification) of client is answered, the load balancing and user's pipe of user profile inquiry is so achieved that
The High Availabitity of reason.
Embodiments in accordance with the present invention, additionally provide a kind of synchronization system of NIS servers under linux system.
As shown in Fig. 2 synchronization system according to embodiments of the present invention includes:INOTIFY modules 21, it is arbitrary for detecting
The modification information of NIS servers, and modification information is sent to into synchronization module;Synchronization module 22, for by modification information synchronization
To whole NIS servers.
According to one embodiment of present invention, modification information includes:The information of addition user, modification information, deletion user
Information.
According to one embodiment of present invention, further include:NIS servers receive the solicited message of client;NIS takes
The solicited message at arbitrary NIS servers customer in response end in business device.
According to one embodiment of present invention, solicited message includes:Query Information, modification solicited message.
In sum, by means of the above-mentioned technical proposal of the present invention, arbitrary NIS servers are detected by INOTIFY modules
Modification information, and modification information is sent to into synchronization module, then modification information is synchronized to whole NIS clothes by synchronization module
Business device, so as to pass through INOTIFY mechanism high availability scheme of the large scale system based on the user service of NIS servers is realized.
Presently preferred embodiments of the present invention is the foregoing is only, not to limit the present invention, all essences in the present invention
Within god and principle, any modification, equivalent substitution and improvements made etc. should be included within the scope of the present invention.
Claims (8)
1. under a kind of linux system NIS servers synchronous method, it is characterised in that including INOTIFY modules, synchronization module,
Wherein, the INOTIFY modules detect the modification information of arbitrary NIS servers, and the modification information is sent to into institute
Synchronization module is stated, then the modification information is synchronized to whole NIS servers by the synchronization module.
2. synchronous method according to claim 1, it is characterised in that the modification information includes:The information of addition user,
Modification information, the information for deleting user.
3. synchronous method according to claim 1, it is characterised in that further include:
The NIS servers receive the solicited message of client;
Arbitrary NIS servers respond the solicited message of the client in the NIS servers.
4. synchronous method according to claim 3, it is characterised in that the solicited message includes:Query Information, modification please
Seek information.
5. under a kind of linux system NIS servers synchronization system, it is characterised in that include:
INOTIFY modules, for detecting the modification information of arbitrary NIS servers, and are sent to synchronous mould by the modification information
Block;
The synchronization module, for the modification information to be synchronized to into whole NIS servers.
6. synchronization system according to claim 5, it is characterised in that the modification information includes:The information of addition user,
Modification information, the information for deleting user.
7. synchronization system according to claim 5, it is characterised in that further include:
The NIS servers receive the solicited message of client;
Arbitrary NIS servers respond the solicited message of the client in the NIS servers.
8. synchronization system according to claim 7, it is characterised in that the solicited message includes:Query Information, modification please
Seek information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611254869.4A CN106657360A (en) | 2016-12-30 | 2016-12-30 | Synchronization method and system for NIS servers under Linux system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611254869.4A CN106657360A (en) | 2016-12-30 | 2016-12-30 | Synchronization method and system for NIS servers under Linux system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106657360A true CN106657360A (en) | 2017-05-10 |
Family
ID=58837332
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611254869.4A Pending CN106657360A (en) | 2016-12-30 | 2016-12-30 | Synchronization method and system for NIS servers under Linux system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106657360A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108762986A (en) * | 2018-05-24 | 2018-11-06 | 四川斐讯信息技术有限公司 | A kind of method and system for preventing abnormal power-down from leading to configuration loss |
CN110515779A (en) * | 2018-05-22 | 2019-11-29 | 山东数盾信息科技有限公司 | A kind of method of data synchronization for realizing self-regeneration |
CN112631774A (en) * | 2020-12-23 | 2021-04-09 | 广东省大湾区集成电路与系统应用研究院 | Task processing method, device, equipment and medium based on grid computing |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101635889A (en) * | 2009-08-11 | 2010-01-27 | 广州海格通信集团股份有限公司 | Ultrashort wave radio station with mobile phone function and method for realizing short message service thereof |
CN103209207A (en) * | 2013-02-01 | 2013-07-17 | 中交四航工程研究院有限公司 | Peer-to-peer network structure achievement method |
JP5266705B2 (en) * | 2007-10-01 | 2013-08-21 | 富士通セミコンダクター株式会社 | Communications system |
CN103501260A (en) * | 2013-09-12 | 2014-01-08 | 北京创毅讯联科技股份有限公司 | Network configuration method and access device of enterprise network |
CN103744906A (en) * | 2013-12-26 | 2014-04-23 | 乐视网信息技术(北京)股份有限公司 | System, method and device for data synchronization |
CN104660395A (en) * | 2013-11-25 | 2015-05-27 | 北京壹人壹本信息科技有限公司 | Data synchronization method, system and equipment |
CN105933379A (en) * | 2016-04-01 | 2016-09-07 | 浪潮电子信息产业股份有限公司 | Business processing method, device and system |
CN106254417A (en) * | 2016-07-12 | 2016-12-21 | 乐视控股(北京)有限公司 | Data cache method, Apparatus and system |
-
2016
- 2016-12-30 CN CN201611254869.4A patent/CN106657360A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5266705B2 (en) * | 2007-10-01 | 2013-08-21 | 富士通セミコンダクター株式会社 | Communications system |
CN101635889A (en) * | 2009-08-11 | 2010-01-27 | 广州海格通信集团股份有限公司 | Ultrashort wave radio station with mobile phone function and method for realizing short message service thereof |
CN103209207A (en) * | 2013-02-01 | 2013-07-17 | 中交四航工程研究院有限公司 | Peer-to-peer network structure achievement method |
CN103501260A (en) * | 2013-09-12 | 2014-01-08 | 北京创毅讯联科技股份有限公司 | Network configuration method and access device of enterprise network |
CN104660395A (en) * | 2013-11-25 | 2015-05-27 | 北京壹人壹本信息科技有限公司 | Data synchronization method, system and equipment |
CN103744906A (en) * | 2013-12-26 | 2014-04-23 | 乐视网信息技术(北京)股份有限公司 | System, method and device for data synchronization |
CN105933379A (en) * | 2016-04-01 | 2016-09-07 | 浪潮电子信息产业股份有限公司 | Business processing method, device and system |
CN106254417A (en) * | 2016-07-12 | 2016-12-21 | 乐视控股(北京)有限公司 | Data cache method, Apparatus and system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110515779A (en) * | 2018-05-22 | 2019-11-29 | 山东数盾信息科技有限公司 | A kind of method of data synchronization for realizing self-regeneration |
CN108762986A (en) * | 2018-05-24 | 2018-11-06 | 四川斐讯信息技术有限公司 | A kind of method and system for preventing abnormal power-down from leading to configuration loss |
CN112631774A (en) * | 2020-12-23 | 2021-04-09 | 广东省大湾区集成电路与系统应用研究院 | Task processing method, device, equipment and medium based on grid computing |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11750607B2 (en) | Identifying accounts having shared credentials | |
CN106250270B (en) | A kind of data back up method under cloud computing platform | |
US10484456B2 (en) | Sharing a content item | |
EP2706719B1 (en) | File synchronization method and device | |
KR101863398B1 (en) | Method and system for synchronization mechanism on multi-server reservation system | |
US7937716B2 (en) | Managing collections of appliances | |
US20200145374A1 (en) | Scalable cloud hosted metadata service | |
US10021181B2 (en) | System and method for discovering a LAN synchronization candidate for a synchronized content management system | |
US20090063650A1 (en) | Managing Collections of Appliances | |
US9930063B2 (en) | Random identifier generation for offline database | |
CN109547512A (en) | A kind of method and device of the distributed Session management based on NoSQL | |
CN106936623A (en) | The management method of distributed cache system and cache cluster | |
KR20130114575A (en) | Leader arbitration for provisioning services | |
CN106657360A (en) | Synchronization method and system for NIS servers under Linux system | |
CN106547790B (en) | Relational database service system | |
CN109951567A (en) | A kind of Double Data center applications dispositions method | |
US9436769B2 (en) | Automatic device upload configuration | |
US9231957B2 (en) | Monitoring and controlling a storage environment and devices thereof | |
US9432238B2 (en) | Communicating large amounts of data over a network with improved efficiency | |
JP2000222268A (en) | Method for synchronizing file for plural computers | |
CN107147651B (en) | Gray level publishing system and publishing method thereof | |
CN111831743B (en) | Block chain data storage system and method based on cloud storage | |
CN104468767A (en) | Method and system for detecting cloud storage data collision | |
US10412586B2 (en) | Limited-functionality accounts | |
US11157454B2 (en) | Event-based synchronization in a file sharing environment |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170510 |