Bacula-users

Re: [Bacula-users] Bacula + TS3100 Ubuntu 8.10

2009-05-20 02:59:09
Subject: Re: [Bacula-users] Bacula + TS3100 Ubuntu 8.10
From: Arno Lehmann <al AT its-lehmann DOT de>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 20 May 2009 08:52:55 +0200
Hello,

19.05.2009 05:45, Terion wrote:
> Help please.

Problem description please... what you posted is mostly unreadable, 
with all the HTML entities in it.

> root@storage:/etc/bacula# uname -a
> Linux storage 2.6.27-7-server #1 SMP Fri Oct 24 07:20:47 UTC 2008 x86_64 
> GNU/Linux
> 
> root@storage&#58;/etc/bacula# dmesg | grep scsi 
> &#91;&nbsp; &nbsp;18.210019&#93; scsi0 &#58; Adaptec AIC79XX PCI-X SCSI HBA 
> DRIVER, Rev 3.0
> &#91;&nbsp; &nbsp;18.357551&#93; scsi1 &#58; SCSI emulation for USB Mass 
> Storage devices&nbsp; &nbsp;
> &#91;&nbsp; &nbsp;18.357771&#93; scsi2 &#58; SCSI emulation for USB Mass 
> Storage devices&nbsp; &nbsp;
> &#91;&nbsp; &nbsp;19.239971&#93; scsi target0&#58;0&#58;4&#58; 
> asynchronous&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; 
> &#91;&nbsp; &nbsp;19.242755&#93; scsi 0&#58;0&#58;4&#58;0&#58; 
> Sequential-Access IBM&nbsp; &nbsp; &nbsp; ULT3580-TD3&nbsp; &nbsp; &nbsp; 
> 73P5 PQ&#58; 0 ANSI&#58; 3
> &#91;&nbsp; &nbsp;19.242771&#93; scsi target0&#58;0&#58;4&#58; Beginning 
> Domain Validation&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &#91;&nbsp; &nbsp;19.248927&#93; scsi target0&#58;0&#58;4&#58; wide 
> asynchronous&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp;
> &#91;&nbsp; &nbsp;19.253654&#93; scsi target0&#58;0&#58;4&#58; FAST-80 WIDE 
> SCSI 160.0 MB/s DT &#40;12.5 ns, offset 127&#41;&nbsp; &nbsp; &nbsp;
> &#91;&nbsp; &nbsp;19.271456&#93; scsi target0&#58;0&#58;4&#58; Domain 
> Validation skipping write tests&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; 
> &#91;&nbsp; &nbsp;19.271458&#93; scsi target0&#58;0&#58;4&#58; Ending Domain 
> Validation&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &#91;&nbsp; &nbsp;19.274795&#93; scsi 0&#58;0&#58;4&#58;1&#58; Medium 
> Changer&nbsp; &nbsp; IBM&nbsp; &nbsp; &nbsp; 3573-TL&nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; 6.50 PQ&#58; 0 ANSI&#58; 5
> &#91;&nbsp; &nbsp;21.842989&#93; scsi 0&#58;0&#58;4&#58;0&#58; Attached scsi 
> generic sg0 type 1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &#91;&nbsp; &nbsp;21.843057&#93; scsi 0&#58;0&#58;4&#58;1&#58; Attached scsi 
> generic sg1 type 8&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &#91;&nbsp; &nbsp;21.916306&#93; ch 0&#58;0&#58;4&#58;1&#58; Attached scsi 
> changer ch0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &#91;&nbsp; &nbsp;21.916597&#93; st 0&#58;0&#58;4&#58;0&#58; Attached scsi 
> tape st0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &#91;&nbsp; &nbsp;23.351356&#93; scsi 2&#58;0&#58;0&#58;0&#58; CD-ROM&nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MATSHITA UJDA780 DVD/CDRW CA21 PQ&#58; 0 
> ANSI&#58; 0
> &#91;&nbsp; &nbsp;23.363864&#93; scsi 1&#58;0&#58;0&#58;0&#58; 
> Direct-Access&nbsp; &nbsp; &nbsp;TEAC&nbsp; &nbsp; &nbsp;FD-05PUB&nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp;3200 PQ&#58; 0 ANSI&#58; 0 CCS
> &#91;&nbsp; &nbsp;23.364447&#93; scsi 1&#58;0&#58;0&#58;0&#58; Attached scsi 
> generic sg2 type 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &#91;&nbsp; &nbsp;23.364537&#93; scsi 2&#58;0&#58;0&#58;0&#58; Attached scsi 
> generic sg3 type 5&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &#91;&nbsp; &nbsp;23.432716&#93; sr0&#58; scsi3-mmc drive&#58; 24x/24x writer 
> cd/rw xa/form2 cdda tray&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp;
> &#91;&nbsp; &nbsp;23.432823&#93; sr 2&#58;0&#58;0&#58;0&#58; Attached scsi 
> CD-ROM sr0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; 
> &#91;&nbsp; &nbsp;29.633575&#93; scsi3 &#58; ioc0&#58; LSISAS1064E B1, 
> FwRev=01125400h, Ports=1, MaxQ=511, IRQ=2294&nbsp; &nbsp; &nbsp; 
> &#91;&nbsp; &nbsp;29.648164&#93; scsi 3&#58;0&#58;0&#58;0&#58; 
> Direct-Access&nbsp; &nbsp; &nbsp;IBM-ESXS CBRBA146C3ETS0 N C331 PQ&#58; 0 
> ANSI&#58; 5&nbsp; &nbsp; 
> &#91;&nbsp; &nbsp;29.649358&#93; scsi 3&#58;0&#58;0&#58;0&#58; Attached scsi 
> generic sg4 type 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &#91;&nbsp; &nbsp;29.651620&#93; scsi 3&#58;0&#58;1&#58;0&#58; 
> Direct-Access&nbsp; &nbsp; &nbsp;IBM-ESXS CBRBA146C3ETS0 N C331 PQ&#58; 0 
> ANSI&#58; 5&nbsp; &nbsp; 
> &#91;&nbsp; &nbsp;29.652804&#93; scsi 3&#58;0&#58;1&#58;0&#58; Attached scsi 
> generic sg5 type 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &#91;&nbsp; &nbsp;29.655651&#93; scsi 3&#58;1&#58;0&#58;0&#58; 
> Direct-Access&nbsp; &nbsp; &nbsp;LSILOGIC Logical Volume&nbsp; &nbsp;3000 
> PQ&#58; 0 ANSI&#58; 2&nbsp; &nbsp; 
> &#91;&nbsp; &nbsp;29.689098&#93; sd 3&#58;1&#58;0&#58;0&#58; Attached scsi 
> generic sg6 type 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &#91;&nbsp; &nbsp;29.854518&#93; scsi4 &#58; ata_piix&nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &#91;&nbsp; &nbsp;29.855417&#93; scsi5 &#58; ata_piix&nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> 
> 
> root@storage&#58;/etc/bacula# lsscsi -g&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &#91;0&#58;0&#58;4&#58;0&#93;&nbsp; &nbsp; tape&nbsp; &nbsp; IBM&nbsp; &nbsp; 
> &nbsp; ULT3580-TD3&nbsp; &nbsp; &nbsp; 73P5&nbsp; /dev/st0&nbsp; 
> /dev/sg0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &#91;0&#58;0&#58;4&#58;1&#93;&nbsp; &nbsp; mediumx IBM&nbsp; &nbsp; &nbsp; 
> 3573-TL&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 6.50&nbsp; -&nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp;/dev/sg1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &#91;1&#58;0&#58;0&#58;0&#93;&nbsp; &nbsp; disk&nbsp; &nbsp; TEAC&nbsp; 
> &nbsp; &nbsp;FD-05PUB&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3200&nbsp; -&nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp;/dev/sg2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; 
> &#91;2&#58;0&#58;0&#58;0&#93;&nbsp; &nbsp; cd/dvd&nbsp; MATSHITA UJDA780 
> DVD/CDRW CA21&nbsp; -&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/dev/sg3&nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &#91;3&#58;0&#58;0&#58;0&#93;&nbsp; &nbsp; disk&nbsp; &nbsp; IBM-ESXS 
> CBRBA146C3ETS0 N C331&nbsp; -&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/dev/sg4&nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &#91;3&#58;0&#58;1&#58;0&#93;&nbsp; &nbsp; disk&nbsp; &nbsp; IBM-ESXS 
> CBRBA146C3ETS0 N C331&nbsp; -&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/dev/sg5&nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &#91;3&#58;1&#58;0&#58;0&#93;&nbsp; &nbsp; disk&nbsp; &nbsp; LSILOGIC Logical 
> Volume&nbsp; &nbsp;3000&nbsp; -&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/dev/sg6 
> 
> 
> root@storage&#58;/etc/bacula# cat /proc/scsi/scsi
> Attached devices&#58;
> Host&#58; scsi0 Channel&#58; 00 Id&#58; 04 Lun&#58; 00
> &nbsp; Vendor&#58; IBM&nbsp; &nbsp; &nbsp; Model&#58; ULT3580-TD3&nbsp; 
> &nbsp; &nbsp; Rev&#58; 73P5
> &nbsp; Type&#58;&nbsp; &nbsp;Sequential-Access&nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; ANSI&nbsp; SCSI revision&#58; 03
> Host&#58; scsi0 Channel&#58; 00 Id&#58; 04 Lun&#58; 01
> &nbsp; Vendor&#58; IBM&nbsp; &nbsp; &nbsp; Model&#58; 3573-TL&nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; Rev&#58; 6.50
> &nbsp; Type&#58;&nbsp; &nbsp;Medium Changer&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ANSI&nbsp; SCSI revision&#58; 05
> Host&#58; scsi1 Channel&#58; 00 Id&#58; 00 Lun&#58; 00
> &nbsp; Vendor&#58; TEAC&nbsp; &nbsp; &nbsp;Model&#58; FD-05PUB&nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp;Rev&#58; 3200
> &nbsp; Type&#58;&nbsp; &nbsp;Direct-Access&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ANSI&nbsp; SCSI revision&#58; 00
> Host&#58; scsi2 Channel&#58; 00 Id&#58; 00 Lun&#58; 00
> &nbsp; Vendor&#58; MATSHITA Model&#58; UJDA780 DVD/CDRW Rev&#58; CA21
> &nbsp; Type&#58;&nbsp; &nbsp;CD-ROM&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ANSI&nbsp; SCSI 
> revision&#58; 00
> Host&#58; scsi3 Channel&#58; 00 Id&#58; 00 Lun&#58; 00
> &nbsp; Vendor&#58; IBM-ESXS Model&#58; CBRBA146C3ETS0 N Rev&#58; C331
> &nbsp; Type&#58;&nbsp; &nbsp;Direct-Access&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ANSI&nbsp; SCSI revision&#58; 05
> Host&#58; scsi3 Channel&#58; 00 Id&#58; 01 Lun&#58; 00
> &nbsp; Vendor&#58; IBM-ESXS Model&#58; CBRBA146C3ETS0 N Rev&#58; C331
> &nbsp; Type&#58;&nbsp; &nbsp;Direct-Access&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ANSI&nbsp; SCSI revision&#58; 05
> Host&#58; scsi3 Channel&#58; 01 Id&#58; 00 Lun&#58; 00
> &nbsp; Vendor&#58; LSILOGIC Model&#58; Logical Volume&nbsp; &nbsp;Rev&#58; 
> 3000
> &nbsp; Type&#58;&nbsp; &nbsp;Direct-Access&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ANSI&nbsp; SCSI revision&#58; 02
> 
> 
> /dev/ - nst0 nst0a nst0l nst0m st0 st0a st0l st0m sg0 sg1 sg2 sg3 sg4 sg5 sg6
> 
> 
> 
> bacula-dir.conf
> Autochanger {
> Name = Archant
> Device = TS3100
> Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
> Changer Device = /dev/sg1
> }
> 
> Device {
> Name = TS3100
> Drive Index = 0
> Media Type = tape
> Archive Device = /dev/nst0
> LabelMedia = yes
> AutomaticMount = yes
> AlwaysOpen = yes
> RemovableMedia = yes
> RandomAccess = no
> AutoChanger = yes
> Autoselect = yes
> }
> 
> root@storage:/etc/bacula# btape -c bacula-sd.conf /dev/nst0
> Tape block granularity is 1024 bytes.
> btape: butil.c:285 Using device: "/dev/nst0" for writing.
> 19-&#1052;&#1072;&#1081; 11:31 btape JobId 0: 3301 Issuing autochanger 
> "loaded? drive 0" command.
> 19-&#1052;&#1072;&#1081; 11:31 btape JobId 0: 3302 Autochanger "loaded? drive 
> 0", result: nothing loaded.
> 19-&#1052;&#1072;&#1081; 11:31 btape: Fatal Error at device.c:290 because:
> dev open failed: dev.c:432 Unable to open device "TS3100" (/dev/nst0): ERR=No 
> medium found

Is a tape loaded in the drive? Can you access the tape drive using mt?

Arno

> 19-&#1052;&#1072;&#1081; 11:31 btape JobId 0: Fatal error: butil.c:194 Cannot 
> open "TS3100" (/dev/nst0)

-- 
Arno Lehmann
IT-Service Lehmann
Sandstr. 6, 49080 Osnabrück
www.its-lehmann.de

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>