LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-11-2006, 06:52 AM   #1
ziobudda
LQ Newbie
 
Registered: Jan 2006
Posts: 14

Rep: Reputation: 0
NFS client hangs when write


Ok, the subject is strange and sorry for my bad english. But I have
this problem:

I have installed SLES 9 SP2 (try SP3 with same result) in a Dell PowerEdge 2800. I have setup 2
NFS directory: /home/ and /var/sharing/ with normal option
(rw,root_squash,sync). And the server is LDAP server for my user
(login), too. I have installed SUSE 10.0 (not opensuse) onto the client
and mount /home and /var/sharing. The problem is: when I write a file
into NFS share my client freeze/hangs. I can do only a brutal reset.
I have tried to change root_squash to no_root_squash and sync to async.
Nothing. Same Problem.

I have make another test: boot clien, before try to write into NFS
share, I "restart" the NFS server service. Magically the write works.

I have make some other test and I have found a strange thing:

- Boot server,
- boot client.
- From client (via console)
- login with root account,
- make a ssh connection to the server
- into the server I exec tail -f /var/log/message
- From client (via X11) login with user account (/home/ is via NFS)
NO FREEZE!!!!!!!!!!

Plz Help me.

Ah, my network is a "internal network", so I have not a gateway for
internet, no DNS. Only IP. I have tried to insert the IP-NameMachine
into /etc/hosts, but the result is the same.

Please please please, help me.

M.
 
Old 04-12-2006, 01:37 PM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
I have had this behaviour when the client wants to use NFS locking but the server didn't provide it. That's one thing you could check.
 
Old 04-13-2006, 05:09 AM   #3
ziobudda
LQ Newbie
 
Registered: Jan 2006
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by uselpa
I have had this behaviour when the client wants to use NFS locking but the server didn't provide it. That's one thing you could check.
How can I check it ?

Tnx tnx.
 
Old 04-13-2006, 07:41 AM   #4
haochela
LQ Newbie
 
Registered: Jan 2006
Posts: 16

Rep: Reputation: 0
2 questions:

1) Can you post the line you have in /etc/exports that enables nfs client access from your server?
2) Are you surethat your ldap client is running on the client machine?
 
Old 04-14-2006, 06:42 AM   #5
ziobudda
LQ Newbie
 
Registered: Jan 2006
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by haochela
2 questions:

1) Can you post the line you have in /etc/exports that enables nfs client access from your server?
Standard *(rw,no_root_squash,sync).
I have tried with async too.

Quote:
Originally Posted by haochela
2) Are you surethat your ldap client is running on the client machine?
Yes. I can login with normal user into the client. And a "ls -la" report correct user-group for files.

Ah, I have notice this: when I log into client I can list the directory, cd into subdir, delete the files without freeze/hangs, but this two line freeze:

$ touch somedata > filenime
$ dir
[freeze/hang]

Tnx.
 
Old 04-14-2006, 11:40 PM   #6
haochela
LQ Newbie
 
Registered: Jan 2006
Posts: 16

Rep: Reputation: 0
Check your client machine's /etc/passwd file. Do the uid and gid numbers match what's stored for this same id in /etc/passwd on your nfs server?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 06:16 AM
Iptables denies NFS to client and hangs ethics Linux - Networking 7 11-21-2005 07:59 PM
NFS - write error from client to host echo_max Linux - Software 0 07-25-2005 04:17 AM
NFS client write permissions tireseas Linux - Networking 5 05-03-2005 08:52 AM
NFS hangs (server: 2.4.21, client: 2.6.6) grabner Linux - Networking 0 05-31-2004 01:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration