NFS basics
2012-12-26 00:00
393 查看
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)
==========================
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)
相关文章推荐
- Ubuntu12.04下QQ完美走起啊!走起啊!有木有啊!
- 解決Linux下Android开发真机调试设备不被识别问题
- 拿到OK2440开发板之后——连接nfs服务器
- Scientific Linux 5.5 图形安装教程
- 基于 Linux 集群环境上 GPFS 的问题诊断
- linux下设定环境变量
- 从Windows系统下访问Linux分区相关软件
- 看看我的Ubuntu Linux截图
- ARM Linux系统启动
- Linux及ARM Linux程序开发笔记(零基础入门篇)
- Linux Shell常用技巧
- Linux快速构建apache web服务器
- linux快速部署mysql服务器
- linux服务器被黑了
- 负载均衡沙龙活动第二期现场问答汇集
- mysql 主从复制读写分离实现
- linux make使用技巧
- [游戏资讯]《极品飞车16:亡命狂飙》配置需求公布