ccsee=pine,root=pine /export/swap/pine -accsee=pine,root=pine (access=client , root=hostname 如此只有这一台client的superuser有权力rw)
□ Setting Up a NFS Client
1. 宣告机器为没有磁碟机或没有资料的Client,在使用SunInstall之前 2. 编辑好 /etc/fstab 这一个档,确定要mount的路径都在fstab中 3. 依照fstab所设的内容,在Client上设定好Mount points (mount_points 就是用mkdir 设exports所输出的路径) 4. 确定我们所要mount的路径,都有出现在 /etc/exports 中 5. 可以启动mount去连结server上的directories ( mount -a )
/etc/fstab 档的□例 ● syntax filesystem directory type options freq pass oak:/export/root/boomer / nfs rw 0 0 ^^^ 因为档案在server上,not on client 所以client的设定为0 oak:/export/exec/sun3 /usr nfs ro 0 0 oak:/export/exec/kvm/sun3 /usr/kvm nfs ro 0 0 oak:/usr/share /usr/share nfs ro 0 0 oak:/home/oak /home/oak nfs rw,bg 0 0
§ mount 的语法
● syntax : mount -t type [-rv] -o [option] server:pathname /mount_point MOUNT : mount -a 把/etc/fstab 中所列的路径全部挂上 mount -o ro,soft,bg dancer:/usr/local /usr/local/dancer 把dancer server 的/usr/local mount 到 client的 /usr/local/dancer 并且是read only
-t type : 你所要mount的型别, 如 nfs or 4.2 -r : 所mount的路径定为read only -v : mount过程的每一个动作,都有messages 传回到萤幕上 hard : 重复要求,直到server回应为止,但如server一直不回应 the server may be down ! soft : 当client的请求得不到回应,retry one ti上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] 下一页 |