View previous topic :: View next topic |
Author |
Message |
donaldino n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 26 Jan 2006 Posts: 24 Location: Germany
|
Posted: Sat Apr 01, 2006 6:20 pm Post subject: [SOLVED] no graphical login after nfs mount |
|
|
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
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 |
|
![](templates/gentoo/images/spacer.gif) |
erik258 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/18778702754589d89edad52.gif)
Joined: 12 Apr 2005 Posts: 2650 Location: Twin Cities, Minnesota, USA
|
Posted: Sat Apr 01, 2006 9:26 pm Post subject: jsut some guesses |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
donaldino n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 26 Jan 2006 Posts: 24 Location: Germany
|
Posted: Sun Apr 02, 2006 9:54 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
erik258 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/18778702754589d89edad52.gif)
Joined: 12 Apr 2005 Posts: 2650 Location: Twin Cities, Minnesota, USA
|
Posted: Sun Apr 02, 2006 3:50 pm Post subject: is it timing out |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
donaldino n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 26 Jan 2006 Posts: 24 Location: Germany
|
Posted: Mon Apr 03, 2006 7:43 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
erik258 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/18778702754589d89edad52.gif)
Joined: 12 Apr 2005 Posts: 2650 Location: Twin Cities, Minnesota, USA
|
Posted: Mon Apr 03, 2006 7:58 pm Post subject: congradulations |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|