Bacula-users

Re: [Bacula-users] bacula can unmount a tape but can't mount another tape

2009-05-05 06:56:40
Subject: Re: [Bacula-users] bacula can unmount a tape but can't mount another tape
From: "C.DriK" <c.drik-achats AT orange DOT fr>
To: bacula <bacula-users AT lists.sourceforge DOT net>
Date: Tue, 5 May 2009 12:50:59 +0200 (CEST)
I forgot to clarify that my bacula-sd.conf, I just add:

Autoselect = yes

But I have not yet tested


> Message du 05/05/09 12:48
> De : "C.DriK" 
> A : bacula-users AT lists.sourceforge DOT net
> Copie à : 
> Objet : [Bacula-users] bacula can unmount a tape but can't mount another tape
> 
> Hello,
> 
> I have a tape drive DELL PowerVault TL2000, it works very well with Bacula.
> Only one thing does not work, the Autochanger.
> Here is a little more detail:
> 
> I have 2 pools, 1 pool windows and 1 pool linux.
> For each pool I have a LTO-3 tape.
> Imagine that in the Drive-0 is the tape of linux-pool and one of the other 
> slots (slot1 for example) there is the pool-strip windows.
> At 0h00, backup pool-linux starts, once the backup finished bacula unmounts 
> the tape pool-linux and put it in slot 2.
> Then comes the pool of backup windows ... and this is where the problem. 
> Bacula does not put the tape in the drive-0 but he leaves to Slot1, I 
> received a mail to alert me that Bacula needs an intervention for mount the 
> tape.
> 
> So to summarize, bacula comes out the tape player to put in a slot but can 
> not do the opposite.
> 
> I specified the name of the Autochanger in "Device" in my bacula-dir.conf.
> the test with btape finish successfully.
> Here is my bacula-sd.conf :
> 
> #
> # Default Bacula Storage Daemon Configuration file
> #
> # For Bacula release 2.4.4 (28 December 2008) -- debian lenny/sid
> #
> # You may need to change the name of your tape drive
> # on the "Archive Device" directive in the Device
> # resource. If you change the Name and/or the 
> # "Media Type" in the Device resource, please ensure
> # that dird.conf has corresponding changes.
> #
> 
> Storage { # definition of myself
> Name = yeodi-sd
> SDPort = 9103 # Director's port 
> WorkingDirectory = "/var/lib/bacula"
> Pid Directory = "/var/run/bacula"
> Maximum Concurrent Jobs = 20
> # SDAddress = xxx.xxx.xxx.xxx
> }
> 
> #
> # List Directors who are permitted to contact Storage daemon
> #
> Director {
> Name = yeodi-dir
> Password = "mypassword"
> }
> 
> #
> # Restricted Director, used by tray-monitor to get the
> # status of the storage daemon
> #
> Director {
> Name = yeodi-mon
> Password = "mypassword"
> Monitor = yes
> }
> 
> #
> # Devices supported by this Storage daemon
> # To connect, the Director's bacula-dir.conf must have the
> # same Name and MediaType. 
> #
> 
> 
> Autochanger {
> Name = Archant
> Device = Drive-0
> Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
> Changer Device = /dev/sg1
> }
> 
> Device {
> Name = "Drive-0"
> Drive Index = 0
> Media Type = LTO-3
> Archive Device = /dev/nst0
> LabelMedia = yes
> AutomaticMount = yes
> AlwaysOpen = yes
> RemovableMedia = yes
> RandomAccess = no
> AutoChanger = yes
> Autoselect = yes
> }
> 
> 
> Messages {
> Name = Standard
> director = yeodi-dir = all
> }
> 
> 
> In my /dev/ I have :
> 
> nst0 , nst0a , nst0l , nst0m , sch0 , sg0 , sg1 , st0 , st0a , st0l , st0m , 
> tape.
> 
> When I make a dmesg |grep scsi :
> 
> root@yeodi:/dev# dmesg | grep scsi
> [ 2.092398] scsi0 : ioc0: LSI53C1020A A1, FwRev=01032700h, Ports=1, MaxQ=255, 
> IRQ=16
> [ 4.546000] scsi 0:0:4:0: Sequential-Access IBM ULT3580-TD3 73P5 PQ: 0 ANSI: 3
> [ 4.593728] scsi 0:0:4:1: Medium Changer IBM 3573-TL 5.80 PQ: 0 ANSI: 5
> [ 7.674325] st 0:0:4:0: Attached scsi tape st0
> [ 7.745583] ch 0:0:4:1: Attached scsi changer ch0
> [ 7.749584] st 0:0:4:0: Attached scsi generic sg0 type 1
> [ 7.749584] ch 0:0:4:1: Attached scsi generic sg1 type 8
> [ 23.434566] scsi1 : ioc1: LSISAS1068E B3, FwRev=00192f00h, Ports=1, 
> MaxQ=266, IRQ=1275
> [ 23.463128] scsi 1:0:0:0: Direct-Access ATA ST31000340NS MA07 PQ: 0 ANSI: 5
> [ 23.464257] scsi 1:0:0:0: Attached scsi generic sg2 type 0
> [ 23.468768] scsi 1:0:1:0: Direct-Access ATA ST31000340NS MA07 PQ: 0 ANSI: 5
> [ 23.469429] scsi 1:0:1:0: Attached scsi generic sg3 type 0
> [ 23.473377] scsi 1:1:0:0: Direct-Access Dell VIRTUAL DISK 1028 PQ: 0 ANSI: 5
> [ 23.473448] scsi 1:1:0:0: Attached scsi generic sg4 type 0
> [ 23.575414] scsi2 : SCSI emulation for USB Mass Storage devices
> [ 23.640049] scsi3 : ata_piix
> [ 23.641100] scsi4 : ata_piix
> [ 24.527313] scsi 3:0:1:0: CD-ROM TEAC DVD-ROM DV28SV D.0E PQ: 0 ANSI: 5
> [ 24.527313] scsi 3:0:1:0: Attached scsi generic sg5 type 5
> [ 24.595814] sr0: scsi3-mmc drive: 24x/24x cd/rw xa/form2 cdda tray
> [ 24.595814] sr 3:0:1:0: Attached scsi CD-ROM sr0
> [ 28.961832] scsi 2:0:0:0: Direct-Access DELL RD1000 2030 PQ: 0 ANSI: 3
> [ 28.969833] sd 2:0:0:0: Attached scsi generic sg6 type 0
> 
> and when I make a cat /proc/scsi/scsi :
> 
> Attached devices:
> Host: scsi0 Channel: 00 Id: 04 Lun: 00
> Vendor: IBM Model: ULT3580-TD3 Rev: 73P5
> Type: Sequential-Access ANSI SCSI revision: 03
> Host: scsi0 Channel: 00 Id: 04 Lun: 01
> Vendor: IBM Model: 3573-TL Rev: 5.80
> Type: Medium Changer ANSI SCSI revision: 05
> Host: scsi1 Channel: 00 Id: 00 Lun: 00
> Vendor: ATA Model: ST31000340NS Rev: MA07
> Type: Direct-Access ANSI SCSI revision: 05
> Host: scsi1 Channel: 00 Id: 01 Lun: 00
> Vendor: ATA Model: ST31000340NS Rev: MA07
> Type: Direct-Access ANSI SCSI revision: 05
> Host: scsi1 Channel: 01 Id: 00 Lun: 00
> Vendor: Dell Model: VIRTUAL DISK Rev: 1028
> Type: Direct-Access ANSI SCSI revision: 05
> Host: scsi3 Channel: 00 Id: 01 Lun: 00
> Vendor: TEAC Model: DVD-ROM DV28SV Rev: D.0E
> Type: CD-ROM ANSI SCSI revision: 05
> Host: scsi2 Channel: 00 Id: 00 Lun: 00
> Vendor: DELL Model: RD1000 Rev: 2030
> Type: Direct-Access ANSI SCSI revision: 02
> root@yeodi:/dev# 
> 
> 
> Thank you in advance for your help.
> 
> Cédric
> 
> 
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
> Series Scanner you'll get full speed at 300 dpi even with all image 
> processing features enabled. http://p.sf.net/sfu/kodak-com
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
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>