Thanks, obvious when you know I guess.
Btw there is a slight bug in your script. On line 186 you didn't
correct the grep query like you did in line 188.
186: grep " *Storage Element [0-9]*:.*Full"
instead of:
188: grep " Storage Element [0-9]*.*Full"
Not sure what impact that has as it sounds like you've been running
it for a while but if you run the grep separately the IO slot is
missing from the output.
Thanks again,
Wayne Merricks
The Voice Asia
On 13/03/15 17:45, Bryn Hughes wrote:
Hi
Wayne,
I have an IBM 24 slot library as well which I had a similar issue
on. The cause is that the I/O station is listed differently than
the rest of the slots by the mt command. I had to tweak the
mtx-changer script slightly to recognize my I/O station as a slot.
It's because of the parsing logic in the script, the extra
'IMPORT/EXPORT' bit causes the script to ignore it. You can tweak
the script so it sees that as a slot.
I've attached my version that treats the I/O station as a slot.
Bryn
On 2015-03-13 10:26 AM, Wayne Merricks wrote:
Hi all,
Apologies but my google skills have failed me, hopefully I can
catch
someone in a happy end of working week mood.
Just wondering if anyone has used an old IBM TS3100 with Bacula
and got
it to recognise tapes that are in the IO Station?
I'm running Bacula 5.2.5 on Ubuntu 12.04. If I run an mtx
status
command I get something like the following:
Storage Changer /dev/sg11:1 Drives, 24 Slots ( 1 Import/Export )
Data Transfer Element 0:Full (Storage Element 3
Loaded):VolumeTag = NPC282L2
Storage Element 1:Full :VolumeTag=NPC281L2
<snip>
Storage Element 23:Full :VolumeTag=NPC305L2
Storage Element 24 IMPORT/EXPORT:Full
:VolumeTag=NPC280L2
So I can see all 24 slots + the tape in the drive (from slot 3).
Bacula
seems completely blind to Storage Element 24.
If I run update slots in bconsole the 24th slot is missing:
3306 Issuing autochanger "slots" command.
Device "IBM" has 24 slots.
Connecting to Storage daemon Autochanger ...
3306 Issuing autochanger "list" command.
Catalogue record for Volume "NPC281L2" updated to reference slot
1.
<snip>
Catalogue record for Volume "NPC305L2" updated to reference slot
23.
Its not a massive problem but it has been bugging me for a
while. If
anyone has any ideas it would be appreciated.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/ _______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|