我可以强制NFS自动安装使用NFSv3吗?

我有一个导出NFSv4以及NFSv3的Linux服务器。 我有一个Fedora14客户端,当从Linux服务器上挂载NFS共享时,它默认为NFSv4,这似乎是导致一些问题。 我的networking上的所有其他Linux客户端都通过NFSv3挂载没有问题,所以有一种方法可以告诉automount通过v3挂载共享?

我拉我的automount地图通过LDAP,与我的/etc/auto.master文件中的条目是这样的: +auto_master ,所以我认为它有点不同于列出选项与常规的自动挂载地图?

(.ie /home --nfsvers=3 fileserver:/DATA

在/ etc / sysconfig / autofs中,更改MOUNT_NFS_DEFAULT_PROTOCOLvariables。

 # MOUNT_NFS_DEFAULT_PROTOCOL - specify the default protocol used by # mount.nfs(8). Since we can't identify # the default automatically we need to # set it in our configuration. This will # only make a difference for replicated # map entries as availability probing isn't # used for single host map entries. # #MOUNT_NFS_DEFAULT_PROTOCOL=3 MOUNT_NFS_DEFAULT_PROTOCOL=4 

在那里有一些不同的automount架构,我不确定你是否使用了我们自己的那个。 但是,我们有LDAP条目,如:

 dn: automountKey=jon166t,automountMapName=home.map,dc=cs,dc=brown,dc=edu objectClass: automount automountKey: jon166t automountInformation: -intr,proto=tcp nfs.cs.brown.edu:/gpfs/main/home/jon166t 

“automountInformation”属性实际上只是一个string,就像静态自动挂载地图的RHS,或NIS中的一个一样。

我们有CentOS 5,Debian Etch(oldstable)和Debian Lenny(stable)指向这些地图。