[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bacula-bugs
Subject:    [Bacula-bugs] [bacula 0001027]: Tape is not loaded automatically
From:       bacula-bugs () lists ! sourceforge ! net
Date:       2007-12-19 18:16:53
Message-ID: 4f803ecae9d24bcb6d1f0cd27c4ecbef () bugs ! bacula ! org
[Download RAW message or body]


The following issue has been CLOSED 
====================================================================== 
http://bugs.bacula.org/view.php?id=1027 
====================================================================== 
Reported By:                Coolride
Assigned To:                
====================================================================== 
Project:                    bacula
Issue ID:                   1027
Category:                   Storage Daemon
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     closed
Resolution:                 not a bug
Fixed in Version:           
====================================================================== 
Date Submitted:             12-16-2007 23:16 UTC
Last Modified:              12-19-2007 18:16 UTC
====================================================================== 
Summary:                    Tape is not loaded automatically due to a Btape
error.
Description: 
I am using a compaq StorageWorks SSL2020. almost everything is working
except if the tape drive ( Compaq SDX-700c ) does not contains a tape when
I start a client backup the following error is reported.

mount storage=CompaqSSL2020 
3301 Issuing autochanger "loaded? drive 0" command.
3302 Autochanger "loaded? drive 0", result: nothing loaded.
3901 open device failed: ERR=dev.c:433 Unable to open device "SDX700c"
(/dev/nst0): ERR=No medium found

it sounds like btape cannot access the drive, but if a tape is loaded
btape does not returns any error.

Tape block granularity is 1024 bytes.
btape: butil.c:285 Using device: "/dev/nst0" for writing.
17-Dec 01:14 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0"
command.
17-Dec 01:14 btape JobId 0: 3302 Autochanger "loaded? drive 0", result is
Slot 3.
17-Dec 01:14 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0"
command.
17-Dec 01:14 btape JobId 0: 3302 Autochanger "loaded? drive 0", result is
Slot 3.
btape: btape.c:368 open device "SDX700c" (/dev/nst0): OK





====================================================================== 

---------------------------------------------------------------------- 
 Coolride - 12-18-07 08:02  
---------------------------------------------------------------------- 
I changed 1 thing. 
The definition of my device in /etc/bacula/bacula-dir.conf 

- Device = SDX700c
+ Device = CompaqSSL2020

problem is not solved ( still got errors when drive initialy empty ). but
I saw that if a tape is inserted in the drive, Bacula will eject it and
mount an appropriate volume. 

---------------------------------------------------------------------- 
 Coolride - 12-18-07 08:07  
---------------------------------------------------------------------- 
as a test, I installed the stable version from debian's repos. yesterday,
and there is no problem when you test the configuration with Btape. no
errors reported even if the drive is empty. 

---------------------------------------------------------------------- 
 kern - 12-18-07 12:06  
---------------------------------------------------------------------- 
What Linux distribution/version are you using?

What Linux tape driver are you using to access the tape? (see output from
lsmod command).

Is there some reason why this bug is marked "private" for the view status? 

---------------------------------------------------------------------- 
 Coolride - 12-18-07 23:09  
---------------------------------------------------------------------- 
Hello kern, 

I am running a debian lenny kernel 2.6.22.
here is my st version I hope this is what you requested.

 modinfo st
filename:       /lib/modules/2.6.22-3-k7/kernel/drivers/scsi/st.ko
alias:          scsi:t-0x01*
alias:          char-major-9-*
license:        GPL
description:    SCSI tape (st) driver
author:         Kai Makisara
depends:        scsi_mod
vermagic:       2.6.22-3-k7 SMP mod_unload K7
parm:           buffer_kbs:Default driver buffer size for fixed block mode
(KB; 32) (int)
parm:           max_sg_segs:Maximum number of scatter/gather segments to
use (256) (int)
parm:           try_direct_io:Try direct I/O between user buffer and tape
drive (1) (int)
parm:           try_rdio:Try direct read i/o when possible (int)
parm:           try_wdio:Try direct write i/o when possible (int)

and my scsi_mod version

modinfo scsi_mod
filename:       /lib/modules/2.6.22-3-k7/kernel/drivers/scsi/scsi_mod.ko
license:        GPL
description:    SCSI core
depends:
vermagic:       2.6.22-3-k7 SMP mod_unload K7
parm:           dev_flags:Given scsi_dev_flags=vendor:model:flags[,v:m:f]
add black/white list entries for vendor and model with an integer value of
flags to the scsi device info list (string)
parm:           default_dev_flags:scsi default device flag integer value
(int)
parm:           max_luns:last scsi LUN (should be between 1 and 2^32-1)
(int)
parm:           scan:sync, async or none (string)
parm:           max_report_luns:REPORT LUNS maximum number of LUNS
received (should be between 1 and 16384) (int)
parm:           inq_timeout:Timeout (in seconds) waiting for devices to
answer INQUIRY. Default is 5. Some non-compliant devices need more. (int)
parm:           scsi_logging_level:a bit mask of logging levels (int)


BTW we ( a friend of mine and I ) have followed your great bacula
presentation at the FOSDEM begin this year. Great job you have done. thank
you very much.

Oh yeah, I don't know why the private checkbox was flagged. 
Vincent.

 

---------------------------------------------------------------------- 
 kern - 12-19-07 12:13  
---------------------------------------------------------------------- 
In looking this over, I don't think there is any problem or bug with
Bacula, but most likely you have not done an "update slots" command and/or
you forgot to indicate in your Director's conf file that the Storage device
is an autochanger, because normally with an autochanger, the mount command
will ask you what slot you want loaded. In looking at your Storage resource
for the Dir, I do not see the "Autochanger = yes" directive.

I also think you are confusing btape with Bacula.  The two are separate
programs.  The Bacula SD does not use btape for any of its operations -- in
fact, you cannot run Bacula and btape at the same time.  If you do, you
will have a drive conflict -- unless you unmount the drive in Bacula
first.

This looks like a support problem to me, and if my comments above don't
resolve it, most likely www.bacula.org -> Support will get you going.

Thanks for you kind comments on my FOSDEM talk :-) 

---------------------------------------------------------------------- 
 Coolride - 12-19-07 12:48  
---------------------------------------------------------------------- 
That will be the problem.  I have set the autochanger directive in
bacula-sd.conf but not in bacula-dir.conf. 

I will test that tonight at home and let you know if it solve my problem.


Anyway, Thank you very much for your support. 

Vincent. 

---------------------------------------------------------------------- 
 Coolride - 12-19-07 17:57  
---------------------------------------------------------------------- 
Hi kern,

The Autochanger = yes, was indeed the solution. I have put the line in my
bacula-dir.conf and started the beast. Now tapes are automatically picked
from the loader and put in the drive. 

Bacula is a great tool !

A very big thank you for your support. If I can be from any help, do not
hesitate to ask me.

Vincent. 

---------------------------------------------------------------------- 
 kern - 12-19-07 18:16  
---------------------------------------------------------------------- 
Support issue resolved :-) 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
12-16-07 23:16  Coolride       New Issue                                    
12-18-07 08:02  Coolride       Note Added: 0003021                          
12-18-07 08:07  Coolride       Note Added: 0003022                          
12-18-07 08:07  Coolride       Issue Monitored: Coolride                    
12-18-07 12:06  kern           Note Added: 0003024                          
12-18-07 23:08  Coolride       Note Added: 0003026                          
12-18-07 23:09  Coolride       Note Edited: 0003026                         
12-19-07 12:13  kern           Note Added: 0003027                          
12-19-07 12:13  kern           View Status              private => public   
12-19-07 12:13  kern           Steps to Reproduce Updated                    
12-19-07 12:14  kern           Status                   new => feedback     
12-19-07 12:48  Coolride       Note Added: 0003028                          
12-19-07 17:57  Coolride       Note Added: 0003029                          
12-19-07 18:16  kern           Note Added: 0003030                          
12-19-07 18:16  kern           Status                   feedback => closed  
12-19-07 18:16  kern           Resolution               open => not a bug   
======================================================================


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Bacula-bugs mailing list
Bacula-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic