You are not logged in.

#1 2005-10-15 15:09:57

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

[nfs] Server -> client = FAST, client -> server = SLOW

New install, new problems. :cry:

I reinstalled Arch on my server today. I setup NFS, exported a few dirs and started copying files back and forth.

With my Debian client, I get 50MBit/s over my 100MBit LAN when I copy files to the server. It's a Celeron 466 so I guess that's a fair speed. The load on the server during these ops is typically less than 0.05 (>1.00 on the client tho).
When I copy files from the server to my other (Arch) box, I get the full 100MBits! But, when I copy from this client to the server, nothing happens. Sometimes I can copy @ 5KBit/s, mostly the cp process just hangs.

This used to work fine before the reinstall tho. :?:

All the links are set to 100MBit Full-duplex.

Where do I look now?

Original post

I've got exported a directory on my nfs-server, which I can mount flawlessly on my client. However, df shows me an incorrect size and the mount only contains the top directories. There aren't any files.

/music on nfs-server

[16:57:09]root@accalia:/music $ du -hs
71G     .

mounted /music export on client

[17:04:41] root@ferro:/stuff/shared $ df -m | grep music
accalia.begaaid.be:/music 4749      1871      2879  40% /stuff/shared/mp3

ls -hal /music

drwxr-xr-x  6 fubar users   32 2005-07-29 03:18 .
drwxr-xr-x  7 fubar users 4.0K 2005-10-15 12:53 ..
drwxr-xr-x  2 fubar users    1 2005-07-29 03:18 albums
drwxr-xr-x  2 fubar users    1 2005-07-29 03:18 classical
drwxr-xr-x  2 fubar users    1 2005-07-29 03:18 comedy
drwxr-xr-x  2 fubar users    1 2005-07-29 03:17 incoming

The output on the client is similar, but when I enter any dir, it's empty on the client. On the server it's not.

I don't get this.  :?:


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#2 2005-10-16 07:23:32

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,328

Re: [nfs] Server -> client = FAST, client -> server = SLOW

do you get nfs timeout errors by typing dmesg in an other console?
i have such a problem on old laptops with pcmcia cards.

Offline

#3 2005-10-17 10:23:38

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: [nfs] Server -> client = FAST, client -> server = SLOW

No, I don't get any timeouts.

When I try to umount the share on the client, I do get this tho: [/

Bad UMNT RPC: RPC: Program/version mismatch; low version = 3, high version = 3
umount: /stuff/shared/mp3: device is busy
Bad UMNT RPC: RPC: Program/version mismatch; low version = 3, high version = 3
umount: /stuff/shared/mp3: device is busy

Man, this is strange.

[edit]
Forgot to close a window before umounting.  :oops:
[/edit]


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#4 2005-10-17 10:33:22

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: [nfs] Server -> client = FAST, client -> server = SLOW

I used Samba to export the same dir and it works flawlessly. I'd rather use NFS for exporting to Linux-boxes tho.


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#5 2005-11-03 13:35:15

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: [nfs] Server -> client = FAST, client -> server = SLOW

Switched to Debian Sarge because I suspected my Arch i586 being flaky, but the problem stays! WTF?!


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#6 2006-02-01 16:14:02

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: [nfs] Server -> client = FAST, client -> server = SLOW

I found out why won't work, ever! I'm exporting /export. In /export, I have various other mounts.

Everything works, apart from the mounts in /export: they show up empty on the clients. I have to export every mount-point explicitly.

Isn't there a possibility to just export /export and all its submounts?


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#7 2006-02-01 20:19:02

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: [nfs] Server -> client = FAST, client -> server = SLOW

I made a new opening thread! Go see!!


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#8 2006-02-02 11:13:28

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: [nfs] Server -> client = FAST, client -> server = SLOW

When I force the mount to use version 3 of NFS and sync (I exported the shares with the sync-option), I can now steadily write to the server. I'm only getting half the network speed: ~ 5MB/s.

I tried mounting it as nfs4, but apparently the nfsd4 is still a bit buggy.


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

Board footer

Powered by FluxBB