Connect the library to your sun machine, if you have a HVDS library make sure you have a HVDS card! Make sure your L9 is not in continuous mode. This is a menu option, and makes the library look like a very large tape rather than a library.
If the file doesn't exist, create it, if it does, ensure that:
/kernel/drv/sgen.conf
contains:
device-type-config-list="changer","sequential"
inquiry-config-list= "*", "*";
name="sgen" class="scsi" target=5 lun=0;
name="sgen" class="scsi" target=6 lun=0;
This will ensure sgen scans your scsi bus and creates the required device files.
If you have different SCSI ID's for you library changer and drive then alter the above.
Next:
touch /reconfigure
reboot
Another way to get the same result (ta Phil) is to (I've not tried it):
add_drv -m '* 0660 root sys' -v sgen
or after tweaking sgen.conf:
update_drv sgen
After the re-boot/change you should have something like:
moonstone# ls -la /dev/scsi
total 20
drwxr-xr-x 4 root root 512 Jan 7 11:22 .
drwxr-xr-x 19 root sys 7168 Mar 23 14:26 ..
drwxr-xr-x 2 root root 512 Jan 7 11:22 changer
drwxr-xr-x 2 root root 512 Jan 7 10:54 sequential
You may see more devices of course, changer and sequential are the ones you are after though.
MTX
Aquire and install mtx.
When you have it installed, you should be able to test it with the following commands:
mtx -f /dev/scsi/changer/c4t5d0 status
You may need to change the c4t5d0 if you have not got a default setup. You should see something like:
Storage Changer /dev/scsi/changer/c4t5d0:1 Drives, 9 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 2 Loaded):VolumeTag =
Storage Element 1:Full :VolumeTag=
Storage Element 2:Empty:VolumeTag=
Storage Element 3:Full :VolumeTag=
Storage Element 4:Full :VolumeTag=
Storage Element 5:Full :VolumeTag=
Storage Element 6:Full :VolumeTag=
Storage Element 7:Full :VolumeTag=
Storage Element 8:Full :VolumeTag=
Storage Element 9:Empty:VolumeTag=
If you have put barcodes on your tapes, they will show up as the VolumeTag. If all is well, read the MTX manual, although here is a free clue:
mtx -f /dev/scsi/changer/c4t5d0 status
mtx -f /dev/scsi/changer/c4t5d0 load 1
mtx -f /dev/scsi/changer/c4t5d0 unload
mtx -f /dev/scsi/changer/c4t5d0 load 2
mtx -f /dev/scsi/changer/c4t5d0 unload
Barcodes
The L9 uses Code 3of9 Barcodes, in the form AZ1234 - two letters and four numbers, anything else will not get detected.
I am not sure quite who to give credit for
this code too, but I got it from
here - http://www.sunmanagers.org/archives/1998/0359.html.