02-03-2009
Is the master NFS server the same as the master NIS server? The the answer is: you cannot.
What you are asking is: how do I do replication with NFS? The answers are quite varied, but in general: you don't. There are, however, two general approaches to the problem:
(1) as you suggest: synchronize the data between master/server. Some filesystems do this: CODA/transarc are the ones that come to mind. There is also block-level replication; DRBD does this. You can do it with rsync, but that's slow and you may lose several minutes of updates, depending on the size of your filesystem. (2) Use an external disk system that can connect to multiple hosts. Solaris and HP offer such products. Then you create a software "fence" so that only one computer can access partition X. If one computer becomes unavailable, the other can access it. The fence makes sure the first computer will not be able to mount the partition while the other has it locked. Examples include RedHat's GFS. Do-it-yourself methods also available.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
I just took over the admin role from someone and I wanna setup sendmail (just to send mail from the host) however, after I config all the resolv.conf, nssitch.conf, hosts file and when I try to send a mail out, after I punched ctl-D, it returned he following,
"NIS map mail.aliases... (2 Replies)
Discussion started by: stancwong
2 Replies
2. UNIX for Advanced & Expert Users
We have a RedHat 8.0 NIS master, with a RedHat 8.0 NIS Slave.
We also have a small number of SUSE 9.1 and SUSE 10 machines here for evaluation.
However, no matter what i do, the SUSE machines will not talk to the NIS Servers.
If i broadcast for NIS Servers for the specified NIS domain, it... (1 Reply)
Discussion started by: fishsponge
1 Replies
3. UNIX for Advanced & Expert Users
Our NIS master server went down. We have since fixed it and brought it back up. However all of are machines still point to the slave server when looking at it with ypwhich. My question is how do i point the servers back to the master.
Frank (2 Replies)
Discussion started by: frankkahle
2 Replies
4. Solaris
Hi, all.
I have a Solaris client here needs to bind to NIS server in another subnet. Following is the configuration i made on the client,
1) edit /etc/inet/hosts to add an entry of the NIS server -- nserver01
2) execute `domainname` to set local NIS domain to the domain of the NIS server.... (1 Reply)
Discussion started by: sn_wukong
1 Replies
5. UNIX for Advanced & Expert Users
I am setting up the NIS slave server to automount the home directory just like its master server on suse linux (SLES 10).
Since the master will be the first to mount the /home on the client. I have not been able to mount the /home on the on the slave when the master NIS server is unavailable.
How... (0 Replies)
Discussion started by: ibroxy
0 Replies
6. AIX
Hello Everybody,
I have a question regarding SLAVE NIS SERVER in aix.
We are using NIS master of Sun Solaris 9.0 which is on different subnet i.e. 10.197.93.0. And Our slave server is having AIX 5.3 installed which is on 10.207.13.0 subnet.
I have a query regarding its name and ip address... (0 Replies)
Discussion started by: jit15975
0 Replies
7. Solaris
Hi All,
I have a client already binded with a NIS master server. Now, I want to bind this particular client to one of NIS slave. How to do it?
Thanks,
Deepak (2 Replies)
Discussion started by: naw_deepak
2 Replies
8. Solaris
Hi,
I'm learning for my Solaris 10 sys-admin part 2. I'm now trying to get nis working because for the exercise. I run in to a problem.
Setup:
Three Systems
solaris101 (client)
Nothing wrong here havent made any config changes yet.
solaris102 (master server)
Interfaces
... (1 Reply)
Discussion started by: jld
1 Replies
9. UNIX for Advanced & Expert Users
Hello - This could be a stupid question. But can we configure NIS with different flavors of UNIX. Like Master on AIX and slave on Solaris?
---------- Post updated 09-06-11 at 04:17 AM ---------- Previous update was 09-05-11 at 06:34 AM ----------
Hi - Can anyone please answer this? (1 Reply)
Discussion started by: manju--
1 Replies
10. Solaris
Hi guys,
In my Sol-10 i setup NIS server following the oracle doc and setup a Linux as NIS client all went ok.
I added another Sol-10 and configure it as a NIS slave server following the oracle doc again. and added the server on the yp.conf on my NIS client
How do i test if my NIS slave... (3 Replies)
Discussion started by: batas
3 Replies
LEARN ABOUT FREEBSD
sync_client
SYNC_CLIENT(8) System Manager's Manual SYNC_CLIENT(8)
*
NAME
sync_client - client side of the synchronization (replication) engine
SYNOPSIS
sync_client [ -v ] [ -l ] [ -z ] [ -C config-file ] [ -S servername ]
[ -f input-file ] [ -F shutdown_file ] [ -w wait_interval ]
[ -t timeout ] [ -d delay ] [ -r ] [ -u ] [ -m ]
[ -s ] objects...
DESCRIPTION
Sync_client is the client side of the replication system. It runs on the client (master) system and connects to the target (replica) sys-
tem and generates an appropriate sequence of transactions to synchronize the replica system with the master system.
OPTIONS
-v Verbose mode.
-l Verbose logging mode.
-o Only attempt to connect to the backend server once rather than waiting up to 1000 seconds before giving up.
-z Enable compress. If you set 'sync_compress' in the imapd.conf or pass -z to sync_client, the replication protocol will attempt to
enable deflate compression on the connection.
-C config-file
Read configuration options from config-file.
-S servername
Tells sync_client which server to communicate with. Overrides the sync_host configuration option.
-f input-file
In mailbox or user replication mode: provides list of users or mailboxes to replicate. In rolling replication mode, specifies an
alternate log file (sync_client will exit after processing the log file).
-F shutdown-file
Rolling replication checks for this file at the end of each replication cycle and shuts down if it is present. Used to request nice
clean shutdown at first convenient point. The file in question is removed on shutdown. Overrides sync_shutdown_file option in
imapd.conf
-w interval
Wait this long before starting. Typically used so that we can attach a debugger to one end of the replication system or the other.
-t timeout
Timeout for single replication run in rolling replication. sync_client will negotiate a restart after this many seconds. Default:
600 seconds
-d delay
Minimum delay between replication runs in rolling replication mode. Larger values provide better efficiency as transactions can be
merged. Smaller values mean that the replica system is more up to date and that you don't end up with large blocks of replication
transactions as a single group. Default: 3 seconds.
-r Rolling (repeat) replication mode. Pick up a list of actions recorded by the lmtpd(8), imapd(8), popd(8) and nntpd(8) daemons from
the file specified in sync_log_file. Repeat until sync_shutdwon_file appears.
-n Use the named channel for rolling replication mode. If multiple channels are specified in sync_log_channels then use one of them.
This option is probably best combined with -S to connect to a different server with each channel.
-u User mode. Remaining arguments are list of users who should be replicated.
-m Mailbox mode. Remaining arguments are list of mailboxes which should be replicated.
-s Sieve mode. Remaining arguments are list of users whose Sieve files should be replicated. Principally used for debugging purposes:
not exposed to sync_client(8).
FILES
/etc/imapd.conf
SEE ALSO
sync_server(8)
AUTHORS
David Carter (dpc22@cam.ac.uk), Ken Murchison (ken@oceana.com)
CMU
Project Cyrus SYNC_CLIENT(8)