On 12/29/15 09:49 PM, David Pearce wrote: > We've been running a single Dell ML6000 autochanger with two internal LTO-4 > drives for some time. We have a second autochanger (a duplicate of the first > one) attached to the same computer. > > Every time I have tried to make this work, I never can. If someone can guide > me, I'd sure appreciate it. If I try to run a job against "tape2", I get this > error message. > Storage daemon didn't accept Device "Autochanger1" because: > 3924 Device "Autochanger1" not in SD Device resources or no matching > Media Type. > > > Here are the configuration file bits: >
I think the SD raises this error for multiple errors so it might sometime be somewhat besides the truth some times. > > Autochanger { > Name = Autochanger1 > Device = Drive-2, Drive-3 > Changer Command = "/etc/bareos/scripts/mtx-changer %c %o %S %a %d" > Changer Device = /dev/tape/by-id/scsi-1ADIC_A0C0048024_LLA > } > > Device { > Name = Drive-2 > Drive Index = 2 This makes no sense Drive Index is per changer e.g. probably should be 0 > Media Type = ULTRIUM-LTO-4b > Archive Device = /dev/tape/by-id/scsi-3500308c09d3ab000-nst > Changer Device = /dev/tape/by-id/scsi-1ADIC_A0C0048024_LLA This makes also no sense when you have it in your changer definition. > Device Type = Tape > AutomaticMount = yes; > AlwaysOpen = yes; > RemovableMedia = yes; > RandomAccess = no; > AutoChanger = yes > Check Labels = yes > LabelMedia = yes > Label Type = ANSI > Alert Command = "sh -c '/usr/sbin/smartctl -H -d scsi -l error %c'" > Maximum Spool Size = 100gb > Maximum Job Spool Size = 60gb > Spool Directory = /dspool > } > > Device { > Name = Drive-3 > Drive Index = 3 This makes no sense Drive Index is per changer e.g. probably should be 1 > Media Type = ULTRIUM-LTO-4b > Archive Device = /dev/tape/by-id/scsi-3500308c09d3ab004-nst > Changer Device = /dev/tape/by-id/scsi-1ADIC_A0C0048024_LLA This makes also no sense when you have it in your changer definition. > Device Type = Tape > AutomaticMount = yes; > AlwaysOpen = yes; > RemovableMedia = yes; > RandomAccess = no; > AutoChanger = yes > Check Labels = yes > LabelMedia = yes > Label Type = ANSI Are you sharing the drives that you use the ANSI labeling ? > Alert Command = "sh -c '/usr/sbin/smartctl -H -d scsi -l error %c'" > Maximum Spool Size = 100gb > Maximum Job Spool Size = 60gb > Spool Directory = /dspool > } > > > > > If I ask for a storage status, I can get this: > > Device status: > Autochanger "Autochanger0" with devices: > "Drive-0" (/dev/tape/by-id/scsi-3500308c09c552000-nst) > "Drive-1" (/dev/tape/by-id/scsi-3500308c09c552004-nst) > Autochanger "Autochanger1" with devices: > "Drive-2" (/dev/tape/by-id/scsi-3500308c09d3ab000-nst) > "Drive-3" (/dev/tape/by-id/scsi-3500308c09d3ab004-nst) > > Device "Drive-0" (/dev/tape/by-id/scsi-3500308c09c552000-nst) is not open. > Drive 0 is not loaded. > == > > Device "Drive-1" (/dev/tape/by-id/scsi-3500308c09c552004-nst) is not open. > Drive 1 is not loaded. > == > > Device "Drive-2" (/dev/tape/by-id/scsi-3500308c09d3ab000-nst) is not open. > Drive 2 is not loaded. > == > > Device "Drive-3" (/dev/tape/by-id/scsi-3500308c09d3ab004-nst) is not open. > Drive 3 is not loaded. > == > ==== > > ---> Device "Drive-2" did have a tape in it, despite what the status said. > That is for sure the problem with the drive index as you ask the library for the content of drive index 2 e.g. the 3th drive which it probably doesn't have. -- Marco van Wieringen marco.van.wierin...@bareos.com Bareos GmbH & Co. KG Phone: +49-221-63069389 http://www.bareos.com Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646 Komplementär: Bareos Verwaltungs-GmbH Geschäftsführer: Stephan Dühr, M. Außendorf, J. Steffens, P. Storz, M. v. Wieringen -- You received this message because you are subscribed to the Google Groups "bareos-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users+unsubscr...@googlegroups.com. To post to this group, send email to bareos-users@googlegroups.com. For more options, visit https://groups.google.com/d/optout.