SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
EXABYTE 110 L autochanger problem
Author Message
Post EXABYTE 110 L autochanger problem 
Attachments: Message as HTML

Hi=20!I'm=20trying=20to=20run=20my=20autochanger=20(EXABYTE=20110L=20unde=
r=20Mandriva=202007)=20with=20BACULA=202.0.2=20but=20still=20without=20an=
y=20effects.
Test=20by=20btape=20seems=20to=20be=20good:301=20Issuing=20autochanger=20=
"loaded"=20command.
Slot=201=20loaded.=20I=20am=20going=20to=20unload=20it.
3302=20Issuing=20autochanger=20"unload=201=200"=20command.
unload=20status=3DOK=200
3303=20Issuing=20autochanger=20"load=201=200"=20command.
3303=20Autochanger=20"load=201=200"=20status=20is=20OK.
07-mar=2021:25=20btape:=203301=20Issuing=20autochanger=20"loaded?=20drive=
=200"=20command.
07-mar=2021:25=20btape:=203302=20Autochanger=20"loaded?=20drive=200",=20r=
esult=20is=20Slot=201.
btape:=20btape.c:368=20open=20device=20"Driv1"=20(/dev/nst0):=20OK
btape:=20btape.c:1235=20Rewound=20"Driv1"=20(/dev/nst0)
btape:=20btape.c:1242=20Wrote=20EOF=20to=20"Driv1"=20(/dev/nst0)The=20tes=
t=20autochanger=20worked!!
but=20I=20can't=20still=20use=20in=20bconsole=20"update=20slots":*update=20=
slots
Automatically=20selected=20Catalog:=20MyCatalog
Using=20Catalog=20"MyCatalog"
Automatically=20selected=20Storage:=20Drive-1
Connecting=20to=20Storage=20daemon=20Drive-1=20at=20localhost:9103=20...
3306=20Issuing=20autochanger=20"slots"=20command.
Device=20"Drive-1"=20has=200=20slots.
No=20slots=20in=20changer=20to=20scan.My=20sd=20config:Autochanger=20{
=20=20Name=20=3D=20"Drive-1"
=20=20Device=20=3D=20Driv1
=20=20Changer=20Device=20=3D=20/dev/sg2
=20=20Changer=20Command=20=3D=20"/etc/bacula/mtx-changer=20%c=20%o=20%S=20=
/dev/nst0=200"
}Device=20{
=20=20Name=20=3D=20Driv1=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20#
=20=20Drive=20Index=20=3D=200
=20=20Media=20Type=20=3D=20"Ultrium=201"
=20=20Archive=20Device=20=3D=20/dev/nst0
=20=20AutoChanger=20=3D=20yes;
=20=20AutomaticMount=20=3D=20yes;=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20#=20when=20device=20opened,=20read=20it
=20=20AlwaysOpen=20=3D=20yes;
=20=20RemovableMedia=20=3D=20yes;
}
and=20dir=20config:Storage=20{
=20=20Name=20=3D=20"Drive-1"
=20=20Address=20=3D=20myhost=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=

=20=20SDPort=20=3D=209103
=20=20Password=20=3D=20"xxxxxx"
=20=20Device=20=3D=20"Drive-1"
=20=20Media=20Type=20=3D=20"Ultrium=201"
=20=20Autochanger=20=3D=20yes
}Could=20anyone=20help=20me=20?Alex

Post EXABYTE 110 L autochanger problem 
Hi,

On 3/7/2007 8:43 PM, Alex wrote:
Hi !

I'm trying to run my autochanger (EXABYTE 110L under Mandriva 2007) with
BACULA 2.0.2 but still without any effects.
Test by btape seems to be good:

/301 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.
07-mar 21:25 btape: 3301 Issuing autochanger "loaded? drive 0" command.
07-mar 21:25 btape: 3302 Autochanger "loaded? drive 0", result is Slot 1.
btape: btape.c:368 open device "Driv1" (/dev/nst0): OK
btape: btape.c:1235 Rewound "Driv1" (/dev/nst0)
btape: btape.c:1242 Wrote EOF to "Driv1" (/dev/nst0)/

/The test autochanger worked!!

/but I can't still use in bconsole "update slots":

*update slots


/Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Automatically selected Storage: Drive-1
Connecting to Storage daemon Drive-1 at localhost:9103 ...
3306 Issuing autochanger "slots" command.
Device "Drive-1" has 0 slots.

This looks like the mtx-changer script doesn't report the number of slots.

What happens if you run mtx-changer on the command line (as a user that
can access the device!) like this:
'./mtx-changer /dev/sg2 slots'

If that doesn't report anything, or a "0", you should have a close look
at what the script does.

It might be a permissions problem.

Arno

No slots in changer to scan./

My sd config:

/Autochanger {
Name = "Drive-1"
Device = Driv1
Changer Device = /dev/sg2
Changer Command = "/etc/bacula/mtx-changer %c %o %S /dev/nst0 0"
}/

/Device {
Name = Driv1 #
Drive Index = 0
Media Type = "Ultrium 1"
Archive Device = /dev/nst0
AutoChanger = yes;
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
}
/

and dir config:

/Storage {
Name = "Drive-1"
Address = myhost
SDPort = 9103
Password = "xxxxxx"
Device = "Drive-1"
Media Type = "Ultrium 1"
Autochanger = yes
}/

Could anyone help me ?

Alex


------------------------------------------------------------------------

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


------------------------------------------------------------------------

_______________________________________________
Bacula-users mailing list
Bacula-users < at > li...
https://lists.sourceforge.net/lists/listinfo/bacula-users

--
IT-Service Lehmann al < at > it...
Arno Lehmann http://www.its-lehmann.de

Post EXABYTE 110 L autochanger problem 
Attachments: Message as HTML

----=20Wiadomo=C5=9B=C4=87=20Oryginalna=20----=20
Od:=20Arno=20Lehmann=20
Do:=20bacula-users < at > li...=20
Data:=207=20marca=202007=2021:51=20
Temat:=20Re:=20[Bacula-users]=20EXABYTE=20110=20L=20autochanger=20problem=
=20
&gt;=20Hi,=20
&gt;=20
&gt;=20On=203/7/2007=208:43=20PM,=20Alex=20wrote:=20
&gt;=20&gt;=20Hi=20!=20
&gt;=20&gt;=20
&gt;=20&gt;=20I'm=20trying=20to=20run=20my=20autochanger=20(EXABYTE=20110=
L=20under=20Mandriva=202007)=20with=20
&gt;=20&gt;=20BACULA=202.0.2=20but=20still=20without=20any=20effects.=20
&gt;=20&gt;=20Test=20by=20btape=20seems=20to=20be=20good:=20
&gt;=20&gt;=20
&gt;=20&gt;=20/301=20Issuing=20autochanger=20"loaded"=20command.=20
&gt;=20&gt;=20Slot=201=20loaded.=20I=20am=20going=20to=20unload=20it.=20
&gt;=20&gt;=203302=20Issuing=20autochanger=20"unload=201=200"=20command.=20=

&gt;=20&gt;=20unload=20status=3DOK=200=20
&gt;=20&gt;=203303=20Issuing=20autochanger=20"load=201=200"=20command.=20=

&gt;=20&gt;=203303=20Autochanger=20"load=201=200"=20status=20is=20OK.=20
&gt;=20&gt;=2007-mar=2021:25=20btape:=203301=20Issuing=20autochanger=20"l=
oaded?=20drive=200"=20command.=20
&gt;=20&gt;=2007-mar=2021:25=20btape:=203302=20Autochanger=20"loaded?=20d=
rive=200",=20result=20is=20Slot=201.=20
&gt;=20&gt;=20btape:=20btape.c:368=20open=20device=20"Driv1"=20(/dev/nst0=
):=20OK=20
&gt;=20&gt;=20btape:=20btape.c:1235=20Rewound=20"Driv1"=20(/dev/nst0)=20
&gt;=20&gt;=20btape:=20btape.c:1242=20Wrote=20EOF=20to=20"Driv1"=20(/dev/=
nst0)/=20
&gt;=20&gt;=20
&gt;=20&gt;=20/The=20test=20autochanger=20worked!!=20
&gt;=20&gt;=20
&gt;=20&gt;=20/but=20I=20can't=20still=20use=20in=20bconsole=20"update=20=
slots":=20
&gt;=20&gt;=20
&gt;=20&gt;=20*update=20slots=20
&gt;=20&gt;=20
&gt;=20&gt;=20
&gt;=20&gt;=20/Automatically=20selected=20Catalog:=20MyCatalog=20
&gt;=20&gt;=20Using=20Catalog=20"MyCatalog"=20
&gt;=20&gt;=20Automatically=20selected=20Storage:=20Drive-1=20
&gt;=20&gt;=20Connecting=20to=20Storage=20daemon=20Drive-1=20at=20localho=
st:9103=20...=20
&gt;=20&gt;=203306=20Issuing=20autochanger=20"slots"=20command.=20
&gt;=20&gt;=20Device=20"Drive-1"=20has=200=20slots.=20
&gt;=20
&gt;=20This=20looks=20like=20the=20mtx-changer=20script=20doesn't=20repor=
t=20the=20number=20of=20slots.=20
&gt;=20
&gt;=20What=20happens=20if=20you=20run=20mtx-changer=20on=20the=20command=
=20line=20(as=20a=20user=20that=20
&gt;=20can=20access=20the=20device!)=20like=20this:=20
&gt;=20'./mtx-changer=20/dev/sg2=20slots'=20
&gt;=20
&gt;=20If=20that=20doesn't=20report=20anything,=20or=20a=20"0",=20you=20s=
hould=20have=20a=20close=20look=20
&gt;=20at=20what=20the=20script=20does.=20
&gt;=20
&gt;=20It=20might=20be=20a=20permissions=20problem.=20
&gt;=20
&gt;=20ArnoI've=20checked=20it=20=20from=20two=20possible=20accounts.=20E=
verything=20seems=20to=20be=20O.K.=20but=20the=20autochanger=20still=20ca=
n't=20read=20the=20slots=20:bacula < at > BACK=20bacula]$=20./mtx-changer=20/dev=
/sg2=20slots
10
What=20should=20be=20wronge=20else=20??Alex=20
&gt;=20
&gt;=20&gt;=20No=20slots=20in=20changer=20to=20scan./=20
&gt;=20&gt;=20
&gt;=20&gt;=20My=20sd=20config:=20
&gt;=20&gt;=20
&gt;=20&gt;=20/Autochanger=20{=20
&gt;=20&gt;=20Name=20=3D=20"Drive-1"=20
&gt;=20&gt;=20Device=20=3D=20Driv1=20
&gt;=20&gt;=20Changer=20Device=20=3D=20/dev/sg2=20
&gt;=20&gt;=20Changer=20Command=20=3D=20"/etc/bacula/mtx-changer=20%c=20%=
o=20%S=20/dev/nst0=200"=20
&gt;=20&gt;=20}/=20
&gt;=20&gt;=20
&gt;=20&gt;=20/Device=20{=20
&gt;=20&gt;=20Name=20=3D=20Driv1=20#=20
&gt;=20&gt;=20Drive=20Index=20=3D=200=20
&gt;=20&gt;=20Media=20Type=20=3D=20"Ultrium=201"=20
&gt;=20&gt;=20Archive=20Device=20=3D=20/dev/nst0=20
&gt;=20&gt;=20AutoChanger=20=3D=20yes;=20
&gt;=20&gt;=20AutomaticMount=20=3D=20yes;=20#=20when=20device=20opened,=20=
read=20it=20
&gt;=20&gt;=20AlwaysOpen=20=3D=20yes;=20
&gt;=20&gt;=20RemovableMedia=20=3D=20yes;=20
&gt;=20&gt;=20}=20
&gt;=20&gt;=20/=20
&gt;=20&gt;=20
&gt;=20&gt;=20and=20dir=20config:=20
&gt;=20&gt;=20
&gt;=20&gt;=20/Storage=20{=20
&gt;=20&gt;=20Name=20=3D=20"Drive-1"=20
&gt;=20&gt;=20Address=20=3D=20myhost=20
&gt;=20&gt;=20SDPort=20=3D=209103=20
&gt;=20&gt;=20Password=20=3D=20"xxxxxx"=20
&gt;=20&gt;=20Device=20=3D=20"Drive-1"=20
&gt;=20&gt;=20Media=20Type=20=3D=20"Ultrium=201"=20
&gt;=20&gt;=20Autochanger=20=3D=20yes=20
&gt;=20&gt;=20}/=20
&gt;=20&gt;=20
&gt;=20&gt;=20Could=20anyone=20help=20me=20?=20
&gt;=20&gt;=20
&gt;=20&gt;=20Alex=20
&gt;=20&gt;=20
&gt;=20&gt;=20
&gt;=20&gt;=20-----------------------------------------------------------=
-------------=20
&gt;=20&gt;=20
&gt;=20&gt;=20-----------------------------------------------------------=
--------------=20
&gt;=20&gt;=20Take=20Surveys.=20Earn=20Cash.=20Influence=20the=20Future=20=
of=20IT=20
&gt;=20&gt;=20Join=20SourceForge.net's=20Techsay=20panel=20and=20you'll=20=
get=20the=20chance=20to=20share=20your=20
&gt;=20&gt;=20opinions=20on=20IT=20&amp;=20business=20topics=20through=20=
brief=20surveys-and=20earn=20cash=20
&gt;=20&gt;=20http://www.techsay.com/default.php?page=3Djoin.php&amp;p=3D=
sourceforge&amp;CID=3DDEVDEV=20
&gt;=20&gt;=20
&gt;=20&gt;=20
&gt;=20&gt;=20-----------------------------------------------------------=
-------------=20
&gt;=20&gt;=20
&gt;=20&gt;=20=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=20
&gt;=20&gt;=20Bacula-users=20mailing=20list=20
&gt;=20&gt;=20Bacula-users < at > li...=20
&gt;=20&gt;=20https://lists.sourceforge.net/lists/listinfo/bacula-users=20=

&gt;=20
&gt;=20--=20
&gt;=20IT-Service=20Lehmann=20al < at > it...=20
&gt;=20Arno=20Lehmann=20http://www.its-lehmann.de=20
&gt;=20
&gt;=20------------------------------------------------------------------=
-------=20
&gt;=20Take=20Surveys.=20Earn=20Cash.=20Influence=20the=20Future=20of=20I=
T=20
&gt;=20Join=20SourceForge.net's=20Techsay=20panel=20and=20you'll=20get=20=
the=20chance=20to=20share=20your=20
&gt;=20opinions=20on=20IT=20&amp;=20business=20topics=20through=20brief=20=
surveys-and=20earn=20cash=20
&gt;=20http://www.techsay.com/default.php?page=3Djoin.php&amp;p=3Dsourcef=
orge&amp;CID=3DDEVDEV=20
&gt;=20=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=20
&gt;=20Bacula-users=20mailing=20list=20
&gt;=20Bacula-users < at > li...=20
&gt;=20https://lists.sourceforge.net/lists/listinfo/bacula-users=20

Post EXABYTE 110 L autochanger problem 
Hi,

On 3/8/2007 1:21 PM, Alex wrote:
---- Wiadomo=C5=9B=C4=87 Oryginalna ----
Od: Arno Lehmann
Do: bacula-users < at > li...
Data: 7 marca 2007 21:51
Temat: Re: [Bacula-users] EXABYTE 110 L autochanger problem
=20
Hi,

On 3/7/2007 8:43 PM, Alex wrote:
Hi !

I'm trying to run my autochanger (EXABYTE 110L under Mandriva 2007=
)=20
with
BACULA 2.0.2 but still without any effects.
Test by btape seems to be good:

/301 Issuing autochanger "loaded" command.
Slot 1 loaded. I am going to unload it.
3302 Issuing autochanger "unload 1 0" command.
unload status=3DOK 0
3303 Issuing autochanger "load 1 0" command.
3303 Autochanger "load 1 0" status is OK.
07-mar 21:25 btape: 3301 Issuing autochanger "loaded? drive 0"=20
command.
07-mar 21:25 btape: 3302 Autochanger "loaded? drive 0", result is =

Slot 1.
btape: btape.c:368 open device "Driv1" (/dev/nst0): OK
btape: btape.c:1235 Rewound "Driv1" (/dev/nst0)
btape: btape.c:1242 Wrote EOF to "Driv1" (/dev/nst0)/

/The test autochanger worked!!

/but I can't still use in bconsole "update slots":

*update slots


/Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Automatically selected Storage: Drive-1
Connecting to Storage daemon Drive-1 at localhost:9103 ...
3306 Issuing autochanger "slots" command.
Device "Drive-1" has 0 slots.

This looks like the mtx-changer script doesn't report the number of =

slots.

What happens if you run mtx-changer on the command line (as a user t=
hat
can access the device!) like this:
'./mtx-changer /dev/sg2 slots'

If that doesn't report anything, or a "0", you should have a close l=
ook
at what the script does.

It might be a permissions problem.

Arno
=20
I've checked it from two possible accounts. Everything seems to be O.K=
=2E=20
but the autochanger still can't read the slots :
=20
/bacula < at > BACK/ <mailto:bacula < at > BACK>/ bacula]$ ./mtx-changer /dev/sg2 slo=
ts
10
/
=20
What should be wronge else ??

Hmm... I suggest you enable debug output for the SD by starting the SD=20
like 'bacula-sd -c /etc/bacula/bacula-sd.conf -d 400 -f -v'.

This will run the SD in the foreground and produce lots of debug output.

Then, start ONE job to use the tape changer and see what that produces=20
when a tape nees to be changed. You could then post the relevant part of =

the output here.

Alternatively, you could add some debug output to mtx-changer and=20
redirect that to some log file.

By the way - I notice something in the configuration only now... see=20
below. For example I have the following above the first test clause:

echo "------" >>/var/log/mtx-changer.log
echo "Called with $ < at > at `date`" >>/var/log/mtx-changer.log

and this (on one line)

echo "Doing mtx -f $ctl -- to get count of slots at `date`"=20
/var/log/mtx-changer.log

after the "slots)" in the final case switch.

Then I find "Doing mtx -f /dev/sg7 -- to get count of slots at Thu Mar=20
8 22:17:19 CET 2007" in the log file while I'm running a job spanning tap=
es.

You could easily add the raw output from the mtx command to the log to=20
see if the output, for some reason doesn't fit to what the awk expects.

Alex
=20
=20

No slots in changer to scan./

My sd config:

/Autochanger {
Name =3D "Drive-1"
Device =3D Driv1
Changer Device =3D /dev/sg2
Changer Command =3D "/etc/bacula/mtx-changer %c %o %S /dev/nst0 0"=

This line above - it's probably better to write

Changer Command =3D "/etc/bacula/mtx-changer %c %o %S %a %d"

so that you don't have to keep the configuration current in two places.

I don't think this is related to the problem you have as the information =

should be correct for you.

Arno

--=20
IT-Service Lehmann al < at > it...
Arno Lehmann http://www.its-lehmann.de

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB