Discussion:
[Bacula-users] update slots scan (Does it work for anyone?)
Thomas Obenaus
2004-05-17 12:31:54 UTC
Permalink
Hi all,

I am using bacula-mysql-1.34.2-1.
I have a PowerVault 122T SDLT320 autoloader with no barcode reader.
The bconsole command 'update slots scan' does not seem to function
properly although bacula has no problem moving tapes around with the
autoloader otherwise.
According to the manual 'update slots scan' is supposed to update the
slots for each volume in the autoloader.

Does anyone have a similar problem or know what my problem might be?

*update slots scan
Storage resource "slots": not found
Automatically selected Storage: PowerVault 122T SDLT320
Connecting to Storage daemon PowerVault 122T SDLT320 at
bacula.intelerad:9103 ...
3301 Issuing autochanger "loaded drive 0" command.
3302 Autochanger "loaded drive 0", result is Slot 1.
3305 Issuing autochanger "unload slot 1" command.
3306 Issuing autochanger "list" command.
Invalid Slot number: Storage Element ::Storage Element 1:Full
Invalid Slot number: Storage Element ::Storage Element 4:Full
No Volumes found to label, or no barcodes.


Any insights are appreciated.

Thanks,
Tom
Peter Eriksson
2004-05-17 12:46:55 UTC
Permalink
Post by Thomas Obenaus
I am using bacula-mysql-1.34.2-1.
I have a PowerVault 122T SDLT320 autoloader with no barcode reader.
The bconsole command 'update slots scan' does not seem to function
properly although bacula has no problem moving tapes around with the
autoloader otherwise.
According to the manual 'update slots scan' is supposed to update the
slots for each volume in the autoloader.
Does anyone have a similar problem or know what my problem might be?
...
Post by Thomas Obenaus
Invalid Slot number: Storage Element ::Storage Element 1:Full
Invalid Slot number: Storage Element ::Storage Element 4:Full
Your "mtx-changer" script is incorrect (it's incorrect as shipped
in 1.34.2). Change the lines that read:

list)
# echo "Requested list"
${MTX} -f $ctl status | grep " *Storage Element [0-9]*:.*Full" | awk "{print \$slot \$device}" | sed "s/Full *\(:VolumeTag=\)*//"
;;

into something similar to this:

list)
# echo "Requested list"
${MTX} -f $ctl status | tr ':=' ' ' | nawk '($1 == "Storage" && $2 == "Element" && $4 == "Full") { printf "%s
:%s\n", $3, $6 }'
;;
--
Peter Eriksson <***@ifm.liu.se> Phone: +46 13 28 2786
Computer Systems Manager/BOFH Cell/GSM: +46 705 18 2786
Physics Department, Linköping University Room: Building F, F203
SE-581 83 Linköping, Sweden http://www.ifm.liu.se/~peter
Thomas Obenaus
2004-05-17 13:47:40 UTC
Permalink
Thanks Peter,
changing the line in mtx-changer makes bacula recognize the changer
output for the listing:

- ${MTX} -f $ctl status | grep " *Storage Element [0-9]*:.*Full" |
awk "{print \$slot \$device}" | sed "s/Full *\(:VolumeTag=\)*//"
+ ${MTX} -f $ctl status | tr ':' ' ' | awk '($1 == "Storage" && $2
== "Element" && $4 == "Full") { printf "%s:%s\n", $3, $6 }'

Now 'update slots scan' terminates after reading the first tape, and it
does not update the slots in the output:

*list volumes
Pool: Default
No results to list.
Pool: On-Site Pool
+---------+--------------------+-----------+---------------+----------+--------------+---------+------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | VolBytes | VolFiles |
VolRetention | Recycle | Slot | MediaType | LastWritten |
+---------+--------------------+-----------+---------------+----------+--------------+---------+------+-----------+---------------------+
| 2 | OnSiteLevel1Tape01 | Append | 6,716,855,899 | 27
| 31,536,000 | 1 | 4 | SDLT | 2004-05-17 09:09:22 |
+---------+--------------------+-----------+---------------+----------+--------------+---------+------+-----------+---------------------+
Pool: Off-Site Pool
+---------+---------------------+-----------+---------------+----------+--------------+---------+------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | VolBytes | VolFiles |
VolRetention | Recycle | Slot | MediaType | LastWritten |
+---------+---------------------+-----------+---------------+----------+--------------+---------+------+-----------+---------------------+
| 7 | OffSiteLevel0Tape01 | Used | 3,345,741,183 | 6
| 3,600 | 1 | 1 | SDLT | 2004-05-17 01:25:50 |
+---------+---------------------+-----------+---------------+----------+--------------+---------+------+-----------+---------------------+
*update slots scan
Storage resource "slots": not found
Automatically selected Storage: PowerVault 122T SDLT320
Connecting to Storage daemon PowerVault 122T SDLT320 at
bacula.intelerad:9103 ...
3301 Issuing autochanger "loaded drive 0" command.
3302 Autochanger "loaded drive 0", result: nothing loaded.
3306 Issuing autochanger "list" command.
Connecting to Storage daemon PowerVault 122T SDLT320 at
bacula.intelerad:9103 ...
3301 Issuing autochanger "loaded drive 0" command.
3302 Autochanger "loaded drive 0", result: nothing loaded.
3304 Issuing autochanger "load slot 5, drive 0" command.
3305 Autochanger "load slot 5, drive 0", status is OK.
3001 Volume="OffSiteLevel0Tape01" Slot=5
Record for Volume ""OffSiteLevel0Tape01"" not found in catalog.
*Unloading Data Transfer Element into Storage Element 5...done

Any ideas?

Thanks,
Tom
Post by Peter Eriksson
Post by Thomas Obenaus
I am using bacula-mysql-1.34.2-1.
I have a PowerVault 122T SDLT320 autoloader with no barcode reader.
The bconsole command 'update slots scan' does not seem to function
properly although bacula has no problem moving tapes around with the
autoloader otherwise.
According to the manual 'update slots scan' is supposed to update the
slots for each volume in the autoloader.
Does anyone have a similar problem or know what my problem might be?
...
Post by Thomas Obenaus
Invalid Slot number: Storage Element ::Storage Element 1:Full
Invalid Slot number: Storage Element ::Storage Element 4:Full
Your "mtx-changer" script is incorrect (it's incorrect as shipped
list)
# echo "Requested list"
${MTX} -f $ctl status | grep " *Storage Element [0-9]*:.*Full" | awk "{print \$slot \$device}" | sed "s/Full *\(:VolumeTag=\)*//"
;;
list)
# echo "Requested list"
${MTX} -f $ctl status | tr ':=' ' ' | nawk '($1 == "Storage" && $2 == "Element" && $4 == "Full") { printf "%s
:%s\n", $3, $6 }'
;;
fisch
2004-05-17 14:15:17 UTC
Permalink
Post by Thomas Obenaus
3001 Volume="OffSiteLevel0Tape01" Slot=5
Record for Volume ""OffSiteLevel0Tape01"" not found in catalog.
*Unloading Data Transfer Element into Storage Element 5...done
Any ideas?
ya, it is queried for "OffSiteLevel0Tape01" and not for
OffSiteLevel0Tape01 - there too much \".
Post by Thomas Obenaus
Thanks,
Tom
--
fisch <***@conne-island.de>
Kern Sibbald
2004-05-27 10:06:25 UTC
Permalink
Try using the new mtx-changer.in file that I just emailed.
Post by Thomas Obenaus
Hi all,
I am using bacula-mysql-1.34.2-1.
I have a PowerVault 122T SDLT320 autoloader with no barcode reader.
The bconsole command 'update slots scan' does not seem to function
properly although bacula has no problem moving tapes around with the
autoloader otherwise.
According to the manual 'update slots scan' is supposed to update the
slots for each volume in the autoloader.
Does anyone have a similar problem or know what my problem might be?
*update slots scan
Storage resource "slots": not found
Automatically selected Storage: PowerVault 122T SDLT320
Connecting to Storage daemon PowerVault 122T SDLT320 at
bacula.intelerad:9103 ...
3301 Issuing autochanger "loaded drive 0" command.
3302 Autochanger "loaded drive 0", result is Slot 1.
3305 Issuing autochanger "unload slot 1" command.
3306 Issuing autochanger "list" command.
Invalid Slot number: Storage Element ::Storage Element 1:Full
Invalid Slot number: Storage Element ::Storage Element 4:Full
No Volumes found to label, or no barcodes.
Any insights are appreciated.
Thanks,
Tom
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Bacula-users mailing list
https://lists.sourceforge.net/lists/listinfo/bacula-users
Continue reading on narkive:
Loading...