Re: [Bacula-users] No slots in changer to scan.
2017-06-14 15:58:07
On 6/14/2017 2:18 PM, Marcio Merlone wrote:
Hi,
I am running a bacula server since its 3.x series, now on version 7.4,
Ubuntu 16.04 on a Dell PE 2900 (old but gold). Just got this brand new
Dell TL1000 with 8 slots and one drive as an upgrade from the old
simple LTO-4 we have. Everything works fine on bash using the
mtx-changer script, while on bconsole it does not. Any hint?
Check the permissions on the device paths. The must be read/write for
the user that bacula-sd runs as. Also check ACLs for selinux, if enabled.
root@phobos:~# lsscsi -g
[0:0:0:0] cd/dvd TSSTcorp CDRWDVD TS-H492C DE02 /dev/sr0 /dev/sg0
[2:0:8:0] enclosu DP BACKPLANE 1.05 - /dev/sg1
[2:2:0:0] disk DELL PERC 5/i 1.03 /dev/sda /dev/sg2
[3:0:0:0] tape IBM ULTRIUM-TD4 97F0 /dev/st0 /dev/sg3
[3:0:1:0] tape IBM ULT3580-HH6 G9P1 /dev/st1 /dev/sg4
[3:0:1:1] mediumx IBM 3572-TL 0071 /dev/sch0 /dev/sg5
root@phobos:~# /etc/bacula/mtx-changer /dev/sg5 slots
8
root@phobos:~# /etc/bacula/mtx-changer /dev/sg5 listall 0 /dev/sg4 0
D:0:E
S:1:F:000001L6
S:2:E
S:3:E
S:4:E
S:5:E
S:6:E
S:7:E
S:8:F:CLNU00L1
root@phobos:~# echo "update slots storage=TL1000" | bconsole
Connecting to Director 192.168.0.207:9101
1000 OK: 102 mercurio-dir Version: 7.4.7 (15 March 2017)
Enter a period to cancel a command.
update slots storage=TL1000
Automatically selected Catalog: CatalogoA1Sede
Using Catalog "CatalogoA1Sede"
Connecting to Storage daemon TL1000 at 192.168.0.207:9103 ...
3306 Issuing autochanger "slots" command.
Device "TL1000" has 0 slots.
No slots in changer to scan.
root@phobos:~#
bacula-sd.conf:
Storage {
Name = phobos-sd
SDPort = 9103
WorkingDirectory = "/var/lib/bacula"
Pid Directory = "/var/run/bacula"
Maximum Concurrent Jobs = 20
SDAddress = 192.168.0.207
Maximum Concurrent Jobs = 1
}
Device {
Name = LTO
Media Type = LTO-4
Archive Device = /dev/st0
Device Type = Tape
AutomaticMount = yes
AlwaysOpen = yes
RemovableMedia = yes
RandomAccess = no
AutoChanger = no
Volume Poll Interval = 0
Offline On Unmount = yes
Close on Poll = yes
Maximum Concurrent Jobs = 1
}
Autochanger {
Name = TL1000
device = LTO-6
Changer Device = /dev/sg5
Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a
%d"
}
Device {
Name = LTO-6
Media Type = LTO-6
Archive Device = /dev/sg4
Autochanger = yes
LabelMedia = no
AutomaticMount = yes
AlwaysOpen = yes
}
bacula-dir.conf:
Storage {
Name = LTO
Address = 192.168.0.207
SDPort = 9103
Password = "nonono"
Device = LTO
Media Type = LTO-4
Autochanger = no
Maximum Concurrent Jobs = 1
}
Storage {
Name = TL1000
Address = 192.168.0.207
SDPort = 9103
Password = "nonono"
Device = TL1000
Media Type = LTO-6
Autochanger = yes
Maximum Concurrent Jobs = 1
}
Thanks for any hint and for bacula, best regards.
------------------------------------------------------------------------------
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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
ADSM.ORG Privacy and Data Security by https://kimlaw.us
|