Errors with smbfs/smbmount.
Todd A. Green
tagreen at ionictech.net
Wed May 24 13:53:07 GMT 2000
I've been working with smbfs/smbmount the last few weeks to allow my
linux log processing server access to the logs on our NT servers. The
problem is that after a period of time all the smbfs mounts become
invalid with either one of two errors. When you do a 'df -k' to view
the mounts you see the following:
samba:~# df -k
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda1 2071384 779284 1186876 40% /
/dev/hda6 10752392 74876 10131308 1% /usr/local
df: /servers/server1.mydomain.net: Broken pipe
df: /servers/server2.mydomain.net: Broken pipe
df: /servers/server2.mydomain.net: Broken pipe
df: /servers/server2.mydomain.net: Broken pipe
samba:~# df -k
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda1 2071384 779284 1186876 40% /
/dev/hda6 10752392 74876 10131308 1% /usr/local
df: /servers/server1.mydomain.net: I/O Error
df: /servers/server2.mydomain.net: I/O Error
df: /servers/server2.mydomain.net: I/O Error
df: /servers/server2.mydomain.net: I/O Error
I have a script which checks these mounts once every thirty minutes and
if they have errors they are unmounted and re-mounted.
The script emails me everytime it has to remount so I have some times as
to when it is happening.
2000/05/23: 01:30, 02:00, 04:00, 06:00, 08:00, 10:00, 12:00, 14:00,
16:00, 18:00, 19:00, 20:00, 22:00
2000/05/24: 00:00, 02:00, 02:30, 04:30, 06:30, 08:30
Since the script only runs every half-hour I don't know exactly when the
mounts are going sour.
I'm running samba-2.0.7, on a Redhat 6.1 box with a 2.2.14 kernel.
Here's the configure statement I used to build it ./configure
--with-smbmount --with-syslog
Note: there are NO entries in any of the syslog files with regard to
samba.
I dug into the archive and the last messages I found pertaining to
smbmount were from November 1998. They talked about the NT servers
timing out 'idle' smb mounts. I'm wondering if this is the case and if
so is there anything I can do about it.
Only other thing of interest is that when the drives are mounted
/sbin/mount.smbfs is left running in the background. One for each mount
point. Is this normal behavior?
If this is the wrong forum for this question please let me know where to
post the questions.
More information about the samba
mailing list