LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-03-2002, 02:37 PM   #1
nottawiz
LQ Newbie
 
Registered: Apr 2002
Distribution: Caldera
Posts: 4

Rep: Reputation: 0
Question Samba locks when Internet is down


I am running Caldera OpenLinux Server 2.3 with all of the services installed and the default Samba version that comes with it. The clients are Windows 98 and Windows NT. A Linksys router with DHCP is hosting a Cable Modem for basic Internet stuff like web browsing. The Linux server is excluded from the DHCP range (on the router), and has 2 printers attached. Samba runs file and print sharing for the 2 clients, and normally the configuration works just fine. The server's IP address/DNS settings are configured correctly because it can get to the Internet via Netscape.

Here is the problem:
Whenever the Internet goes down (or the cable modem is unplugged) and one of the clients tries to print, the Samba printing fails and the file sharing stops - usually resulting in a lockup on the client. However, when the Internet comes back up, file sharing and printing resume normally. I'm not a wizard with Linux, but I do believe that DHCP is not running on the server. Why is the Internet connection locking up Samba?
 
Old 04-03-2002, 06:40 PM   #2
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
This may be a long shot in the dark...


Maybe it is trying to resolv hosts by dns.


make sure /etc/hosts has all of the clients, and make sure that

order hosts, bind

is in /etc/hosts.conf

and maybe adding

search < yourdomainname >


like this

search home


in /etc/resolv.conf


other than that the obvious would be something wrong in the samba config file
 
Old 04-11-2002, 09:10 AM   #3
nottawiz
LQ Newbie
 
Registered: Apr 2002
Distribution: Caldera
Posts: 4

Original Poster
Rep: Reputation: 0
Samba locks printing now when Internet down

Thanks for your reply. I put the clients on static IP addresses and put the proper entries in all of the host files (including on the clients). The "order hosts, bind" was set correctly. So, now when the Internet line goes down, they can get to their files just fine. However, and this is goofy, the printing still locks up. Is this a NetBIOS or Netbuei issue maybe?


I looked at the printcap and smb.conf files which seem ok. I even tried making the server the "master browser" with no luck. I read somewhere on the Internet that putting this line in the smb.conf may help (print command=lpr -r -P%p %s). What do you think?
 
Old 04-12-2002, 11:18 PM   #4
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
Unless you really need it I would go to TCP/IP only, netbuei is not needed, and more than one protocal can cause problems


Can you print locally with no problem?

Last edited by DavidPhillips; 04-12-2002 at 11:23 PM.
 
Old 04-15-2002, 11:52 AM   #5
nottawiz
LQ Newbie
 
Registered: Apr 2002
Distribution: Caldera
Posts: 4

Original Poster
Rep: Reputation: 0
I was able to reproduce this error on a friend's network, but when I put the entries into the host files (and lmhost when found) and reboot...all was ok. He has a Windows2000 Server there as well (I think that its running DNS).

However, at home when the Internet goes down, its like my Samba box disappears. I've tried rebooting, but that hasn't helped. When this happens, I can't print or browse locally.

TCP/IP is the only protocal enabled on the network, and I'm running Caldera Linux. All of the computers can now ping each other by name.

This all started after printing was correctly setup. When the Internet is down LPR hangs on bootup.

:smash:

Last edited by nottawiz; 04-15-2002 at 11:59 AM.
 
Old 04-15-2002, 08:46 PM   #6
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
It seems that something is wrong with the /etc/printcap file

or /still a problem in /etc/hosts

If your machine is trying to resolve your internet address to find the printer then it may hang on boot

this seems like the same thing that sendmail does when the etc/hosts file has a problem
 
  


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
SAMBA 2.2.5 - File locks syx Linux - Networking 1 05-27-2005 08:23 AM
My internet connection locks up whenever I download a file. EOHooligan Linux - General 1 01-28-2005 06:17 AM
Oplocks and locks in Samba flashingcurser Linux - Networking 2 08-17-2004 06:42 PM
samba opportunistic locks vmejia77 Linux - Networking 0 03-30-2004 05:57 PM
Internet locks when I activate it Szabo Linux - Networking 2 02-28-2004 05:16 PM


All times are GMT -5. The time now is 02:17 AM.

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