Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

djberg96 (2603)

  (email not shown publicly)

Journal of djberg96 (2603)

Wednesday April 24, 2002
09:30 AM

Samba - ack!

[ #4424 ]
We use Samba to access a Windows "public" drive. Various reports run and are then copied over, so that the powers that be can read them, and they're all in one place.

Unfortunately, when Samba goes down (like it did today), it goes down hard. All of the scripts hung while trying to copy over to the public drive. Not only that, doing a 'kill -9' didn't kill them, and trying to do a 'df' or a 'cd' on the mounted drive caused the terminal to hang with no way to recover. There was nothing left to do but reboot at that point.

We think that this happened because the Samba server (which we don't control) was rebooted as the same time the scripts were copying the files over. In other words, a lightning strike.

I thought about setting up a sigalarm/timeout for 'copy' operations, but then I figured that if a 'kill -9' won't stop the script from hanging, a timeout probably won't work either.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.