Re: Sony StorStation LIB-81 bacula Konfiguration
Hallo
Mir ist noch nicht so ganz klar, was die Begriffe
Archive Device = /dev/sg3
Changer Device = /dev/sg3
und bei der Ausgabe
lsscsi -g
[0:0:0:0] disk Areca ARC-1261-VOL#00 R001 /dev/sda /dev/sg0
[0:0:0:1] disk Areca ARC-1261-VOL#01 R001 /dev/sdb /dev/sg1
[0:0:16:0] process Areca RAID controller R001 - /dev/sg2
[1:0:0:0] mediumx SONY LIB-81 0109 /dev/sch0 /dev/sg3
[1:0:1:0] tape SONY SDX-900V 0105 /dev/st0 /dev/sg4
/dev/sch0 /dev/sg3 bzw.
/dev/st0 /dev/sg4
bedeuten. Muss ich jetzt /dev/sg3 und /dev/sg4 benutzen oder /dev/sch0
bzw. /dev/st0?
Bei letzteren bekomme ich nämlich immer eine Fehlermeldung von
tapeinfo -f /dev/sch0
failed to set sg timeout - Invalid argument
bei
tapeinfo -f /dev/sg3
Product Type: Medium Changer
Vendor ID: 'SONY '
Product ID: 'LIB-81 '
Revision: '0109'
Attached Changer: No
SerialNumber: '02535256'
SCSI ID: 0
SCSI LUN: 0
Ready: yes
tapeinfo -f /dev/sg4
Product Type: Tape Drive
Vendor ID: 'SONY '
Product ID: 'SDX-900V '
Revision: '0105'
Attached Changer: No
SerialNumber: '0001056686'
MinBlock:2
MaxBlock:8388608
SCSI ID: 1
SCSI LUN: 0
Ready: no
btape -c /etc/bacula/bacula-sd.conf /dev/sg3
Tape block granularity is 1024 bytes.
btape: butil.c:272 Using device: "/dev/sg3" for writing.
17-Okt 13:13 btape: 3301 Issuing autochanger "loaded drive 0" command.
17-Okt 13:13 btape: 3302 Autochanger "loaded drive 0", result is Slot 1.
17-Okt 13:13 btape: 3301 Issuing autochanger "loaded drive 0" command.
17-Okt 13:13 btape: 3302 Autochanger "loaded drive 0", result is Slot 1.
btape: btape.c:338 open device "Sony LIB-81 AIT4" (/dev/sg3): OK
*test
=== Write, rewind, and re-read test ===
I'm going to write 1000 records and an EOF
then write 1000 records and an EOF, then rewind,
and re-read the data to verify that it is correct.
This is an *essential* feature ...
17-Okt 13:14 btape: 3301 Issuing autochanger "loaded drive 0" command.
17-Okt 13:14 btape: 3302 Autochanger "loaded drive 0", result is Slot 1.
btape: btape.c:775 Bad status from rewind. ERR=dev.c:678 Rewind error on
"Sony LIB-81 AIT4" (/dev/sg3). ERR=Das Argument ist ungültig.
*auto
Ah, I see you have an autochanger configured.
To test the autochanger you must have a blank tape
that I can write on in Slot 1.
Do you wish to continue with the Autochanger test? (y/n): y
=== Autochanger test ===
3301 Issuing autochanger "loaded" command.
Slot 1 loaded. I am going to unload it.
3302 Issuing autochanger "unload 1 0" command.
unload status=OK 0
3303 Issuing autochanger "load 1 0" command.
3303 Autochanger "load 1 0" status is OK.
17-Okt 13:16 btape: 3301 Issuing autochanger "loaded drive 0" command.
17-Okt 13:16 btape: 3302 Autochanger "loaded drive 0", result is Slot 1.
btape: btape.c:338 open device "Sony LIB-81 AIT4" (/dev/sg3): OK
17-Okt 13:16 btape: 3301 Issuing autochanger "loaded drive 0" command.
17-Okt 13:16 btape: 3302 Autochanger "loaded drive 0", result is Slot 1.
btape: btape.c:1198 Bad status from rewind. ERR=dev.c:678 Rewind error
on "Sony LIB-81 AIT4" (/dev/sg3). ERR=Das Argument ist ungültig.
The test failed, probably because you need to put
a longer sleep time in the mtx-script in the load) case.
Adding a 30 second sleep and trying again ...
3301 Issuing autochanger "loaded" command.
Slot 1 loaded. I am going to unload it.
3302 Issuing autochanger "unload 1 0" command.
Reply to: