共享/NFS目錄給整個192.168.25.0/24網段主機讀寫html
man nfs 能夠查看mount的信息node
rpc端口111shell
nfs主端口2049服務器
1.硬件:sas/sad硬盤,買多塊,raid0/raid10 網卡吞吐量達,千兆(多塊bond)分佈式
2.NFS服務器端配置post
/data 10.0.0.7/24(rw,sync)優化
3.NFS客戶端掛載ui
mount -t nfs -o nosuid,noexec,nodev,noatime,nodiratime,rsize=?,wsize=? 10.0.0.7:/data /mnt計算機網絡
4.NFS服務的內核優化
設置讀寫緩衝區的最大,最小,默認的讀取值
sysctl -p 生效
5.卸載的時候
強制卸載 umount -lf /mnt l(lazy) f(force)
6.分佈式文件系統(Distributed File System)是指文件系統管理的物理存儲資源不必定直接鏈接在本地節點上,而是經過計算機網絡與節點相連。但必須經過統一路徑訪問。
7.瞭解autofs -->客戶端自動卸載和掛載的服務
NFS服務的重要文件說明
/etc/export/
access denied by server while m -rf ==>reload
/usr/sbin/showmount
/var/lib/nfs/etab
/proc/mounts
/var/lib/nfs/rmtab
man exports -->關於NFS,裏面記錄了不少,最有用的幫助文件
命令總結:
showmount -> show mount information for an NFS server -e Show the NFS server’s export list. showmount -e 127.0.0.1 rpcinfo ->report RPC information -p display a list of all registered RPC programs rpcinfo -p localhost exportfs -rv ==>/etc/init.c/rpcbind reload exportfs -o rw,sync,all_squash 10.0.0.7/24:/data ==>直接
【更多參考】