[Ubuntu]NFS server

Ubuntu
回覆文章
schumi
Site Admin
文章: 696
註冊時間: 2004-04-15 14:30:34

[Ubuntu]NFS server

文章 schumi »

from http://go-linux.blogspot.com/2007/07/ub ... erver.html

1. Install
$ sudo apt-get install nfs-common
$ sudo apt-get install nfs-kernel-server

2. 設定 /etc/exports (For example: 將/mnt/iso share給all net使用)
$ sudo vi /etc/exports
/mnt/iso *(ro,sync)

3. 啟動 nfs server
$ sudo /etc/init.d/nfs-kernel-server start

4. 檢查
$ showmount -e localhost
成功的話應該可以看到這樣的訊息:
Export list for localhost:
/mnt/iso *

或是 看一下 /var/log/daemon.log
schumi
Site Admin
文章: 696
註冊時間: 2004-04-15 14:30:34

RPC: Port mapper failure - RPC: Unable to receiver

文章 schumi »

http://www.blueshop.com.tw/board/FUM200 ... 4158S.html

可能出現的問題很多﹐首先確定 portmap 服務是否有跑起來﹐可以用 rpcinfo 來檢查﹕

rpcinfo -p rh71
如果沒發現用 portmapper 的服務﹐您可以試試將之重新啟動﹕

service portmap restart


不過﹐執行之後﹐請重新啟動 nfs ﹐以及其它所有和 portmap 相關的服務(因為它們會因為 portmap 重啟而失效(最好用 rpcinfo 來確認)。

還有另外的情形﹐可能是 portmap (tcp & udp port 111) 的連線被防火牆擋掉了。或是 xinetd 那邊沒開放 portmap 服務﹐例如在 /etc/hosts.deny 中設定了 "ALL: ALL"﹐那您可以修改 /etc/hosts.allow ﹕

portmap: 192.168.100., .siyongc.domain
yehlu
Site Admin
文章: 3244
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

Re: [Ubuntu]NFS server

文章 yehlu »

NFS server

代碼: 選擇全部

apt-get install nfs-server
vim /etc/exports

代碼: 選擇全部

/mnt/sda1       10.15.10.3(rw,sync,no_root_squash,no_subtree_check)
NFS Client

代碼: 選擇全部

apt-get install nfs-client
Mount NFS

代碼: 選擇全部

mount 10.15.10.2:/mnt/sda1 /mnt/nfs01/
回覆文章

回到「Ubuntu」