LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-02-2008, 06:51 PM   #1
TiredOfThis
Member
 
Registered: Oct 2007
Posts: 53

Rep: Reputation: 15
Samba problems on OpenSUSE 10.3


Hey,
I have an OpenSUSE 10.3 box I'm using as a fileserver. I have a drive mounted in /mnt/hdd0, which I share using Samba. I can map it fine and IO goes OK, but after a while, Windows Explorer freezes, forcing me to kill the process. I realize that Windows Explorer seems to enjoy freezing, but this only started after I began using my Samba share.

Suggestions appreciated. Also, I'm not married to Samba, so if there's some better way to share my data then I'm open to suggestions

Thanks,
Nathan
 
Old 02-02-2008, 08:16 PM   #2
baldur_the_god
Member
 
Registered: Feb 2007
Posts: 54

Rep: Reputation: 15
samba

as long as you configured samba correctly for the share, the issue is on the windope side of things. explorer can be a very tempramental at times. I have had no issues as long as I have had samba set up right and it is not that difficult to set up. the only reason for a freeze is if a transfer somehow gets locked up or windope freezes...I would look at the windope side for the error...

baldur

Last edited by reddazz; 02-08-2008 at 06:32 PM.
 
Old 02-02-2008, 08:18 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Double check your samba logs and see if an error comes up during the freeze. Also check the cables and connectors.
 
Old 02-02-2008, 09:31 PM   #4
TiredOfThis
Member
 
Registered: Oct 2007
Posts: 53

Original Poster
Rep: Reputation: 15
Thanks for the replies.

baldur: Well, obviously Windows Explorer has a problem (hanging and needing to be killed is never a good response, even if dealing with a misbehaving server), but I've dealt with samba shares before and haven't seen this behavior.

jschiwal: I don't see anything extremely suspicious in the samba logs. However, the system log does yield some alarming-looking data:

Quote:
Feb 2 18:51:49 ark smartd[3408]: Device: /dev/sda, SMART Usage Attribute: 194 Temperature_Celsius changed from 89 to 93
Feb 2 19:21:49 ark smartd[3408]: Device: /dev/sdb, SMART Prefailure Attribute: 1 Raw_Read_Error_Rate changedfrom 112 to 106
Feb 2 19:21:49 ark smartd[3408]: Device: /dev/sdb, SMART Usage Attribute: 190 Temperature_Celsius changed from 52 to 51
Feb 2 19:21:49 ark smartd[3408]: Device: /dev/sdb, SMART Usage Attribute: 194 Temperature_Celsius changed from 48 to 49
Feb 2 19:21:49 ark smartd[3408]: Device: /dev/sdb, SMART Usage Attribute: 195 Hardware_ECC_Recovered changed from 64 to 65
Feb 2 19:51:50 ark smartd[3408]: Device: /dev/sda, SMART Usage Attribute: 190 Temperature_Celsius changed from 50 to 48
Feb 2 19:51:50 ark smartd[3408]: Device: /dev/sda, SMART Usage Attribute: 194 Temperature_Celsius changed from 93 to 91
Feb 2 19:51:50 ark smartd[3408]: Device: /dev/sdb, SMART Prefailure Attribute: 1 Raw_Read_Error_Rate changed from 106 to 108
Feb 2 19:51:50 ark smartd[3408]: Device: /dev/sdb, SMART Usage Attribute: 190 Temperature_Celsius changed from 51 to 50
Feb 2 19:51:50 ark smartd[3408]: Device: /dev/sdb, SMART Usage Attribute: 194 Temperature_Celsius changed from 49 to 50
Feb 2 20:21:49 ark smartd[3408]: Device: /dev/sdb, SMART Prefailure Attribute: 1 Raw_Read_Error_Rate changed from 108 to 111
Feb 2 20:21:49 ark smartd[3408]: Device: /dev/sdb, SMART Usage Attribute: 190 Temperature_Celsius changed from 50 to 49
Feb 2 20:21:49 ark smartd[3408]: Device: /dev/sdb, SMART Usage Attribute: 194 Temperature_Celsius changed from 50 to 51
Feb 2 20:51:49 ark smartd[3408]: Device: /dev/sdb, SMART Usage Attribute: 190 Temperature_Celsius changed from 49 to 50
Feb 2 20:51:49 ark smartd[3408]: Device: /dev/sdb, SMART Usage Attribute: 194 Temperature_Celsius changed from 51 to 50
Feb 2 21:21:49 ark smartd[3408]: Device: /dev/sdb, SMART Prefailure Attribute: 1 Raw_Read_Error_Rate changed from 111 to 112
Feb 2 21:21:49 ark smartd[3408]: Device: /dev/sdb, SMART Usage Attribute: 190 Temperature_Celsius changed from 50 to 49
Feb 2 21:21:49 ark smartd[3408]: Device: /dev/sdb, SMART Usage Attribute: 194 Temperature_Celsius changed from 50 to 51
Feb 2 21:51:49 ark smartd[3408]: Device: /dev/sdb, SMART Prefailure Attribute: 1 Raw_Read_Error_Rate changed from 112 to 113
Feb 2 22:21:50 ark smartd[3408]: Device: /dev/sdb, SMART Prefailure Attribute: 1 Raw_Read_Error_Rate changed from 113 to 114
Feb 2 22:21:50 ark smartd[3408]: Device: /dev/sdb, SMART Usage Attribute: 195 Hardware_ECC_Recovered changed from 65 to 64
I don't like seeing all those read error rate messages. I'm not entirely sure what's normal, but that seems kind of bad.

I'll try running a diagnostic on the disk.

Also, I hope the temperature sensor on /dev/sda is whacked. I'm not liking those readings...

Nathan
 
Old 02-03-2008, 02:01 AM   #5
baldur_the_god
Member
 
Registered: Feb 2007
Posts: 54

Rep: Reputation: 15
samba

yeah, that is messed up...good luck...

baldur

Last edited by reddazz; 02-08-2008 at 06:33 PM.
 
Old 02-03-2008, 02:36 PM   #6
TiredOfThis
Member
 
Registered: Oct 2007
Posts: 53

Original Poster
Rep: Reputation: 15
I ran a diagnostic on both drives (sda and sdb), and they both got a clean bill of health. If Seagate says they're OK, I guess they're OK.

Do you have any other suggestions? I mean, I know the smartd stuff in the syslog looks a little sketchy, but could it be something other than a bad hdd causing this? Since the drive doesn't fail SeaTools then I can't return it.
 
Old 02-04-2008, 02:15 PM   #7
TiredOfThis
Member
 
Registered: Oct 2007
Posts: 53

Original Poster
Rep: Reputation: 15
So I removed the offending hard drive and installed a known good SATA drive from a different computer. Still see the same problem. I think I can rule out disk failure.
 
Old 02-04-2008, 09:34 PM   #8
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Rep: Reputation: 31
can you map to your samba share from another machine on a difference port on your switch? You might be experiencing network problem.
 
Old 02-05-2008, 12:30 AM   #9
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Does the Windows' log indicate anything. What are you doing when the problem occurs. What kind of files are in the share? For example, if they are images, maybe windows is creating a preview icon cache file. Do you have a service in a service situation. For example, sharing a directory when a parent directory is also a service. I don't know how well that would work, but it could be the case if you are sharing a subdirectory in your home directory, and your home directory is shared via the [profile] service. More serious would be if the parent directory were a share from a third computer, but I don't think you indicated that.

Is it during a file copy that you have the problem? One thing you could try is to map the samba share, on your windows machine to a device and use it in the command shell instead of windows explorer. (e.g. net use e: \\server\service ) Can you copy or create files without a problem then? If not, open windows explorer but keep the command shell open. If Explorer freezes, what about in the command shell? If you can work in the console but Explorer is frozen, the session should be OK but there could be a problem with a file that Windows uses (e.g. the countless dll's).

Consider increasing the log level in smb.conf. Maybe something will turn up.
 
Old 02-05-2008, 01:32 AM   #10
HellesAngel
Member
 
Registered: Jun 2007
Posts: 84

Rep: Reputation: 15
If Windoze explorer is 'hung' then it's probably waiting a network timeout for something to fail. Are you certain that the authentication is OK and Samba is correctly configured? Windoze is notoriously bad at authenticating properly with Samba servers although if properly configured it works like a charm. In short allow no guest access to anything, read up about whether passwords should be encrypted or not for your Win version, and make sure the user name is exactly the same on Linux and Windoze. Allowing guest access is precarious as sometimes it will work, sometimes not. Also note that if you create a user on Windoze with a name MyName and then change the name to myname using Windoze user management control panel that Windoze will continue to send the first user name to Samba for authentication, which won't work. It only works if you create a new user myname and copy all files over.

Check the log tail /var/log/samba/log.smbd and see what's there. It can be made to work, really!
 
Old 02-06-2008, 11:02 PM   #11
TiredOfThis
Member
 
Registered: Oct 2007
Posts: 53

Original Poster
Rep: Reputation: 15
* Authentication is fine. I can access the freaking thing and copy files. It just hangs if I leave the folder open.
* log.smbd doesn't shed any light on the problem.
* I thought it might be my antivirus, but I disabled that and still see the same problem.
* The command prompt hangs as well.

Nathan
 
Old 02-07-2008, 01:18 AM   #12
Astol
Member
 
Registered: Aug 2007
Location: Perth, Australia
Distribution: RHEL 5 + 4.5, Fedora
Posts: 88

Rep: Reputation: 15
have you got the samba box's ip address in the dns/wins? i cant remember if you said this was a logon server or not, but it cant hurt to add it to the dns at least.
 
Old 02-07-2008, 10:05 PM   #13
TiredOfThis
Member
 
Registered: Oct 2007
Posts: 53

Original Poster
Rep: Reputation: 15
I connect via IP address rather than hostname, so I don't think that's the issue.
 
Old 02-08-2008, 12:52 PM   #14
baldur_the_god
Member
 
Registered: Feb 2007
Posts: 54

Rep: Reputation: 15
snippy

here is a similar problem that I was having and now after I looked at that log closely, it could be similar...I was transferring large amounts of data through my network onto my notebook so I could watch movies at work...

I do not know if you are moving large amounts of data, but what essentially would happen is the drive would over heat and this would cause it to lock...except my notebook was set up to shutdown on an over heat...check the temps of the drive...just touch it and see how warm it is...a failing drive does not act like that...usually you see data loss and data errors when you run a disk checker...so it is probably not that...mine still works fine...

it also could be your motherboard is getting too hot...check your fans, heat from the system...that was mentioned in the error log...temp fluctuations...

also try to mount the dirctory onto the linus server and see if that has an effect...in essence, try to isolate the issue...is it all files or ones of a certain size, type...

baldur

Last edited by reddazz; 02-08-2008 at 06:33 PM.
 
Old 02-08-2008, 01:08 PM   #15
baldur_the_god
Member
 
Registered: Feb 2007
Posts: 54

Rep: Reputation: 15
probably lastly if you are not less snippy

it could also be a problem with smartd...you should probably check in on that since it is both raw read errors and temp errors...smartd tries to optimize the disk and continually check for errors or issues...so if that is hanging, that would cause your disks to hang...

baldur

Last edited by reddazz; 02-08-2008 at 06:33 PM.
 
  


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
Mounting Samba shares under OpenSuSE and Kubuntu pwabrahams Linux - Software 20 10-24-2007 07:36 PM
opensuse 10.2 installation problems ngogketrao2 Linux - Newbie 5 04-28-2007 07:05 PM
OpenSuSE 10.2 and SAMBA tea of evil SUSE / openSUSE 7 01-30-2007 10:57 PM
Several problems with openSuse 10.2 vegetassj2 Linux - Software 3 01-28-2007 11:04 AM
Samba 3.023d and openSUSE 10.2 besnia Linux - Networking 0 01-02-2007 03:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:06 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