When running bconsole to mount or label the following error occurs.
------
# bconsole
Connecting to Director abnspsrv05:9101
1000 OK: abnspsrv05.cnh-boavista.abnot Version: 5.2.6 (21 February 2012)
Enter a period to cancel a command.
*mount
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
The defined Storage resources are:
1: File
2: Autochanger
Select Storage resource (1-2): 2
Connecting to Storage daemon Autochanger at abnspsrv05:9103 ...
3999 Device "/dev/changer" not found or could not be opened.
Enter autochanger drive[0]: 1
Enter autochanger slot: 1
3999 Device "/dev/changer" not found or could not be opened.
------
My TapeLibrary is a Dell TL4000 with two drive.
I did the tests using the mtx-changer and btape successfully. But when I run the error occurs bconsole noted above.
To help in the diagnosis following configuration files.
---bacula-sd.conf---
Autochanger {
Name = Autochanger
Device = Drive-1
Device = Drive-2
Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
Changer Device = /dev/changer
}
Device {
Name = Drive-1 #
Drive Index = 0
Media Type = LTO-4
Archive Device = /dev/nst0
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = yes
Device {
Name = Drive-2 #
Drive Index = 1
Media Type = LTO-4
Archive Device = /dev/nst1
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = yes
---END---
---bacula-dir.conf session Storage---
Storage {
Name = Autochanger
# Do not use "localhost" here
Address = abnspsrv05 # N.B. Use a fully qualified name here
SDPort = 9103
Password = "*****************************" # password for Storage daemon
Device = /dev/changer # must be same as Device in Storage daemon
Media Type = LTO-4 # must be same as MediaType in Storage daemon
Autochanger = yes # enable for autochanger device
}
---END---
Best regards
______________________________________
Ema Iron Head