顯示具有 nfs 標籤的文章。 顯示所有文章
顯示具有 nfs 標籤的文章。 顯示所有文章

2012年9月6日 星期四

CENTOS minimal NFS

預設沒有

yum -y install nfs-utils nfs-utils-lib

自己安裝

然後要記得開 rpcbind 

# /etc/init.d/rpcbind start設定開機時啟動
# chkconfig --level 3 rpcbind on

2011年12月13日 星期二

NFS , RedHat

RedHat release 內應該都會有內建 NFSD


  • service nfs {start|stop|restart|status}
  • 設定檔在
    /etc/exports
  • 使用  exportfs -ra 做 Reload

參考

2011年12月12日 星期一

NFS Ubuntu

基本操作
  • Start
    service  nfs-kernel-server start
  • Stop
    service  nfs-kernel-server stop
  • Restart
    service  nfs-kernel-server restart
  • 重新讀設定檔 ( /etc/exports )
    exportfs -ra
疑難雜症

NFSD , AIX Server , Linux client

Server Side
  1. check nfs service
    lssrc -g nfs  , check nfsd, rpc.mounted is active
    start nfs services group : startsrc -g nfs 
    start single service :  startsrc -s nfsd
  2. 服务器添加需要export的FS
    smit mknfsexp
  3. export服务器的FS
    /usr/sbin/exportfs -a
  4. 检查export的情况
    # hostnamet -e
    APP1
    # showmount -e APP1
    export list for APP1:
  5. 检查服务器端的/etc/hosts
    定义客户端的信息
    172.22.93.26            totoro.pacs.vghtc.gov.tw totoro
  6. restart nfs service
    stopsrc -g nfs
    startsrc -g nfs

Client Side

  1. 加入 /etc/hosts
  2. mount -t nfs f3n3:/worktmp/nmon /worktmp/f3n3 -o nfsvers=2 

Note : 
  • mount.nfs: Remote I/O error
    mount 時需加上  -o nfsvers=2