LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 11-02-2006, 01:09 AM   #1
skellert
LQ Newbie
 
Registered: Nov 2006
Posts: 9

Rep: Reputation: 0
FC6 broken with NFS-mounted /home directories?


I've been using FC4 and FC5 on my home network for the past couple of years. I have one FC5 fileserver and half a dozen FC5 boxes around the home which nfs-mount home directories. With FC4 and FC5, all was good (and still is for those machines).

I'm trying to migrate one of my computers to FC6. I've run through the installation several times now... the process goes like this....

Install off DVD, create a root account and then boot. Disable SELINUX, edit fstab to add the network /home partition and copy across the passwd, group, shadow, gshadow files.. log out and log in as one of the regular users.

KDE hangs at the "initializing system services" stage. After 20 seconds, the blinking status box in the middle of the screen disappears and I'm left with the fedora 6 background image. After about 5 minutes, the user finishes logging in. If I try to run any application, it takes about another 5 minutes for the application to open. The machine is more or less unusable like this and I've been racking my brain and google looking for the cure....

When I network mount the /root directory via an fstab entry, I can log straight in as root no problems. its only when I log in as a regular user, any regular user.

When I change the desktop environment to gnome instead of KDE, regular users can log straight in without delay (and so can root). However when opening most applications (firefox, thunderbird, konsole, ...) nothing happens for 5 minutes and eventually, the application opens, as it was with KDE as mentioned above. xterms are an exception - they come up straight away all the time.

Instead of static mounting via fstab, I've tried setting up the nfs shares using autofs. The nfs mounts have no trouble mounting. I experience the same delays with KDE (hanging at the "initializing system services") and Gnome.

If I change the runlevel in inittab to 3 and bring up a text console instead of a graphical login, I can log in as root or a regular user and text mode works fine. If I then run "startx", all of the delays mentioned before are back the same way.

I temporarily gave up on the network mounting. I copied the network root and user directories onto the local hard drive, commented out the network mounting lines in fstab and rebooted. Now all users can log in and all applications work perfectly with no delay. Uncommenting the mount points in fstab (or the autofs config files) instantly brings back the delays... and I double checked that the contents of the network directories is *identical* to the contents of the copies I made on the local drive.

I've trawled the logfiles but I'm at a loss to find one that sheds any light. I've no idea where to look to find a meaningful log trace for these issues.

Oh... when i run 'top' via a telnet session, I can see that the CPU is sitting more or less idle while the graphical console is hung. Its kind of like its doing a DNS timeout or something, but the names are being resolved just fine.

I'm **really** frustrated and about to throw in the towel. Does anybody have any experience with this?
 
Old 11-02-2006, 07:16 PM   #2
skellert
LQ Newbie
 
Registered: Nov 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Anybody know if kde now implements file locking???

Not a lot of comment on my problem so far.

Thinking more about it, does anybody know if there have been any file locking changes between FC5 and FC6. I've had problems with file locks over NFS shares before because NFS doesn't support file locks well.
 
Old 11-02-2006, 10:37 PM   #3
skellert
LQ Newbie
 
Registered: Nov 2006
Posts: 9

Original Poster
Rep: Reputation: 0
desktop hang solved

The solution to this problem lay somewhere I didn't expect...

The file server on which I was mounting /home also has a shorewall firewall running. I've had to statically map the NFS ports using an /etc/sysconfig/nfs file defining the static port numbers, as referenced from /etc/init.d/nfs*

I've not needed to bind nlockdmgr to anything specific in the past. It seems as though I was exporting NFS to FC5 systems without locking the nlockmgr down. This is not the case with FC6 - nlockmgr does need to be locked down. So I statically locked the additional ports, opened shorewall pinholes, and the desktop delays disappeared.

Hope this helps somebody else.
 
  


Reply

Tags
fc6, kde, nfs


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
.forward file not working for user having it's home directoryon NFS mounted directory skverma_in Linux - General 0 02-14-2005 02:54 AM
NFS: a mounted to b, b mounted to c, c can't read a? Steve Cronje Linux - Networking 9 10-25-2004 09:51 AM
I have an nfs mounted /home and 'adduser' fails to create a new user dipukm Linux - Software 4 06-01-2004 06:38 PM
NFS Home directories for laptops IndustrialGeek Linux - Newbie 1 05-20-2004 09:27 AM
NIS/NFS and sharing home directories grebo Linux - Networking 1 09-21-2001 11:21 PM


All times are GMT -5. The time now is 09:28 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration