Friday, April 06, 2007

Setting up NFS server in FC6

Here is my notes on setting up the NFS server in FC6 for my home network.

Setting up the server:

1.
For a start one need to go to System, Administration, Server Settings, NFS.

Under Basic settings.

Directory : /home/coyote/Archive
Host: 192.168.0.0/255.255.255.0
Basic Permission: Read-only/Read/Write.


1st line: means sharing /home/coyote/Archive on the server
2nd line: all pc under the subnet 192.16.0.0 are allowed acces
3rd line: Read-only or Read & Write access.


Alternatively, one can edit the file /etc/exports to enable the same
settings manually. My /etc/exports looks like this:

/home/coyote/Archive 192.168.0.0/255.255.255.0(rw,sync)

2.
Create the file "/etc/sysconfig/nfs" and add the following contents:

STATD_PORT=4001
LOCKD_TCPPORT=4002
LOCKD_UDPPORT=4002
MOUNTD_PORT=4003

3.
Append the following to the file "/etc/services":

rquotad 4004/tcp # rpc.rquotad tcp port
rquotad 4004/udp # rpc.rquotad udp port

4.
Restart the nfs services:

/etc/init.d/nfs restart
/etc/init.d/nfslock restart

5.
Run /usr/sbin/rpcinfo -p and make sure all the ports above have changed.

6.
Next go to System, Administration, Security & Firewall

Check NFS4 as 'Trusted Services"
Under other ports, add the following ports

111:udp
111:tcp
2049:udp
2049:tcp
4001:udp
4001:tcp
4002:udp
4002:tcp
4003:udp
4003:tcp
4004:udp
4004:tcp


That pretty much sums up all the work to be done on the server.


Next, mounting the NFS volume from the client computer:

First, one need to create a mount point of your choice.
I created one under /home/username/nfsserver

using mkdir /home/username/nfsserver

To mount the volume manually, with root access,

mount -t nfs 192.168.0.9:/home/coyote/Archive home/username/nfsserver

where 192.168.0.9 is the ip address of the nfs server.

To mount the volume automatically, add the line to /etc/fstab. Mine looks like this

192.168.0.9:/home/coyote/Archive /home/username/nfsserver nfs ro 0 0

To enable the access over the internet, both the ip addresses of the nfs server & the nfs clients are to be replaced with corresponding dns names. Example above is valid only for access across a local network.

One can register domain names for the nfs server & nfs client from dyndns.org. After that, replaces the ip address of the nfs client with the new dns name. This is to be entered into the 'Host' section in the server's settings. Replaces the ip address of the nfs server with the new dns name. This is done during the mounting command or in /etc/fstab.

Note also, if your nfs server is running behind a router or a firewall, one will need to open up port 111:tcp, 111:udp, 2049:tcp & 2049:udp to the nfs server. That is done via the router's setting.

There, that concludes my learning in setting up a NFS server in FC6.

6 Comments:

Blogger eblogkpn said...

蘭花 化糞池 抽化糞池 便宜機票 國內旅遊 抽水肥 太陽能 水管不通 洗水塔 消毒 通水管 通馬桶 馬桶 馬桶不通 上順旅行社 五福旅行社 大興旅行社 天喜旅行社 天福旅行社 日本旅行社 日本旅遊 日本機票 日本自由行 日本訂房 包通 抽化糞池 抽水肥 水管不通 洗水塔 自由行 訂房 雄獅旅遊 汽車美容 汽車美容 三久太陽能黃金價格查詢 貸款 信用貸款

11:34 PM  
Blogger eblogkpn said...

股票教學 股市分析 股市億萬贏家 股票軟體 股票行情 ferrari 賣車 賓士 lexus紙袋印刷 會場設計 貸款 票貼 二胎 包裝紙盒融資 工商融資 支票貼現 借款 法律事務所 馬桶不通 food forming patty machine boiling machine 化妝品包 裝 紙盒 breading machine vegetable machinePlastic Drinking Cups宜蘭民宿 宜蘭旅遊教育訓練 品質管理 Ohsas 18001

11:35 PM  
Blogger eblogkpn said...

彌月 離婚 獸醫院 寵物住宿 白內障 心絲蟲 腎衰竭 狗皮膚病RF PCB Rigid-Flex PCB 動物醫院 洗鞋店 加盟 洗鞋 洗包包 洗鞋加盟 酒店式公寓旅行社slot machine manufacturer 杭州旅遊北京自由行上海自由行旅遊網律師 台北民宿 手提紙袋 紙袋工廠 包裝紙袋 手提袋 包裝盒

11:35 PM  
Blogger eblogkpn said...

房屋貸款 剖腹生產 姓名配對 星座 星座運勢 算命 素食料理 素食水餃 開運印章 風水 外遇 徵信 壁癌 屋頂防水 屋頂隔熱 抓漏 油漆 徵信社 外遇 徵信 徵信社 外遇 徵信 徵信社 外遇 徵信 徵信社 外遇 徵信 徵信社 外遇

11:36 PM  
Blogger eblogkpn said...

喜餅禮盒 < 塑膠射出 塑膠射出廠 模具設計 Precision Mold加盟創業 冷凍宅配 宅配美食 Light guide panels Plastic Products Mold design 沖孔網
飛梭雷射 柔膚雷射 獸醫師 創業鞋之澡堂 洗鞋子 洗包包加盟彌月禮盒 彌月禮 玻尿酸 皮膚科 皮膚科診所 肉毒桿菌 肉毒桿菌瘦臉 脈衝光 除斑 Flex PCB PCB Electronic PCB中華湯包湯包桃園房屋買賣桃園房屋仲介桃園房屋買賣桃園房屋仲介乳癌 全身健康檢查 自由行 三久 太陽能 三久太陽能 太陽能熱水器 環保袋 慈善基金會 慈善機構 租辦公室 租店面 買辦公室電波拉皮 hand dryer 電波拉皮

11:36 PM  
Blogger eblogkpn said...

熱轉印 團體服訂做 健康食品 慈善基金會 公益團體 愛心捐款 捐款 美白 皺紋 減肥 禿頭 醫學美容 電波拉皮 雷射溶脂 肉毒桿菌 玻尿酸 痘疤 婦產科診所 室內設計 埋線 內分泌失調 黃體不足 針灸減肥 坐月子中心 婦產科 月子中心 全身健康檢查玫瑰花束 盆栽 網路花店 花店 鍛造 樓梯扶手 欄杆 鐵門 採光罩 清水溝 通水管 通馬桶喜餅價格 訂婚禮盒 訂婚喜餅 <宜蘭民宿泰國關鍵字廣告 seo seo 線上客服 seo 網頁設計 seo 網頁設計公司
雷射溶脂 gaming machine 大陸直航新竹餐廳下午茶

11:37 PM  

Post a Comment

<< Home