[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

weird samba error



Hi all.

Running sid, 2.6.22-2-686 #1 SMP, i686, updated daily.

The following worked for me last week as part of my anacron-launched backup:
[/etc/fstab]
//Iomega-XXXXXX/NetHDD /mnt/storage    smbfs   noauto,password=""      0      0

This morning, it failed.  When I try to mount /mnt/storage, I get a
bizarre failure where samba is trying to connect to 66.150.2.134,
which is vznassist.infospace.com.  If I specify the IP address
(192.168.1.101, via DHCP), it works.

If I try to use smbclient, or mount.smbfs, directly, I get similar
behavior, though not the same IP address.  I haven't seen anything in
the strace from mount that seems to be of any help:
readlink("/Iomega-XXXXXX", 0xbfe1b8fb, 4096) = -1 ENOENT (No such file
or directory)
stat64("/sbin/mount.smbfs", {st_mode=S_IFREG|0755, st_size=884820, ...}) = 0
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0xb7d4e6f8) = 29709
wait4(-1, Error connecting to 63.251.179.13 (Connection refused)
29709: Connection to Iomega-XXXXXX failed
SMB connection failed

Also,
# strace mount.smbfs //Iomega-00E2C5/NetHDD /mnt/storage
[snip]
stat64("/var/run/samba", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/var/run/samba/gencache.tdb", O_RDWR|O_CREAT|O_LARGEFILE, 0644) = 3
fcntl64(3, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0,
len=1}, 0xbfc41404) = 0
read(3, "TDB file\n\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 168) = 168
fstat64(3, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0) = 0xb7f50000
fcntl64(3, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=0,
len=1}, 0xbfc41404) = 0
fcntl64(3, F_SETLKW64, {type=F_RDLCK, whence=SEEK_SET, start=468,
len=1}, 0xbfc41424) = 0
fcntl64(3, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=468,
len=1}, 0xbfc41424) = 0
fcntl64(3, F_SETLKW64, {type=F_RDLCK, whence=SEEK_SET, start=504,
len=1}, 0xbfc40ac4) = 0
fcntl64(3, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=504,
len=1}, 0xbfc40ae4) = 0
time(NULL)                              = 1192381887
futex(0xb7dcea5c, FUTEX_WAKE, 2147483647) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 4
fcntl64(4, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
connect(4, {sa_family=AF_INET, sin_port=htons(445),
sin_addr=inet_addr("63.251.179.13")}, 16) = -1 EINPROGRESS (Operation
now in progress)

Any ideas?

-- 
Michael A. Marsh
http://www.umiacs.umd.edu/~mmarsh
http://mamarsh.blogspot.com
http://36pints.blogspot.com



Reply to: