Ansprechen eines Changers unter BSD - mtx

From: Hannes Widmer <h.widmer(at)cybernet.ch>
Date: Wed, 5 Oct 2005 14:14:58 +0200

Hallo Miteinander

Ich bin im Bezug auf Bacula / Backup auf meinem DLT
Wechsler etwas weiter gekommen. Doch schwietere ich
immernoch am Wechsler selber aber denke nurnoch was
kleines vergessen zu haben..nur was ?...
Hier der fehler den ich bekomme beim Labeln von Bacula:

*label
Using default Catalog name=MyCatalog DB=bacula
Automatically selected Storage: DLT-0
Enter new Volume name: HomeData2
Enter slot (0 for none): 2
Automatically selected Pool: Default
Connecting to Storage daemon DLT-0 at cheef:9103 ...
Sending label command for Volume "HomeData2" Slot 2 ...
3301 Issuing autochanger "loaded drive 0" command.
3991 Bad autochanger "loaded drive 0" command: ERR=Child exited with
code 1.
3304 Issuing autochanger "load slot 2, drive 0" command.
3992 Bad autochanger "load slot 2, drive 0": ERR=Child exited with code
1. Label command failed for Volume HomeData2.
Do not forget to mount the drive!!!

You have messages.

Ausschnitt meiner bacula-sd.conf
Device {
Name = "DLT-0";
Media Type = DLT;
Archive Device = /dev/sa0;
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
# RemovableMedia = yes;
Label Media = yes;
Hardware End of Medium = No;
Fast Forward Space File = No
BSF at EOM = yes;
# RandomAccess = no;
Autochanger = yes;
Changer Device = /dev/pass0;
# Changer Command = "/usr/local/sbin/chio-bacula %c %o %S %a %d";
Changer Command = "/usr/local/sbin/mtx %c %o %S %a"
# Changer Command = "/usr/local/share/bacula/mtx-changer %c %o %S %a %d"
# Drive Index = 0;
# Maximum Spool Size = 2gb
# Maximum Job Spool Size = 1gb
# Spool Directory = /backuptmp/spool/dlt-0
}

Auszug bacula-dir.conf

Storage {
Name = DLT-0
#Do not use "localhost" here
Address = cheef # N.B. Use a fully qualified name here
SDPort = 9103
Password = "1/qdqGCrBGWUaqU7G4CHRThJ32x5PC8rBnmgGkf3FsMS" #
password
for Storage daemon
Device = DLT-0 # must be same as Device in Storage daemon
Media Type = DLT # must be same as MediaType in Storage
daemon
Autochanger = yes
}

Hier noch ein paar generelle Informationen. Wie ihr sieht,
hab ich mit dem Changer Command in bacula-sd.conf gespielt da
es mit dem normalen mtx Command in der console geht aber bei
Bacula nicht. Hab bislang gedacht es liege am Changer command
nur sicher bin ich mir da auch nicht mehr.

Gruss und vielen Dank
Hannes

cheef# mtx -f /dev/sa0 load 1
cannot open SCSI device '/dev/sa0' - Device not configured

cheef# mtx -f /dev/pass0 load 1
    -dies ging aber

cheef# camcontrol devlist
<DEC TL800 (C) DEC 0326> at scbus2 target 3 lun 0 (ch0,pass0)
<DEC TZ89 (C) DEC 2150> at scbus2 target 4 lun 0 (sa0,pass1)

cheef# loaderinfo -f /dev/pass0
Product Type: Medium Changer
Vendor ID: 'DEC '
Product ID: 'TL800 (C) DEC'
Revision: '0326'
Attached Changer: No
Bar Code Reader: Yes
EAAP: Yes
Number of Medium Transport Elements: 1
Number of Storage Elements: 10
Number of Import/Export Element Elements: 0
Number of Data Transfer Elements: 1
Transport Geometry Descriptor Page: Yes
Invertable: No
Device Configuration Page: Yes

To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Wed 05 Oct 2005 - 14:15:54 CEST

search this site