Sysadm:GNIS
From CHG-Wiki
Jump to navigationJump to searchBasic steps for adding a system to our samba environment. Currently configured for CentOS and similar systems.
Install Process
- Useful link with additional information: http://wiki.eri.ucsb.edu/sysadm/Yum#Autofs:
If you have trouble accessing repos, check DNS at /etc/resolve.conf
[root@server ~]# yum install autofs nfs-utils -y
/etc/auto.*
[root@server ~]# vib /etc/auto.master
Copy the last two lines found in ubu's auto.master and add them to the bottom of the "new" server's auto.master
/- /etc/auto.eri --timeout=300 /home /etc/auto.home --timeout=300
Copy over the /etc/auto.eri and /etc/auto.home from ubu
[root@server ~]# scp root@ubu:/etc/auto.eri /etc/ [root@server ~]# scp root@ubu:/etc/auto.home /etc/ [root@server ~]# modprobe nfsd [root@server ~]# service rpcbind start [root@server ~]# service nfslock start # May or may not be needed [root@server ~]# service netfs start [root@server ~]# service autofs start
/etc/exports
On ubu, add the IP for the "new" server to the listings in /etc/exports:
- make sure it's got the no_root_squash flag included
- mimic other entries in that file
- Place entry in numerical order, be careful because ORDER MATTERS (you can bust all sorts of stuff/systems at this point given all the systems that depend on NFS exports from ubu/rain. Rules in that file are met in order - if a rule is met it drops out, so you need to put the no_root_squash entries at the beginning in case a wild-card type entry not allowing no_root_squash comes up so it doesn't override what you're trying to do).
Re-export the stuff from ubu
[root@ubu ~]# exportfs -farv #The flush and reexport cleans up local tables and such better, leaving less likelihood if residual issues.
Pull Script
Back on the "new" server, GNIS is completed using a custom ERI script to pull the automounts over.
[root@server etc]# /home/sysadm/bin/pull-conf.C6-now 2 backin up and updating /etc/passwd omitting 1st 2 lines... backin up and updating /etc/shadow omitting 1st 2 lines... backin up and updating /etc/group omitting 1st 2 lines... backin up and updating /etc/gshadow omitting 1st 2 lines...
Notes
- Currently working on finding a solution for auto-mounting in Ubuntu. Can't use the ERI pull-conf.C6 script because the /etc files are too different in Ubuntu (was set up for Red Hat/CentOS and Ubuntu doesn't have a "root", etc) Libby 13:22, 17 March 2015 (PDT)