發表於 :
週四 4月 15, 2004 2:07 pm
由 zqyou
try :
/tmp 192.168.0.0/255.255.255.0(ro)
發表於 :
週四 4月 15, 2004 2:42 pm
由 seifer
後來好了
/etc/exports 改為
/home/seifer/mpi cluster2(sync,rw,all_squash) cluster3(sync,rw,all_squash) cluster4(sync,rw,all_squash)
然後每一台/etc/hosts 都紀錄 server 跟 client
每台client /etc/fstab都是
cluster1:/home/seifer/mpi /home/seifer/mpi nfs defaults 0 0
後來就可以mount
現在又遇到更麻煩的問題
startx變得很慢 ><
發表於 :
週四 4月 15, 2004 3:03 pm
由 seifer
自問自答 ^^
/etc/hosts裡面的 nickname
要跟 /etc/hostname一樣
這樣startx速度就正常
發表於 :
週四 4月 15, 2004 4:31 pm
由 seifer
現在又不知道怎麼了@@
#exportfs -rv 會很久
然後還出現
exporting cluster2:/home/seifer/mpi
exporting cluster2:/home/seifer/mpi to kernel
發表於 :
週四 4月 15, 2004 7:21 pm
由 seifer
在一次自問自答
/etc/resolv.conf裡面都刪掉即可
exportfs 快速
發表於 :
週五 4月 16, 2004 5:42 am
由 benny
resolv.conf都刪掉?那怎麼樣去lookup hostname?
發表於 :
週五 4月 16, 2004 9:23 am
由 zqyou
1. exports 裡面還是用 IP address 比較好吧, 這樣一來不用去做反查 IP 的動作, 當然會比較快.
2. 注意一下 /etc/host.conf 的 order
應該是 order hosts,bind
或許這樣就不需要把 resolv.conf 都清掉了吧 ?
3. 比較好的 hosts 的設定:
# for server
127.0.0.1 localhost
xxx.xxx.xxx.xxx(對外的 IP) (對外的 hostname)
192.168.0.254 server
192.168.0.1 cluster1
192.168.0.2 cluster2
.....
# for client (cluster1)
127.0.0.1 localhost
192.168.0.254 server
192.168.0.1 cluster1
4. 注意一下 nis data 的順序 /etc/nsswitch.conf
還不錯的參考文章:
http://www.dba-oracle.com/oracle_tips_linux_nfs.htm