LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 06-01-2007, 09:39 AM   #1
java8964
LQ Newbie
 
Registered: Jul 2002
Posts: 20

Rep: Reputation: 0
NFS and Samba problem in Suse 10.2


Hi, I have the following 2 problems about NFS and SAMBA service in my OpenSuse 10.2:

1) I have one solaris 10 X86 as the NIS server; one open suse 9.3, one redhat 4 AS as file servers in my home. Then I have 2-3 clients with Open suse 10.2. In each client, I create several nfs mounting in /etc/fstab file like this:

hostname:/sharename /localname nfs defaults 0 0

It works fine if everything is fine. But here is the problem:
If one of the file server (or both) is power off, then the client will have the problem to reboot. What I mean is that when the file servers are NOT available (off for example), if I reboot the client, the boot process will hang during the NFS mounting. In the console screen, it keeps showing like 'Importing NFS file .....' (Something like that). I know it is because one NFS file server is down. But the problem is that some client machine which I have, has no monitor or keyboard attached to it normally. I always connect to them through SSH. But ssh is active after the NFS mount. So if the machine is hanging like this, there is no way I can do anything. The only solution is that I attach monitor and keyboard to the client machine, then press some key (like 'ESC' or F1 or Ctrl-C, I really not sure which one works), then the booting process will give up this NFS mounting and go on.
All my client machine is suse 10.2. I don't have this kind of problem in suse 9.x. The booting process SHOULD time out after sometime, which will be fine for me. I can always remount it manually when the file server is available. This is pretty pain for me since I have to always try to find a keyboard and monitor in case like this.
Maybe someone here will suggest me to remove the NFS mount in my clients from /etc/fstab file. But the beauty of Linux is flexible and convenient. What I should configure to make Open suse 10.2 automatically time out NFS mounting the /etc/fstab file? I waited almost 20 minutes, it is still not time out until I press some key.

2) Another problem is about samba share on suse 10.2
All the users' home directory is on my Sun 10 x86 machine and auto mounted to all the clients through NIS and NFS. Two SUSE linux machines with 10.2 and 9.3 share the user home folder out through samba. (They both share the same folder out since /home eventually is mount to solaris /export/home). Here is the problem with the SUSE 10.2 (which is AMD 64 bit of Open suse 10.2). If I mapping the folder from my Windows XP laptop to the SUSE 10.2 AMD 64 bit samba share, first it maps successfully. I can manually create new files, delete files. I am pretty know how to do this in samba. But when I try to copy and paster file ( Highlight some files in windows, then CTRL-C, then go to Linux share folder, then CTRL-V), I got an error something like This operation can't be done because another process is locking the file. I don't remember the exactly message, but it is close the the real message. This means that I can create new file in linux samba share from windows, but I can't copy files from windows to it. I want to blame Microsoft, it must be some hotfixs or SP changing the sambe protocol. Or can I? If I mapping to the Suse 9.3 machine, everything works fine. Both machine have the exactly same samba config files, even samba username and password are the same.

I want to upgrade all my suse to 10.2, but because of this, I have to leave one as 9.3. Because samba is very important in my home.

Any help? Anything I can do to fix them? If I have to wait and try my luck in Suse 10.3, then please, Novell, make it work in SUSE 10.3.

Thanks

Last edited by java8964; 06-01-2007 at 10:00 AM.
 
Old 06-03-2007, 08:17 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Read the manpage for mount. There are some options to soft mount the directory in case the server is down, and to delay mounting the directory until the network is up.

Also use cifs when mounting a samba share. It supports unix permissions better.

I don't know how cosher it is to share an NFS share of an smb mount of a third computer. Why not share the smb directory directly.
 
Old 06-04-2007, 04:09 AM   #3
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
Mmm...
Firewall ?
 
Old 10-12-2007, 09:57 PM   #4
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
Java, sorry to break the news but this problem still exists in SuSE 10.3! If the NFS connection is broken, then the computer is unable to reboot because it hangs waiting for the NFS server to come back. I am using the following options in /etc/fstab: auto,rw,hard,intr. It is really annoying!
 
Old 10-13-2007, 12:17 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You might want to try the soft option instead of intr. Another thing to try is _netdev if this is a case where the share is up but you want to ensure that the mount isn't tried until after the network is ready. I don't know if this would cause the mounting to be deferred indefinitely if the server is down, which is what you may want. By the way, there is an "NFS" manpage as well which details all of the options.
 
Old 10-13-2007, 01:08 AM   #6
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
But all my other servers running Ubuntu and CentOS don't have this NFS problem, even when they are still writing to the NFS server and rebooting. It's only OpenSuSE 10.3 that is doing something funky. I am 99% loving OpenSuSE 10.3, but this NFS hanging and not mounting during bootup is really making me think twice about using this as a real working server.
 
  


Reply



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
Noob attempt at running SUSE Linux 10 as DHCP/DDNS/NFS/Samba Server Robhemmings Linux - Networking 1 04-12-2006 08:13 AM
boot problem: NFS mounts before name server, SUSE 9.2 Pro bho Linux - Networking 0 02-07-2005 11:01 AM
SuSE 9.0 NFS client with RHL 7.3 NFS server ocjacob Linux - Networking 0 02-01-2005 01:01 PM
Very Wierd NFS Problem in Suse 9.2 jayfoo Linux - Networking 0 12-08-2004 03:08 PM
Strange problem, both samba and NFS gwroy20 Linux - Networking 15 05-27-2003 04:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 08:30 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
Open Source Consulting | Domain Registration