Linux NFS掛載時失敗,報錯:mount.nfs: Connection timed out
今天在轉碼業務平台掛載中興分布式儲存時,出現了掛載失敗:
linux-82ke:~ # mount -t nfs 192.168.202.60:/mnt/zxdfs/CM_South23/root/cccloud_tenant_id10001155 /mnt/D989/60/mnt/wfs10 -v
mount.nfs: timeout set for Wed Jul 30 15:39:52 2014
mount.nfs: trying text-based options 'vers=4,addr=192.168.202.60,clientaddr=192.168.199.4'
mount.nfs: mount(2): No such file or directory
mount.nfs: trying text-based options 'addr=192.168.202.60'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.202.60 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.202.60 prog 100005 vers 3 prot UDP port 39325
mount.nfs: mount(2): Connection timed out
mount.nfs: trying text-based options 'vers=4,addr=192.168.202.60,clientaddr=192.168.199.4'
mount.nfs: mount(2): No such file or directory
mount.nfs: trying text-based options 'addr=192.168.202.60'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.202.60 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.202.60 prog 100005 vers 3 prot UDP port 32954
mount.nfs: mount(2): Connection timed out
mount.nfs: trying text-based options 'vers=4,addr=192.168.202.60,clientaddr=192.168.199.4'
mount.nfs: mount(2): No such file or directory
mount.nfs: trying text-based options 'addr=192.168.202.60'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.202.60 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.202.60 prog 100005 vers 3 prot UDP port 37809
mount.nfs: mount(2): Connection timed out
mount.nfs: Connection timed out
中興分布式儲存那邊的/etc/exports配置為:
/data 192.168.199.*(rw,no_root_squash,sync,no_subtree_check)
但是奇怪的是,如果將/etc/exports修改為:
/data/test 192.168.199.4(rw,no_root_squash,sync,no_subtree_check)
掛載又是成功的。
最後無意間使用了如下配置後,居然正常了:
/data 192.168.199.0/24(rw,no_root_squash,sync,no_subtree_check)
--------------------------------------分割線 --------------------------------------
Ubuntu 12.04安裝NFS server
NFS伺服器安裝配置實現Ubuntu 12.04與ARM檔案分享權限設定
Ubuntu搭建nfs伺服器
檔案伺服器NFS配置詳解
Ubuntu下搭建NFS網路檔案系統伺服器
Heartbeat_ldirector+LB+NFS實現HA及LB、檔案分享權限設定
CentOS 5.5配置NFS伺服器教程
Ubuntu 12.10下NFS的安裝使用
--------------------------------------分割線 --------------------------------------
本文永久更新連結地址: