Has anyone gotten this to work? Im studing for my rhce and was trying to
get this to work and its just not working like it shows in the book im
going by.
So basically I have two centos 7 servers running under kvm.. One is the
nfs server, one is the nfs client.. I have been mounting up other NFS
shares on the client and they work fine.. The automounter also seems to
mount direct mounts fine as well.. But when I try to do home
directories, it just doesnt work..
on my server (named server1), Im exporting /home as
/home server2(rw,sync,no_root_squash)
on my client, ive got
[root@server2 ~]# grep home /etc/auto.master
/home /etc/auto.home --timeout=120
and
[root@server2 ~]# cat /etc/auto.home
* -rw,soft,intr server1:/home/&
[root@server2 ~]#
and on server1, ive got the selinux enabled, but have the following
booleans set.
[root@server1 ~]# getsebool -a | grep nfs_
nfs_export_all_ro --> on
nfs_export_all_rw --> on
use_nfs_home_dirs --> on
[root@server1 ~]#
so when I try to switch to my user on server2 (client), I get
[root@server2 ~]# su - user1
Last login: Wed Sep 9 16:25:27 EDT 2015 on pts/0
su: warning: cannot change directory to /home/user1: No such file or
directory
-bash-4.2$
and theres nothing in the logs that I can find as to why the automount
isnt working..
[root@server2 ~]# showmount -e server1
Export list for server1:
/home server2
I generated a log (on both server) with sealert, but it shows
found 0 alerts in /var/log/audit/audit.log
any ideas?
--
Jason
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos