Trying to get started on Migrating from RedHat 9.0 to FC2 when it
releases. We use NIS for auth and mounting homedirs and shares in a
mixed Solaris, SGI and Linux environment.
VERS and ARCH because of the different platforms.
# ypcat auto.tools
-rw,intr,vers=$VERS <host_server>:/automnt/tools/share
-rw,intr,vers=$VERS <host_server>:/automnt/tools/lib/$ARCH
-rw,intr,vers=$VERS <host_server>:/automnt/tools/bin/$ARCH
# ypcat auto.home
<<<<SNIP>>>>
-rw,intr,vers=$VERS <host_server>:/homedir:<username>
<<<<SNIP>>>>
In RH9 we modified the line for localoptions in /etc/init.d/autofs
#
# NOTE Just for giggles to to pass "nfsvers and vers" to server
localoptions=' -D ARCH=linux8.0 rsize=32768,wsize=32768,nfsvers=3,vers3'
This DOES not work in FC2 .... It fails to mount any of the YP map
related mounts.
I even tried: localoptions=' -D ARCH=linux8.0 rsize=32768,wsize=32768'
and still does not mount.
automount complains about vers option now and not before, even removing
that options still fails to mount homedir.
I've had to create file maps local to the test machine. Has that much
changed in the new automount versions??
RH9.0# automount --version
Linux automount version 3.1.7
RH9.0# mount --version
mount: mount-2.11y
----
FC2t2# automount --version
Linux automount version 4.1.1
FC2t2# mount --version
mount: mount-2.12
Anyone seeing strange behavior in automount with yp ?
TIA
Show replies by date
Problem solved....
localoptions now needs VERS defined as a map option via -D ... the
person prior to me was passing vers as a option for the nfs portion
instead of the NIS map option.
You'll see this in messages:
Apr 29 16:12:22 <hostname> automount[4387]: failed to mount /home/rcavey
Apr 29 16:12:22 <hostname> automount[4389]: >> opt=rsize
Apr 29 16:12:22 <hostname> automount[4389]: >> opt=wsize
Apr 29 16:12:22 <hostname> automount[4389]: >> Bad nfs mount parameter:
vers
Apr 29 16:12:22 <hostname> automount[4389]: mount(nfs): nfs: mount
failure <hostname>:/homedir/rcavey on /home/rcavey
Apr 29 16:12:22 <hostname> automount[4389]: failed to mount /home/rcavey
---------
The lowercase vers is a little mis-leading in messages because the below
Now line fixed the problem.
Way Before:localoptions=' -D ARCH=linux8.0
rsize=32768,wsize=32768,nfsvers=3,vers=3'
Before:localoptions=' -D ARCH=linux8.0 rsize=32768,wsize=32768'
Now :localoptions=' -DARCH=linux8.0 -DVERS=3 rsize=32768,wsize=32768'
Homedirs are now mounting using the NIS maps rather than hacking local
files.
Thanks,
Bob