Re: [Bacula-users] mtx on Solaris
2008-09-05 14:38:15
On Fri, Sep 05, 2008 at 01:51:14PM -0400, John Drescher wrote:
> On Fri, Sep 5, 2008 at 1:48 PM, Jason Dixon <jdixon AT omniti DOT com> wrote:
> > I'm currently at the colo facility migrating a Solaris 10 backup server
> > from NBU 4.5 to Bacula 2.4.2. I've been using FileStorage for a few
> > days, everything is running smoothly (since going to 32-bit).
> >
> > Anyways, I'm trying to get the mtx-changer script working and I seem to
> > be having some difficulty. I've installed CSWmtx (blastwave) and have
> > tried testing using the same autochanger device that tl8test (NBU) was
> > using but I'm getting nothing but errors.
> >
> > -bash-3.00$ sudo /opt/csw/sbin/mtx -f /dev/sg/c1t0l0 status
> > mtx: Request Sense: Long Report=yes
> > mtx: Request Sense: Valid Residual=no
> > mtx: Request Sense: Error Code=0 (Unknown?!)
> > mtx: Request Sense: Sense Key=No Sense
> > mtx: Request Sense: FileMark=no
> > mtx: Request Sense: EOM=no
> > mtx: Request Sense: ILI=no
> > mtx: Request Sense: Additional Sense Code = 00
> > mtx: Request Sense: Additional Sense Qualifier = 00
> > mtx: Request Sense: BPV=no
> > mtx: Request Sense: Error in CDB=no
> > mtx: Request Sense: SKSV=no
> > INQUIRY command Failed
> >
> > Any suggestions?
> >
> Was the changer doing an inventory when you ran mtx? Is bacula-sd running?
It shouldn't have been. Yes, bacula-sd is running but no scheduled jobs
are enabled to use this unit yet (only FileStorage). I started by
trying to "label barcodes" and it reported no slots:
*label barcodes
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
The defined Storage resources are:
1: Sony SDX-700C
2: FileStorage
Select Storage resource (1-2): 1
Connecting to Storage daemon Sony SDX-700C at backup-va-1:9103 ...
3306 Issuing autochanger "slots" command.
Device "Sony SDX-700C" has 0 slots.
No slots in changer to scan.
You have messages.
Then I started looking at the changer/mtx controls to diagnose it. Here
are my Autochanger and Device sections, in case I've messed something
up. I haven't made any changes to the mtx-changer script yet.
Autochanger {
Name = "QUALSTAR TLS-4212i"
Device = "Sony SDX-700C"
Changer Command = "/opt/bacula/libexec/mtx-changer %c %o %S %a %d"
Changer Device = /dev/sg/c1t0l0
}
Device {
Name = "Sony SDX-700C"
Media Type = AIT-3
Archive Device = /dev/rmt/0cbn
AutomaticMount = yes;
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = yes
# Enable the Alert command only if you have the mtx package loaded
Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}
Thanks,
--
Jason Dixon
OmniTI Computer Consulting, Inc.
jdixon AT omniti DOT com
443.325.1357 x.241
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|