hi all...
just finished a day or two of head scratching...
happy to get it working again...but...
had redhat-5.2 linux-2.0.35 running for /home1...
Just upgraded to redhat-6.0 linux-2.2.10 ...
- Is there a autofs/mounting problem when
there is two levels of symlinks...
-
- "Operation not permitted" error messages for rh-6.0
- but is fine for automounting fs on redhat-5.x servers...
-
Lets say the HomeServer
-----------------------
(
( i have multiple home servers...( home1, home2, home3, ...
(
/etc/exports
....
/home *.yourdomain.com(rw)
/ *.yourdomain.com(ro)
Lets say on each client
-----------------------
/etc/auto.master
/.autofs /etc/auto.misc --timeout 60
/etc/auto.misc
...
home1 -fstype=nfs HomeServer1:/home1
home2 -fstype=nfs HomeServer2:/home2
client# ln -s /.autofs/HomeServer1 /Net/HomeServer1
client# ln -s /.autofs/HomeServer2 /Net/HomeServer2
#
# the /home symlink that was my headscratcher..
#
client# ln -s /.autofs/HomeServer1/home1 /home1
client# ln -s /.autofs/HomeServer2/home2 /home2
#
# these fail on rh-6.0 that worked fine for rh-5.2:
#
rh-6.0# ls -l /home/user
total 0 <<--- bad...
rh-6.0# ls -l /Net/HomeServer1/user
total 0 <<--- bad...
rh-6.0# ls -l /Net/HomeServer1/user/Mail
.....Operation not permitted
rh-6.0# ls -l /Net/*/etc/auto.master ( for all servers )
...works...
#
# Changing the /home symlinks fixed the problem /home1/* ...
# -------------------------------------------------------
#
client# ln -s /.autofs/home1 /home1
client# ln -s /.autofs/home2 /home2
-
- yes...there are probably better ways to configure autofs...
- but sometimes we inherit things and safer to leave it alone..
-
have fun
alvin