1 |
Hi All, |
2 |
|
3 |
After bringing the NAS up mentioned here earlier on the list I'm |
4 |
having an "interesting" problem with NFS on it. |
5 |
|
6 |
We export the storage using nfs version 3. |
7 |
Copies onto the local filesystem on the NAS run fine, copying over |
8 |
the network with scp and the like works fine as well. |
9 |
|
10 |
However writing to an nfs-share from a different machine truncates |
11 |
files at random sizes which appear to be multiples of 16K |
12 |
|
13 |
Following is output from a test-case: |
14 |
|
15 |
On the server in /etc/exports: |
16 |
/data/tools 10.10.0.0/24(rw,async,no_root_squash) 127.0.0.1/8 |
17 |
(rw,async,no_root_squash) |
18 |
|
19 |
Kernelsymbols: |
20 |
Linux spinvis 2.6.14.2 #1 SMP Wed Feb 8 23:58:06 CET 2006 i686 Intel |
21 |
(R) Xeon(TM) CPU 2.80GHz GenuineIntel GNU/Linux |
22 |
|
23 |
Similar behaviour is observed with gentoo-sources-2.6.14-r5, same |
24 |
options. |
25 |
|
26 |
gzcat /proc/config.gz | grep NFS |
27 |
|
28 |
CONFIG_NFS_FS=y |
29 |
CONFIG_NFS_V3=y |
30 |
CONFIG_NFS_V3_ACL=y |
31 |
# CONFIG_NFS_V4 is not set |
32 |
# CONFIG_NFS_DIRECTIO is not set |
33 |
CONFIG_NFSD=y |
34 |
CONFIG_NFSD_V2_ACL=y |
35 |
CONFIG_NFSD_V3=y |
36 |
CONFIG_NFSD_V3_ACL=y |
37 |
# CONFIG_NFSD_V4 is not set |
38 |
CONFIG_NFSD_TCP=y |
39 |
# CONFIG_ROOT_NFS is not set |
40 |
CONFIG_NFS_ACL_SUPPORT=y |
41 |
CONFIG_NFS_COMMON=y |
42 |
|
43 |
|
44 |
#root@cl36 ~ 20:29:44 > mount |
45 |
<partly snipped> |
46 |
10.10.0.80:/data/tools on /root/tools type nfs |
47 |
(rw,intr,lock,tcp,nfsvers=3,addr=10.10.0.80) |
48 |
#root@cl36 ~ 20:29:56 > for i in `seq 1 30`; do dd count=1000 if=/dev/ |
49 |
zero of=/root/tools/test.tst; ls -la /root/tools/test.tst ; rm /root/ |
50 |
tools/test.tst ; done |
51 |
1000+0 records in |
52 |
1000+0 records out |
53 |
dd: closing output file `/root/tools/test.tst': No space left on device |
54 |
-rw-r--r-- 1 root root 163840 Feb 8 20:30 /root/tools/test.tst |
55 |
1000+0 records in |
56 |
1000+0 records out |
57 |
dd: closing output file `/root/tools/test.tst': No space left on device |
58 |
-rw-r--r-- 1 root root 98304 Feb 8 20:30 /root/tools/test.tst |
59 |
1000+0 records in |
60 |
1000+0 records out |
61 |
dd: closing output file `/root/tools/test.tst': No space left on device |
62 |
-rw-r--r-- 1 root root 98304 Feb 8 20:30 /root/tools/test.tst |
63 |
1000+0 records in |
64 |
1000+0 records out |
65 |
dd: closing output file `/root/tools/test.tst': No space left on device |
66 |
-rw-r--r-- 1 root root 131072 Feb 8 20:30 /root/tools/test.tst |
67 |
1000+0 records in |
68 |
1000+0 records out |
69 |
dd: closing output file `/root/tools/test.tst': No space left on device |
70 |
-rw-r--r-- 1 root root 163840 Feb 8 20:30 /root/tools/test.tst |
71 |
<similar thus sniped> |
72 |
|
73 |
Anyone with ideas, please comment. |
74 |
|
75 |
I've so far found this: |
76 |
http://lwn.net/Articles/150580/ |
77 |
|
78 |
Which seems to indicate that RAID + LVM + complex storage and |
79 |
4KSTACKS can cause problems. However I can't find the 4KSTACK symbol |
80 |
anywhere in my config. |
81 |
|
82 |
Thanx, |
83 |
|
84 |
Ramon |
85 |
-- |
86 |
If to err is human, I'm most certainly human. |
87 |
|
88 |
|
89 |
|
90 |
-- |
91 |
gentoo-server@g.o mailing list |