博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
NFS basics
阅读量:6119 次
发布时间:2019-06-21

本文共 2233 字,大约阅读时间需要 7 分钟。

hot3.png

NFS (Network File System)
==========================
 
Basics
------
Network File System (NFS) is a distributed file system protocal originally
developed by Sun Microsystems in 1984, allowing a user on a client computer
to access files over a network in a manner similar to how local storage is
accessed.  
 
A filesystem which supports the mapping between filehandle fragments and
dentries will be termed "exportable".
A filesystem must be "exportable" to be accessed from a remote computer.
 
/etc/exports: the access control list for filesystems which may be exported
to NFS clients.  See exports(5).
 
How to make an nfs mount?
server: modify /etc/exports to export some directories
client: mount   <server_ip>/<exported_dir>   <local_dir>
 
Q & A
-----
1. nfsd on /proc/fs/nfsd type nfsd (rw)
nfsd file system?
 
2. "Permission denied" problem on nfs client.
'no_root_squash' is not specified in the corresponding config item in /etc/exports.
 
3. What does 'no_root_squash' mean?
'no_root_squash' is a setting that allows nfs clients to connect as root.
 
Terminology
-----------
distributed file system
Open Network Computing Remote Procedure Call (ONC RPC)
filehandle fragment
exportable filesystems
 
NFS in yocto
------------
1) Problem
starting 8 nfsd kernel threads: rpc.nfsd: Unable to access /proc/fs/nfsd errno 2 (No such file or directory).
Please try, as root, 'mount -t nfsd nfsd /proc/fs/nfsd' and then restart rpc.nfsd to correct the problem
done
2) Status
root@qemux86:/etc/rc5.d# ls -l | grep nfs
lrwxrwxrwx    1 root     root            19 Dec 19 06:03 S20nfsserver -> ../init.d/nfsserver
It seems that our yocto-based image could only be used as an nfs client. /proc/fs/nfsd is empty.
Then why is nfsserver in /etc/init.d/ directory?  
And we can see /etc/exports states that "/ *(rw,no_root_squash,async,no_subtree_check)".
Is there anything wrong with the nfs server in our system?
 
 
Examples
--------
1) Examine /etc/exports on our servers.
   Try it out on our servers.
 
 
References
----------
Linux Kernel Documents (<kernel src>/Documentation/filesystems/nfs/)
 
man exports
 
https://www.digitalocean.com/community/articles/how-to-set-up-an-nfs-mount-on-ubuntu-12-04
(How to set up an nfs mount on Ubuntu 12.04)
 
 
 
 
 
 
 

转载于:https://my.oschina.net/u/158589/blog/98474

你可能感兴趣的文章
深入浅出NodeJS——数据通信,NET模块运行机制
查看>>
onInterceptTouchEvent和onTouchEvent调用时序
查看>>
android防止内存溢出浅析
查看>>
4.3.3版本之引擎bug
查看>>
SQL Server表分区详解
查看>>
使用FMDB最新v2.3版本教程
查看>>
SSIS从理论到实战,再到应用(3)----SSIS包的变量,约束,常用容器
查看>>
STM32启动过程--启动文件--分析
查看>>
垂死挣扎还是涅槃重生 -- Delphi XE5 公布会归来感想
查看>>
淘宝的几个架构图
查看>>
Android扩展 - 拍照篇(Camera)
查看>>
JAVA数组的定义及用法
查看>>
充分利用HTML标签元素 – 简单的xtyle前端框架
查看>>
设计模式(十一):FACADE外观模式 -- 结构型模式
查看>>
iOS xcodebuile 自动编译打包ipa
查看>>
程序员眼中的 SQL Server-执行计划教会我如何创建索引?
查看>>
【BZOJ】1624: [Usaco2008 Open] Clear And Present Danger 寻宝之路(floyd)
查看>>
cmake总结
查看>>
数据加密插件
查看>>
linux后台运行程序
查看>>