NFS Network File System 97140082 97140244 http linux
- Slides: 28
NFS Network File System 97140082 蘇柏宇 97140244 鍾燿宇
參考http: //linux. vbird. org/ NFS 主機分享目錄與 Client 掛載示意圖
Portmap n n Portmap可以在RPC程序啟動後,將使用中的Port記錄起 來,之後Client端在連結時就會透過Portmap所使用的Port 111查詢遠端程序所使用的Port。 查詢是否開啟Portmap服務,可使用rpcinfo來檢查。 rpcinfo -p [Hostname|Address] 啟動Portmap:#service portmap start 開機時啟動Portmap:#chkconfig portmap on
NFS Server 端相關設定 n 系統服務啟動設定 用法: chkconfig --list [名稱] ¨ chkconfig --add <名稱> ¨ chkconfig --del <名稱> ¨ chkconfig [--level <執行等級們>] <名稱> <on|off|resetpriorities> ¨ ¨ 開機時啟動 NFS ¨ 開機時不啟動 NFS # chkconfig nfs on # chkconfig nfs off
n NFS 服務 ¨ 啟動 NFS # service nfs start ¨ 停止 NFS # service nfs stop ¨ 檢查NFS狀態 # service nfs status ¨ 重新啟動NFS # service nfs restart ¨ 重新載入NFS # service nfs reload
n n n root_squash Client 若以 root 存取,會把 root 的權限改為和 anonymous 一樣。 no_root_squash Client 若以 root 存取,不限制權限。 all_squash Client 是否為 root,其權限都只跟 anonymous 一樣。
NFS 設定檔 n # cat /etc/exports
n Portmap預設port為固定number 111。 n 並固定 NFS 所使用到的相關port number
n 防火牆安全性設定 ¨ 將NFS 4打勾 ¨ 新增其他portmap n rpc. statd n rpc. lockd n rpc. mountd n
無法連接的原因 n mount clntudp_create: RPC: Port mapper failure - RPC: Unable to receive n 被防火牆阻擋,伺服器端相關的port number未開啟。 mount: mount to NFS server '192. 168. 203. 133' failed: System Error: No route to host. n 伺服器端防火牆選項設定中信任的服務”NFS 4”並未開啟。 rpc mount export: RPC: Unable to receive; errno = No route to host n 伺服器端相關port number不通。
無法掛載的原因 n mount: servername: /share failed, reason given by server: Permission denied n 客戶端權限不足。 mount: RPC: Port mapper failure - RPC: Unable to receive mount: RPC: Program not registered n 伺服器端NFS服務或portmap服務尚未啟動。 mount: mount to NFS server ' servername ' failed: timed out (retrying). n 伺服器端防火牆udp port 未開啟。
取消 NFS 掛載 ¨ umount folder name n 若出現以下訊息 umount: folder name: device is busy 請確認目前該資料夾是否正在使用中。
參考資料 n 藍色部落-Linux網管實驗室 http: //itgroup. blueshop. com. tw/yjhwang/linuxlab n 鳥哥的Linux私房菜 http: //linux. vbird. org/
- File-file yang dibuat oleh user pada jenis file di linux
- Linux file system structure
- Distributed file system definition
- In a file-oriented information system, a transaction file
- Linux linux security module m1 support
- Uclinux
- Nfs architecture in distributed system
- Sun nfs
- Explain file service architecture
- Character device file in linux
- Character device file in linux
- Link file linux
- Difference between logical file and physical file
- Fungsi sistem file
- Markup tag tells the web browser
- Linux networking troubleshooting
- File system modules in distributed system
- File system in operating system
- File system in operating system
- File system in operating system
- Reticulocyte count using miller disk
- Reticulocytes nfs
- Sshfs vs nfs
- Sshfs vs nfs
- Parallel nfs
- Coda file system
- Andrew file system architecture
- Nfs 61932
- Arrete 25 juin 1980