Hello Wanderlei,Well if Changer Command is not defined doing a status slots 
will generate the error you are seeing.Best regards,KernSent from my Samsung 
Galaxy smartphone.
-------- Original message --------From: Wanderlei Huttel 
<wanderleihut...@gmail.com> Date: 3/10/20  15:57  (GMT+01:00) To: Kern Sibbald 
<k...@sibbald.com> Cc: bacula-devel@lists.sourceforge.net Subject: Re: 
[Bacula-devel] Fwd: Doubt about Bacula Storage/Autochanger Hello KernI'm using 
a File Storage and use default bacula-sd.conf as exampleBest regardsWanderlei 
HüttelEm ter., 10 de mar. de 2020 às 09:32, Kern Sibbald <k...@sibbald.com> 
escreveu:
  
    
  
  
    Hello Wanderlei,
    It looks like you forgot to define the Changer Command.
    Best regards,
    Kern
    
    On 3/9/20 2:22 PM, Wanderlei Huttel
      wrote:
    
    
      
      
        Hello
          
          I've saw that Kern had commited an update in
          "bacula/src/stored/autochanger.c", because a Question that
          I've done last week (the email below)
        
          The fix only print the changer name and it looks after %s
          should not have the dot
        dir->fsend(_("3996 Open bpipe to changer failed: %s.\n"), changer);  
        
        
        
        *status slots storage=StorageLocal1
            Connecting to Storage daemon StorageLocal1 at 192.168.1.1:9103
            ...
            3306 Issuing autochanger "slots" command.
            3996 Open bpipe to changer failed: .
            Device "StorageLocal1" has 0 slots.
            No slots in changer to scan.
        
        
        
          
            
              
                
                  
                    
                      
                        
                          
                            Best regards
                            
                            
                            Wanderlei Hüttel
                            
                            
                          
                        
                      
                    
                  
                
              
            
          
        
        
        
          
          
          Hello
            
            In the newer Bacula versions, in the bacula-dir.conf, was
            replaced "Storage" resources for "Autochanger" resources.
            
            I was using "Storage" resources instead "Autochanger"
            resource since the beginning of my touch with Bacula.
            
            Today I've tried to modify and change Storage for
            Autochanger and did, but I noticed and error when I run a "
            status slots storage="StorageLocal1"
             
            
-----------------------------------------------------------
              *status slots storage="StorageLocal1"
              Connecting to Storage daemon StorageLocal1 at 192.168.1.1:9103 ...
              3306 Issuing autochanger "slots" command.
              3996 Open bpipe failed.
              Device "StorageLocal1" has 0 slots.
              No slots in changer to scan.
              
              bacula-dir.conf (autochanger resource)
              Autochanger {
                Name = "StorageLocal1"                 # DIR Autochanger
              Name
                Address = 192.168.0.1
                SDPort = 9103
                Password = "XXXXXXXXXXXXXXXXXXXXXXXXXXX"
                Device = "StorageLocal1"               # SD Autochanger
              Name
                Media Type = File                      # SD Media type
              Device
                Maximum Concurrent Jobs = 50
                Heartbeat Interval = 300 seconds
                Autochanger = "StorageLocal1"          # point to
              ourself
              }
            
                bacula-sd.conf (autochanger and device resource)
            Autochanger {
                  Name = "StorageLocal1"      # SD Autochanger Name
                  Device = "DiscoLocal1"      # SD Device NAme
                  Changer Command = ""
                  Changer Device = /dev/null
                }
                
                Device {
                  Name = "DiscoLocal1"        # SD Device Name
                  Media Type = File
                  Device Type = File
                  Archive Device = "/backup/disco01"
                  LabelMedia = yes
                  Random Access = Yes
                  AlwaysOpen = yes
                  Maximum Concurrent Jobs = 50
                }
              
            -----------------------------------------------------------  
            
            
              Is this error OK, or is
                necessary to do some more configurations?
              
              
              
                
                  
                    
                      
                        
                          
                            
                              Best regards
                              
                              
                              Wanderlei Hüttel
                              
                              
                            
                          
                        
                      
                    
                  
                
              
            
          
        
      
      
      
      
      
      _______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

    
  


_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to