I got my HIARC jb driver working just fine. You need to know your SCSI
target of your robotic device is on and edit "/kernel/drv/jb.conf" and
comment in the correct target so that the jb device get loaded properly.
Make sure you comment out everything in sst.conf and sgen.conf and then
reboot the system.
You should see a new device being loaded during the boot process.
You should see the following message in your /var/adm/message:
Dec 5 12:16:25 marge scsi: [ID 193665 kern.info] jb0 at adp0: target 1 lun
0
Dec 5 12:16:25 marge genunix: [ID 936769 kern.info] jb0 is
/pci@0,0/pci9004,788 4@d/jb@1,0
That will show you that the driver was loaded properly.
In order for jbstatus and movejb to work, you need to install a license key
in /etc/hiarcjb.passwd file. You will need to recieve a temporary key from
hiarc through their website. You will also need to supply hostid to them
in order to get the key. I'm assuming that you've already done that part.
However where to put the key in was not documented and I had to figure it
out for a while by running truss command and it showed that it was trying
to open /etc/hiarcjb.passwd file. So I put the license key in there and it
worked.
Don't use chg-scsi with jb driver, it does not work at all. Use the
supplied movejb and jbstatus commands. Get the chg-hiarcjb script from
me. I will email it to you if you want. But first, get your jb driver
enabled and working and run the jbstatus command and it will show you the
output. If it works then you got the driver installed properly. Here's
what my statusjb looks like:
[josh@marge drv]% jbstatus
Mode Sense: status 0
Medium Transports 86 - 86
Storage Slots 1 - 7
Import/Export Slots 0 - -1
Data Transfer Elements 82 - 82
MTE
ElemAddr 86
SE
ElemAddr 1 Full Access OK SrcAddr 1
ElemAddr 2 Full Access OK SrcAddr 2
ElemAddr 3 Full Access OK SrcAddr 3
ElemAddr 4 Full Access OK SrcAddr 4
ElemAddr 5 Full Access OK SrcAddr 5
ElemAddr 6 Full Access OK SrcAddr 6
ElemAddr 7 Full Access OK SrcAddr 7
DTE
ElemAddr 82 Access OK SCSI 3
You'll probably want to set a suid on movejb and jbstatus so that amanda
can access to the robotic device without any problems.
[josh@marge drv]% ls -l /opt/HIARCjb/bin
total 1284
drwxr-xr-x 2 root sys 512 Oct 31 17:03 ./
drwxr-xr-x 7 root other 512 Oct 31 15:28 ../
-rwsr-xr-x 1 root sys 202200 Mar 24 1998 jbinit*
-rwsr-xr-x 1 root sys 205868 Mar 24 1998 jbstatus*
-rwsr-xr-x 1 root sys 206940 Mar 24 1998 movejb*
If you have any questions, don't hesitate to ask me.
Josh
"F.M. Taylor" wrote:
>
> I am beginning to feel like a cut rate moron. I cant even solve what I
> hope is a simple problem.
>
> No matter which driver I try, I get the same error. I have read thru the
> docs so many times now that I know I have to have done something wrong,
> but I can't figure it out.
>
> This is all on a Sun E3500 with Solaris 8.
>
> devfsadm: driver failed to attach: sst
> Warning: Driver (sst) successfully added to system but failed to attach
> flash:/#
> same thing for the jb driver from HIARC.
>
> Of course I get the:
>
> /usr/local/libexec/chg-scsi -info
> Segmentation Fault (core dumped)
>
> and I also followed the sgen directions:
>
> scsi: [ID 193665 kern.info] sgen10 at fas0: target a lun 0
> genunix: [ID 936769 kern.info] sgen10 is
> /sbus@3,0/SUNW,fas@3,8800000/sgen@a,0
>
> so I have
>
> /dev/scsi/changer/c2t10d0 ->
> /devices/sbus@3,0/SUNW,fas@3,8800000/sgen@a,0:changer
>
> # /usr/src/amanda-2.4.2/contrib/sst/sstest /dev/scsi/changer/c2t10d0 open
> Device opened
> # /usr/src/amanda-2.4.2/contrib/sst/sstest /dev/scsi/changer/c2t10d0 rew
> Device rewound, status = 0x2
> #/usr/src/amanda-2.4.2/contrib/sst/sstest /dev/scsi/changer/c2t10d0 tur
> Ready ioctl: Inappropriate ioctl for device
>
> note however, that even tho they are in the devlinks.tab that the links
> for sst and jb are not being created.
>
> I have been searching the mail list archives and have tried everything I
> have found so far, but up to this point I cannot get the robot to say
> hello.
>
> I am running out of things to try. Any Ideas??
>
> TIA
>
> ---
> Mike Taylor
> Coordinator of Systems Administration and Network Security
> Indiana State University. Rankin Hall Rm 039
> 210 N 7th St. Terre Haute, IN.
> Voice: 812-237-8843 47809
> ---
> "You have zero privacy anyway. Get over it."
> --Scott McNealy, Sun MicroSystems.