Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

SAMBA: mount hangs

Posted on 2004-09-13
2
Medium Priority
?
772 Views
Last Modified: 2012-06-27
Samba 2.2.7a on RH 9.0
Installed, working partially

Issuing command mount -t smbfs -o username=foo,password=bar //$OXWAN/storage /mnt/server2

This sometimes works perfectly, sometimes hangs. When it hangs, pressing ctrl-c will break out (unfortunately, this breaks any script that might be issuing the mount) and the mount has taken place. Yes, the share is mounted.

I just ran it a number of times, and it seems to hang once every three or four tries. The server is not particularly busy, and is on the LAN - even on the same switch.

How do I eliminate this occasional hang?
0
Comment
Question by:markofenstein
2 Comments
 
LVL 3

Accepted Solution

by:
ivyfranklin earned 2000 total points
ID: 12057225
This is a known bug with Samba and Redhat 9.  A discussion of the problem with possible solutions can be found here:

http://www.hadez.org/articles/technical/redhat9_samba_bug.html

running the following script seems to fix the problem:

 mv /usr/bin/smbmount /usr/bin/smbmount.orig
cat << EOF > /usr/bin/smbmount
#!/bin/bash
export LD_ASSUME_KERNEL=2.2.5
exec /usr/bin/smbmount.orig "$@"
EOF
chmod 755 /usr/bin/smbmount

Let me know if you need any more help.
0
 

Author Comment

by:markofenstein
ID: 12059935
OK, that appears to work.

I implemented it on one workstation and ran the little test script to dismount and remount - it was exhibiting the hang every 3 or 4 mounts and now went 20 with no hang, so I'm gonna mark that one fixed.

I'm having a bitch of a time getting the overall networking mounting reliably and staying mounted. I'm going to post more problems, and I hope you'll stay with me here, okay?

I'm going to wait and make sure this gets posted before I go to the "accept" button...
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Loops Section Overview

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question