Hello,
Yes, I did add a patch, but unfortunately was not able to test it, so any feedback would be appropriate.
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 dotdir->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