I was wondering...
Could I achieve what I want if I were to change the pools to refer to the 
individual drives in the auto-changer tape library instead?

eg.

     # Default pool definition used by incremental backups.
     # We wish to be able to restore files for any day for at least 2 weeks, so 
set the retention to 13 days.
     Pool{
       Name = Default
       Volume Retention = 13 days
       Pool Type = Backup
       # Automatically prune and recycle volumes.
       AutoPrune = yes
       Recycle = yes
       # Do not use tapes whos labels start with CLN since they are cleaning 
tapes.
       Cleaning Prefix = "CLN"
       Storage = Drive-0
       # Get tapes from scratch pool and return them to the scratch pool when 
they are purged.
       Scratch Pool = Scratch
       Recycle Pool = Scratch
       # The location where the VirtualFull backups will be written to.
       Next Pool = FullPool
     }

     # Pool used by Full and VirtualFull backups.
     # We only need at least the last 2 weeks, so set the retention to 13 days.
     Pool{
       Name = FullPool
       Volume Retention = 13 days
       Pool Type = Backup
       # Automatically prune and recycle volumes.
       AutoPrune = yes
       Recycle = yes
       # Do not use tapes whos labels start with CLN since they are cleaning 
tapes.
       Cleaning Prefix = "CLN"
       Storage = Drive-1
       # Get tapes from scratch pool and return them to the scratch pool when 
they are purged.
       Scratch Pool = Scratch
       Recycle Pool = Scratch
       # The location where the copies go for offsite backups.
       Next Pool = CopyPool
     }

     # Pool used by Copy jobs for offsite tapes.
     # These only need to be valid for a week before being eligible to be 
overwritten.
     Pool{
       Name = CopyPool
       Volume Retention = 6 days
       Pool Type = Backup
       # Automatically prune and recycle volumes.
       AutoPrune = yes
       Recycle = yes
       # Do not use tapes whos labels start with CLN since they are cleaning 
tapes.
       Cleaning Prefix = "CLN"
       Storage = Drive-0
       # Get tapes from scratch pool and return them to the scratch pool when 
they are purged.
       Scratch Pool = Scratch
       Recycle Pool = Scratch
     }

Note that the "Storage = TL2000" has been changed to refer to "Drive-0" or 
"Drive-1" respectively.
This alternates the drives so that "Pool" and "Next Pool" never refer to the 
same tape drive.

If I were to do the above would my storage daemon configuration need to change?
ie. Would I need to specify the "Changer Command" and "Changer Device" in the 
"Device" declarations instead of (or as well as) in the "Autochanger" 
declaration?
The changer and device entries in my current bacula-sd.conf file is as follows:

     # An autochanger device with two drives
     #
     Autochanger {
       Name = TL2000
       Device = Drive-0
       Device = Drive-1
       Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
       Changer Device = /dev/sg5
     }

     Device {
       Name = Drive-0
       Drive Index = 0
       Media Type = LTO
       Archive Device = /dev/nst0
       RemovableMedia = yes;
       RandomAccess = no;
       Maximum File Size = 4GB
       AutoChanger = yes
       Maximum Job Spool Size = 20g
       Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
     }

     Device {
       Name = Drive-1
       Drive Index = 1
       Media Type = LTO
       Archive Device = /dev/nst1
       RemovableMedia = yes;
       RandomAccess = no;
       Maximum File Size = 4GB
       AutoChanger = yes
       Maximum Job Spool Size = 20g
       Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
     }

Finally, if I were to change the Storage definitions in my pools, would I need 
to do any sort of updates to the volumes to reflect the change?
 From what I can tell, drive information isn't stored against the media in the 
database, only the pool, so I think I might be safe, but just want to double 
check.

Thanks,

----------
Jim Barber
DDI Health

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to