Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] no graphical login after nfs mount
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
donaldino
n00b
n00b


Joined: 26 Jan 2006
Posts: 24
Location: Germany

PostPosted: Sat Apr 01, 2006 6:20 pm    Post subject: [SOLVED] no graphical login after nfs mount Reply with quote

Hello everyone,

First of all, I'm not sure whether my problem is network or X related. I hope some of you can tell me :lol:
I have two gentoo boxes running. One of them should act as a nfs server for the /home directory.
The server is running KDE. The slow second box is currently using gdm to start fluxbox.
gdm and fluxbox work as long as the /home directory is not mounted on the nfs client.
If the /home directory is mounted via nfs, the graphical login fails. In fact, it seems as if it's not compleeted.
The screen becomes black and a mouse pointer is available but nothing more happens.
However, if I switch to a console directly after the boot process each user can login and has access to the mounted /home directory.
Again, this non-graphical login is only possible as long I did not try to login graphically. After a graphical login try it is not even possible to auto-complete dirctory paths starting with "/ho". The client is also not reachable from the server after the graphical login try (ping is possible, ssh freezes).

Here is the /etc/exports of the server machine:
Code:

# /etc/exports: NFS file systems being exported.  See exports(5).
/home rembrandt(sync,rw) rubens(sync,rw)

and here the nfs /etc/fstab line of the client:
Code:

rembrandt:/home   /home     nfs       defaults       0 0


What surprises me most is the fact that everything works as long as X is not involved.

Thanks for any help


Last edited by donaldino on Sun Apr 02, 2006 9:55 am; edited 1 time in total
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Sat Apr 01, 2006 9:26 pm    Post subject: jsut some guesses Reply with quote

I know this isn't too helpful but i also noticed this post hasn't yet been answered even once so ...

Do you think it's a problem with file locking? I know nfs is infamous for problems like that, related to locking...

Have you tried looking at the X logs? That might be a good start at diagnosis...
Back to top
View user's profile Send private message
donaldino
n00b
n00b


Joined: 26 Jan 2006
Posts: 24
Location: Germany

PostPosted: Sun Apr 02, 2006 9:54 am    Post subject: Reply with quote

Finally I got it working.

I do not know why but changing the /etc/fstab of the client from
Code:

[...]
rembrandt:/home         /home           nfs   defaults          0 0
[...]

to
Code:

[...]
rembrandt:/home         /home           nfs   rw,timeo=14,intr,rsize=8192,wsize=8192 0 0
[...]

did the trick. If anyone of you knows why, I'd like to know.

@erik258 Thank you for trying helping me.
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Sun Apr 02, 2006 3:50 pm    Post subject: is it timing out Reply with quote

maybe it was locking on mount? something like nfs mount didn't have right options in fstab, so it wasn't able to mount properly, and then it just hung, so X in turn hung trying to write some file to the user's home directory. or something.

ps are you sure it's actually mounting and not timing out?
Back to top
View user's profile Send private message
donaldino
n00b
n00b


Joined: 26 Jan 2006
Posts: 24
Location: Germany

PostPosted: Mon Apr 03, 2006 7:43 am    Post subject: Reply with quote

Yes, I'm sure since I was able to listen to some music stored in the /home directory.

Anyway, thanks for your help.
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Mon Apr 03, 2006 7:58 pm    Post subject: congradulations Reply with quote

congradulations on getting it to work...

i don't know why it wasn't working before but i think it's a good bet that it had something to do with the default nfs mounting options.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum