NFS Client(用戶端)設定
CentOS release 6.3 (Final)
將遠端主機
163.17.50.XXX 的 /mnt/array1/backup/
鏈結到本機的 /backup/
啟動 rpcbind nfslock (CentOS 5.x 以前為 portmap; CentOS 6.x 之後稱為 rpcbind )
# /etc/init.d/rpcbind start
# /etc/init.d/nfslock start
設定開機時啟動
# chkconfig rpcbind on
# chkconfig nfslock on
連結主機
mount -t nfs 163.17.50.XXX:/mnt/array1/backup/ /backup
出現錯誤訊息
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
mount.nfs: an incorrect mount option was specified
依建議(加參數 -o nolock)將連結指令改為
mount -t nfs 163.17.50.XXX:/mnt/array1/backup/ /backup -o nolock
成功鏈結 NFS Server
參考網頁:
http://linux.vbird.org/linux_server/0330nfs.php
http://yushiangfu.blogspot.tw/2010/03/nfs-server.html
沒有留言:
張貼留言