Strange failure of smbfs and /mnt
Michael Hipp
Michael
Mon May 17 11:59:02 PDT 2004
I'm getting odd failures of some smb mounts from my desktop RH9 system
to a RH9 server. The mountpoints just seem to go south. Other machines
don't seem to be seeing the failure. The server logs look clean. I've
pasted in everything pertinent below that I could think of.
Worst part is it seems the only way to fix it is a reboot.
Any ideas?
Michael
-----------------------------------------
Here's what is in my rc.local that sets these up at boot time:
mount -t smbfs -o username=xxx,password=xxx,uid=michael,gid=michael
//linux/public /mnt/public &
mount -t smbfs -o username=xxx,password=xxx,uid=michael,gid=michael
//linux/shared /mnt/shared &
mount -t smbfs -o username=xxx,password=xxx,uid=michael,gid=michael
//linux/backups /mnt/backups &
mount -t smbfs -o username=xxx,password=xxx,uid=michael,gid=michael
//linux/aae /mnt/aae &
-----------------------------------------
Here is how the processes look after the failure:
root 2621 0.0 0.2 4560 1808 ? S 06:43 0:00
/sbin/mount.smbfs //linux/shared /mnt/shared -o rw username password uid
root 2625 0.0 0.1 3312 1356 ? S 06:43 0:00 -:0
(Note that the one is still working)
-----------------------------------------
/var/log/messages is full of this:
Feb 2 07:41:04 michael kernel: smb_retry: no connection process
Feb 2 07:41:35 michael last message repeated 96 times
Feb 2 07:42:38 michael last message repeated 204 times
Feb 2 07:43:42 michael last message repeated 180 times
-----------------------------------------
It's like the mountpoints have disappeared:
# ls -l /mnt
ls: /mnt/public: Input/output error
ls: /mnt/backups: Input/output error
ls: /mnt/aae: Input/output error
total 16
drwxr-xr-x 2 root root 4096 Oct 14 23:54 cdrom
drwxr-xr-x 2 root root 4096 Oct 14 23:54 floppy
drwxr-xr-x 1 michael michael 4096 Jan 27 21:28 shared
-----------------------------------------
The mount table has lost them:
# mount
/dev/hda6 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hda3 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda5 on /home type ext3 (rw)
none on /dev/shm type tmpfs (rw)
//linux/shared on /mnt/shared type smbfs (0)
-----------------------------------------
Attempting to mount them again fails:
# mount -t smbfs -o username=xxx,password=xxx,uid=michael,gid=michael
//linux/public /mnt/public &
[1] 3296
Could not resolve mount point /mnt/public
-----------------------------------------
More information about the Linux-users
mailing list