I have recently moved to one Storage device per pool.

Why?

So each pool is on a different ZFS dataset.

Once I figured out the process for the first one, the rest was mostly waiting 
for data to be copied.

I documented it here: 
https://dan.langille.org/2017/09/06/bacula-ran-out-of-space-moved-some-volumes-to-another-zpool/
 
<https://dan.langille.org/2017/09/06/bacula-ran-out-of-space-moved-some-volumes-to-another-zpool/>

The final zfs layout looks like this: 
https://gist.github.com/dlangille/78811ba69b2a14f6c1e63c2b4bafc99e 
<https://gist.github.com/dlangille/78811ba69b2a14f6c1e63c2b4bafc99e>

Here is the rough overview:


# in bacula-dir.conf

Pool {
  Name             = DiffFile
  Pool Type        = Backup
  Recycle          = yes
  AutoPrune        = yes
  Volume Retention = 6 weeks
  Storage          = bacula-sd-01-DiffFile
  Next Pool        = Differentials

  Maximum Volume Bytes = 10G
  Maximum Volume Jobs  = 1
  Maximum Volumes      = 300

  LabelFormat = "DiffAuto-"
}

# Definiton of file storage device
Storage {
  Name       = bacula-sd-01-DiffFile
  Address    = bacula-sd-01.int.unixathome.org                # N.B. Use a 
fully qualified name here
  SDPort     = 9103
  Password   = "[redacted]"

  AutoChanger = Yes

  Device     = VirtualDisk-DiffFile
  Media Type = DiffFile

  Maximum Concurrent Jobs = 27
}

# in bacula-sd.conf

# why do I do an autochanger? Some AutoChangers have multiple drives.
# It's easier to make them all similar.
# an example with 10 virtual drives is here: 
https://gist.github.com/dlangille/ba787f6e6d838d2fbcc6ad9aad9afd55 
<https://gist.github.com/dlangille/ba787f6e6d838d2fbcc6ad9aad9afd55>

Autochanger {
  Name = VirtualDisk-DiffFile

  Changer Device  = /dev/null
  Changer Command = /dev/null

  Device          = vDrive-DiffFile-0
}

Device {
  Name           = vDrive-DiffFile-0
  Media Type     = DiffFile
  Archive Device = /usr/local/bacula/volumes/DiffFile
  LabelMedia     = yes
  Random Access  = yes
  AutomaticMount = yes
  RemovableMedia = no
  AlwaysOpen     = no

  Autochanger    = yes
  Drive Index    = 0

  Maximum Concurrent Jobs = 1
  Volume Poll Interval    = 15
}




Dan Langille - BSDCan / PGCon
[email protected]


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to