1 |
On Sunday 29 June 2014 21:34:07 Alexander Puchmayr wrote: |
2 |
> Hi there, |
3 |
> |
4 |
> After upgrading my server to latest stable release of gentoo, none of my |
5 |
> clients is able to mount any nfs share from the server anymore. |
6 |
> |
7 |
> Symptoms: |
8 |
> $ mount -v -t nfs poseidon:/datadisk/ /mnt/gentoo/ |
9 |
> mount.nfs: timeout set for Sun Jun 29 19:33:40 2014 |
10 |
> mount.nfs: trying text-based options |
11 |
> 'vers=4,addr=192.168.1.6,clientaddr=192.168.1.2' |
12 |
> mount.nfs: mount(2): Protocol not supported |
13 |
> mount.nfs: trying text-based options 'addr=192.168.1.6' |
14 |
> mount.nfs: prog 100003, trying vers=3, prot=6 |
15 |
> mount.nfs: trying 192.168.1.6 prog 100003 vers 3 prot TCP port 2049 |
16 |
> mount.nfs: prog 100005, trying vers=3, prot=17 |
17 |
> mount.nfs: trying 192.168.1.6 prog 100005 vers 3 prot UDP port 60058 |
18 |
> mount.nfs: mount(2): Stale NFS file handle |
19 |
> mount.nfs: trying text-based options |
20 |
> 'vers=4,addr=192.168.1.6,clientaddr=192.168.1.2' |
21 |
> mount.nfs: mount(2): Protocol not supported |
22 |
> mount.nfs: trying text-based options 'addr=192.168.1.6' |
23 |
> mount.nfs: prog 100003, trying vers=3, prot=6 |
24 |
> mount.nfs: trying 192.168.1.6 prog 100003 vers 3 prot TCP port 2049 |
25 |
> mount.nfs: prog 100005, trying vers=3, prot=17 |
26 |
> mount.nfs: trying 192.168.1.6 prog 100005 vers 3 prot UDP port 60058 |
27 |
> mount.nfs: mount(2): Stale NFS file handle |
28 |
> [...] |
29 |
> mount.nfs: Connection timed out |
30 |
> $ |
31 |
> |
32 |
> [Poseidon is my server at 192.168.1.6, the client is at 192.168.1.2] |
33 |
> |
34 |
> Server disk to be exported is a ~9TB raid array with XFS. |
35 |
> |
36 |
> I'm using nfs3 with ACL and no idmapd; nfs4+ is not compiled into kernel |
37 |
> (neither on client nor on server); Why it is trying nfs4 first as seen in |
38 |
> the log above I don't know. nfs-utils has been compiled with USE=-nfsv4 |
39 |
> |
40 |
> Server has kernel version 3.12.21-gentoo-r1and net-fs/nfs-utils-1.2.9 |
41 |
> installed. As both clients and server are not accessable from outside, no |
42 |
> firewalls are installed. |
43 |
> |
44 |
> What I checked: |
45 |
> /etc/exports: |
46 |
> /datadisk 192.168.1.0/24(rw,async,subtree_check) |
47 |
> |
48 |
> portmapper, nfs-services are running normal, as far I can see. |
49 |
> |
50 |
> Does anyone have any suggestion? |
51 |
|
52 |
I have this occasionally due to the backup system I am using: |
53 |
- stop the nfs export |
54 |
- umount the filesystem |
55 |
- take LVM snapshot |
56 |
- remound filesystem |
57 |
- re-enable the nfs export |
58 |
|
59 |
When that happens, I run the following on the server: |
60 |
# exportfs -au && sleep 1 && mount -a && sleep 1 && exportfs -r |
61 |
|
62 |
The sleeps are necessary, without them, it doesn't always work. |
63 |
|
64 |
-- |
65 |
Joost |