NFS网络文件系统
本地文件系统-----本地磁盘

-EXT3/4swapfat32
伪文件系统----内存空间

-/proc/sys

网络文件系统----网络存储空间

-NFS

NFS主要软件包:

-nfs-utils-10.21

-protmap-

主配置文件:

-/etc/exprots


NFS配置实现

NFS网络文件系统:

实验要求:

/root共享给主机192.168.10.0/24

可写、同步,允许客户机以root权限访问

1、安装软件包

[root@localhost ~]#rpm -q nfs-utils portmap

nfs-utils-1.0.9-66.el5

portmap-4.0-65.2.2.1

[root@localhost ~]#

2、服务器的配置

[root@localhost ~]#cat /etc/exports/配置文件

/root 192.168.10.88(rw,sync,no_root_squash)

3、启动服务

[root@localhost~]#service portmap restart/开启服务

停止portmap[确定]

启动portmap[确定]

[root@localhost ~]#servicenfs restart

关闭NFS mountd[失败]

关闭NFS守护进程:[失败]

关闭NFS quotas[失败]

启动NFS服务:[确定]

关掉NFS配额:[确定]

启动NFS守护进程:[确定]

启动NFS mountd[确定]

Stopping RPC idmapd:[确定]

正在启动RPC idmapd[确定]

[root@localhost ~]#chkconfigportmap on

[root@localhost ~]#chkconfignfs on

4、测试

在客户机:

[root@localhost ~]#showmount -e192.168.10.253/查看NFS共享列表

Export list for 192.168.10.253:

/root 192.168.10.88

[root@localhost ~]#service portmap restart

[root@localhost ~]#chkconfig portmap on

[root@localhost ~]# mkdir /mnt/nfs

[root@localhost ~]#mount 192.168.10.253:/root/ /mnt/nfs//挂载

[root@localhost ~]# cd /mnt/nfs/

[root@localhost nfs]# ls

anaconda-ks.cfgDesktopinstall.loginstall.log.syslog

[root@localhost nfs]# touch bb

[root@localhost nfs]# ls

aanaconda-ks.cfgbbDesktopinstall.loginstall.log.syslog

[root@localhost nfs]# ls -l file1.txt

Exportfs–rv  修改配置文件后重新发布配置