Hi, On 9/18/2006 8:56 PM, Michael Brennen wrote: > On Monday 18 September 2006 12:27 pm, Pietari Hyvärinen wrote: > > >>Our Autochcanger ( dell136T) is connected to four tape drives. >>Two of the are older LTO-2 and the rest are LTO-3 capable drives. >>How I define bacula-dir to understand that there are two of each >>drives in same autochanger?
That sounds like lots of fun. Or work, depending on how you look at it :-) >>We are using bacula version 1.38.11-3. > > > I'm not certain, but if you want to direct different backups to different > tape > drives, I think you might want to define two autochanger configurations, each > of which contains two tape drive devices. I doubt that there would be, but > others would have to answer whether or not there might be a locking conflict > referencing the same SCSI device in the two autochanger configurations. Yes, that might be the solution. Unfortunately, I suspect that changer device locking inside Bacula does not work per device (as in /dev/sg*), but per configured autochanger. From historic :-) times, there is a sample locking mtx-changer script somewhere in the source, AFAIK, which might be a good starting pont to implementing your own version. I think that you could simply try checking a lock file at the start of mtx-changer, and only continue when there's no such file. Locking by creating and checking a lockfile is a little difficult when it comes to race conditions and timeouts, though. It *might* be better to check the source, see how the locking is done there, and decide if it's possible to create a simple patch that locks per device name, not per autochanger name. Arno -- IT-Service Lehmann [EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users