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

Re: Samba mountpoint hangs after server crash

On Mon, Dec 11, 2006 at 10:25:30AM +0100, Markus.Grunwald@pruftechnik.com wrote:
> Hello,
> We have some trouble with samba together with a flaky windows NT 4.0 
> Server: Quite often the server crashes and can't be reached again until it 
> is rebooted. We mount some smb shares from that server and when the server 
> crashes, we can't access the shares until root unmounts and remounts these 
> shares.
> This is a bit annoying, since root is not always available and has better 
> things to do then remounting smb shares ;) I know, the best thing would be 
> to fix the server, but nobody maintains this old machine...
> Does the bug that is mentioned in the manpage "Mounts  sometimes stop 
> working. ..." strike here ? I don't think so, because the mountpoint 
> doesn't stop just like that, but because the server dies.

well, how heavily used are these mounts? maybe automount with a really
short time-out would work for you. automount would quickly umount the
shares when they aren't used thereby limiting the problem to those
times when the server crashes while someone is using the smb share.

or have root script something that checks for the presence of the
server and when its down, umounts all the shares, emails someone to
reboot the thing and then when it sees it back up, restarts the


> Some additional data:
> Distribution: Debian testing
> Kernel: 2.6.17-2-686
> dpkg -l smb\*
> ii  smbclient                  3.0.23d-1                  a 
> LanManager-like simple client for Unix
> ii  smbfs                      3.0.23d-1                  mount and umount 
> commands for the smbfs (for kernels >= than 2.2.x)
> log.smbmount shortly after the server failed:
> [2006/12/09 06:26:33, 1] libsmb/cliconnect.c:cli_connect(1369)
>   Error connecting to xxx.xxx.xxx.xxx (Keine Route zum Zielrechner)
> [2006/12/09 06:26:33, 0] client/smbmount.c:do_connection(155)
>   23909: Connection to server failed
> [2006/12/09 06:27:03, 1] libsmb/cliconnect.c:cli_connect(1369)
>   Error connecting to xxx.xxx.xxx.xxx (Keine Route zum Zielrechner)
> [2006/12/09 06:27:03, 0] client/smbmount.c:do_connection(155)
>   969: Connection to server failed
> Best regards,
> Markus Grunwald
> Softwareentwicklung
> PRÜFTECHNIK Condition Monitoring GmbH
> Oskar-Messter-Straße 19-21
> 85737 Ismaning
> www.pruftechnik.com
> Tel: +49 (0)89 99616177
> Fax: +49 (0)89 99616200

Attachment: signature.asc
Description: Digital signature

Reply to: