做server
1:基本运行程序是/etc/init.d/rpc和/etc/init.d/nfs.server
启动服务
/etc/rc3.d/backup/S15nfs.server start
S15nfs.server包含了rpc和nfs.server,还有日志等一些其它有用的程序.建议用S15nfs.server启动nfs的server端
要是想每次从起后都运行,保证S15nfs.server在/etc/rc3.d目录下
2:共享目录
vi /etc/dfs/dfstab文件中有共享条目,这些共享目录会在守护进程启动时自动共享。
这些进程在系统进入运行级别2时自动运行。
挂接远程网络文件系统
# share -F nfs -o rw=engineering -d "home dirs" /export/home2
例如:share -F nfs -o ro=202.108.42.90:202.108.42.91 /home2
share -F nfs -o ro=@202.108.42.0/24 /home2
-o specific_options
The specific_options are used to control access of the
shared resource. (See share_nfs(1M) for the NFS
specific options.) They may be any of the following:
rw pathname is shared read/write to all clients.
This is also the default behavior.
rw=client[:client]... 或一个网段 rw=@202.108.42.0/24
pathname is shared read/write only to the listed
clients. No other systems can access pathname.
ro pathname is shared read-only to all clients.
ro=client[:client]... 或一个网段 rw=@202.108.42.0/24
pathname is shared read-only only to the listed
clients. No other systems can access pathname.
-d description
The -d flag may be used to provide a description of
the resource being shared.
dfshares命令
用以查看服务器的共享资源
dfmounts命令
服务器上查看共享资源被利用的状况
用nfsstat看nfs的全部状态
做client
1:基本运行程序是/usr/lib/nfs/statd和/usr/lib/nfs/lockd
启动服务
/etc/rc3.d/backup/S73nfs.client start
S73nfs.lient包含了statd和lockd,还有日志等一些其它有用的程序.建议用S73nfs.client启动nfs的client端
要是想每次从起后都运行,保证S73nfs.client在/etc/rc2.d目录下
阅读(682) | 评论(0) | 转发(0) |