"bacula error /dev/backup"

Hassen_Gharbi Posted messages 15 Status Member -  
Hassen_Gharbi Posted messages 15 Status Member -
Hello
My problem is very simple but I can't solve it, when I run comcon bconsole to check the status of Device it shows this message
"Device "FileChgr1-Dev1" (/dev/backup/) is not open"

Thank you in advance

2 answers

  1. brupala Posted messages 111124 Registration date   Status Member Last intervention   14 437
     
    Hi,
    what are you talking about actually?

    --
    and ... Here you go!
    0
    1. Hassen_Gharbi Posted messages 15 Status Member
       
      I wanted to make a backup using Bacula. I successfully installed and configured it, but the problem is that when I perform a backup, it shows that there is an error.
      0
      1. brupala Posted messages 111124 Registration date   Status Member Last intervention   14 437 > Hassen_Gharbi Posted messages 15 Status Member
         
        ah OK,
        so this is it
        0
  2. Pinzou76 Posted messages 750 Status Member 192
     
    Hello,
    First, you need to create a volume for the Device.
    I can't say much more, I gave up on Bacula because it was too difficult to use and the documentation is hard to read.. But I know that this error is solved by that.
    Good luck.
    0
    1. Hassen_Gharbi Posted messages 15 Status Member
       
      I installed bacula ... And here is what I find in the configuration files
      Director { # define myself
      Name = Master-dir
      #DIRport = 9101 # where we listen for UA connections
      QueryFile = "/etc/bacula/scripts/query.sql"
      WorkingDirectory = "/var/lib/bacula"
      PidDirectory = "/var/run/bacula"
      Maximum Concurrent Jobs = 20
      Password = "rdAN57eTIo4uIBaLEAGqmImU8Pz21Uc16" # Console password
      Messages = Daemon
      #DirAddress = 127.0.0.1
      DirAddresses = {
      ip = { addr = 192.168.1.47; port = 9101; }

      }
      }

      Storage {
      Name = File1
      # Address = 192.168.1.47 here # N.B. Use a fully qualified name here

      SDPort = 9103
      Password = "irWoo5Xo3IuDHXv7kn3-FWwl6oMAEZNw0"
      Device = /dev/backup
      Media Type = Home
      Maximum Concurrent Jobs = 10 # run up to 10 jobs at the same time


      }
      Pool {
      Name = Home
      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 Volume Bytes = 50G # Limit Volume size to something reasonable
      Maximum Volumes = 100 # Limit number of Volumes in Pool
      }

      Pool { Pool definition

      Name = File
      Pool Type = Backup
      Recycle = yes # Bacula can automatically recycle Volumes
      AutoPrune = yes # Prune expired volumes
      Volume Retention = 365 days # one year
      Maximum Volume Bytes = 50G # Limit Volume size to something reasonable
      Maximum Volumes = 100 # Limit number of Volumes in Pool
      Label Format = "Vol-" # Auto label
      }

      But when I connect to the console and label it an error appears here it is

      # bconsole
      Connecting to Director 192.168.1.47:9101
      1000 OK: 1 Master-dir Version: 7.0.5 (28 July 2014)
      Enter a period to cancel a command.
      • label

      Automatically selected Catalog: MyCatalog
      Using Catalog "MyCatalog"
      The defined Storage resources are:
      1: File1
      2: File2
      Select Storage resource (1-2): 1
      Enter new Volume name: file
      Defined Pools:
      1: Default
      2: File
      3: Scratch
      4: RemoteFile
      5: Home
      Select the Pool (1-5): 1
      Connecting to Storage daemon File1 at 192.168.1.47:9103 ...
      Sending label command for Volume "file" Slot 0 ...
      3999 Device "/dev/backup" not found or could not be opened.
      Label command failed for Volume file.
      Do not forget to mount the drive!!!
      0