有一个奇怪的问题,就是它可以通过nfs挂载目录,但不能挂载相同目录的子目录中的任何一个。例如。有泥土
[root@hwdatalake datalake]# pwd
/datalake
[root@hwdatalake datalake]# ls -lha .
total 8.0K
drwxrwx---. 14 root etlusers 4.0K Dec 24 10:03 .
dr-xr-xr-x. 18 root root 240 Dec 12 10:24 ..
dr-xr-x---. 2 root root 29 Dec 16 11:08 CUPSS_Hawaii
dr-xr-x---. 2 root root 29 Dec 16 11:16 CUPSS_Nation
dr-xr-x---. 2 root root 26 Dec 16 11:17 HI_BRFSS
并以/etc/exports
为
/datalake airflowetl(rw,root_squash,sync)
/datalake/HI_BRFSS airflowetl(ro,root_squash,sync)
在指定的airflowetl服务器上,能够从nfs服务器成功挂载顶层目录...
[root@airflowetl airflow]# mount -v hwdatalake.co.local:/datalake /dlnfs
mount.nfs: timeout set for Mon Dec 30 13:04:59 2019
mount.nfs: trying text-based options 'vers=4.1,addr=172.18.4.97,clientaddr=172.18.4.69'=
又见
[root@airflowetl airflow]# umount /dlnfs
[root@airflowetl airflow]# showmount -e hwdatalake
clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
,当尝试挂载子目录时,我们看到
[root@airflowetl airflow]# mount -v hwdatalake.co.local:/datalake/HI_BRFSS /dlnfs
mount.nfs: timeout set for Mon Dec 30 13:12:55 2019
mount.nfs: trying text-based options 'vers=4.1,addr=172.18.4.97,clientaddr=172.18.4.69'
mount.nfs: mount(2): Permission denied
mount.nfs: trying text-based options 'vers=4.0,addr=172.18.4.97,clientaddr=172.18.4.69'
mount.nfs: mount(2): Permission denied
mount.nfs: trying text-based options 'addr=172.18.4.97'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: portmap query failed: RPC: Remote system error - No route to host
mount.nfs: trying text-based options 'vers=4.0,addr=172.18.4.97,clientaddr=172.18.4.69'
不太确定该怎么做。任何有更多经验的人都有进一步的调试提示,或者知道这里出了什么问题?