>>I am trying to get backups to work and I have 2 problems, I keep having to 
>>manually label a "tape" (so now I have 3 Local "tapes" and also I get BLOCKED 
>>and backups will not run.



>>Device is BLOCKED waiting to create a volume for:

It means that there is no usable volume available, and so Bacula asks you to 
create a new one.

instead of giving label manually you can follow these steps:



first take backup of your configuration files.



1. After looking into your configurations files, you can define these 
primitives in "Pool resource" in your "bacula-dir.conf" file and "Device 
resource" in your "bacula-sd.conf" file





# bacula-dir.conf



Pool {

  Name = File

  Pool Type = Backup

  Label Format = Local-

  Recycle = yes                                      # Bacula can automatically 
recycle Volumes

  AutoPrune = yes                                # Prune expired volumes

  Volume Retention = 365 days            # one year

  Maximum Volumes = 100                 # Limit number of Volumes in Pool

}



Here:

The Recycle = yes                             :It is used to permit automatic 
recycling of Volumes whose Volume retention period has expired.

The AutoPrune = yes                      :If AutoPrune is set to yes Bacula 
will prune file records that are older than the specified file retention period

The Volume Retention = ttt         :It defines the length of time that Bacula 
will keep records associated with the Volume in the Catalog database after the 
End time of each Job

The Maximum Volumes = nnn    : it is used to define the record in the Pool 
resource to limit the number of Volumes that can be created.





# bacula-sd.conf



Device {

  Name = FileStorage

   Media Type = File

   Archive Device = /bacula/backup

   Random Access = Yes;

   RemovableMedia = no;

   AlwaysOpen = no;

   LabelMedia = yes;                        # lets Bacula label unlabeled media

   AutomaticMount = yes;               # when device opened, read it

}



Here:

The Automatic labeling work is to give the Storage daemon permission to 
automatically label Volumes by adding LabelMedia = yes to the Device resource.

The AutomaticMount = yes is used to read devices when they are open.





After performing these changes in your configuration file restart your mariadb 
and bacula services



$ Systemctl restart mariadb

$ Systemctl restart bacula-dir

$ Systemctl restart bacula-sd


Thanks & Regards
Soniya

------------------------------------------------------------------------------
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to