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

-----=20Original=20Message=20-----From:=20"Arno=20Lehmann"=20&lt;al < at > its-l=
ehmann.de&gt;To:=20&lt;bacula-users < at > li...&gt;Sent:=20Thur=
sday,=20March=2008,=202007=2010:39=20PMSubject:=20Re:=20[Bacula-users]=20=
EXABYTE=20110=20L=20autochanger=20problem&gt;=20Hi,&gt;&gt;=20On=203/8/20=
07=201:21=20PM,=20Alex=20wrote:&gt;&gt;=20----=20Wiadomo=C5=9B=C4=87=20Or=

yginalna=20----&gt;&gt;=20Od:=20Arno=20Lehmann&gt;&gt;=20Do:=20bacula-use=

rs < at > li...&gt;&gt;=20Data:=207=20marca=202007=2021:51&gt;&g=
t;=20Temat:=20Re:=20[Bacula-users]=20EXABYTE=20110=20L=20autochanger=20pr=

oblem&gt;&gt;&gt;&gt;=20&gt;=20Hi,&gt;&gt;=20&gt;&gt;&gt;=20&gt;=20On=203=

/7/2007=208:43=20PM,=20Alex=20wrote:&gt;&gt;=20&gt;=20&gt;=20Hi=20!&gt;&g=

t;=20&gt;=20&gt;&gt;&gt;=20&gt;=20&gt;=20I'm=20trying=20to=20run=20my=20a=
utochanger=20(EXABYTE=20110L=20under=20Mandriva=202007)&gt;&gt;=20with&gt=
;&gt;=20&gt;=20&gt;=20BACULA=202.0.2=20but=20still=20without=20any=20effe=

cts.&gt;&gt;=20&gt;=20&gt;=20Test=20by=20btape=20seems=20to=20be=20good:&=

gt;&gt;=20&gt;=20&gt;&gt;&gt;=20&gt;=20&gt;=20/301=20Issuing=20autochange=

r=20"loaded"=20command.&gt;&gt;=20&gt;=20&gt;=20Slot=201=20loaded.=20I=20=

am=20going=20to=20unload=20it.&gt;&gt;=20&gt;=20&gt;=203302=20Issuing=20a=

utochanger=20"unload=201=200"=20command.&gt;&gt;=20&gt;=20&gt;=20unload=20=

status=3DOK=200&gt;&gt;=20&gt;=20&gt;=203303=20Issuing=20autochanger=20"l=

oad=201=200"=20command.&gt;&gt;=20&gt;=20&gt;=203303=20Autochanger=20"loa=

d=201=200"=20status=20is=20OK.&gt;&gt;=20&gt;=20&gt;=2007-mar=2021:25=20b=
tape:=203301=20Issuing=20autochanger=20"loaded?=20drive=200"&gt;&gt;=20co=

mmand.&gt;&gt;=20&gt;=20&gt;=2007-mar=2021:25=20btape:=203302=20Autochang=

er=20"loaded?=20drive=200",=20result=20is&gt;&gt;=20Slot=201.&gt;&gt;=20&=
gt;=20&gt;=20btape:=20btape.c:368=20open=20device=20"Driv1"=20(/dev/nst0)=

:=20OK&gt;&gt;=20&gt;=20&gt;=20btape:=20btape.c:1235=20Rewound=20"Driv1"=20=

(/dev/nst0)&gt;&gt;=20&gt;=20&gt;=20btape:=20btape.c:1242=20Wrote=20EOF=20=

to=20"Driv1"=20(/dev/nst0)/&gt;&gt;=20&gt;=20&gt;&gt;&gt;=20&gt;=20&gt;=20=

/The=20test=20autochanger=20worked!!&gt;&gt;=20&gt;=20&gt;&gt;&gt;=20&gt;=
=20&gt;=20/but=20I=20can't=20still=20use=20in=20bconsole=20"update=20slot=

s":&gt;&gt;=20&gt;=20&gt;&gt;&gt;=20&gt;=20&gt;=20*update=20slots&gt;&gt;=

=20&gt;=20&gt;&gt;&gt;=20&gt;=20&gt;&gt;&gt;=20&gt;=20&gt;=20/Automatical=

ly=20selected=20Catalog:=20MyCatalog&gt;&gt;=20&gt;=20&gt;=20Using=20Cata=

log=20"MyCatalog"&gt;&gt;=20&gt;=20&gt;=20Automatically=20selected=20Stor=

age:=20Drive-1&gt;&gt;=20&gt;=20&gt;=20Connecting=20to=20Storage=20daemon=

=20Drive-1=20at=20localhost:9103=20...&gt;&gt;=20&gt;=20&gt;=203306=20Iss=

uing=20autochanger=20"slots"=20command.&gt;&gt;=20&gt;=20&gt;=20Device=20=

"Drive-1"=20has=200=20slots.&gt;&gt;=20&gt;&gt;&gt;=20&gt;=20This=20looks=
=20like=20the=20mtx-changer=20script=20doesn't=20report=20the=20number=20=

of&gt;&gt;=20slots.&gt;&gt;=20&gt;&gt;&gt;=20&gt;=20What=20happens=20if=20=
you=20run=20mtx-changer=20on=20the=20command=20line=20(as=20a=20user=20&g=

t;&gt;=20that&gt;&gt;=20&gt;=20can=20access=20the=20device!)=20like=20thi=

s:&gt;&gt;=20&gt;=20'./mtx-changer=20/dev/sg2=20slots'&gt;&gt;=20&gt;&gt;=
&gt;=20&gt;=20If=20that=20doesn't=20report=20anything,=20or=20a=20"0",=20=

you=20should=20have=20a=20close=20&gt;&gt;=20look&gt;&gt;=20&gt;=20at=20w=

hat=20the=20script=20does.&gt;&gt;=20&gt;&gt;&gt;=20&gt;=20It=20might=20b=

e=20a=20permissions=20problem.&gt;&gt;=20&gt;&gt;&gt;=20&gt;=20Arno&gt;&g=
t;&gt;&gt;=20I've=20checked=20it=20from=20two=20possible=20accounts.=20Ev=
erything=20seems=20to=20be=20O.K.&gt;&gt;=20but=20the=20autochanger=20sti=

ll=20can't=20read=20the=20slots=20:&gt;&gt;&gt;&gt;=20/bacula < at > BACK/=20&lt=
;mailto:bacula < at > BACK&gt;/=20bacula]$=20./mtx-changer=20/dev/sg2=20slots&gt=

;&gt;=2010&gt;&gt;=20/&gt;&gt;&gt;&gt;=20What=20should=20be=20wronge=20el=
se=20??&gt;&gt;=20Hmm...=20I=20suggest=20you=20enable=20debug=20output=20=
for=20the=20SD=20by=20starting=20the=20SD&gt;=20like=20'bacula-sd=20-c=20=
/etc/bacula/bacula-sd.conf=20-d=20400=20-f=20-v'.&gt;&gt;=20This=20will=20=
run=20the=20SD=20in=20the=20foreground=20and=20produce=20lots=20of=20debu=
g=20output.&gt;&gt;=20Then,=20start=20ONE=20job=20to=20use=20the=20tape=20=
changer=20and=20see=20what=20that=20produces&gt;=20when=20a=20tape=20nees=
=20to=20be=20changed.=20You=20could=20then=20post=20the=20relevant=20part=
=20of&gt;=20the=20output=20here.&gt;&gt;=20Alternatively,=20you=20could=20=
add=20some=20debug=20output=20to=20mtx-changer=20and&gt;=20redirect=20tha=
t=20to=20some=20log=20file.&gt;&gt;=20By=20the=20way=20-=20I=20notice=20s=
omething=20in=20the=20configuration=20only=20now...=20see&gt;=20below.=20=
For=20example=20I=20have=20the=20following=20above=20the=20first=20test=20=

clause:&gt;&gt;=20echo=20"------"=20&gt;&gt;/var/log/mtx-changer.log&gt;=20=
echo=20"Called=20with=20$ < at > =20at=20`date`"=20&gt;&gt;/var/log/mtx-changer.=

log&gt;&gt;=20and=20this=20(on=20one=20line)&gt;&gt;=20echo=20"Doing=20mt=
x=20-f=20$ctl=20--=20to=20get=20count=20of=20slots=20at=20`date`"&gt;=20&=
gt;&gt;/var/log/mtx-changer.log&gt;&gt;=20after=20the=20"slots)"=20in=20t=
he=20final=20case=20switch.&gt;&gt;=20Then=20I=20find=20"Doing=20mtx=20-f=
=20/dev/sg7=20--=20to=20get=20count=20of=20slots=20at=20Thu=20Mar&gt;=208=
=2022:17:19=20CET=202007"=20in=20the=20log=20file=20while=20I'm=20running=
=20a=20job=20spanning=20&gt;=20tapes.&gt;&gt;=20You=20could=20easily=20ad=
d=20the=20raw=20output=20from=20the=20mtx=20command=20to=20the=20log=20to=
&gt;=20see=20if=20the=20output,=20for=20some=20reason=20doesn't=20fit=20t=
o=20what=20the=20awk=20expects.&gt;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&lt;195784567.1=
173453740 < at > localhost-sd&gt;=20ssl=3D0
localhost-sd:=20cram-md5.c:131=20cram-get:=20auth=20cram-md5=20&lt;550276=
32.1173453740 < at > localhost-dir&gt;=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&lt;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&lt;871651308.1=
173453746 < at > localhost-sd&gt;=20ssl=3D0
localhost-sd:=20cram-md5.c:131=20cram-get:=20auth=20cram-md5=20&lt;151007=
4265.1173453746 < at > localhost-dir&gt;=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&lt;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?&gt;&gt;=20Alex&gt;&gt;&gt;&gt;&gt;&gt;=20&gt;&gt;&gt;=20=

&gt;=20&gt;=20No=20slots=20in=20changer=20to=20scan./&gt;&gt;=20&gt;=20&g=

t;&gt;&gt;=20&gt;=20&gt;=20My=20sd=20config:&gt;&gt;=20&gt;=20&gt;&gt;&gt=

;=20&gt;=20&gt;=20/Autochanger=20{&gt;&gt;=20&gt;=20&gt;=20Name=20=3D=20"=

Drive-1"&gt;&gt;=20&gt;=20&gt;=20Device=20=3D=20Driv1&gt;&gt;=20&gt;=20&g=

t;=20Changer=20Device=20=3D=20/dev/sg2&gt;&gt;=20&gt;=20&gt;=20Changer=20=
Command=20=3D=20"/etc/bacula/mtx-changer=20%c=20%o=20%S=20/dev/nst0=200"&=
gt;&gt;=20This=20line=20above=20-=20it's=20probably=20better=20to=20write=
&gt;&gt;=20Changer=20Command=20=3D=20"/etc/bacula/mtx-changer=20%c=20%o=20=
%S=20%a=20%d"&gt;&gt;=20so=20that=20you=20don't=20have=20to=20keep=20the=20=
configuration=20current=20in=20two=20places.&gt;&gt;=20I=20don't=20think=20=
this=20is=20related=20to=20the=20problem=20you=20have=20as=20the=20inform=

ation&gt;=20should=20be=20correct=20for=20you.&gt;&gt;=20Arno&gt;&gt;=20-=
-=20&gt;=20IT-Service=20Lehmann=20al < at > it...&gt;=20Arno=20Lehmann=20=
http://www.its-lehmann.demailto:bacula < at > BACK&gt;/=20bacula]$=20./mtx-chang=

er=20/dev/sg2=20slots&gt;&gt;=2010&gt;&gt;=20/&gt;&gt;&gt;&gt;=20What=20s=
hould=20be=20wronge=20else=20??&gt;&gt;=20Hmm...=20I=20suggest=20you=20en=
able=20debug=20output=20for=20the=20SD=20by=20starting=20the=20SD&gt;=20l=
ike=20'bacula-sd=20-c=20/etc/bacula/bacula-sd.conf=20-d=20400=20-f=20-v'.=
&gt;&gt;=20This=20will=20run=20the=20SD=20in=20the=20foreground=20and=20p=
roduce=20lots=20of=20debug=20output.&gt;&gt;=20Then,=20start=20ONE=20job=20=
to=20use=20the=20tape=20changer=20and=20see=20what=20that=20produces&gt;=20=
when=20a=20tape=20nees=20to=20be=20changed.=20You=20could=20then=20post=20=
the=20relevant=20part=20of&gt;=20the=20output=20here.&gt;&gt;=20Alternati=
vely,=20you=20could=20add=20some=20debug=20output=20to=20mtx-changer=20an=
d&gt;=20redirect=20that=20to=20some=20log=20file.&gt;&gt;=20By=20the=20wa=
y=20-=20I=20notice=20something=20in=20the=20configuration=20only=20now...=
=20see&gt;=20below.=20For=20example=20I=20have=20the=20following=20above=20=

the=20first=20test=20clause:&gt;&gt;=20echo=20"------"=20&gt;&gt;/var/log=
/mtx-changer.log&gt;=20echo=20"Called=20with=20$ < at > =20at=20`date`"=20&gt;&g=

t;/var/log/mtx-changer.log&gt;&gt;=20and=20this=20(on=20one=20line)&gt;&g=
t;=20echo=20"Doing=20mtx=20-f=20$ctl=20--=20to=20get=20count=20of=20slots=

=20at=20`date`"&gt;=20&gt;&gt;/var/log/mtx-changer.log&gt;&gt;=20after=20=
the=20"slots)"=20in=20the=20final=20case=20switch.&gt;&gt;=20Then=20I=20f=
ind=20"Doing=20mtx=20-f=20/dev/sg7=20--=20to=20get=20count=20of=20slots=20=
at=20Thu=20Mar&gt;=208=2022:17:19=20CET=202007"=20in=20the=20log=20file=20=
while=20I'm=20running=20a=20job=20spanning=20&gt;=20tapes.&gt;&gt;=20You=20=
could=20easily=20add=20the=20raw=20output=20from=20the=20mtx=20command=20=
to=20the=20log=20to&gt;=20see=20if=20the=20output,=20for=20some=20reason=20=
doesn't=20fit=20to=20what=20the=20awk=20expects.&gt;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&lt;195784567.1=
173453740 < at > localhost-sd&gt;=20ssl=3D0
localhost-sd:=20cram-md5.c:131=20cram-get:=20auth=20cram-md5=20&lt;550276=
32.1173453740 < at > localhost-dir&gt;=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&lt;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&lt;871651308.1=
173453746 < at > localhost-sd&gt;=20ssl=3D0
localhost-sd:=20cram-md5.c:131=20cram-get:=20auth=20cram-md5=20&lt;151007=
4265.1173453746 < at > localhost-dir&gt;=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&lt;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?&gt;&gt;=20Alex&gt;&gt;&gt;&gt;&gt;&gt;=20&gt;&gt;&gt;=20=

&gt;=20&gt;=20No=20slots=20in=20changer=20to=20scan./&gt;&gt;=20&gt;=20&g=

t;&gt;&gt;=20&gt;=20&gt;=20My=20sd=20config:&gt;&gt;=20&gt;=20&gt;&gt;&gt=

;=20&gt;=20&gt;=20/Autochanger=20{&gt;&gt;=20&gt;=20&gt;=20Name=20=3D=20"=

Drive-1"&gt;&gt;=20&gt;=20&gt;=20Device=20=3D=20Driv1&gt;&gt;=20&gt;=20&g=

t;=20Changer=20Device=20=3D=20/dev/sg2&gt;&gt;=20&gt;=20&gt;=20Changer=20=
Command=20=3D=20"/etc/bacula/mtx-changer=20%c=20%o=20%S=20/dev/nst0=200"&=
gt;&gt;=20This=20line=20above=20-=20it's=20probably=20better=20to=20write=
&gt;&gt;=20Changer=20Command=20=3D=20"/etc/bacula/mtx-changer=20%c=20%o=20=
%S=20%a=20%d"&gt;&gt;=20so=20that=20you=20don't=20have=20to=20keep=20the=20=
configuration=20current=20in=20two=20places.&gt;&gt;=20I=20don't=20think=20=
this=20is=20related=20to=20the=20problem=20you=20have=20as=20the=20inform=

ation&gt;=20should=20be=20correct=20for=20you.&gt;&gt;=20Arno&gt;&gt;=20-=
-=20&gt;=20IT-Service=20Lehmann=20al < at > it...&gt;=20Arno=20Lehmann=20=
http://www.its-lehmann.dehttp://www.its-lehmann.de&gt;&gt;&gt;=20--------=
-----------------------------------------------------------------&gt;=20T=
ake=20Surveys.=20Earn=20Cash.=20Influence=20the=20Future=20of=20IT&gt;=20=
Join=20SourceForge.net's=20Techsay=20panel=20and=20you'll=20get=20the=20c=
hance=20to=20share=20&gt;=20your&gt;=20opinions=20on=20IT=20&amp;=20busin=
ess=20topics=20through=20brief=20surveys-and=20earn=20cash&gt;=20http://w=
ww.techsay.com/default.php?page=3Djoin.php&amp;p=3Dsourceforge&amp;CID=3D=
DEVDEVhttp://www.techsay.com/default.php?page=3Djoin.php&amp;p=3Dsourcefo=
rge&amp;CID=3DDEVDEV&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&gt;=20Bacula-users=20mailing=20list&gt;=20Bacula-users=
< at > lists.sourceforge.net&gt;=20https://lists.sourceforge.net/lists/listinfo=
/bacula-usershttps://lists.sourceforge.net/lists/listinfo/bacula-users&gt=
;=20

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