Attachments: Message as HTML
-----=20Original=20Message=20-----From:=20"Arno=20Lehmann"=20<al < at > its-l=
ehmann.de>To:=20<bacula-users < at > li...>Sent:=20Thur=
sday,=20March=2008,=202007=2010:39=20PMSubject:=20Re:=20[Bacula-users]=20=
EXABYTE=20110=20L=20autochanger=20problem>=20Hi,>>=20On=203/8/20=
07=201:21=20PM,=20Alex=20wrote:>>=20----=20Wiadomo=C5=9B=C4=87=20Or=
yginalna=20---->>=20Od:=20Arno=20Lehmann>>=20Do:=20bacula-use=
rs < at > li...>>=20Data:=207=20marca=202007=2021:51>&g=
t;=20Temat:=20Re:=20[Bacula-users]=20EXABYTE=20110=20L=20autochanger=20pr=
oblem>>>>=20>=20Hi,>>=20>>>=20>=20On=203=
/7/2007=208:43=20PM,=20Alex=20wrote:>>=20>=20>=20Hi=20!>&g=
t;=20>=20>>>=20>=20>=20I'm=20trying=20to=20run=20my=20a=
utochanger=20(EXABYTE=20110L=20under=20Mandriva=202007)>>=20with>=
;>=20>=20>=20BACULA=202.0.2=20but=20still=20without=20any=20effe=
cts.>>=20>=20>=20Test=20by=20btape=20seems=20to=20be=20good:&=
gt;>=20>=20>>>=20>=20>=20/301=20Issuing=20autochange=
r=20"loaded"=20command.>>=20>=20>=20Slot=201=20loaded.=20I=20=
am=20going=20to=20unload=20it.>>=20>=20>=203302=20Issuing=20a=
utochanger=20"unload=201=200"=20command.>>=20>=20>=20unload=20=
status=3DOK=200>>=20>=20>=203303=20Issuing=20autochanger=20"l=
oad=201=200"=20command.>>=20>=20>=203303=20Autochanger=20"loa=
d=201=200"=20status=20is=20OK.>>=20>=20>=2007-mar=2021:25=20b=
tape:=203301=20Issuing=20autochanger=20"loaded?=20drive=200">>=20co=
mmand.>>=20>=20>=2007-mar=2021:25=20btape:=203302=20Autochang=
er=20"loaded?=20drive=200",=20result=20is>>=20Slot=201.>>=20&=
gt;=20>=20btape:=20btape.c:368=20open=20device=20"Driv1"=20(/dev/nst0)=
:=20OK>>=20>=20>=20btape:=20btape.c:1235=20Rewound=20"Driv1"=20=
(/dev/nst0)>>=20>=20>=20btape:=20btape.c:1242=20Wrote=20EOF=20=
to=20"Driv1"=20(/dev/nst0)/>>=20>=20>>>=20>=20>=20=
/The=20test=20autochanger=20worked!!>>=20>=20>>>=20>=
=20>=20/but=20I=20can't=20still=20use=20in=20bconsole=20"update=20slot=
s":>>=20>=20>>>=20>=20>=20*update=20slots>>=
=20>=20>>>=20>=20>>>=20>=20>=20/Automatical=
ly=20selected=20Catalog:=20MyCatalog>>=20>=20>=20Using=20Cata=
log=20"MyCatalog">>=20>=20>=20Automatically=20selected=20Stor=
age:=20Drive-1>>=20>=20>=20Connecting=20to=20Storage=20daemon=
=20Drive-1=20at=20localhost:9103=20...>>=20>=20>=203306=20Iss=
uing=20autochanger=20"slots"=20command.>>=20>=20>=20Device=20=
"Drive-1"=20has=200=20slots.>>=20>>>=20>=20This=20looks=
=20like=20the=20mtx-changer=20script=20doesn't=20report=20the=20number=20=
of>>=20slots.>>=20>>>=20>=20What=20happens=20if=20=
you=20run=20mtx-changer=20on=20the=20command=20line=20(as=20a=20user=20&g=
t;>=20that>>=20>=20can=20access=20the=20device!)=20like=20thi=
s:>>=20>=20'./mtx-changer=20/dev/sg2=20slots'>>=20>>=
>=20>=20If=20that=20doesn't=20report=20anything,=20or=20a=20"0",=20=
you=20should=20have=20a=20close=20>>=20look>>=20>=20at=20w=
hat=20the=20script=20does.>>=20>>>=20>=20It=20might=20b=
e=20a=20permissions=20problem.>>=20>>>=20>=20Arno>&g=
t;>>=20I've=20checked=20it=20from=20two=20possible=20accounts.=20Ev=
erything=20seems=20to=20be=20O.K.>>=20but=20the=20autochanger=20sti=
ll=20can't=20read=20the=20slots=20:>>>>=20/bacula < at > BACK/=20<=
;mailto:bacula < at > BACK>/=20bacula]$=20./mtx-changer=20/dev/sg2=20slots>=
;>=2010>>=20/>>>>=20What=20should=20be=20wronge=20el=
se=20??>>=20Hmm...=20I=20suggest=20you=20enable=20debug=20output=20=
for=20the=20SD=20by=20starting=20the=20SD>=20like=20'bacula-sd=20-c=20=
/etc/bacula/bacula-sd.conf=20-d=20400=20-f=20-v'.>>=20This=20will=20=
run=20the=20SD=20in=20the=20foreground=20and=20produce=20lots=20of=20debu=
g=20output.>>=20Then,=20start=20ONE=20job=20to=20use=20the=20tape=20=
changer=20and=20see=20what=20that=20produces>=20when=20a=20tape=20nees=
=20to=20be=20changed.=20You=20could=20then=20post=20the=20relevant=20part=
=20of>=20the=20output=20here.>>=20Alternatively,=20you=20could=20=
add=20some=20debug=20output=20to=20mtx-changer=20and>=20redirect=20tha=
t=20to=20some=20log=20file.>>=20By=20the=20way=20-=20I=20notice=20s=
omething=20in=20the=20configuration=20only=20now...=20see>=20below.=20=
For=20example=20I=20have=20the=20following=20above=20the=20first=20test=20=
clause:>>=20echo=20"------"=20>>/var/log/mtx-changer.log>=20=
echo=20"Called=20with=20$ < at > =20at=20`date`"=20>>/var/log/mtx-changer.=
log>>=20and=20this=20(on=20one=20line)>>=20echo=20"Doing=20mt=
x=20-f=20$ctl=20--=20to=20get=20count=20of=20slots=20at=20`date`">=20&=
gt;>/var/log/mtx-changer.log>>=20after=20the=20"slots)"=20in=20t=
he=20final=20case=20switch.>>=20Then=20I=20find=20"Doing=20mtx=20-f=
=20/dev/sg7=20--=20to=20get=20count=20of=20slots=20at=20Thu=20Mar>=208=
=2022:17:19=20CET=202007"=20in=20the=20log=20file=20while=20I'm=20running=
=20a=20job=20spanning=20>=20tapes.>>=20You=20could=20easily=20ad=
d=20the=20raw=20output=20from=20the=20mtx=20command=20to=20the=20log=20to=
>=20see=20if=20the=20output,=20for=20some=20reason=20doesn't=20fit=20t=
o=20what=20the=20awk=20expects.>I've=20done=20it=20in=20firt=20way.Aft=
er=20sending=20command=20"update=20slots"=20in=20a=20bconsole=20I=20got=20=
the=20messages:localhost-sd:=20bnet.c:1154=20who=3Dclient=20host=3Dx.x.x.=
x=20port=3D36643
localhost-sd:=20dircmd.c:169=20Conn:=20Hello=20Director=20localhost-dir=20=
calling
localhost-sd:=20dircmd.c:178=20Start=20Dir=20Job
localhost-sd:=20cram-md5.c:71=20send:=20auth=20cram-md5=20<195784567.1=
173453740 < at > localhost-sd>=20ssl=3D0
localhost-sd:=20cram-md5.c:131=20cram-get:=20auth=20cram-md5=20<550276=
32.1173453740 < at > localhost-dir>=20ssl=3D0
localhost-sd:=20cram-md5.c:150=20sending=20resp=20to=20challenge:=20gk4++=
z/Yi7/9dk/IbTl1mD
localhost-sd:=20dircmd.c:199=20Message=20channel=20init=20completed.
localhost-sd:=20dircmd.c:206=20<dird:=20autochanger=20drives=20Drive-1=
localhost-sd:=20dircmd.c:220=20Do=20command:=20autochanger
localhost-sd:=20dircmd.c:562=20Try=20changer=20device=20Driv1
localhost-sd:=20dircmd.c:567=20Device=20Drive-1=20could=20not=20be=20open=
ed.=20Skipped
localhost-sd:=20pythonlib.c:237=20No=20startup=20module.
localhost-sd:=20mem=5Fpool.c:376=20garbage=20collect=20memory=20pool
localhost-sd:=20bnet.c:1154=20who=3Dclient=20host=3Dx.x.x.x=20port=3D3664=
3
localhost-sd:=20dircmd.c:169=20Conn:=20Hello=20Director=20localhost-dir=20=
calling
localhost-sd:=20dircmd.c:178=20Start=20Dir=20Job
localhost-sd:=20cram-md5.c:71=20send:=20auth=20cram-md5=20<871651308.1=
173453746 < at > localhost-sd>=20ssl=3D0
localhost-sd:=20cram-md5.c:131=20cram-get:=20auth=20cram-md5=20<151007=
4265.1173453746 < at > localhost-dir>=20ssl=3D0
localhost-sd:=20cram-md5.c:150=20sending=20resp=20to=20challenge:=20ZE/2y=
w0NL7hTZ6+H62cuwD
localhost-sd:=20dircmd.c:199=20Message=20channel=20init=20completed.
localhost-sd:=20dircmd.c:206=20<dird:=20autochanger=20slots=20Drive-1
localhost-sd:=20dircmd.c:220=20Do=20command:=20autochanger
localhost-sd:=20dircmd.c:562=20Try=20changer=20device=20Driv1
localhost-sd:=20dircmd.c:567=20Device=20Drive-1=20could=20not=20be=20open=
ed.=20Skipped
localhost-sd:=20pythonlib.c:237=20No=20startup=20module.
localhost-sd:=20mem=5Fpool.c:376=20garbage=20collect=20memory=20pool
Tell=20me=20if=20I'm=20wrong,=20but=20the=20problems=20in=20the=20not=20o=
pened=20drive=20?>>=20Alex>>>>>>=20>>>=20=
>=20>=20No=20slots=20in=20changer=20to=20scan./>>=20>=20&g=
t;>>=20>=20>=20My=20sd=20config:>>=20>=20>>>=
;=20>=20>=20/Autochanger=20{>>=20>=20>=20Name=20=3D=20"=
Drive-1">>=20>=20>=20Device=20=3D=20Driv1>>=20>=20&g=
t;=20Changer=20Device=20=3D=20/dev/sg2>>=20>=20>=20Changer=20=
Command=20=3D=20"/etc/bacula/mtx-changer=20%c=20%o=20%S=20/dev/nst0=200"&=
gt;>=20This=20line=20above=20-=20it's=20probably=20better=20to=20write=
>>=20Changer=20Command=20=3D=20"/etc/bacula/mtx-changer=20%c=20%o=20=
%S=20%a=20%d">>=20so=20that=20you=20don't=20have=20to=20keep=20the=20=
configuration=20current=20in=20two=20places.>>=20I=20don't=20think=20=
this=20is=20related=20to=20the=20problem=20you=20have=20as=20the=20inform=
ation>=20should=20be=20correct=20for=20you.>>=20Arno>>=20-=
-=20>=20IT-Service=20Lehmann=20al < at > it...>=20Arno=20Lehmann=20=
http://www.its-lehmann.demailto:bacula < at > BACK>/=20bacula]$=20./mtx-chang=
er=20/dev/sg2=20slots>>=2010>>=20/>>>>=20What=20s=
hould=20be=20wronge=20else=20??>>=20Hmm...=20I=20suggest=20you=20en=
able=20debug=20output=20for=20the=20SD=20by=20starting=20the=20SD>=20l=
ike=20'bacula-sd=20-c=20/etc/bacula/bacula-sd.conf=20-d=20400=20-f=20-v'.=
>>=20This=20will=20run=20the=20SD=20in=20the=20foreground=20and=20p=
roduce=20lots=20of=20debug=20output.>>=20Then,=20start=20ONE=20job=20=
to=20use=20the=20tape=20changer=20and=20see=20what=20that=20produces>=20=
when=20a=20tape=20nees=20to=20be=20changed.=20You=20could=20then=20post=20=
the=20relevant=20part=20of>=20the=20output=20here.>>=20Alternati=
vely,=20you=20could=20add=20some=20debug=20output=20to=20mtx-changer=20an=
d>=20redirect=20that=20to=20some=20log=20file.>>=20By=20the=20wa=
y=20-=20I=20notice=20something=20in=20the=20configuration=20only=20now...=
=20see>=20below.=20For=20example=20I=20have=20the=20following=20above=20=
the=20first=20test=20clause:>>=20echo=20"------"=20>>/var/log=
/mtx-changer.log>=20echo=20"Called=20with=20$ < at > =20at=20`date`"=20>&g=
t;/var/log/mtx-changer.log>>=20and=20this=20(on=20one=20line)>&g=
t;=20echo=20"Doing=20mtx=20-f=20$ctl=20--=20to=20get=20count=20of=20slots=
=20at=20`date`">=20>>/var/log/mtx-changer.log>>=20after=20=
the=20"slots)"=20in=20the=20final=20case=20switch.>>=20Then=20I=20f=
ind=20"Doing=20mtx=20-f=20/dev/sg7=20--=20to=20get=20count=20of=20slots=20=
at=20Thu=20Mar>=208=2022:17:19=20CET=202007"=20in=20the=20log=20file=20=
while=20I'm=20running=20a=20job=20spanning=20>=20tapes.>>=20You=20=
could=20easily=20add=20the=20raw=20output=20from=20the=20mtx=20command=20=
to=20the=20log=20to>=20see=20if=20the=20output,=20for=20some=20reason=20=
doesn't=20fit=20to=20what=20the=20awk=20expects.>I've=20done=20it=20in=
=20firt=20way.After=20sending=20command=20"update=20slots"=20in=20a=20bco=
nsole=20I=20got=20the=20messages:localhost-sd:=20bnet.c:1154=20who=3Dclie=
nt=20host=3Dx.x.x.x=20port=3D36643
localhost-sd:=20dircmd.c:169=20Conn:=20Hello=20Director=20localhost-dir=20=
calling
localhost-sd:=20dircmd.c:178=20Start=20Dir=20Job
localhost-sd:=20cram-md5.c:71=20send:=20auth=20cram-md5=20<195784567.1=
173453740 < at > localhost-sd>=20ssl=3D0
localhost-sd:=20cram-md5.c:131=20cram-get:=20auth=20cram-md5=20<550276=
32.1173453740 < at > localhost-dir>=20ssl=3D0
localhost-sd:=20cram-md5.c:150=20sending=20resp=20to=20challenge:=20gk4++=
z/Yi7/9dk/IbTl1mD
localhost-sd:=20dircmd.c:199=20Message=20channel=20init=20completed.
localhost-sd:=20dircmd.c:206=20<dird:=20autochanger=20drives=20Drive-1=
localhost-sd:=20dircmd.c:220=20Do=20command:=20autochanger
localhost-sd:=20dircmd.c:562=20Try=20changer=20device=20Driv1
localhost-sd:=20dircmd.c:567=20Device=20Drive-1=20could=20not=20be=20open=
ed.=20Skipped
localhost-sd:=20pythonlib.c:237=20No=20startup=20module.
localhost-sd:=20mem=5Fpool.c:376=20garbage=20collect=20memory=20pool
localhost-sd:=20bnet.c:1154=20who=3Dclient=20host=3Dx.x.x.x=20port=3D3664=
3
localhost-sd:=20dircmd.c:169=20Conn:=20Hello=20Director=20localhost-dir=20=
calling
localhost-sd:=20dircmd.c:178=20Start=20Dir=20Job
localhost-sd:=20cram-md5.c:71=20send:=20auth=20cram-md5=20<871651308.1=
173453746 < at > localhost-sd>=20ssl=3D0
localhost-sd:=20cram-md5.c:131=20cram-get:=20auth=20cram-md5=20<151007=
4265.1173453746 < at > localhost-dir>=20ssl=3D0
localhost-sd:=20cram-md5.c:150=20sending=20resp=20to=20challenge:=20ZE/2y=
w0NL7hTZ6+H62cuwD
localhost-sd:=20dircmd.c:199=20Message=20channel=20init=20completed.
localhost-sd:=20dircmd.c:206=20<dird:=20autochanger=20slots=20Drive-1
localhost-sd:=20dircmd.c:220=20Do=20command:=20autochanger
localhost-sd:=20dircmd.c:562=20Try=20changer=20device=20Driv1
localhost-sd:=20dircmd.c:567=20Device=20Drive-1=20could=20not=20be=20open=
ed.=20Skipped
localhost-sd:=20pythonlib.c:237=20No=20startup=20module.
localhost-sd:=20mem=5Fpool.c:376=20garbage=20collect=20memory=20pool
Tell=20me=20if=20I'm=20wrong,=20but=20the=20problems=20in=20the=20not=20o=
pened=20drive=20?>>=20Alex>>>>>>=20>>>=20=
>=20>=20No=20slots=20in=20changer=20to=20scan./>>=20>=20&g=
t;>>=20>=20>=20My=20sd=20config:>>=20>=20>>>=
;=20>=20>=20/Autochanger=20{>>=20>=20>=20Name=20=3D=20"=
Drive-1">>=20>=20>=20Device=20=3D=20Driv1>>=20>=20&g=
t;=20Changer=20Device=20=3D=20/dev/sg2>>=20>=20>=20Changer=20=
Command=20=3D=20"/etc/bacula/mtx-changer=20%c=20%o=20%S=20/dev/nst0=200"&=
gt;>=20This=20line=20above=20-=20it's=20probably=20better=20to=20write=
>>=20Changer=20Command=20=3D=20"/etc/bacula/mtx-changer=20%c=20%o=20=
%S=20%a=20%d">>=20so=20that=20you=20don't=20have=20to=20keep=20the=20=
configuration=20current=20in=20two=20places.>>=20I=20don't=20think=20=
this=20is=20related=20to=20the=20problem=20you=20have=20as=20the=20inform=
ation>=20should=20be=20correct=20for=20you.>>=20Arno>>=20-=
-=20>=20IT-Service=20Lehmann=20al < at > it...>=20Arno=20Lehmann=20=
http://www.its-lehmann.dehttp://www.its-lehmann.de>>>=20--------=
----------------------------------------------------------------->=20T=
ake=20Surveys.=20Earn=20Cash.=20Influence=20the=20Future=20of=20IT>=20=
Join=20SourceForge.net's=20Techsay=20panel=20and=20you'll=20get=20the=20c=
hance=20to=20share=20>=20your>=20opinions=20on=20IT=20&=20busin=
ess=20topics=20through=20brief=20surveys-and=20earn=20cash>=20http://w=
ww.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D=
DEVDEVhttp://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourcefo=
rge&CID=3DDEVDEV>=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>=20Bacula-users=20mailing=20list>=20Bacula-users=
< at > lists.sourceforge.net>=20https://lists.sourceforge.net/lists/listinfo=
/bacula-usershttps://lists.sourceforge.net/lists/listinfo/bacula-users>=
;=20
