On 2006-09-18 21:23, Arno Lehmann wrote: > > 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.
It works, but I'm not sure if it should work :-) I have this: "bacula-dir.conf" Autochanger { Name = "ADIC-480" Device = DRIVE0,DRIVE1,DRIVE2,DRIVE3 Changer Device = /dev/changer Changer Command = "/opt/local/etc/mtx-changer %c %o %S %a %d" } Device { Name = DRIVE0 # Media Type = AIT-2 Archive Device = /dev/DRIVE0 Drive Index = 0 AutoChanger = yes AutomaticMount = yes # when device opened, read it Autoselect = no AlwaysOpen = yes RemovableMedia = yes RandomAccess = no LabelMedia = yes Maximum Spool Size = 53687091200 Spool Directory = /export/u2/bacula/spool } ...... And are using 4 pools, one for each tape. I added a Storage {} for each drive in bacula-dir.conf , and 4 pools, and a JobDef for each pool: JobDefs { Name = "POOL1" Type = Backup Level = Incremental Storage = DRIVE0 Messages = Standard Pool = Pool1 SpoolData = yes Prefer Mounted Volumes = yes } Now a job as: Job { Name = "ss95" Priority = 10 JobDefs = "POOL1" Client = ss95 FileSet = "ss95" Schedule = "WeeklyCycle1" Write Bootstrap = "/opt/local/var/bacula/working/ss95.bsr" } will use /dev/DRIVE0 . I use different retention periods, so I solved it with many pools, and it is rock stable now. /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