Bacula-users

Re: [Bacula-users] request: Allow tape drives to be associated with autochanger resource on different host

2008-07-22 06:05:41
Subject: Re: [Bacula-users] request: Allow tape drives to be associated with autochanger resource on different host
From: Alan Brown <ajb2 AT mssl.ucl.ac DOT uk>
To: Kjetil Torgrim Homme <kjetilho AT linpro DOT no>
Date: Tue, 22 Jul 2008 11:04:28 +0100 (BST)
On Tue, 22 Jul 2008, Kjetil Torgrim Homme wrote:

> why not use something like
>
>    ssh robotmaster "flock /var/run/mtx.lock mtx ..."
>
> as your tapechanger command?  flock will wait until it gets a lock on
> the file, so there will never be two mtx processes running
> simultaneously.

If a mtx command is running, any subsequent ones should stack up behind
it. (I tested this a couple of years ago, it worked that way for me)

AB


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users