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
John Hodrien
2015-Sep-11 10:40 UTC
[CentOS] automounter with users home directories on centos 7.
On Thu, 10 Sep 2015, James A. Peltier wrote:> 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"autofs works just fine with an existing directory. It worked fine in EL4/5/6/7. Indeed the default config has /misc managed by automount, and that directory exists. No? I use krb5 NFS with EL7 just fine on /home with autofs. jh
Jason Welsh
2015-Sep-11 13:16 UTC
[CentOS] automounter with users home directories on centos 7.
ok, I have moved home out of the way and restarted automounter.. and now I see the /home directory appear when autofs is started, but there is still nothing there.. [root at server2 home]# cd /home [root at server2 home]# ls [root at server2 home]# cd jason -bash: cd: jason: No such file or directory [root at server2 home]# df -h ./ Filesystem Size Used Avail Use% Mounted on /etc/auto.home 0 0 0 - /home [root at server2 home]# I still dont see any errors in the logs on either server. btw, my uid on both servers is the same. [root at server2 ~]# id jason uid=1000(jason) gid=1000(jason) groups=1000(jason),10(wheel) [root at server1 log]# id jason uid=1000(jason) gid=1000(jason) groups=1000(jason),10(wheel) Jason On 09/10/2015 07:32 PM, James A. Peltier wrote:> > ----- 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" >-- */Jason Welsh/* *MercuryGate International, Inc.* Sr. System Administrator O: 919-469-7670 C: 919-410-7883 _jason.welsh at mercurygate.com <mailto:jason.welsh at mercurygate.com>_ *SMARTER, STRONGER, FASTER, BETTER* www.mercurygate.com <http://www.mercurygate.com>
John Hodrien
2015-Sep-11 13:20 UTC
[CentOS] automounter with users home directories on centos 7.
On Fri, 11 Sep 2015, Jason Welsh wrote:> ok, I have moved home out of the way and restarted automounter.. > and now I see the /home directory appear when autofs is started, but there is > still nothing there.. > > [root at server2 home]# cd /home > [root at server2 home]# ls > [root at server2 home]# cd jason > -bash: cd: jason: No such file or directory > [root at server2 home]# df -h ./ > Filesystem Size Used Avail Use% Mounted on > /etc/auto.home 0 0 0 - /home > [root at server2 home]# > > I still dont see any errors in the logs on either server. > > btw, my uid on both servers is the same. > [root at server2 ~]# id jason > uid=1000(jason) gid=1000(jason) groups=1000(jason),10(wheel) > > [root at server1 log]# id jason > uid=1000(jason) gid=1000(jason) groups=1000(jason),10(wheel)Does "automount -m" show what you expect? When in doubt, enable DEBUG logging in /etc/sysconfig/autofs, as it's very verbose about what it's doing if only you ask. jh
Possibly Parallel Threads
- Gluster operations speed limit
- Gluster operations speed limit
- Incompatibility using pxelinux 3.80 or later and setupldr.exe from windows XP 32 bits
- [LLVMdev] Any suggestion for "Unknown instruction type encountered" error?
- [LLVMdev] Any suggestion for "Unknown instruction type encountered" error?