On Friday 28 July 2006 12:26, Birger Blixt wrote:
> On 2006-07-26 10:46, Kern Sibbald wrote:
> 
> > 
> > On many non-autochanger drives, doing an eject requires an explicit "load" 
> > command, and Bacula never uses that command (except in btape).  I 
recommend 
> > avoiding ejecting except if required.
> > 
> 
> Yeas, but that is not at all what I wrote, the problem is that bacula don't 
even 
> try to figure out if a tape is mounted on another drive, so for example the 
tape
> in drive0 get full, bacula select another tape that has append status, and 
try 
> to mount it in drive0, even if the tape is mounted in drive1.

As long as Bacula is using all the drives exclusively and you start with no 
tape in any drive, and you are using the appropriate Autochanger resource, 
Bacula will know what is tape in all the drives.

There are certain limitations in version 1.38.x, that are explained in the 
release notes I think -- mainly, if a tape is in drive 2 and Bacula is 
writing on drive 1 and then wants to write on the tape that is in drive 2, it 
will unload it from drive 2 and load it into drive 1 -- it works, but is not 
optimal.

> 
> The result can be this:
> Writing spooled data to Volume. Despooling 2,147,487,735 bytes ...
> End of Volume "800016" at 153:13440 on device "DRIVE0" (/dev/DRIVE0). Write 
of 
> 64512 bytes got 0.
> Re-read of last block succeeded.
> End of medium on Volume "800016" Bytes=142,566,307,422 Blocks=2,209,926 at 
> 27-Jul-2006 09:09.
> Issuing autochanger "loaded drive 0" command.
> Autochanger "loaded drive 0", result is Slot 18.
> Issuing autochanger "unload slot 18, drive 0" command.
> Issuing autochanger "load slot 11, drive 0" command.
> ss95.u2.2006-07-26_15.39.08 Fatal error: 3992 Bad autochanger "load slot 11, 
> drive 0": ERR=Child exited with code 1.
> ss95.u2.2006-07-26_15.39.08 Fatal error: spool.c:249 Fatal append error on 
> device "DRIVE0" (/dev/DRIVE0): ERR=Job ss95
> canceled while waiting for mount on Storage Device "DRIVE0" (/dev/DRIVE0).
> 
> The command load slot 11 drive 0 failed since the tape was mounted in 
another 
> drive,  I'm doing changes and tests trying to found a config that can solve 
> this, but so far the only safe way is to remove 3 drives from my config.
> 
> If someone else get this to work with a multiple drives autochanger I would 
be 
> very grateful for some hints.
> 
> We could use the StorageId value, so when a tape is loaded into a drive, the 
> volumes StorageId should be changed to the drives StorageId , and bacula
> could search for volumes available in with the StorageId for the 
autochanger, or
> change to the device where the selected media is mounted if that is 
possible.
> 
> /birre
> 
> -------------------------------------------------------------------------
> 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
> 

-------------------------------------------------------------------------
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

Reply via email to