1836533 Members
4564 Online
110101 Solutions
New Discussion

Servicguard/NIS/Autofs

 
Craig Sterley
Advisor

Servicguard/NIS/Autofs

Can't seem to get the users home directories to mount on the active node. I've gone through the NIS/NFS management guide step by step and i can't seem to get it to mount. Here is what i have so far on the Master:

# cat auto_home
sterlecl nestle:/home/& -nosuid

# cat auto_master
/net -hosts -nosuid,soft,nobrowse
/home /etc/auto_home

I can see the map files on my client and they are pointing at the master NIS. All my user directories are exported off the Master NIS box. Not sure what i am missing.

thanks
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: Servicguard/NIS/Autofs

Shaom Craig,

Are you trying to have NFS as a package thats always on the active node?

Are you using the ServiceGuard NFS kit? Why re-invent the wheel?

Any errors in /var/adm/syslog/syslog.log ?

OS and version of SG would also be nice to know.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Craig Sterley
Advisor

Re: Servicguard/NIS/Autofs

sorry about that. HPUX B.11.23 SG A.11.17. haven't looked at utilizing serviceguard to handle the nfs. The only thing we need is for the users home directories to be mounted on the system that they are logging in to, so i didn't go that route. May have posted this in the wrong group.
Craig Sterley
Advisor

Re: Servicguard/NIS/Autofs

syslog is clear on both the NIS master and the clients.
Christian Schulze
Regular Advisor

Re: Servicguard/NIS/Autofs

Hi Craig,
I am not sure if I got this thing.

Usually there is no need for a normal user to connect directly to a node, instead they all should connect to the Package-IP.
The home dir of my users is somwewhere in the shared-VG (eg. /db/home/oracle)
to make sure that a user will not log in to a node where the package is not active (this will happen !), you have to modify the users .profile.
in /etc/passwd you keep the entry for every user (like oracle... /home/oracle ...)
in the .profile in /home/oracle you do some scripts like this:

if [ ! -d /db/home/oracle ]
then
echo "Wrong Node, or System not available"
exit
fi
# now export a new HOME-dir
export HOME=/db/home/oracle
cd $HOME

# and now run the real profile ...
. /db/home/oracle/.profile

this way all your User-Settings are movinge with the sharedVG.

The only thing to keep in mind is, to keep password the same on al nodes.

Hope this helps

Christian
never touch a running system
Craig Sterley
Advisor

Re: Servicguard/NIS/Autofs

I found the issue i was having. Didn't have the AUTOMOUNT=1 in my nfsconf file.

thanks for the help