View previous topic :: View next topic |
Author |
Message |
mattes Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/20778447834900a47216c53.jpg)
Joined: 23 Jul 2008 Posts: 263 Location: München, Bavaria, Germany
|
Posted: Sat Nov 01, 2008 2:40 pm Post subject: Nfs3->nfs4 |
|
|
Hello,
I actually try to switch from NFS3 to NFS4.
After activating NFS4 options in the Kernel (incl compile an INstall aof course) nothing changed
Code: | # rpcinfo -p
Program Vers Proto Port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 4000 status
100024 1 tcp 4000 status
100005 1 udp 4002 mountd
100005 1 tcp 4002 mountd
100005 2 udp 4002 mountd
100005 2 tcp 4002 mountd
100005 3 udp 4002 mountd
100005 3 tcp 4002 mountd
100021 1 udp 51554 nlockmgr
100021 3 udp 51554 nlockmgr
100021 4 udp 51554 nlockmgr
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100021 1 tcp 36565 nlockmgr
100021 3 tcp 36565 nlockmgr
100021 4 tcp 36565 nlockmgr
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
uname:
Linux 2.6.25-gentoo-r8 #2 SMP PREEMPT Mon Oct 6 18:24:54 CEST 2008 i686 Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz GenuineIntel GNU/Linux
|
No NFS4 running
I remerged NFS-Utils (1.1.1), built NFS-Support as modules an tryed some other things, but cant get it working.
Any Ideas? does anybody use NFS4?
Regrads Mattes |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
tarpman Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/194464846347fed31505afc.jpg)
Joined: 04 Nov 2004 Posts: 1083 Location: Victoria, BC, Canada
|
Posted: Sat Nov 01, 2008 4:54 pm Post subject: |
|
|
Code: | cat /proc/filesystems
cat /etc/exports |
_________________ Saving the world, one kilobyte at a time. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mattes Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/20778447834900a47216c53.jpg)
Joined: 23 Jul 2008 Posts: 263 Location: München, Bavaria, Germany
|
Posted: Sat Nov 01, 2008 8:16 pm Post subject: |
|
|
Code: |
$ cat /etc/exports
# /etc/exports: NFS file systems being exported. See exports(5).
/mnt/exports *(ro,fsid=0,insecure,no_subtree_check,sync)
|
Code: |
$ cat /proc/filesystems
nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev binfmt_misc
nodev sockfs
nodev usbfs
nodev pipefs
nodev anon_inodefs
nodev futexfs
nodev tmpfs
nodev inotifyfs
nodev devpts
ext3
ext2
cramfs
squashfs
nodev ramfs
nodev coda
msdos
vfat
iso9660
nodev nfs
nodev nfsd
nodev smbfs
nodev cifs
ntfs
ufs
udf
nodev mqueue
nodev rpc_pipefs
nodev fuse
fuseblk
nodev fusectl
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
overkll Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 21 Sep 2004 Posts: 1249 Location: Austin, Texas
|
Posted: Sat Nov 01, 2008 8:38 pm Post subject: |
|
|
I thought I remembered reading that in order to use NFS4, the mountpoint needs to be /exports, not /mnt. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mattes Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/20778447834900a47216c53.jpg)
Joined: 23 Jul 2008 Posts: 263 Location: München, Bavaria, Germany
|
Posted: Mon Nov 03, 2008 6:13 pm Post subject: |
|
|
Hi,
overkll wrote: | I thought I remembered reading that in order to use NFS4, the mountpoint needs to be /exports, not /mnt. |
I dont think so. It has to be a signle directory (other dirs have to be bind-mounted inside it) but you can choose it yourself.
However with /exports it doesnt work either.
regrads |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
overkll Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 21 Sep 2004 Posts: 1249 Location: Austin, Texas
|
Posted: Mon Nov 03, 2008 7:14 pm Post subject: |
|
|
You may want to double-check your kernel options. There are two sections for nfs - one for client and one for server. Did you enable the right one or both?
Also check to make sure nfs-utils is installed with the use flag `-nonfsv4`. Other than that, I'm out of ideas.
Good luck. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mattes Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/20778447834900a47216c53.jpg)
Joined: 23 Jul 2008 Posts: 263 Location: München, Bavaria, Germany
|
Posted: Wed Nov 05, 2008 4:12 pm Post subject: |
|
|
Code: |
I] net-fs/nfs-utils
Available versions: 1.0.12-r1 ~1.0.12-r5 1.1.0-r1 (~)1.1.1 ~1.1.1-r1 ~1.1.2 ~1.1.2-r1 1.1.3 ~1.1.4 {kerberos nonfsv4 tcpd}
Installed versions: 1.1.3(18:58:12 28.10.2008)(tcpd -kerberos -nonfsv4)
|
Code: |
│ ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │
│ │ --- Network File Systems │ │
│ │ <*> NFS file system support │ │
│ │ [*] Provide NFSv3 client support │ │
│ │ [*] Provide client support for the NFSv3 ACL protocol extension │ │
│ │ [*] Provide NFSv4 client support (EXPERIMENTAL) │ │
│ │ [*] Allow direct I/O on NFS files │ │
│ │ <*> NFS server support │ │
│ │ [*] Provide NFSv3 server support │ │
│ │ [*] Provide server support for the NFSv3 ACL protocol extension │ │
│ │ [*] Provide NFSv4 server support (EXPERIMENTAL) │ │
│ │ -*- Provide NFS server over TCP support │ │
│ │ [*] Support for rpcbind versions 3 & 4 (EXPERIMENTAL) │ │
│ │ -*- Secure RPC: Kerberos V mechanism (EXPERIMENTAL) │ │
│ │ <*> Secure RPC: SPKM3 mechanism (EXPERIMENTAL) │ │
│ │ < > SMB file system support (OBSOLETE, please use CIFS) │ │
│ │ <*> CIFS support (advanced network filesystem, SMBFS successor) │ │
│ │ [*] CIFS statistics │ │
│ │ [ ] Extended statistics │ │
│ │ [*] Support legacy servers which use weaker LANMAN security │ │
│ │ [*] CIFS extended attributes │ │
│ │ [*] CIFS POSIX Extensions │ │
│ │ [ ] Enable additional CIFS debugging routines │ │
│ │ [ ] CIFS Experimental Features (EXPERIMENTAL) │ │
│ │ < > NCP file system support (to mount NetWare volumes) │ │
│ │ < > Coda file system support (advanced network fs) │ │
│ │ < > Andrew File System support (AFS) (EXPERIMENTAL) │ │
│ │ |
NFS4 client and Server support are enabled.
RC:
Code: | nfs | default
nfsmount |
nscd |
ntp-client | default
ntpd |
numlock | default
pe-format |
portmap | default
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mattes Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/20778447834900a47216c53.jpg)
Joined: 23 Jul 2008 Posts: 263 Location: München, Bavaria, Germany
|
Posted: Wed Nov 05, 2008 4:40 pm Post subject: |
|
|
I've played a little bit with kernel options an now ist works
Code: |
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │
│ │ --- Network File Systems │ │
│ │ <*> NFS file system support │ │
│ │ [*] Provide NFSv3 client support │ │
│ │ [ ] Provide client support for the NFSv3 ACL protocol extension │ │
│ │ [*] Provide NFSv4 client support (EXPERIMENTAL) │ │
│ │ [ ] Allow direct I/O on NFS files │ │
│ │ <*> NFS server support │ │
│ │ [*] Provide NFSv3 server support │ │
│ │ [ ] Provide server support for the NFSv3 ACL protocol extension │ │
│ │ [*] Provide NFSv4 server support (EXPERIMENTAL) │ │
│ │ -*- Provide NFS server over TCP support │ │
│ │ [*] Support for rpcbind versions 3 & 4 (EXPERIMENTAL) │ │
│ │ -*- Secure RPC: Kerberos V mechanism (EXPERIMENTAL) │ │
│ │ < > Secure RPC: SPKM3 mechanism (EXPERIMENTAL) │ │
│ │ < > SMB file system support (OBSOLETE, please use CIFS) │ │
│ │ <*> CIFS support (advanced network filesystem, SMBFS successor) │ │
│ │ [ ] CIFS statistics │ │
│ │ [*] Support legacy servers which use weaker LANMAN security │ │
│ │ [*] CIFS extended attributes │ │
│ │ [*] CIFS POSIX Extensions │ │
│ │ [ ] Enable additional CIFS debugging routines │ │
│ │ [ ] CIFS Experimental Features (EXPERIMENTAL) │ │
│ │ < > NCP file system support (to mount NetWare volumes) │ │
│ │ < > Coda file system support (advanced network fs) │ │
│ │ < > Andrew File System support (AFS) (EXPERIMENTAL) │ │
│ │ │ │
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
overkll Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 21 Sep 2004 Posts: 1249 Location: Austin, Texas
|
Posted: Thu Nov 06, 2008 6:32 pm Post subject: |
|
|
Congratulations. You should add "Solved" to the subject line of your original post. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|