James A. Peltier
2015-Sep-09 21:35 UTC
[CentOS] automounter with users home directories on centos 7.
----- Original Message ----- | Not tried automount with Centos 7 nor with selinux. | | With that said autofs relies on nfs mounting to work, so have you | started there by attempting to manually mount /home? | | Another place to look is at the hostname. I've had problems where auto | mount doesn't like the short name and insists on using a FQDN, to get | around that you could try using the IP address rather than the hostname. | | On 09/09/15 16:31, Jason Welsh wrote: | > showmount -e | | -- | If money can fix it, it's not a problem. | -- Click and Clack the Tappet brothers /home is a directory by default on all GNU/Linux hosts. If you plan to use it as a mount point then you need to remove the directory and then start autofs otherwise there will be a conflict. -- James A. Peltier IT Services - Research Computing Group Simon Fraser University - Burnaby Campus Phone : 604-365-6432 Fax : 778-782-3045 E-Mail : jpeltier at sfu.ca Website : http://www.sfu.ca/itservices Twitter : @sfu_rcg Powering Engagement Through Technology
Jason Welsh
2015-Sep-10 17:10 UTC
[CentOS] automounter with users home directories on centos 7.
[root at server2 home]# mount server1:/home/jason /home/jason [root at server2 home]# [root at server2 home]# ls /home/jason/ Desktop Documents Downloads Music mylogfile.txt Pictures Public Templates Videos [root at server2 home]# df -h /home/jason/ Filesystem Size Used Avail Use% Mounted on server1:/home/jason 297M 19M 278M 7% /home/jason [root at server2 home]# so it works manually, just not with the automounter. Jason On 09/09/2015 05:35 PM, James A. Peltier wrote:> ----- Original Message ----- > | Not tried automount with Centos 7 nor with selinux. > | > | With that said autofs relies on nfs mounting to work, so have you > | started there by attempting to manually mount /home? > | > | Another place to look is at the hostname. I've had problems where auto > | mount doesn't like the short name and insists on using a FQDN, to get > | around that you could try using the IP address rather than the hostname. > | > | On 09/09/15 16:31, Jason Welsh wrote: > | > showmount -e > | > | -- > | If money can fix it, it's not a problem. > | -- Click and Clack the Tappet brothers > > /home is a directory by default on all GNU/Linux hosts. If you plan to use it as a mount point then you need to remove the directory and then start autofs otherwise there will be a conflict.
Pete Geenhuizen
2015-Sep-10 19:42 UTC
[CentOS] automounter with users home directories on centos 7.
Correct nfs is working and there aren't any firewall issues. The problem is probably related to the way and steps that automountd takes to perform the mount, which is probably related to the fact that /home exists. The quickest way to figure that out is to mv /home to /home- and then try automountd again. When and autofs file system is access automountd will check that the mount point exists and create it if not and then perform the mount. In all this you might have to restart autofs on the client. Pete On 09/10/15 13:10, Jason Welsh wrote:> > [root at server2 home]# mount server1:/home/jason /home/jason > [root at server2 home]# > [root at server2 home]# ls /home/jason/ > Desktop Documents Downloads Music mylogfile.txt Pictures Public > Templates Videos > [root at server2 home]# df -h /home/jason/ > Filesystem Size Used Avail Use% Mounted on > server1:/home/jason 297M 19M 278M 7% /home/jason > [root at server2 home]# > > so it works manually, just not with the automounter. > > Jason > > > > On 09/09/2015 05:35 PM, James A. Peltier wrote: > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >-- If money can fix it, it's not a problem. -- Click and Clack the Tappet brothers
James A. Peltier
2015-Sep-10 23:32 UTC
[CentOS] automounter with users home directories on centos 7.
----- Original Message ----- | | [root at server2 home]# mount server1:/home/jason /home/jason | [root at server2 home]# | [root at server2 home]# ls /home/jason/ | Desktop Documents Downloads Music mylogfile.txt Pictures Public | Templates Videos | [root at server2 home]# df -h /home/jason/ | Filesystem Size Used Avail Use% Mounted on | server1:/home/jason 297M 19M 278M 7% /home/jason | [root at server2 home]# | | so it works manually, just not with the automounter. | | Jason Of course, because a manual mount expects a directory to already exist to mount on. Automounter creates virtual mount points on demand and so if there are existing directories already in place it will fail. Stop autofs. Move the /home out of the way. Start automounter and than do an ls /home. It should "just work" -- James A. Peltier IT Services - Research Computing Group Simon Fraser University - Burnaby Campus Phone : 604-365-6432 Fax : 778-782-3045 E-Mail : jpeltier at sfu.ca Website : http://www.sfu.ca/itservices Twitter : @sfu_rcg Powering Engagement Through Technology
Seemingly Similar Threads
- automounter with users home directories on centos 7.
- automounter with users home directories on centos 7.
- automounter with users home directories on centos 7.
- automounter with users home directories on centos 7.
- automounter with users home directories on centos 7.