Forum Discussion

MartinVi's avatar
MartinVi
Level 6
12 years ago
Solved

sg driver configuration does not work on solaris 10 x86

Hi all,

i try to configure two HP Ultrium 6-SCSI tape drives on solaris 10 x86 but without success.

The OS could the tape drives:
# ls -l /dev/rmt/*cbn
lrwxrwxrwx   1 root     root          63 Sep 23 22:50 /dev/rmt/0cbn -> ../../devices/pci@79,0/pci10de,377@a/pci1000,3150@0/st@31,0:cbn
lrwxrwxrwx   1 root     root          63 Sep 23 22:50 /dev/rmt/1cbn -> ../../devices/pci@79,0/pci10de,377@a/pci1000,3150@0/st@32,0:cbn

But i try a lot of the hints from the forum without success.

# cfgadm -al
c7                             scsi-sas     connected    configured   unknown
c7::rmt/0                      tape         connected    configured   unknown
c7::rmt/1                      tape         connected    configured   unknown
c7::sg42                       unknown      connected    configured   unknown

In /var/adm/messages i could also see that the tape drives are there:
Sep 23 23:14:55 rosinbckp01 scsi: [ID 583861 kern.info] st41 at mpt6: unit-address 31,0: target 31 lun 0
Sep 23 23:14:55 rosinbckp01 genunix: [ID 936769 kern.info] st41 is /pci@79,0/pci10de,377@a/pci1000,3150@0/st@31,0
...
Sep 23 23:14:55 rosinbckp01 scsi: [ID 583861 kern.info] st42 at mpt6: unit-address 32,0: target 32 lun 0
Sep 23 23:14:55 rosinbckp01 genunix: [ID 936769 kern.info] st42 is /pci@79,0/pci10de,377@a/pci1000,3150@0/st@32,0

I tried to configure the sg.conf, st.conf and so on without success. Has someone an idea or can me provide how the *.conf files has to be configured?

Thanks ...

Regards,
Martin

  • Hmm, right this second I'm struggling to see what we can do within NBU - as described, the setup of the sg driver is simple, and both mariannes and my methods work (the reason they are slightly different is because we just stick to 'what we know'. You say the systems are the same, I suspect the drives are scsi connected, are you using the same same cards ? Certainly there have been issues with cards but I thin those were FC HBAs (6GB ones, would have to look up the exact details, there's a TN out there somewhere on it) - but you don't have the same issue, as for that problem the word 'tape' appears in the path, which you don't have. However, it doesn't mean you haven't hit some other issue, especially if the cards are different than in your other machine. I have never seen this fail other than when there is a mistake in the config files, which you usually spot on the 2nd attempt ... Even then, as you are config via target/ lun the sg.build (as in mariannes post) captures the required entries in the files. The times that there are sometimes issues in when config is via WWNs and for some reason the sg.build script doesn't put the entries in the file, so you have to do it manually. I'm not around much tomorrow, so I'm not abandoning you, but you might want to log a call. Post the case number up here and I'll take a look. Before you log the call : 1. Do the modulnload command I posted before 2. Delete the files in /dev/sg 3. Delete the lines in /etc/devlink.tab 4. Delete the file sg.conf and links in /usr/openv/volmgr/bin/driver 5. Re- run Mariannes method, exactly as before, and copy paste those steps into your explanation email, after steps 1-4 above. I want to avoid you going round and round in circles - so when you log the call send in an email explain you have done steps 1 - 5 and then explain the following : The ls -al on /dev/rmt shows st@31,0 and st@32,0 which means you need files covering targets / luns upto target 32 / lun 0. Include in the explanation copies of the 'new' sg.conf and links files to show this. Explain that you have repeated these steps a few times, and it just doesn't work. Sorry I haven't been able to get to the bottom of this today, as I mentioned, I've either just missed something simpe, or there is something odd going on. Martin

36 Replies

Replies have been turned off for this discussion