Sponsored Content
Top Forums UNIX for Advanced & Expert Users Moving NIS master to new machine Post 302149928 by Just Ice on Sunday 9th of December 2007 02:34:02 AM
Old 12-09-2007
i've upgraded my sol 2.5.1 nis+ server to sol 8 and then later on moved it from an ultra-2 to v240 ... here's what i did ...

1. build new server

2. tar up the following files/directories and then move the tar file to new server:
Quote:
a. /etc/passwd
b. /etc/shadow
c. /etc/group
d. /etc/.rootkey
e. /etc/netgroup <-- only if you have anything special in it
f. /etc/nsswitch.conf <-- only if you have anything special in it
f. /var/nis
g. other files/directories specific to your nis+ server
3. powerdown old server

4. sys-unconfig new server and then rename and re-ip with old server's settings after booting

5. untar the tar file and then reboot the box

6. continue life


if you run into issues, turn off the new server and bring the old server back online for troubleshooting

btw --- make sure you don't have any changes happening to the nis+ environment (i.e., password resets, new accounts, etc.) when you do the changeover aside from the hardware ... you might want to do this off-hours so you don't mess up your users by accident ...

i'm not that intimately familiar with nis+ so i can't tell you what would happen if you make a mistake ... however, having the old server intact until after the transition is deemed successful will help you out big time ...


good luck!
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

NIS master / slave problems

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

2. Ubuntu

how to mount /home on NIS client machine

Hi All, can anyone tell me how to mount NIS user /home/<username> directory on the client machine in Ubuntu. Thanks (3 Replies)
Discussion started by: daya.pandit
3 Replies

3. Solaris

Problem while setting NIS master on Solaris 10

Hi All, I get below error while running cd /var/yp /usr/sbin/ypinit -m Error Code - 1 updated netmasks make : warning : target all not remade because of errors current working dir /var/yp *** error code 1 *** make : fatal error : command failed for target 'k' error running... (4 Replies)
Discussion started by: naw_deepak
4 Replies

4. Solaris

NIS master "ypwhich can't communicate with rpcbind"

Hello All, I just tried to create NIS master in my x86 vmware machine. I have followed the steps and created the necessary files and installed via ypinit command. Now the issue is after start the services when provide the ypwhich command showing following error. Please assist. bash-#svcs... (1 Reply)
Discussion started by: gowthamakanthan
1 Replies

5. Solaris

Error while configuring NIS master

Hello - I have a Solaris machine, which I would like to configure as NIS master. When I run the command /usr/sbin/ypinit -m, I see below output. I am enclosing them in tags. /usr/sbin/ypinit -m In order for NIS to operate sucessfully, we have to construct a list of the NIS servers. Please... (1 Reply)
Discussion started by: manju--
1 Replies

6. HP-UX

NIS Master and Client problem

I have a NIS Master server and NIS Clients. But when I started the service all the process and files that should be owne by root apper by the owner 0 This is an example 0 1709 1708 0 10:06:10 ? 0:00 /usr/sbin/nfsd 4 0 1710 1709 0 10:06:10 ? 0:00 /usr/sbin/nfsd 4 0 1708 1 0 10:06:10 ? 0:00... (2 Replies)
Discussion started by: GCSG
2 Replies

7. Red Hat

Yppasswdd not running on nis master server

Goodmorning i am preparing Nis for my test lab.Running Redhat 5.4 on master and centos for my client.Master server running portmap,ypserv,yppasswdd and client running portmap,ypbind and ypxfrd. ypcat and other yp commands are running fine frm client.But when i try yppasswdd on client to change... (1 Reply)
Discussion started by: Vaibhav.T
1 Replies

8. UNIX Desktop Questions & Answers

How can I replicate master master and master master MySQL databse replication and HA?

I have an application desigend in PHP and MySQl running on apache web server that I is running on a Amazon EC2 server Centos. I want to implement the master-master and master slave replication and high availability disaster recovery on this application database. For this I have created two... (0 Replies)
Discussion started by: Palak Sharma
0 Replies

9. UNIX for Advanced & Expert Users

How to find out which server is LDAP/NIS master?

I have some scripts where I go and do some LDAP/NIS queries to report on users on Unix servers. What I am trying to figure out is, how do I know which server is the LDAP? The configs have been in place long before I took over so was hoping someone had some insight on how to figure this out. I must... (1 Reply)
Discussion started by: dagamier
1 Replies

10. Solaris

Solaris - Moving off NIS to something better

Mostly Solaris 11 with some 10 and even fewer 8 and 9. At the moment, NIS is used. Looking for a better way and to get rid of NIS. (13 Replies)
Discussion started by: psychocandy
13 Replies
VIPW(8) 						    System Management Commands							   VIPW(8)

NAME
vipw, vigr - edit the password, group, shadow-password or shadow-group file SYNOPSIS
vipw [options] vigr [options] DESCRIPTION
The vipw and vigr commands edits the files /etc/passwd and /etc/group, respectively. With the -s flag, they will edit the shadow versions of those files, /etc/shadow and /etc/gshadow, respectively. The programs will set the appropriate locks to prevent file corruption. When looking for an editor, the programs will first try the environment variable $VISUAL, then the environment variable $EDITOR, and finally the default editor, vi(1). OPTIONS
The options which apply to the vipw and vigr commands are: -g, --group Edit group database. -h, --help Display help message and exit. -p, --passwd Edit passwd database. -q, --quiet Quiet mode. -R, --root CHROOT_DIR Apply changes in the CHROOT_DIR directory and use the configuration files from the CHROOT_DIR directory. -s, --shadow Edit shadow or gshadow database. ENVIRONMENT
VISUAL Editor to be used. EDITOR Editor to be used if VISUAL is not set. FILES
/etc/group Group account information. /etc/gshadow Secure group account information. /etc/passwd User account information. /etc/shadow Secure user account information. SEE ALSO
vi(1), group(5), gshadow(5) , passwd(5), , shadow(5). shadow-utils 4.1.5.1 05/25/2012 VIPW(8)
All times are GMT -4. The time now is 11:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy