最近在設定CentOS 6 的時候發現, NFS default 是用version 4. 不察之下發現設不起來 ><
底下是NFSv4 的設定
CentOS 6時,由於NFS為NFSv4,需多設定一個檔案為/etc/idmapd.conf 還有必須啟動rpcidmapd服務
Head Node
#### vi /etc/idmapd.conf
[General]
Verbosity = 1 #主要更改
# The following should be set to the local NFSv4 domain name
# The default is the host's DNS domain name.
Domain = snowfox #主要更改
.
. (略)
.
#Local-Realms =
[Mapping]
#Nobody-User = nobody
#Nobody-Group = nobody
然後 將rpcidmapd服務開啟 service rpcidmapd start chkconfig rpcidmapd --level 345 on
Child Node
[General]
Verbosity = 1 #主要更改
# The following should be set to the local NFSv4 domain name
# The default is the host's DNS domain name.
Domain = snowfox #主要更改
.
. (略)
.
#Local-Realms =
[Mapping]
#Nobody-User = nobody
#Nobody-Group = nobody
[Translation]
將rpcidmapd服務開啟
service rpcidmapd start
chkconfig rpcidmapd --level 345 on
再執行掛載,應該就不會發生使用者與群組被擠壓到nobody與nogrp。
[References]
NFSv4Howto
https://help.ubuntu.com/community/NFSv4Howto
NFSv4 Server設定
http://wiki.pastwind.org/home/linux_note/centos/nfsv4-server-she-ding
NFS v4
http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?post_id=6402
沒有留言:
張貼留言