All,
I was able to get the changer recognzied as /dev/scsi/changer/c5t4d1 on
my Solaris 10_x86 system. Setup /kernel/drv/sgen.conf, loaded the driver,
created the devlinks, and we're off. My Magnum 224 has 1 robot, and 1 LTO-3
drive. It holds can hold up to 24 tapes in 2 magazines. I currently have 1
fully loaded, 12 tape magazine installed.
I'm now trying to get mtx-changer script working correctly by following
the "Autochanger Resource" ,
http://www.bacula.org/rel-manual/Autochanger_Resource1.html, chapter of the
User Guide. Some commands work, others don't. I tested all functions
directly with mtx, and with the mtx-changer script. Mtx does perform all the
operations correctly. It can load, unload, list, transfer, etc... However,
as I said, some of the mtx-changer script functions aren't working
correctly. I am unsure whether or not they need to work with the exact
syntax described in the chapter, or if the commands will work, but with an
expanded syntax (like the Changer Command) and bacula will function
correctly.
I peformed the mtx-changer tests in the same order as the guide, using
its sytax. I also use a full command line to test if that works. In cases
where the output isn't what I expected, I tried using mtx directly.
First the mtx-changer "list" command
./mtx-changer /dev/scsi/changer/c5t4d1 list 0 /dev/rmt/0 0
1:Full:VolumeTag=A00001
2:Full:VolumeTag=A00002
3:Full:VolumeTag=A00003
4:Full:VolumeTag=A00004
5:Full:VolumeTag=A00005
6:Full:VolumeTag=A00006
7:Full:VolumeTag=A00007
8:Full:VolumeTag=A00008
9:Full:VolumeTag=A00009
10:Full:VolumeTag=A00010
11:Full:VolumeTag=A00011
I know I have a fully loaded magazine in the library, so I check with mtx.
[EMAIL PROTECTED]: mtx -f /dev/scsi/changer/c5t4d1 status
Storage Changer /dev/scsi/changer/c5t4d1:1 Drives, 12 Slots ( 1
Import/Export )
Data Transfer Element 0:Empty
Storage Element 1:Full :VolumeTag=A00001
Storage Element 2:Full :VolumeTag=A00002
Storage Element 3:Full :VolumeTag=A00003
Storage Element 4:Full :VolumeTag=A00004
Storage Element 5:Full :VolumeTag=A00005
Storage Element 6:Full :VolumeTag=A00006
Storage Element 7:Full :VolumeTag=A00007
Storage Element 8:Full :VolumeTag=A00008
Storage Element 9:Full :VolumeTag=A00009
Storage Element 10:Full :VolumeTag=A00010
Storage Element 11:Full :VolumeTag=A00011
Storage Element 12 IMPORT/EXPORT:Full :VolumeTag=A00012
I checked the mtx-changer script and can see whats happening, but am not
quite sure what the best way to remedy this is...
Next the slots command, which works with the syntax from the guide.
./mtx-changer /dev/scsi/changer/c5t4d1 slots 0 /dev/rmt/0 0
12
Testing unload with the syntax of the guide produced:
./mtx-changer /dev/scsi/changer/c5t4d1 unload
usage: mtx-changer ctl-device command [slot archive-device drive-index]
Insufficient number of arguments arguments given.
Command expected 5 arguments
So I tried with a full command:
./mtx-changer /dev/scsi/changer/c5t4d1 unload 0 /dev/rmt/0 0
Unloading Data Transfer Element into Storage Element 0...mtx: Request Sense:
Long Report=yes
This makes sense as there is no tape in the drive.
The load command appears to work:
./mtx-changer /dev/scsi/changer/c5t4d1 load 3 /dev/rmt/0 0
And loaded proves so:
./mtx-changer /dev/scsi/changer/c5t4d1 loaded 0 /dev/rmt/0 0
3
Before I ran the next mtx-changer test in the guide, I wanted to see what
the list command and mtx status output showed.
./mtx-changer /dev/scsi/changer/c5t4d1 list 0 /dev/rmt/0 0
1:Full:VolumeTag=A00001
2:Full:VolumeTag=A00002
4:Full:VolumeTag=A00004
5:Full:VolumeTag=A00005
6:Full:VolumeTag=A00006
7:Full:VolumeTag=A00007
8:Full:VolumeTag=A00008
9:Full:VolumeTag=A00009
10:Full:VolumeTag=A00010
11:Full:VolumeTag=A00011
3:A00003
Now in this case, from what I can tell of mtx-changer script, its correct in
not displaying slot 12, as there isn't a tape in that slot.
Is the drive status being shown correctly though? What format should a
loaded tape drive be displayed as by mtx-changer?
Mtx status looks like I'd expect
mtx -f /dev/scsi/changer/c5t4d1 status
Storage Changer /dev/scsi/changer/c5t4d1:1 Drives, 12 Slots ( 1
Import/Export )
Data Transfer Element 0:Full (Storage Element 3 Loaded):VolumeTag =
A00003
Storage Element 1:Full :VolumeTag=A00001
Storage Element 2:Full :VolumeTag=A00002
Storage Element 3:Empty:VolumeTag=
Storage Element 4:Full :VolumeTag=A00004
Storage Element 5:Full :VolumeTag=A00005
Storage Element 6:Full :VolumeTag=A00006
Storage Element 7:Full :VolumeTag=A00007
Storage Element 8:Full :VolumeTag=A00008
Storage Element 9:Full :VolumeTag=A00009
Storage Element 10:Full :VolumeTag=A00010
Storage Element 11:Full :VolumeTag=A00011
Storage Element 12 IMPORT/EXPORT:Full :VolumeTag=A00012
Now back to the guide commands. I try to unload the tape:
./mtx-changer /dev/scsi/changer/c5t4d1 unload
usage: mtx-changer ctl-device command [slot archive-device drive-index]
Insufficient number of arguments arguments given.
Command expected 5 arguments
So this doesn't work as in the guide, lets try with the full command line:
./mtx-changer /dev/scsi/changer/c5t4d1 unload 3 /dev/rmt/0 0
Unloading Data Transfer Element into Storage Element 3...done
That looks like it succeeded, but a few tests just to be sure:
./mtx-changer /dev/scsi/changer/c5t4d1 loaded 0 /dev/rmt/0 0
0
mtx -f /dev/scsi/changer/c5t4d1 status
Storage Changer /dev/scsi/changer/c5t4d1:1 Drives, 12 Slots ( 1
Import/Export )
Data Transfer Element 0:Empty
Storage Element 1:Full :VolumeTag=A00001
Storage Element 2:Full :VolumeTag=A00002
Storage Element 3:Full :VolumeTag=A00003
Storage Element 4:Full :VolumeTag=A00004
Storage Element 5:Full :VolumeTag=A00005
Storage Element 6:Full :VolumeTag=A00006
Storage Element 7:Full :VolumeTag=A00007
Storage Element 8:Full :VolumeTag=A00008
Storage Element 9:Full :VolumeTag=A00009
Storage Element 10:Full :VolumeTag=A00010
Storage Element 11:Full :VolumeTag=A00011
Storage Element 12 IMPORT/EXPORT:Full :VolumeTag=A00012
So everything is back to normal, but I still have a few questions
How can I get mtx-changer to display the status of all my slots correctly?
Is the format that mtx-changer is displaying the status of a loaded drive
correct?
Does it matter to bacula that I had to use the full command to unload the
drive?
Will Bacula know what storage element is in the drive and to move it back to
the correct slot?
How do I change tapes and update inventory?
I was considering keeping a cleaning tape in slot 12, will this interfere
with Bacula at all? Can I schedule cleaning operations with Bacula?
Any responses, or wilingness to share some mtx-changer magic is very
appreciated. Also if you've used any replacement for mtx or mtx-changer and
want to share the experience that would be great!
Thanks,
Shon
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users